/* 共通パーツ */
body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    line-height: 1.75;
    font-size: 16px;
    color: #4B4B4B;
}

img {
    max-width: 100%;
    height: auto;
}

/* スクロールロック用（メニュー開閉時） */
body.is-locked {
    overflow: hidden;
}

.pc-none {
    display: none;
}

.sp-none {
    display: none;
}

/* コンテンツ幅 */
.inner {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.inner--sub {
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
}

/* ヘッダーの高さ（固定する前のヘッダーの高さ） */
:root {
    --header-height: 89px;
}

/* ヘッダー */
.header-wrapper {
    width: 100%;
    padding-top: var(--header-height); /* 固定したヘッダーの分、中身を下げる */
    background-image:url(../image/MV_image.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* .header-wrapper が無いページは body で下げる */
body:not(:has(.header-wrapper)) {
    padding-top: var(--header-height);
}

.header {
    position: fixed; /* 画面上部に固定して追従させる */
    top: 0;
    left: 0;
    width: 100%; /* 横幅を画面全体に */
    z-index: 1000; /* 他の要素より前面に表示 */
    padding: 30px 0 20px; /* 余白を追加 */
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* スクロールしたら背景を付ける（JSで is-scrolled を付与） */
.header.is-scrolled {
    background-color: rgba(251, 249, 246, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 100px;
}

.header__logo-image {
    width: 100%;
}

.header__nav-list {
    display: flex;
    column-gap: 60px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.2em;
    align-items: center;
}

.header__nav-link {
    position: relative;
    display: inline-block; /* 下線の位置を正しく制御するために指定 */
    text-decoration: none;
}

/* 下線の初期状態 */
.header__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px; /* 文字からの下位置（適宜調整） */
    width: 100%;
    height: 2px;
    background-color: #E99E58;
    transform-origin: left;
    transform: scaleX(0); /* 左端を起点にして横幅を0にする */
    transition: transform 0.4s ease-in-out;
}

/* ホバー時に下線を左から右へ出現させる */
.header__nav-link:hover::after {
    transform: scaleX(1);
}

/* ==========================================
ハンバーガーボタン（デフォルト非表示）
   ========================================== */
/* ハンバーガーボタンの基本設定 */
.hamburger-btn {
    display: none; /* スマホのみ表示する場合はメディアクエリで display: block に設定 */
    position: relative;
    width: 55px;
    height: 55px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* 通常時は閉じるアイコンを隠す */
.hamburger-btn .icon-close {
    display: none;
}

/* メニューが開いた時（is-active付与時）の表示切り替え */
.hamburger-btn.is-active .icon-open {
    display: none;
}

.hamburger-btn.is-active .icon-close {
    display: block;
}

.hamburger-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E99E58;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 11px; }
.hamburger-btn span:nth-child(3) { top: 22px; }

/* オープン時（×状に変形） */
.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* セクションタイトル */
.js-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.9s ease;
}

/* JavaScriptで画面に入った時に適用（表示後） */
.js-fade-in.is-show {
    opacity: 1;
    transform: translateY(0);
}

.section_title-wrapper {
    width: 1170px;
    margin: 0 auto;
}

.section_title {
    font-family: "Borel", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    color: #E99E58;
}

.sub_title {
    font-size: 32px;
    font-weight: 700;
}

/* ボタン */
.custom-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 16px 50px;
    background-color: #e99e58;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: visible;
}

.custom-btn:hover {
    background-color: #ffffff;
    color: #4B4B4B;
}

.btn-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* 枠線の初期設定 */
.btn-svg rect {
    fill: none;
    stroke: #E99E58;
    stroke-width: 2;
    x: 1px;
    y: 1px;
    width: 98%;  
    height: 98%;  
    rx: 39px;
    ry: 39px;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.8s ease;
}

/* ホバーした時に線をぐるっと描画する */
.custom-btn:hover .btn-svg rect {
    stroke-dashoffset: 0;
}

/* ホバー時に矢印の色もオレンジ系に変更したい場合 */
.custom-btn:hover .arrow::before {
    background-color: #4B4B4B;
}

.custom-btn:hover .arrow::after {
    border-color: #4B4B4B;
}

.arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    transform: translate(0.7em, -0.05em);
}

.arrow::before, .arrow::after {
    box-sizing: border-box;
}

.arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    height: 0.1em;
    background-color: #ffffff;
}

.arrow::after {
    content: '';
    position: absolute;
    right: 10%;
    top: 50%;
    width: 40%;
    height: 40%;
    border-top: 0.1em solid #ffffff;
    border-right: 0.1em solid #ffffff;
    transform: translateY(-50%) rotate(45deg);
}

/* フッター */
.footer {
    width: 100%; /* 横幅を画面全体に */
    z-index: 1000; /* 他の要素より前面に表示 */
    padding: 40px 0; /* 余白を追加 */
    width: 100%;
    height: 220px;
    background-image: url(../image/footer.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 100px;
}

.footer__logo-image {
    width: 100%;
}

.footer__nav-list {
    display: flex;
    column-gap: 60px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.2em;
    align-items: center;
}

.footer__nav-link {
    position: relative;
    display: inline-block; /* 下線の位置を正しく制御するために指定 */
    text-decoration: none;
}

/* 下線の初期状態 */
.footer__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px; /* 文字からの下位置（適宜調整） */
    width: 100%;
    height: 2px;
    background-color: #E99E58;
    transform-origin: left;
    transform: scaleX(0);  /* 左端を起点にして横幅を0にする */
    transition: transform 0.4s ease-in-out;
}

/* ホバー時に下線を左から右へ出現させる */
.footer__nav-link:hover::after {
    transform: scaleX(1);
}

.footer--main {
    padding-top: 40px;
    font-weight: 500;
    font-size: 20px;
    display: flex;
    justify-content: center;
}

/* ==========================================
レスポンシブ：768px以下（タブレット・スマホ）
   ========================================== */
@media screen and (max-width: 768px) {
.inner {
    margin-left: 40px;
    margin-right: 40px;
}

/* ヘッダー */
.header {
    padding: 30px 0 20px;
    width: 100%;
    z-index: 1002;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* ハンバーガーボタン表示 */
.hamburger-btn {
    display: block;
}

/* ナビゲーション（閉じている状態・初期値） */
.header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* スマホのアドレスバー対策 */
    z-index: 1000;

  /* 非表示時の設定（透明 ＋ ほんの少し小さくしておく） */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.99);
  /* ふわっと出現させるためのアニメーション設定 */
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.6s ease;

  /* --- 背景画像の設定 --- */
    background-image: url('../image/hamburger-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;

  /* 中身の配置（上下左右中央寄せ） */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* メニューが開いた状態（is-active付与時） */
.header__nav.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1); /* 100%のサイズ（通常サイズ）に拡大しながら表示 */
}

/* メニュー内のリスト（中央寄せ・縦並び） */
.header__nav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 50px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.header__nav-item {
    width: 100%;
    text-align: center;
}

.header__nav-link {
    display: inline-block;
}

/* メニュー開閉時の背景スクロール固定 */
body.is-drawer-active {
    overflow: hidden;
}


/* フッター */
.footer {
    padding: 40px 0 40px;
    height: auto;
    background-image: url(../image/footer-sp.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    font-size: 22px;
    text-align: left;
}

.footer--main {
    padding-top: 40px;
    font-size: 20px;
}
}

/* ==========================================
レスポンシブ：480px以下（小型スマホ）
   ========================================== */
@media screen and (max-width: 480px) {
:root {
    --header-height: 85px;
}

.pc-only {
    display: none;
}

.inner {
    margin-left: 20px;
    margin-right: 20px;
}

.header__logo-image {
    width: 82%;
}

.header__nav-link {
    font-size: 20px;
}

.section_title-wrapper {
    width: 100%;
}

.section_title {
    font-size: 16px;
}

.sub_title { 
    font-size: 22px;
}

.footer__logo-image {
    width: 73%;
}

.footer__nav-link {
    font-size: 20px;
}

.footer--main {
    font-size: 16px;
}
}