/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ベーススタイル */
body {
    font-family: "Noto Sans JP", sans-serif, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.8;
}

/* コンテナ共通スタイル */
.container {
    /* max-width: 900px; */
    max-width: 1120px;
    width: 90%;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 3rem;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    font-family: 'Lato', sans-serif;
    text-align: left;
}

.section-description {
    margin-bottom: 60px;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
}


/* メディアクエリ */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 24px;
    }

    .section-title {
        font-size: 32px;
        line-height: 2.4rem;
        margin-bottom: 25px;
    }

    .section-description {
        margin-bottom: 40px;
        font-size: 0.95rem;
    }
}

/* ヘッダー */
header {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ヘッダー - PC */
@media (min-width: 769px) {
    .header-inner {
        width: 90%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 115px;
        position: relative;
    }

    .logo {
        margin: 0;
        height: 115px;
        display: flex;
        align-items: center;
    }

    .logo a {
        display: flex;
        align-items: center;
        height: 100%;
        text-decoration: none;
    }

    .logo img {
        max-width: 230px;
        width: auto;
        filter: brightness(0) invert(1);
        transition: filter 0.3s ease;
    }
}

/* ヘッダー - モバイル */
@media (max-width: 768px) {
    .header-inner {
        width: 90%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        position: relative;
    }

    .logo {
        margin: 0;
        height: 70px;
        display: flex;
        align-items: center;
    }

    .logo a {
        display: flex;
        align-items: center;
        height: 100%;
        text-decoration: none;
    }

    .logo img {
        max-height: 40px;
        max-width: 180px;
        width: auto;
        filter: brightness(0) invert(1);
        transition: filter 0.3s ease;
    }
}

header.scrolled .logo img {
    filter: none;
}

/* ナビゲーション - PC */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    #menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu ul {
        display: flex;
        align-items: center;
        gap: 30px;
        list-style: none;
    }

    .nav-menu li a {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        transition: opacity 0.3s;
    }

    .nav-menu li a:hover {
        opacity: 0.7;
    }

    header.scrolled .nav-menu li a {
        color: #333;
    }

    .nav-menu li:last-child a {
        background-color: #fff;
        color: #333;
        margin-left: 20px;
        padding: 8px 24px;
        border-radius: 10px;
        transition: background-color 0.3s, color 0.3s;
    }

    .nav-menu li:last-child a:hover {
        background-color: #f0f0f0;
        opacity: 1;
    }

    header.scrolled .nav-menu li:last-child a {
        background-color: #001f5d;
        color: #fff;
    }
}

/* ナビゲーション - モバイル */
@media (max-width: 768px) {
    #menu-toggle {
        display: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .hamburger-menu {
        display: block;
        position: relative;
        z-index: 100;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        cursor: pointer;
        z-index: 110;
    }

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

    header.scrolled .hamburger span {
        background-color: #333;
    }

    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 10px; }
    .hamburger span:nth-child(3) { top: 20px; }

    #menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: #333;
    }

    #menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: #333;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
        padding-top: 70px;
    }

    #menu-toggle:checked ~ .nav-menu {
        right: 0;
    }

    .nav-menu ul {
        list-style: none;
    }

    .nav-menu li {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        text-decoration: none;
        color: #333;
        font-size: 16px;
        display: block;
    }

    .nav-menu a:hover {
        color: #666;
    }
}

/* フッター */
footer {
    padding: 40px 0;
    background-color: #333;
    color: #fff;
}

footer .footer-container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-book {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.btn-book {
    background-color: #001f5d;
    color: #fff;
    border: none;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: block;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background-color: #002b80;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #fff;
    font-size: 1.25rem;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}


/* レスポンシブ対応（フッター） */
@media (max-width: 768px) {
    footer {
        padding: 30px 0 80px;
    }

    .social-link {
        font-size: 1.125rem;
    }

    .copyright {
        font-size: 0.75rem;
    }

    .footer-book {
        display: block;
    }
}

@media (min-width: 769px) {
    footer .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-content {
        flex-direction: row;
        justify-content: flex-start;
        gap: 40px;
    }

    .footer-book {
        position: static;
        display: block;
        padding: 0;
        background: none;
        box-shadow: none;
        width: auto;
    }

    .btn-book {
        background-color: #fff;
        color: #333;
        width: auto;
        padding: 10px 25px;
        font-size: 15px;
    }

    .btn-book:hover {
        background-color: #f0f0f0;
        transform: translateY(-2px);
    }
}

/* ボタン共通スタイル */
.button-container {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* ボタンカラーバリエーション */
.btn-primary {
    background-color: #001f5d;
    color: #fff;
}

.btn-primary:hover {
    background-color: #002b80;
}

.btn-secondary {
    background-color: #333;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-white {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-white:hover {
    background-color: #f5f5f5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .btn {
        padding: 8px 20px;
        font-size: 15px;
    }
}

/* 中ページヒーローセクション */
.sub-herosection {
    width: 100%;
    height: 500px;
    position: relative;
}

.sub-hero-swiper {
    width: 100%;
    height: 100%;
}

.sub-hero-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.sub-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .sub-herosection,
    .sub-hero-image {
        height: 400px;
    }
}

/* 3カラムレイアウト */
.col3-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
}

.col3-item {
    width: calc((100% - 60px) / 3);
    min-width: 0;
}

/* 4つ目以降のアイテムのマージン調整 */
.col3-item:nth-child(3n) {
    margin-right: 0;
}

.col3-item:nth-last-child(-n+3):first-child,
.col3-item:nth-last-child(-n+3):first-child ~ .col3-item {
    margin-bottom: 0;
}

.col3-media {
    aspect-ratio: 40/27;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.col3-media::after {
    content: '';
    display: block;
    padding-top: 75%;
}

.col3-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.col3-item:hover .col3-media img {
    transform: scale(1.05);
}

.col3-content h3 {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 6px;
    font-family: 'Lato', sans-serif;
}

.col3-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.col3-content > .more-link {
    display: block;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-top: auto;
}

.col3-content .more-link:hover {
    opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .col3-grid {
        gap: 25px 30px;
    }

    .col3-item {
        width: calc((100% - 60px) / 3);
    }
}

@media (max-width: 768px) {
    .col3-grid {
        flex-direction: column;
        gap: 35px;
    }

    .col3-item {
        width: 100%;
        margin-bottom: 0;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .col3-item:nth-child(3n) {
        margin-right: auto;
    }

    .col3-media {
        width: 120px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .col3-media::after {
        padding-top: 100%;
    }

    .col3-content {
        flex: 1;
    }

    .col3-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .col3-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .col3-grid {
        gap: 25px;
    }

    .col3-item {
        flex-direction: column;
        gap: 15px;
    }

    .col3-media {
        width: 100%;
    }

    .col3-media::after {
        padding-top: 66.67%;
    }
}