.font-corporate-bold {
    font-family: 'Corporate Logo Bold Ver3', 'Arial Black', sans-serif
}

.font-f910 {
    font-family: 'F910 New Comic', 'Arial', sans-serif;
}

/* -------------------- ベース設定とリセット -------------------- */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-color: #fff;
    overflow-x: hidden
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* -------------------- 1. トップナビゲーションバー (黒い部分) -------------------- */
.top-nav-bar {
    background-color: #000;
    color: #fff;
    height: 90px;
    position: relative;
}

/* 緑のラインをナビゲーションの中央に配置 */
.top-nav-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #005400;
    transform: translateY(-50%);
    z-index: 1;
}

.top-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 小さいロゴの最適化 */
.logo-small {
    position: absolute;
    left: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 150px;
}

.small-logo-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.top-nav ul {
    display: flex;
    gap: 40px;
    font-size: 23px;
    font-weight: bold;
}

/* -------------------- 2. メインビジュアル/ページヘッダー (グレーの部分) -------------------- */
.page-header-section {
    background: linear-gradient(to right, #f7f7f7 0%, #a6a6a6 100%);
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: 100%;
}

.large-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 5px;
}

/* お問い合わせタイトルのフォントと配置 */
.page-title {
    font-size: 48px;
    font-weight: 900;
    color: #000000;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    margin: 0;
}

.image-note {
    font-size: 12px;
    color: #333;
    position: absolute;
    bottom: 10px;
    right: 20px;
    margin: 0;
}

.custom-logo {
    left: 20px;
    height: 60%;
    display: flex;
    align-items: center;
    max-width: 100px;
}

/* -------------------- キャッチコピーエリア -------------------- */

/* 大きいロゴの最適化 */
.logo-large {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: center;
    max-width: 300px;
    max-height: 350px;
}

.catchphrase-area {
    margin-left: auto;
    align-self: center;
    position: relative;
    right: 300px;
}

.catchphrase-line {
    margin: 10px 0;
    text-align: left;
    font-size: 45px;
    font-weight: 700;
    color: black;
    white-space: nowrap;
}

/* -------------------- メガメニュー -------------------- */
.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.mega-menu-container.open {
    max-height: 500px;
    opacity: 1;
}

.mega-menu-container .sub-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 20px 40px;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu-container .sub-menu li {
    padding: 10px 20px;
    min-width: 200px;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-container .sub-menu li:nth-child(1) {
    animation-delay: 0.05s;
}

.mega-menu-container .sub-menu li:nth-child(2) {
    animation-delay: 0.1s;
}

.mega-menu-container .sub-menu li:nth-child(3) {
    animation-delay: 0.15s;
}

.mega-menu-container .sub-menu li:nth-child(4) {
    animation-delay: 0.2s;
}

.mega-menu-container .sub-menu li:nth-child(5) {
    animation-delay: 0.25s;
}

.mega-menu-container .sub-menu li:nth-child(6) {
    animation-delay: 0.3s;
}

.mega-menu-container .sub-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    transition: color 0.3s;
}

.mega-menu-container .sub-menu a:hover {
    color: #007bff;
}

.header-menu .menu-item-has-children.open>a {
    color: #007bff;
}

.header-menu .sub-menu {
    display: none !important;
}

.hamburger {
    display: none;
}

/* ==================== レスポンシブ対応 ==================== */

/* タブレット対応 (1024px以下) */
@media screen and (max-width: 1024px) {
    /* .top-nav-container {
        padding: 0 15px;
    } */

    .top-nav ul {
        gap: 25px;
        font-size: 20px;
    }

    .logo-small {
        max-width: 130px;
        left: 15px;
    }

    .catchphrase-area {
        right: 200px;
    }

    .catchphrase-line {
        font-size: 38px;
    }

    .logo-large {
        max-width: 250px;
        left: 8%;
    }

    .top-nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* ハンバーガーの見た目 */
    .hamburger {
        width: 40px;
        height: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 5px;
        z-index: 999;
    }

    .hamburger span {
        display: block;
        height: 4px;
        background: white;
        border-radius: 3px;
    }

    /* メニューは隠す */
    .top-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #000;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 998;
    }

    /* メニュー表示 */
    .top-nav.active {
        right: 0;
    }

    /* メニュー内リスト */
    .header-menu {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding-left: 20px;
    }

    /* PC時の横並びは打ち消し */
    .header-menu li {
        display: block !important;
    }
}

/* タブレット対応 (900px以下) */
@media screen and (max-width: 900px) {
    .top-nav ul {
        gap: 20px;
        font-size: 18px;
    }

    .page-title {
        font-size: 38px;
    }

    .catchphrase-area {
        right: 150px;
    }

    .catchphrase-line {
        font-size: 32px;
    }

    .logo-large {
        max-width: 220px;
    }

    .mega-menu-container .sub-menu {
        padding: 15px 20px;
    }

    .mega-menu-container .sub-menu li {
        min-width: 150px;
        padding: 8px 15px;
    }
}

/* タブレット対応 (768px以下) */
@media screen and (max-width: 768px) {
    .top-nav-bar {
        height: 70px;
    }

    .top-nav ul {
        gap: 15px;
        font-size: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-small {
        max-width: 110px;
        left: 10px;
    }

    .page-header-section {
        min-height: 280px;
    }

    .page-title {
        font-size: 32px;
        right: 15px;
    }

    .logo-large {
        max-width: 180px;
        left: 5%;
    }

    .catchphrase-area {
        right: 100px;
    }

    .catchphrase-line {
        font-size: 26px;
    }

    .mega-menu-container .sub-menu {
        padding: 10px 15px;
        justify-content: center;
    }

    .mega-menu-container .sub-menu li {
        min-width: 120px;
        padding: 8px 10px;
    }

    .mega-menu-container .sub-menu a {
        font-size: 14px;
    }
}

/* スマホ対応 (600px以下) */
@media screen and (max-width: 600px) {
    .top-nav-bar {
        height: auto;
        min-height: 60px;
    }

    .top-nav-container {
        padding: 10px;
    }

    .logo-small {
        position: relative;
        left: 0;
        max-width: 100px;
        margin-bottom: 10px;
    }


    .custom-logo {
        left: 20px;
        height: 60%;
        display: flex;
        align-items: center;
        max-width: 70px;
    }

    .top-nav {
        width: 100%;
        order: 2;
    }

    .top-nav ul {
        width: 100%;
        gap: 10px;
        font-size: 14px;
        justify-content: space-around;
    }

    .page-header-section {
        min-height: 220px;
    }

    .page-title {
        font-size: 26px;
        right: 10px;
        max-width: 50%;
    }

    .logo-large {
        max-width: 140px;
    }

    .catchphrase-area {
        right: 90px;
    }

    .catchphrase-line {
        font-size: 20px;
    }

    .image-note {
        font-size: 10px;
        right: 10px;
        bottom: 5px;
    }
}

/* 小さいスマホ対応 (480px以下) */
@media screen and (max-width: 480px) {
    .top-nav ul {
        font-size: 12px;
        gap: 8px;
    }

    .logo-small {
        max-width: 80px;
    }

    .page-header-section {
        min-height: 180px;
    }

    .page-title {
        font-size: 22px;
    }

    .logo-large {
        max-width: 120px;
    }

    .catchphrase-area {
        right: 50px;
    }

    .catchphrase-line {
        font-size: 20px;
    }

    .mega-menu-container .sub-menu {
        flex-direction: column;
        align-items: center;
    }

    .mega-menu-container .sub-menu li {
        width: 100%;
        text-align: center;
    }
}