@charset "utf-8";

@font-face {
  font-family: 'Noto Sans'; /* 任意のフォント名を指定 */
  src: url('/font/notosans.ttf') format('truetype'); /* ファイルの場所と形式を指定 */
  font-weight: normal;
  font-style: normal;
}
/* 各ファイルに共通するデザイン */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; 
}
body {
    margin: 0;
    padding: 0;
    background-color: #f5f8f5;
    font-family: sans-serif;
}
a {
    text-decoration: none;
    transition: all 0.3s; /*hoverの際のアニメーション*/
}
a:hover, a:active {
    filter: brightness(90%);
    text-decoration: underline;
}
h1, h2, h3, h4 {
    font-family: "Noto Sans", "Yu Gothic", "Meiryo", "Hiragin Maru Gothic ProN", sans-serif;
}
h1 {
    font-size: 40px;
    margin: 10px;
}
h2 {
    background-color: #d3f0d3;
    box-shadow: 1px 1px 3px #a9bfa9;
    border-top: 3px solid #04e16b;
    padding: 5px 10px;
    margin: 30px 0;
}
h3.midashi {
    display: inline-block;
    margin: 10px 0;
    border-bottom: 3px solid #04e16b;
    padding: 2px 5px;
}
p, li {
    line-height: 1.7;
}
/* コンテンツの設定 */
.outer {
    margin: 0 auto;
}

/*
ヘッダーの設定
*/
.page-top {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    background-color: #b9fad7;
    z-index: 99;
    box-shadow: 0 3px 6px #666;
    margin: 0 auto;
}

.page-top a, .open-info, .global-navigation {
    display: inline-block;
    vertical-align: top;
    max-height: 100px;
}

/* 学友会ロゴ画像 */
.logo-image {
    max-height: 90px;
    padding: 5px;
    background-color: #b9fad7;
}

/* 開室情報 */
.open-info {
    display: inline-block;
    height: 100%;
    margin: 0 15px;
}

.open-info-content td {
    font-size: 10px;
    vertical-align: middle;
    line-height: 1.3;
}

.open-info-content td:nth-of-type(1) {
    font-family: 'consolas';
    font-size: 20px;
    width: 40px;
    margin-right: 5px;
}
.open-info-midashi {
    font-size: 13px;
    letter-spacing: 1px;
    margin: 3px 0;
}

.open-time-span, .print-ok, .prn-ng {
    font-size: 23px;
    font-weight: bold;
}
.print-ok {
    color: green;
}
.print-ng {
    color: blue;
}
/* ナビゲーション */
.global-navigation {
    display: inline-block;
}
.navigation-menu {
    display: inline-block;
    position: absolute;
    right: 5px;
    margin: 0;
    padding: 0;
}
.navigation-menu a {
    transform: translateY(0);
    transition: transform 0.5s;
}
.navigation-menu a:hover {
    text-decoration: none;
    transform: translateY(5px);
}
.navigation-menu li {
    display: inline-block;
    font-size: 13.5px;
    height: 100%;
    color: #000;
    padding: 36px 10px;
    background-color: #b9fad7;
}
.navigation-menu li::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 4px;
    background: #0f5932;
    bottom: -1px;
    transform: scale(0, 1);
    transform-origin: center top; 
    transition: transform 0.3s; 
}
.navigation-menu li:hover::after {
    transform: scale(1, 1);
}

/* 本体 */
.wrapper {
    padding: 10px 0; 
    max-width: 1000px;
    margin: 10px auto;
}

.page-content{
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px;
    margin-top: 10px;
}
.top-image-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 250px;
}
/* トップ画像 index.htmlのみ個別のcssで書き換えている */
.top-image {
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url(../image/aid_top.webp);
    filter: contrast(0.5);
    background-position: center center;
    background-size: cover;
    object-fit: cover;
    animation: zoomUp 5s ease forwards;
}
.top-caption {
    opacity: 1;
    position: absolute;
    margin: 0 auto;
    top: 70%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    font-family: 'Noto Sans';
    text-shadow: 2px 2px 3px #888;
}
.top-caption-main {
    font-size: 50px;
    font-weight: bold;
    line-height: 1.2;
}

.special-link {
    margin: 10px auto;
}
.special-link a {
    transition: all 0.3s;
}

.special-link a:hover {
    text-decoration: none;
}
.service-link {
    margin: 30px 0;
    height: 50px;
}
.service-link a {
    padding: 10px 30px;
    border-radius: 10px;
}

.formore-link a {
    padding: 5px 10px;
    border-radius: 4px;
}

/*フッター*/
footer {
    padding-top: 5px;
    width: 100%;
    background-color: #0f5932;
    color: #fff;
    margin-bottom: 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
}
.footer-organization {
    flex-basis: 35%;
}
h1.footer-midashi {
    display: inline-block;
    margin-left: 20px;
    font-size: 32px;
    border-bottom: 1.5px solid #fff;
}
.footer-p {
    margin-left: 20px;
    font-size: 14px;
    font-weight: normal;
}
.footer-p small{
    font-size: 10px;
}
.footer-p a{
    color: #89e9f9;
}
.footer-access {
    flex-basis: 20%;
}
.footer-access img {
    max-height: 300px;
}

.site-map {
    flex-basis: 43%;
}

.site-map li {
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
}
.site-map li.footer-list-midashi {
    font-weight: 700;
}
.site-map li a{
    color: #fff;
}
h3.footer-midashi {
    display: inline-block;
    font-size: 20px;
    border-bottom: 1.5px solid #fff;
    margin: 5px 0;
}
.copyright {
    text-align: center;
    font-size: 16px;
    margin-bottom: 0;
}
/*
スマホ表示用
*/
.mobile-block, .mobile-inline, .mobile-inline-block {
    display: none;
}

@media screen and (max-width: 1000px) {
    .mobile-hidden {
        display: none;
    }
    .mobile-block {
        display: block;
    }
    .mobile-inline {
        display: inline;
    }
    .mobile-inline-block {
        display: inline-block;
    }

    /* ナビゲーションメニュー */
    .global-navigation {
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
        z-index: 9;
        max-height: none;
        height: 100vh;
        background-color: #e3fae3;
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    .global-navigation.active {
        transform: translateX(0);
    }
    .open-info, .navigation-menu {
        display: block;
        position: static;
        width: 100%;
        margin: 0;
        background-color: none;
    }
    .open-info {
        padding: 15px;
    }
    .navigation-menu {
        background-color: none;
    }
    .navigation-menu a, .navigation-menu li{
        display: block;
        background-color: #e3fae3;
    }
    .open-info, .navigation-menu a{
        border-bottom: 1.5px solid #3da11f;
    }
    .navigation-menu li{
        font-size: 20px;
        padding: 15px;
    }
    .global-navigation li:hover::after {
        transform: scale(0, 1); /* スマホではhoverでの下線アニメーションは行わない */
    }
    /* ハンバーガーメニュー */
    .mobile-hamburger {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 50px;
        height: 44px;
        cursor: pointer;
    }
    .mobile-hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #0f5932;
        border-radius: 4px;
    }
    .mobile-hamburger, .mobile-hamburger span {
        display: inline-block;
        transition: all 0.5s;
        box-sizing: border-box;
    }
    .mobile-hamburger span:nth-of-type(1) {
        top: 0;
    }
    .mobile-hamburger span:nth-of-type(2) {
        top: 20px;
    }
    .mobile-hamburger span:nth-of-type(3) {
        bottom: 0;
    }
    #hamburger.active span:nth-of-type(1) {
        transform: translateY(20px) rotate(45deg);
    }
    #hamburger.active span:nth-of-type(2) {
        opacity: 0;
    }
    #hamburger.active span:nth-of-type(3) {
        transform: translateY(-20px) rotate(-45deg);
    }

    /* 本体 */
    .wrapper {
        max-width: none;
        padding: 10px;
        padding-bottom: 30px;
    }

    .service-link a {
        padding: 20px 30px;
        font-size: 16px;
    }
    /* フッター */
    .footer-container {
        display: block;
    }
    .footer-access img {
        display: block;
        margin-left: 20px;
    }
    h3.footer-midashi {
        margin-left: 20px;
    }
}

/* ふわっと表示させたい要素の基本スタイル */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

/* 画面内に入ったときに追加するクラス */
.fade-in.is-show {
  animation: fadeInStyle 0.8s ease forwards;
  animation-delay: calc(var(--index) * 0.15s);;
}

/* アニメーションの動き 定義 */
@keyframes fadeInStyle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
