/* --- 変数定義 --- */
:root {
    --fm-green: #00a33e;
    --fm-blue: #00aff0;
    --fm-dark: #333333;
    --fm-light: #f8fafc;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-red: #ef4444;
    --color-emerald: #10b981;
    --color-yellow: #facc15;
    --color-blue-600: #2563eb;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --header-height: 5rem;
}

@media (min-width: 840px){
  :root { --header-height: 120px; }
}
html{
    scroll-behavior: smooth;
}
section{
    scroll-margin-top: 100px;
}


.button-primary {
    background-image: linear-gradient(to right, var(--fm-green), var(--color-emerald));
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.button-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: var(--fm-blue);
    color: var(--color-white);
    border-radius: 9999px;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.8rem 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.button-secondary:hover {
    background-color: var(--color-blue-600);
}

.about-hero,.strong-hero{
    z-index: 5;
}

.modal-window {
    border: none;
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 背景を暗くする */
.modal-window::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-inner {
    padding: 2.5rem;
    background: #fff;
    text-align: center;
}

.modal-title {
    color: var(--fm-blue);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 900;
}

.modal-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--color-gray-200);
}

.modal-title-2 {
    font-size: 1.1rem;
    color: var(--fm-green);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: #000;
    margin: 0;
    z-index: 99;
}

.modal-phone {
    font-size: 2.3rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.5rem;
}

.modal-note {
    font-size: 1.0rem;
    color: var(--color-gray-500);
    margin-top: 1rem;
}

.modal-afterword {
    font-size: 0.8rem;
    color: #000;
    margin: 0;
    /* margin-bottom: 2rem; */
}

.modal-close-btn {
    background-color: var(--color-gray-500);
    color: white;
    padding: 0.8rem 2rem;
    margin-top: 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.modal-close-btn:hover {
    background-color: var(--fm-dark);
}

@media (max-width: 768px) {
    .modal-window {
        width: 95%; /* 画面幅いっぱいに近くする */
        max-height: 80vh; /* 縦長になりすぎないよう制限 */
        overflow-y: auto; /* 中身が長い場合はスクロール可能にする */
    }
    .modal-afterword {
        font-size: 0.7rem;
    }
    .modal-inner {
        padding: 1.5rem 1rem; /* 余白を少し狭くする */
    }

    .modal-phone {
        font-size: 1.5rem; /* 電話番号を少し小さくして一行に収める */
    }
    .modal-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    .modal-section {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .modal-note {
        font-size: 0.8rem;
    }
}

body{
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--fm-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    height: 100%;
}
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.container.footer-inner {
    max-width: 1280px !important ;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: initial !important;
}

a {
    text-decoration: none;
    cursor: pointer;
}
/* .fade-inU {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.fade-inU.on {
  opacity: 1;
  transform: translateY(0);
} */

/* --- ボタン共通スタイル --- */
.button-primary-header {
    background-color: var(--fm-green);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    transition-property: box-shadow,transform;
    max-width: 300px;
    text-align: center;
    font-size: clamp(12px,1.5vw,15px);
}

.button-primary-header:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: var(--fm-blue);
    color: var(--color-white);
    border-radius: 9999px;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.8rem 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.button-secondary:hover {
    background-color: var(--color-blue-600);
}

.text-center {
    text-align: center;
}

/* --- ヘッダー --- */
.site-header {
    /* background-color: rgba(255, 255, 255, 1); */
    /* background-color: #94d4ff; */
    backdrop-filter: blur(4px);
    position: fixed;
    width: 100%;
    z-index: 100;
    /* border-bottom: 1px solid var(--color-gray-100); */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 80px;
}

.site-header {
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

/* 初期状態（透明） */
.site-header.is-top {
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

/* スクロール後（色つき） */
.site-header.is-scrolled {
  /* background-color: #94d4ff; */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-top .nav-item,
.site-header.is-top .dropdown-toggle{
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,1);
}
.site-header.is-top .dropdown-menu{
    text-shadow: none;
}

.site-header.is-top {
  /* background-color: rgba(255,255,255,0.15); */
  /* backdrop-filter: blur(6px); */
  
}

.header-inner {
    height: var(--header-height);
    display: flex;
    /* background: linear-gradient(
        to right,
        #ffffff 0%,
        #ffffff 30%,
        #cfeeff 60%,
        #94d4ff 100%
    ); */
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 9999px !important;
}
.site-header.is-top .header-inner{
    background: transparent;
}

.header-inner{
  position: relative;
  /* overflow: hidden; */
}

/* 背景レイヤー（デフォルト＝白） */
.header-inner::before{
  content:"";
  position:absolute;
  inset:0;
  background: #ffffff;
  opacity: 1;
  transition: opacity 0.25s ease; /* ←これが効く */
  z-index: 0;
}

/* グラデーションレイヤー（スクロール後に出す） */
.header-inner::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 30%,
    #cfeeff 60%,
    #94d4ff 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease; /* ←これが効く */
  z-index: 0;
}

/* ヘッダー中身を前面に */
.header-inner > *{
  position: relative;
  z-index: 1;
}

/* スクロール後：グラデーションをフェードイン */
.site-header.is-scrolled .header-inner::after{
  opacity: 1;
}

/* トップ時：グラデーションを消す（必要なら明示） */
.site-header.is-top .header-inner::after{
  opacity: 0;
}

/* もし “トップは完全透明ヘッダー” にしたい場合 */
.site-header.is-top .header-inner::before{
  opacity: 0; /* 白レイヤーも消す */
}

.header-logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.header-logo {
    height: 3rem;
    width: auto;
    margin-left: 10px;
}

.header-flex-1 .desktop-contact-button:nth-child(2){
    background-color: var(--fm-blue);
}


/* 共通：ここだけに transition を集約 */
.site-header{
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}


/* 文字（ナビやドロップダウンのトグル）も同じ速度で */
.site-header .nav-item,
.site-header .dropdown-toggle,
.site-header .header-logo-link,
.site-header .hamburger-icon{
  transition: color 0.25s ease, text-shadow 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}


/* 透明時の文字：白＋影（必要な分だけ） */
.site-header.is-top .nav-item,
.site-header.is-top .dropdown-toggle{
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}


/* --- デスクトップナビゲーション (デフォルト非表示) --- */
.desktop-nav {
    display: none;
}

.desktop-contact-button {
    display: none;
}

/* ナビゲーションアイテム */
.nav-item {
    position: relative;
    color: var(--color-gray-600);
    font-weight: 400;
    font-size: clamp(12px, 1.4vw, 18px);
}

.site-header.is-top .nav-item:hover {
    color: var(--fm-green);
}
.site-header .nav-item:hover {
    color: var(--fm-green);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--fm-green);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* --- ハンバーガーメニューボタン (モバイル表示) --- */
.hamburger-menu-button {
    display: flex; /* モバイル表示 */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-right: 20px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 60; /* ヘッダーより上に配置 */
}
.hamburger-pc-button {
    display: none !important;
}

.hamburger-icon {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--fm-dark);
    border-radius: 9999px;

}

/* メニューオープン時のアニメーション */
.is-active .hamburger-icon:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.is-active .hamburger-icon:nth-child(2) {
    opacity: 0;
}
.is-active .hamburger-icon:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- モバイルナビゲーションメニュー (デフォルト非表示) --- */
.mobile-nav-menu {
    position: fixed;
    top: 5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    padding-bottom: 4rem;
    background-color: var(--color-white);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-gray-100);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav-menu.is-open {
    transform: translateX(0%); /* 画面内に表示 */
}

.nav-item-mobile {
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--color-gray-100);
    font-weight: 400px;
    color: var(--fm-dark);
    transition: background-color 0.3s;
}

.nav-item-mobile:hover {
    background-color: var(--color-gray-50);
}

.contact-button-mobile {
    margin-top: 1.5rem;
    width: 70%;
    text-align: center;
    margin: 30px auto;
    font-size: clamp(0.8rem, 3.2vw, 1.0rem);
}
.contact-button-mobile.js-open-modal {
    margin: 30px auto 6rem;
}

@media (min-width: 840px) {
    .site-header {
        height: 120px;
    }
    .header-flex{
        align-items: center;
        margin-right: 20px;
    }
    .header-flex-1{
        display: flex;
        margin-bottom: 10px;
        justify-content: end;
        gap: 5px;
    }
    .header-logo {
        height: 4rem; /* md:h-16 相当 */
    }
    .header-nav {
        display: flex;
        align-items: center;
        gap: 2rem; /* gap-8 相当 */
        font-size: 1rem; /* text-base 相当 */
        font-weight: bold;
        color: var(--color-gray-600);
    }
    .contact-button {
        display: block;
    }
    .header-logo-cont{
        height: 100%;
        display: grid;
        align-items: center;
    }
    .header-logo {
        height: clamp(3.0rem,5.5vw,3.5rem);
        
    }

    .desktop-contact-button {
        display: block;
    }
    
    .desktop-nav {
        display: flex; /* デスクトップ表示 */
        align-items: center;
        gap: clamp(1rem, 2.5vw, 2rem);
        font-size: 1rem;
        color: var(--color-gray-600);
    }
    .desktop-contact-button {
        display: block; /* デスクトップ表示 */
    }
    .hamburger-menu-button {
        display: none !important; /* モバイル非表示 */
    }
    .hamburger-pc-button {
        display: block !important; /* モバイル非表示 */
    }
    .mobile-nav-menu {
        display: none !important; /* モバイル非表示 */
    }

    .contact-button-mobile {
        font-size: 1rem;
    }

}


.site-header.menu-open {
  background-color: #fff; /* スクロール後と同じでOK */
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  backdrop-filter: blur(4px);
}

/* --- モバイル用ドロップダウン --- */
.mobile-dropdown {
    border-bottom: 1px solid var(--color-gray-100);
}

.mobile-dropdown-toggle {
    width: 100%;
    padding: 1rem;
    border: none;
    background: var(--color-white);
    color: var(--fm-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.mobile-dropdown-toggle:hover {
    background-color: var(--color-gray-50);
}

.mobile-dropdown-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown.is-open .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.is-open .mobile-dropdown-menu {
    max-height: 500px;
}

.nav-item-mobile.child {
    display: block;
    padding: 0.9rem 1rem 0.9rem 2rem;
    border-top: 1px solid var(--color-gray-100);
    font-size: 0.95rem;
    color: var(--color-gray-700);
    background: #fafafa;
}

.nav-item-mobile.child:hover {
    background-color: var(--color-gray-100);
}


/* --- ドロップダウン中央表示バージョン --- */

.dropdown {
    position: relative;
    /* padding-bottom: 15px; */
    /* transform: translateY(8px); */
}

/* トグルを中央寄せ */
.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
    color: var(--color-gray-600);

}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* メニュー本体 */
.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px); /* 中央に配置 */
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    padding: 0.8rem 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s linear 0.25s;
}
.dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    top: -12px;
    width: 50%;
    transform: translateX(50%);
    height: 15px;
    background: transparent;
}

/* hover表示 */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0px);
    pointer-events: auto;
    /* 表示時は visibility の遅延をなくす */
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s;
}

/* ▼回転 */
.dropdown:hover .dropdown-icon {
    transform: translateY(5px);
}
.dropdown:hover .dropdown-toggle {
    color: var(--fm-green);
}

/* メニュー内リンク中央揃え */
.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    text-align: center;   /* ← ここが中央揃え */
    color: var(--color-gray-700);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--color-gray-100);
    color: var(--fm-green);
}




.hero-section {
    z-index: 99;
}

/* main背景 */
main {
    position: relative; /* relativeはOK */
    top: 0 !important;  /* JSによる位置ズレを強制リセット */
    transform: none !important; /* 変形もリセット */
    overflow: hidden;
    /* z-index: -1; */
}

/* 2. 各セクションの背景色を透明にする（これがないと線が隠れてしまいます） */
main section {
    background-color: transparent !important;
    background: transparent !important;
    position: relative;
    z-index: 10; /* コンテンツを線より上に表示 */
}

/* 3. 線の共通設定 */
main::before,
main::after,
.main-border::before,
.main-border::after {
    content: "";
    position: absolute;
    width: 200%;       /* 画面端まで届くように長めに設定 */
    height: 1.5px;     /* 線の太さ */
    z-index: 1;        /* 背景とコンテンツの間に配置 */
    pointer-events: none; /* 線がクリックを邪魔しないようにする */
}

/* --- 右上の2本線 --- */
main::before {
    top: 50px;
    right: -50%;
    background-color: var(--fm-blue); /* 変数を使用 */
    transform: rotate(-15deg);
}

main::after {
    top: 120px;
    right: -50%;
    background-color: var(--fm-green); /* 変数を使用 */
    transform: rotate(-7deg);
}

/* --- 左下の2本線 --- */
.main-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.main-border::before {
    bottom: 33px;
    left: -50%;
    background-color: var(--fm-blue);
    transform: rotate(-15deg);
}

.main-border::after {
    bottom: 50px;
    left: -50%;
    background-color: var(--fm-green);
    transform: rotate(-7deg);
}
.main-border {
  position: absolute;
  inset: 0;              /* top/left/width/height をまとめて固定 */
  z-index: 0;
  pointer-events: none;  /* 当たり判定を消す（重要） */
  overflow: hidden;      /* はみ出しをmain内で完結 */
}

@keyframes floating {
    0%, 100% { transform: rotate(-19deg) }
    50% { transform: rotate(-15deg)  }
}

@keyframes floating-slow {
    0%, 100% { transform: rotate(-10deg) }
    50% { transform: rotate(-6deg)}
}

/* 青い線に適用 */
main::before, .main-border::before {
    animation: floating 20s ease-in-out infinite;
}

/* 緑の線に適用（少し速度と動きを変える） */
main::after, .main-border::after {
    animation: floating-slow 23s ease-in-out infinite;
}

@media (max-width: 768px) {
    main::after {
        top: 65px;
    }
    main::before {
    top: 60px;
    }
}   

/* --- フッター --- */
.site-footer {
    position: relative;
    z-index: 99;
    background-color: #F7F7F7;
    padding-top: 2vw; /* py-12 相当 */
    font-size: clamp(1rem, 1.5vw, 1.075rem); /* text-sm 相当 */
    color: var(--fm-dark); /* style="color:#F2F2F2;" */
    /* transform: translateY(12px); */
}

.footer-widgets {
    display: flex;
    /* flex-direction: column; */
    /* display: block;
    align-items: center;
    justify-items: center; */
    gap: 4rem; /* gap-12 相当 */
    margin-bottom: 1rem;
}

.footer-menu{
    margin-bottom: 0rem;
}
.footer-menu:nth-child(1){
    transform: translateX(0px);
}
.footer-menu:nth-child(2){
    transform: translateX(0px);
}
.footer-menu:nth-child(3){
    transform: translateY(0px);
}


@media (min-width: 840px) {
    .footer-brand {
        /* width: 33.3333%; */
        /* text-align: center; */
        margin-bottom: 0px;
    }
    .footer-menus {
        width: 66.6666%; /* md:w-2/3 相当 */
        justify-content: space-around; /* justify-end 相当 */
        align-items: flex-start;
        display: block;
        /* gap: clamp(2rem, 4vw, 3rem); */
    }
    /* .footer-menu:nth-child(1){
    transform: translateX(30px);
    }
    .footer-menu:nth-child(2){
        transform: translateX(-11px);
    }
    .footer-menu:nth-child(3){
        transform: translateY(-46px);
    } */
}




.footer-logo {
    height: clamp(3.0rem, 5.5vw, 3.5rem);
    width: auto;
    margin: 0.3rem 0 1rem; 
}

.footer-mission {
    margin-top: 1rem; 
    font-size: 0.75rem; 
}

.footer-brand p{
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
    white-space: nowrap;
    font-size: clamp(15px, 4vw, 16px);
}

.menu-title {
    color: var(--fm-dark);
    font-weight: bold;
    margin-top: 0rem;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin: 0 0 1rem; /* mb-4 相当 */
}
.footer-menu:nth-child(1) .menu-title{
    color: var(--fm-green);
}
.footer-menu:nth-child(3) .menu-title{
    color: var(--fm-blue);
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    text-align: left;
    display: flex;
    gap: clamp(8px,5vw,4rem);
}

@media(max-width:1170px){
    .footer-widgets {
        gap: 2rem;
    }
}

@media(max-width:1100px){
    .menu-list{
        gap: clamp(5px,2vw,4rem);
    }
}
@media(max-width:839px){
    .menu-list{
        gap: clamp(5px,3vw,4rem);
        display: block;
    }
}

.separatepage-button{
    margin: clamp(3rem,4.5vw,6rem) 0 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
.separatepage-button a{
    border-radius: 50px;
    background-color: var(--fm-green);
    width: clamp(200px, 22.5vw, 300px);
    padding: clamp(0.8rem,1.5vw,1.1rem);
    text-align: center;
    opacity: 1;
    transition: 0.3s ease;
    transition-property: transform, opacity;

}
.separatepage-button a:hover{
    transform: translateY(-3px);
    opacity: 0.8;
}
.separatepage-button h2{
    color: var(--fm-light);
    margin: 0;
    font-size: clamp(16px,2vw,24px);
}

@media (min-width: 768px) {
    .menu-list {
        text-align: left;
    }
}

.menu-list li {
    margin-bottom: 0.5rem;
}

.menu-link {
    position: relative;
    color: var(--fm-dark);
    transition: color 0.3s;
    font-size: clamp(12px, 1.4vw, 18px);
}

.menu-link:hover {
    color: var(--fm-green);
}

/* .footer-menu:nth-child(3) .menu-link:hover {
    color: var(--fm-blue);
} */

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--fm-green);
    transition: width 0.3s ease;
}
/* .footer-menu:nth-child(3) .menu-link::after{
    background-color: var(--fm-blue);
} */

.menu-link:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-700);
    padding-top: 1rem; /* pt-8 相当 */
    padding-bottom: 3rem;
    margin-top: 0.5rem;
    display: block;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem; /* gap-4 相当 */
    font-size: 0.75rem; /* text-xs 相当 */
}

.footer-copy{
    margin: 0;
}



.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
    gap: 0.5rem clamp(1.5rem,5vw,3rem); /* gap-x-6 gap-y-2 相当 */
}

.bottom-link {
    position: relative;
    color: var(--fm-green);
    transition: color 0.3s;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.bottom-link::before {
    content: "▶";
    position: absolute;
    transform: translateX(-22px);
    transition: transform 0.3s ease;
    display: contents;
}

.bottom-link:hover {
    color: var(--fm-green);
}

.bottom-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--fm-green);
    transition: width 0.3s ease;
}
.footer-copy{
    margin-top: 3rem;
}

.bottom-link:hover::after {
    width: 100%;
}
.bottom-link:hover::before{
    transform: translateX(-18px);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row; /* md:flex-row 相当 */
    }
}

@media(max-width:840px){
    
    .footer-widgets {
        display: block;
        justify-items: normal;
        margin-bottom: 0.5rem;
        gap: 1rem;
    }

    .menu-title{
        margin: 1rem 0 0;
    }

}

@media (max-width: 767px) {

.bottom-link::before {
    transform: translateX(-13px);
    font-size: 11px;
}

.footer-logo {
    height: 3rem;
}

.footer-menus{
    margin-top: 10px;
}

.menu-link {
    font-size: 0.8rem;
}
.footer-menu {
    margin-bottom: 0rem;
}
.footer-menu:nth-child(2) .menu-title{
    margin-bottom: 0px !important;
    display: none;
}
.footer-menu:nth-child(3) .menu-title {
    display: none;
}
.footer-menu:nth-child(3){
    /* margin: 15px 0; */

}

.bottom-link {
    font-size: clamp(0.8rem,2.3vw,1.0rem);
}


}

.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    /* z-index: 999; */
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 40px;
    fill: var(--white);
}