/* メニュー */
ul,
li,
a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

/* Main menu styles */
/* headとnavを横並びにするためのスタイル */
.header-container {
    position: fixed; /* 上部に固定 */
    top: 0;
    width: 100%;
    z-index: 1000; /* 他のコンテンツの上に表示されるようにする */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 少し影を追加して浮かせる効果を追加 */
}

.head {
    display: flex;
    flex-direction: column; /* 縦方向に配置 */
    align-items: center; /* 中央揃え */
}

.head_ttl {
    font-size: 14px;
    color: #40372d;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; /* 文字の太さを標準に設定 */
    margin-left: 20px;
    margin-top: -10px; /* ロゴとの間隔を調整 */
    margin-bottom: 10px; /* ロゴとの間隔を調整 */
    text-align: center; /* テキストを中央揃え */
}

.head_logo img {
    height: 80px; /* ロゴの高さを調整 */
    margin-top: 0px; /* ロゴ上部の余白を調整 */
    margin-bottom: -5px; /* ロゴ下部の余白を調整 */
    margin-left: 50px; /* 左余白を維持 */
}
/* モバイル版での調整 */
@media (max-width: 768px) {
    .head_ttl {
        font-size: 12px; /* フォントサイズを小さくする */
        margin-left: 20px; /* 左側の余白を少し減らす */
        margin-top: -20px;  /* 上の隙間を少し広げる */
        margin-bottom: 0px; /* 下の隙間も少し広げる */
    }
}
/* モバイル版で非表示にするスタイル */
@media (max-width: 768px) {
    .header-container {
        display: none;
    }
}

/* ナビゲーションのスタイル */
#nav {
    flex-grow: 1;
    background: #fff;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

#nav .header_menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

/* メニュー項目が一列に並ぶように設定 */
#nav .header_menu > li {
    flex: 1;
    text-align: center;
    padding: 5px 10px;
}

#nav .header_menu > li > a {
    display: block;
    padding: 10px 8px;
    color: #40372d;
    border-right: 1px solid #d2d1c8;
    box-sizing: border-box;
    height: auto;
    line-height: 1.5;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 最後のメニュー項目の右ボーダーを削除 */
#nav .header_menu > li:last-child > a {
    border-right: none;
}

/* レスポンシブデザインの調整 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #nav .header_menu {
        flex-direction: column;
        width: 100%;
    }

    #nav .header_menu > li {
        width: 100%;
        text-align: left;
    }
}


#nav .header_menu>li {
    flex: 1 1 100px;
    /* 各メニュー項目の初期幅を調整 */
    min-width: 100px;
    /* 各メニュー項目の最小幅を設定 */
    max-width: 140px;
    /* 各メニュー項目の最大幅を設定 */
    position: relative;
    padding: 5px 0;
    text-align: center;
    box-sizing: border-box;
}

#nav .header_menu>li>a {
    display: block;
    padding: 10px 8px;
    /* パディングを調整 */
    color: #40372d;
    border-right: 1px solid #d2d1c8;
    position: relative;
    box-sizing: border-box;
    height: auto;
    /* 高さを自動調整 */
    line-height: 1.5;
    /* 行の高さを調整して被らないようにする */
    font-family: 'Noto Sans JP', sans-serif;
    /* クリックする前のフォントを指定 */
}

#nav .header_menu>li:last-child>a {
    border-right: none;
}

#nav .header_menu>li:hover>a {
    color: #fff;
    background: #FFA500;
    /* ホバー時の背景色を690237に変更 */
}

#nav .header_menu>li:hover>a span {
    color: #fff;
}

#nav .header_menu>li>.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 1000px;
    /* サブメニューの幅を設定 */
    padding: 20px;
    /* サブメニューのパディングを設定 */
    box-sizing: border-box;
}

#nav .header_menu>li:hover>.sub-menu {
    display: flex;
    justify-content: space-between;
    /* サブメニュー項目の間隔を均等に設定 */
}

#nav .header_menu>li>.sub-menu>.sub-menu-section {
    position: relative;
    width: 30%;
    /* サブメニュー項目の幅を設定 */
}

#nav .header_menu>li>.sub-menu>.sub-menu-section .section-title {
    padding: 10px 20px;
    color: #000000;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid #FFA500;
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    /* クリックする前のフォントを指定 */
}

#nav .header_menu>li>.sub-menu>.sub-menu-section>.sub-menu>li>a {
    padding: 5px 0;
    color: #40372d;
    background: none;
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    /* クリックする前のフォントを指定 */
}

#nav .header_menu>li>.sub-menu>.sub-menu-section>.sub-menu>li:hover>a {
    background: #FFA500;
    color: #fff;
}

#nav .header_menu>li>.sub-menu>.sub-menu-section>.sub-menu>li:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* 追加 */
#nav .header_menu>li>.sub-menu1>li:hover {
    background: #FFA500;
    color: #fff;
}

#nav .header_menu>li:hover>.sub-menu1 {
    display: block;
}

#nav .header_menu>li>.sub-menu1 {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 300px;
    padding: 20px;
    box-sizing: border-box;
}

#nav .header_menu>li>.sub-menu1>li>a {
    padding: 5px 0;
    color: #40372d;
    background: none;
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    /* クリックする前のフォントを指定 */
}

#nav .header_menu>li>.sub-menu1>li>a:hover {
    background: #FFA500;
    color: #fff;
}

/* 日本語の下に英語を表示するスタイル */
#nav .header_menu>li>a span.nav_span {
    display: block;
    font-size: 12px;
    color: #FF8100;
    margin-top: 5px;
}

/* スクロールのためのコンテンツを追加 */
.content {
    height: 2000px;
    background: #f0f0f0;
    padding-top: 140px; /* ヘッダーの高さ分だけコンテンツを下げる */
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #nav .header_menu {
        flex-direction: column;
    }

    #nav .header_menu>li {
        width: 100%;
    }

    #nav .header_menu>li>a {
        border-right: none;
        border-bottom: 1px solid #d2d1c8;
    }

    #nav .header_menu>li:last-child>a {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    #nav {
        display: none;
    }
}

/* ロゴ画像のスタイルを追加 */
.logo img {
    height: 30px;
    /* 必要に応じて高さを調整 */
}

/* デスクトップ用メディアクエリ */
@media (min-width: 769px) {
    .header__nav-area {
        display: none;
    }

    /* デスクトップ版ではロゴを非表示にする */
    .logo {
        display: none;
    }
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* 子要素を左右に配置 */
    align-items: center;
    padding: 0 20px;
}
/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    height: 60px;
    width: 60px;
	position: fixed; /* ハンバーガーメニューも画面に固定 */
    top: 0px; /* 上からの距離 */
    right: 10px; /* 右からの距離 */
    z-index: 1010; /* ナビゲーションエリアよりも前面 */
    border: none;
    background-color: transparent;
}
.logo img {
    height: 30px; /* ロゴの高さを指定 */
    width: auto;  /* 幅を自動調整 */
}

.hamburger.-active .hamburger__line {
    background-color: transparent;
}

.hamburger.-active .hamburger__line::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.-active .hamburger__line::after {
    top: 0;
    transform: rotate(-45deg);
}

.hamburger.-active .hamburger__text::before {
    content: 'Close';
    text-align: center;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.hamburger__line {
    display: block;
    height: 2px;
    position: absolute;
    top: 23px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    background-color: #FFA500;
    transition: 0.4s;
}

.hamburger__line:before,
.hamburger__line:after {
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    background-color: #FFA500;
    transition: inherit;
}

.hamburger__line:before {
    top: -6px;
}

.hamburger__line:after {
    top: 6px;
}

.hamburger__text {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.hamburger__text::before {
    content: "Menu";
    text-align: center;
    color: #FFA500;
    font-size: 10px;
    font-weight: 900;
}

.header {
    width: 100%;
    background-color: #fff; /* 背景色 */
    position: fixed; /* ヘッダーを画面の上部に固定 */
    top: 0;
    left: 0;
    z-index: 1000; /* 前面に表示 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 下に軽い影を追加 */
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* 必要に応じて調整 */
    margin: 0 auto;
}

.header__nav-area {
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 9;
    height: 100vh;
    width: 100%;
    visibility: hidden;
    padding-top: 60px;
    background-color: #FFA500;
    transition: 0.4s;
    overflow-y: auto;
    /* 追加: スクロール可能にする */
}

.header__nav-area.-active {
    left: 0;
    visibility: visible;
}

.global-navigation {
    padding-top: 40px;
    padding-right: 25px;
    padding-bottom: 120px;
    padding-left: 25px;
}	

.global-navigation__list>li {
    padding-bottom: 10px;
    border-bottom: 2px solid #fff;
}

.global-navigation__list>li+li {
    margin-top: 10px;
}

.global-navigation__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-weight: 400;
    transition: color 0.4s;
    font-size: 1.0rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.global-navigation__link.-accordion {
    position: relative;
    background: none;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 0;
}

.global-navigation__link.-accordion::after {
    content: '';
    display: block;
    height: 12px;
    position: absolute;
    top: 50%;
    right: 5px;
    width: 2px;
    background-color: #fff;
    transform: translateY(-50%);
    transition: transform 0.4s;
}

.global-navigation__link.-accordion::before {
    content: '';
    display: block;
    height: 2px;
    position: absolute;
    top: 50%;
    right: 0;
    width: 12px;
    background-color: #fff;
    transform: translateY(-50%);
}

.global-navigation__link.-active::after {
    transform: translateY(-50%) rotate(-90deg);
}

.accordion {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: 0.4s;
}

.accordion.-active {
    height: auto;
    padding-top: 20px;
    /* 追加: 2階層目の幅を狭める */
    visibility: visible;
}

.accordion__list li {
    font-size: 1rem;
}

.accordion__list li+li {
    margin-top: 20px;
    /* 追加: 2階層目の間隔を狭める */
}

.accordion__link {
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
}

/* モバイル用メディアクエリ */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: fixed; /* 固定 */
        top: 0px; /* 上部からの距離 */
        right: 10px; /* 右側からの距離 */
        z-index: 1010; /* 他の要素より前面に配置 */
    }

    .header__nav-area {
        display: block;
        position: fixed; /* 固定 */
        top: 0; /* ヘッダーの位置 */
        left: -100%; /* 初期位置は画面外 */
        z-index: 1000; /* ハンバーガーメニューの下に配置 */
        height: 100vh; /* 全画面の高さ */
        width: 100%; /* 全画面幅 */
        visibility: hidden; /* 初期状態では非表示 */
        padding-top: 60px;
        background-color: #FFA500;
        transition: 0.4s ease-in-out;
        overflow-y: auto;
    }

    .header__nav-area.-active {
        left: 0; /* 画面内にスライド */
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .header__inner {
        padding: 15px 10px; /* モバイル版用にpaddingを調整 */
        flex-direction: column; /* 必要に応じて縦並びに変更 */
        align-items: flex-start; /* 左寄せにする場合 */
    }
}

/* デスクトップ用メディアクエリ */
@media (min-width: 769px) {
    .header__nav-area {
        display: none;
    }
}

