@charset "utf-8";

/* ===== グローバルスタイル ===== */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 80px 0 0 0;
    font-family: sans-serif;
    background: #fff;
}

/* ===== ヘッダー ===== */
.header {
    background-color: #fff;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-logo a {
    display: block;
    text-decoration: none;
}

.header-logo img {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

.header-logo a:hover img {
    opacity: 0.8;
}

.header-nav {
    margin: 0 4rem 0 auto;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.header-menu li {
    position: relative;
}

.header-menu a {
    text-decoration: none;
    color: #004A78;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
    display: inline-block;
    padding: 10px 0;
}

.header-menu .has-submenu > a {
    padding-right: 20px;
}

.header-menu a:hover {
    color: #004A78;
    opacity: 0.7;
}

/* PC版のサブメニュー */
.header-menu .submenu-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.header-menu .submenu-toggle .arrow {
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #004A78;
    border-bottom: 2px solid #004A78;
    transform: rotate(45deg);
    position: absolute;
    top: 5px;
    left: 5px;
    transition: transform 0.3s;
}

.header-menu .submenu-toggle.active .arrow {
    transform: rotate(-135deg);
    top: 8px;
}

.header-menu .submenu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    background: #fff;
    min-width: 280px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.header-menu .submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
}

.header-menu .submenu.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-menu .submenu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}

.header-menu .submenu li:last-child {
    border-bottom: none;
}

.header-menu .submenu a {
    font-size: 0.9rem;
    padding: 12px 15px;
    line-height: 1.4;
    display: block;
    white-space: nowrap;
    transition: all 0.3s;
    border-radius: 4px;
}

.header-menu .submenu a:hover {
    background: #f8f8f8;
    opacity: 1;
}

.header-contact-btn img {
    height: 60px;
    width: auto;
    transition: opacity 0.3s;
}

.header-contact-btn a:hover img {
    opacity: 0.8;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1000;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #004A78;
    position: absolute;
    transition: all 0.3s;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
    bottom: 0;
}

.hamburger-menu.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* モバイルナビゲーション */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    padding: 80px 20px 20px;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e0e0e0;
}

.mobile-menu li {
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu a {
    text-decoration: none;
    color: #004A78;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    padding: 15px;
    background: #fff;
    transition: background-color 0.3s;
}

.mobile-menu a:active {
    background: #f5f5f5;
}

.mobile-menu .has-submenu {
    margin-bottom: 0;
}

.mobile-menu .has-submenu > a {
    display: inline-block;
    width: calc(100% - 50px);
}

.mobile-menu .submenu-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    border-left: 1px solid #e0e0e0;
}

.mobile-menu .submenu-toggle .arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #004A78;
    border-bottom: 2px solid #004A78;
    transform: rotate(45deg);
    position: absolute;
    top: 15px;
    left: 18px;
    transition: transform 0.3s;
}

.mobile-menu .submenu-toggle.active .arrow {
    transform: rotate(-135deg);
    top: 20px;
}

.mobile-menu .submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f8f8;
    overflow: hidden;
}

.mobile-menu .submenu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .submenu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu .submenu li:last-child {
    border-bottom: none;
}

.mobile-menu .submenu a {
    font-size: 0.95rem;
    padding: 12px 15px;
    line-height: 1.4;
    color: #004A78;
    background: #f8f8f8;
}

.mobile-contact-btn {
    margin-top: 10px;
    text-align: center;
    padding: 0 10px;
}

.mobile-contact-btn img {
    width: 95%;
    max-width: 400px;
    height: auto;
    transition: opacity 0.3s;
}

.mobile-contact-btn a:hover img {
    opacity: 0.8;
}

/* レスポンシブ対応 */
/* タブレット: 768px-1199px */
@media screen and (max-width: 1350px) and (min-width: 768px) {
    .header-nav {
        margin: 0 2rem 0 auto;
    }

    .header-menu {
        gap: 1.5rem;
    }

    .header-menu a {
        font-size: 1rem;
    }

    .header-contact-btn img {
        height: 50px;
    }


}

/* タブレット以下でハンバーガーメニュー表示 */
@media screen and (max-width: 1199px) {
    .header-nav,
    .header-contact-btn {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .header-logo img {
        width: 150px;
        height: auto;
    }
}
/*小さいバナー*/
 .banner-small {
    position: relative;
}

.banner-small img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.banner-small .banner-button {
    position: absolute;
    width: 30%;
    top: 50%;
    right: 8%;
    z-index: 10;
    transition: opacity 0.3s;
}

.banner-small .banner-button:hover {
    opacity: 0.8;
}

 /*大きいバナー*/
.banner-big {
    position: relative;
}

.banner-big img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.banner-big .banner-button {
    position: absolute;
    width: 60%;
    top: 80%;
    left: 20%;
    z-index: 10;
    transition: opacity 0.3s;
}

.banner-big .banner-button:hover {
    opacity: 0.8;
}


 /*無料体験レッスン受講者の声*/
.free-lesson-voice{
    padding: 40px 0;
    background-color: #eeeeee;
    text-align: center;
    font-size: 1rem;
    color:#004A78;
    overflow: hidden;
}

@keyframes slideLeft {
    0% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(-60%);
    }
}

.free-lesson-voice .infinite-scroll {
    display: flex;
    white-space: nowrap;
    animation: slideLeft 80s linear infinite;
    width: max-content;
}

.free-lesson-voice .infinite-scroll img {
    flex-shrink: 0;
    margin-right: -190px;
}

.free-lesson-voice .infinite-scroll img {
    width: auto;
    height: 200px; /* 画像の高さを制御 */
    margin-top: 20px;
}

/*footer*/
footer {
    background: #fff;
    padding: 60px 5% 30px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

/* 上部エリア */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 40px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    transition: opacity 0.3s;
}

.footer-logo img:hover {
    opacity: 0.8;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    text-align: left;
}

.footer-menu h3 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #003366;
    position: relative;
    padding-bottom: 10px;
}

.footer-menu h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #004A78;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.footer-menu a:hover {
    color: #004A78;
}

/* 下部ボタンエリア */
.footer-bottom {
    margin: 0 auto;
    max-width: 1100px;
    text-align: center;
}

/* コピーライト */
.copyright {
    font-size: 12px;
    color: #888;
    margin-top: 30px;
    padding-top: 20px;
}

/* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .banner-small img[src="img/Banner1.webp"] {
        content: url("../img/Group 239.webp");
    }

    .banner-small .banner-button {
        position: absolute;
        width: 60%;
        top: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }

    .banner-big .banner-button img[src="img/btn-7.webp"] {
        content: url("../img/Group 182.webp");
        margin-top: 0%;
    }

    .banner-big img[src="img/Banner2.webp"] {
        content: url("../img/Group 180.webp");
        margin:auto 0 100px;
    }

    footer {
        padding: 40px 20px 20px;
    }

    .footer-logo {
        margin-bottom: 30px;
    }



    .footer-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 25px;
        justify-content: center;
        max-width: 500px;
        margin: 0 auto;
    }

    /* About NariTiez */
    .footer-menu > div:first-child {
        flex: 0 0 100%;
        text-align: center;
    }

    /* その他のメニュー項目 */
    .footer-menu > div:not(:first-child) {
        flex: 0 0 calc(50% - 12.5px);
        text-align: center;
    }

    .footer-menu h3 {
        padding-bottom: 8px;
        font-size: 14px;
        text-align: left;
    }

    .footer-menu h3::after {
        left: 0;
        transform: none;
        width: 40px;
    }

    .footer-menu li {
        margin-bottom: 10px;
        font-size: 13px;
        text-align: left;
    }


}

/* 小さなモバイル: 479px以下 */
@media screen and (max-width: 479px) {
    footer {
        padding: 30px 15px 15px;
    }

    .footer-menu {
        gap: 20px;
        max-width: 400px;
    }

    .footer-menu h3 {
        font-size: 13px;
    }

    .footer-menu li {
        font-size: 12px;
        margin-bottom: 8px;
    }


}


/* ===== 共通コンポーネント ===== */

.feature-top {
    position: relative;
}

.feature-top img {
    width: 100%;
    display: block;
}

.str {
  display       : inline-block;        /* ブロック化              */
  font-weight   : bold;                /* 太字                    */
  font-size     : 110%;                /* 文字を大きくする        */
  color         : #004A78;             /* 文字色                  */
}

.mobile-br {
    display: none;
}


@media screen and (max-width: 470px) {
    .mobile-br {
    display: inline-block;
}
}