/* ===================================
   Reset & Variables
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;500;700&display=swap');


:root {
    --gold: #334155;
    --text: #333;
    --inner: 1200px;

    /* Fonts */
    --font-ja: "Shippori Mincho", serif;
    --font-en-serif: "Cormorant Garamond", serif;
    --font-en-sans: "Jost", sans-serif;
    --font-script: "Pinyon Script", cursive;

    /* Breakpoints */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
    --bp-2xl: 1440px;

    /* MV → 次セクションへの“白フェード”の高さ（長すぎるとぼやけて見える） */
    --mv-fade: 40px;

    /* MESSAGE の上余白（MV直下の白場） */
    --message-top: 70px;

    /* Hero Title Overlap Base */
    --hero-title-overlap: 180px;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    /* 日本語は全部ここが基準 */
    font-family: var(--font-ja);
    font-size: 1.6rem;
    color: var(--text);
    line-height: 2;
    background: #fbfbfb;
    overflow-x: hidden;
}


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

a {
    color: inherit;
    text-decoration: none;
    transition: .3s;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--inner);
    margin: 0 auto;
    padding: 0 4%;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    /* Changed from absolute */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    /* Reduced padding slightly for fixed */
    background: transparent;
    transition: padding 0.3s;
}

/* Optional: Add background when scrolled (needs JS class, but for now fixed is key) */
/* For readability, we might need a background or just rely on the design. 
   The pill is background white, so that is fine. 
   The logo is on the left. */

.header__inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.header__logo {
    margin-top: 10px;
}

.header__logo img {
    width: 220px;
}

.header__pill {
    background: #fbfbfb;
    border-radius: 999px;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .03);
}

.header__nav-list {
    display: flex;
    gap: 30px;
    margin-right: 30px;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

.header__nav-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__nav-list a:hover {
    opacity: .7;
}

.nav-en {
    font-family: var(--font-en-sans);
    font-size: 1.4rem;
    letter-spacing: .1em;
    line-height: 1;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.nav-jp {
    font-family: var(--font-ja);
    font-size: 1.0rem;
    color: #999;
    line-height: 1;
}

@media (max-width: 1024px) {
    .nav-en {
        font-size: 1.3rem;
    }

    .nav-jp {
        font-size: 0.9rem;
    }
}

.header__sns {
    display: flex;
    gap: 15px;
}

.header__sns img {
    width: 22px;
}

.header__sns a:hover {
    opacity: .7;
}

.header__menu-btn {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.header__menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transition: .3s;
}

.header__menu-btn span:nth-child(1) {
    top: 0;
}

.header__menu-btn span:nth-child(2) {
    top: 50%;
}

.header__menu-btn span:nth-child(3) {
    bottom: 0;
}

/* Menu Button Animation (X shape) */
.header__menu-btn.is-open span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

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

.header__menu-btn.is-open span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    /* Slightly transparent for blur */
    z-index: 1050;
    display: flex;
    flex-direction: column;
    /* Stack elements vertically */
    align-items: center;
    justify-content: center;

    /* Animation: Center Spread (Blurry edges simulated via backdrop-filter) */
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    /* Ease-out quart-ish */

    /* "Blur" effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-nav.is-open {
    clip-path: circle(150% at 50% 50%);
}

.mobile-nav__list {
    text-align: center;
}

.mobile-nav__list li {
    margin-bottom: 30px;
}

.mobile-nav__list a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: var(--gold);
}

@media (max-width: 480px) {
    .header__logo img {
        width: 120px;
    }
}

/* SNS in Mobile Nav */
.mobile-nav__sns {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mobile-nav__sns a {
    display: block;
    width: 24px;
    transition: opacity 0.3s;
}

.mobile-nav__sns a:hover {
    opacity: 0.7;
}

/* ===================================
   Main Visual
   =================================== */
.mv {
    position: relative;
    padding: 0;
    line-height: 0;
    background: #fbfbfb;
}

/* MVと次セクションの境目を「短め」にフェード（長いと“ぼやけて見える”） */
.mv::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: var(--mv-fade);
    background: linear-gradient(to bottom,
            rgba(251, 251, 251, 0) 0%,
            rgba(251, 251, 251, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

.mv__wrapper {
    position: relative;
}

.mv__img {
    width: 100%;
    height: auto;
    display: block;
}

.mv__link-area {
    position: absolute;
    bottom: 12%;
    left: 4.5%;
    width: 14%;
    height: 7%;
    z-index: 10;
}


/* =========================================
   MV：お問い合わせボタン（画像だけリンク）追記
========================================= */
.mv__contact-btn {
    position: absolute;
    display: block;
    z-index: 50;
    text-decoration: none;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.mv__contact-btn img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 769px) {
    .mv__contact-btn {
        left: 4%;
        bottom: 5%;
        width: min(260px, 22vw);
    }
}

@media (max-width: 768px) {
    .mv__contact-btn {
        left: 23%;
        transform: translateX(-50%);
        bottom: -2%;
        width: min(320px, 40vw);
    }
}




/* ===================================
   Section common
   =================================== */
section {
    padding: 100px 0;
}

.title-deco {
    width: 50px;
    margin: 0 auto 18px;
    opacity: .6;
}

.section-en {
    display: block;
    text-align: center;
    font-family: var(--font-en-sans);
    font-size: 2.0rem;
    letter-spacing: .1em;
    color: var(--gold);
    margin-bottom: 25px;
    font-weight: 300;
    text-transform: uppercase;
}

/* 画像見出し（TOPページ用） */
.section-title-en {
    display: block;
    margin: 0 auto 25px;
    height: 24px;
    /* Reduced to ~1.5rem equivalent */
    width: auto;
}

.service__title-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 30px;
    /* Reduced from 40px */
    margin-bottom: 28px;
}

/* ===================================
   MESSAGE
   =================================== */
.message {
    position: relative;
    /* 右上が切れる問題を止める：hiddenだと欠けやすい */
    overflow: visible;
    background: #fbfbfb;
    margin-top: 50px;

    /* MV直下の白場を「短め」に（MacBook Air 13" で間延びしない） */
    padding: var(--message-top) 0 100px;
}

/* MESSAGE→SERVICE へ軽くトーン遷移 */
.message::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 100px;
    background: linear-gradient(to bottom,
            rgba(251, 251, 251, 0) 0%,
            rgba(249, 246, 242, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

.message__container {
    max-width: var(--inner);
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 3;
}

.message__center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--font-ja);
    padding-top: clamp(24px, 2vw, 52px);
}

.message__text-block {
    margin-bottom: 30px;
}

.message__greeting {
    font-size: 1.6rem;
    line-height: 2.2;
    margin-bottom: 22px;
    font-weight: 500;
    color: #333;
}

.message__text-block p {
    font-size: 1.4rem;
    line-height: 2.4;
    margin-bottom: 18px;
    color: #555;
}

/* ▼ ボタンを「ボタンとして見える」ように（今の課題） */
.message__voice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #c9ab92;
    color: #fff;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.message__voice-btn:hover {
    opacity: .88;
}

.message__voice-btn .btn-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: 12px;
}

.message__profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: #6f5a4b;
    font-weight: 500;
}

.message__profile-link:hover {
    text-decoration: underline;
}

/* ===================================
   FIX: MESSAGEの「音声で聴く」「プロフィールはこちら」を縦並びにする
   =================================== */
.message__voice-btn {
    display: inline-flex;
}

.message__profile-link {
    display: inline-flex;
}

/* この2つを包む“まとまり”が無い構造なので、
   profile-link側に「改行」を強制して縦並びにします */
.message__profile-link {
    margin-top: 14px !important;
    /* ここが本丸：改行させる */
    clear: both;
}

/* どんな指定が上にあっても縦に落ちるように、block化を勝たせる */
/* どんな指定が上にあっても縦に落ちるように、block化を勝たせる */
.message__voice-btn,
.message__profile-link {
    display: flex !important;
    justify-content: center;
    width: fit-content;
    border: none;
    font-size: 16px;
}

/* index.html以下 (HOME) は中央配置 */
.message .message__voice-btn,
.message .message__profile-link {
    margin-left: auto;
    margin-right: auto;
}

/* プロフィールページ (p-message) は左寄せ（そのままでいい） */
.p-message .message__voice-btn,
.p-message .message__profile-link {
    margin-right: auto;
    margin-left: 0;
}

/* 念のため：親がflexで横並びにしているケースも潰す */
.message__center {
    display: block !important;
}


/* --- PC：散らし4枚（これだけ出す） --- */
.message__img-scatter {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.message__img-scatter img {
    width: 100%;
    height: auto;
    display: block;
    opacity: .92;
}

/* ===============================
   CTA LINK（共通）
   - デフォは「消えない」設計（relative + margin）
   - どのセクションでも安全に表示される
=============================== */
.c-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: #6f5a4a;
    font-size: 1.6rem;
    letter-spacing: 0.08em;

    /* ✅ デフォは relative（absolute禁止） */
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;

    /* ✅ 下に余白で置く（消えない） */
    margin: 3.0rem auto 0;
    justify-content: center;
    width: fit-content;
}

.c-cta-link__icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #d8b79a;
    position: relative;
    flex-shrink: 0;
}

.c-cta-link__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 45%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-55%, -50%) rotate(45deg);
}

/* hover（PCだけ） */
@media (hover: hover) {
    .c-cta-link:hover {
        opacity: .75;
    }
}

/* ✅ MESSAGE内の「プロフィールはこちら」だけは今の見え方（下に浮かせる）を維持 */
.message .c-cta-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15%;
    margin: 0;
    /* デフォmarginを無効化 */
}

/* ✅ VOICE側はデフォ（relative + margin）で表示させる */
.voice__cta {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.voice__cta .c-cta-link {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    /* voice__cta側で余白管理するなら0でOK */
}

@media (max-width: 768px) {
    .message .c-cta-link {
        position: relative;
        left: initial;
        transform: none;
        bottom: inherit;
        margin: 0px;
        margin-top: 30px;
    }
}

/* 最大幅＋レスポンシブ縮小（切れを抑えるため、0pxより少し内側に） */
.img-pos-1 {
    width: min(648px, 26vw);
    top: 20px;
    left: 0;
    max-width: 315px;
}

.img-pos-3 {
    width: min(337px, 20vw);
    top: 0;
    right: 0;
    max-width: 243px;
}

.img-pos-2 {
    width: min(343px, 22vw);
    bottom: 0;
    left: 0;
    max-width: 243px;
}

.img-pos-4 {
    width: min(425px, 26vw);
    bottom: 0;
    right: 0;
    max-width: 320px;
}

/* PC：スライダーは出さない（増殖防止の本丸） */
.message__img-slider {
    display: none;
}


/* 常時ゆらゆら（リズム付き） */
@media (prefers-reduced-motion: no-preference) {

    .photo-rhythm__item.is-1 .photo-rhythm__figure,
    .photo-rhythm__slide.is-1 .photo-rhythm__figure {
        animation: pr-float1 6.2s ease-in-out infinite;
    }

    .photo-rhythm__item.is-2 .photo-rhythm__figure,
    .photo-rhythm__slide.is-2 .photo-rhythm__figure {
        animation: pr-float2 7.0s ease-in-out infinite;
    }

    .photo-rhythm__item.is-3 .photo-rhythm__figure,
    .photo-rhythm__slide.is-3 .photo-rhythm__figure {
        animation: pr-float3 6.6s ease-in-out infinite;
    }
}

@keyframes pr-float1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pr-float2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(12px);
    }
}

@keyframes pr-float3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* =========================================================
   Photo Rhythm（MESSAGEとSERVICEの間）
   - 背景なし（透明）
   - 境目のボカしを殺さない（overflow visible）
   - PC：横並び＋上下リズム＋常時ゆらゆら
   - SP：揺れなし自動スライド
   ========================================================= */

.photo-rhythm {
    position: relative;
    background: #faf8f6 !important;
    /* ←白背景を絶対に入れない */
    overflow: visible !important;
    /* ←上下セクションのボカし(疑似要素)を切らない */
    padding: 26px 0 26px;
}

.photo-rhythm__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- PC：横並び ---- */
.photo-rhythm__row {
    display: flex;
    gap: 26px;
    align-items: center;
}

/* 枠/カード感ゼロ */
.photo-rhythm__item,
.photo-rhythm__slide {
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* 写真だけ表示。切らずに全体が見える */
.photo-rhythm__item img {
    width: 100%;
    height: 280px;
    /* 必要なら 190〜240で調整 */
    display: block;
    object-fit: contain;
    /* ←トリミングしない */
    background: transparent;
}

/* 3枚の幅（比率は適当に） */
.photo-rhythm__item {
    flex: 1 1 0;
}

/* ---- PC：上下リズム（配置） ---- */
.photo-rhythm__item.is-1 {
    transform: translateY(10px);
}

.photo-rhythm__item.is-2 {
    transform: translateY(-12px);
}

.photo-rhythm__item.is-3 {
    transform: translateY(6px);
}

/* ---- PC：常にゆらゆら（SERVICEっぽい揺れ） ---- */
.photo-rhythm__item.is-1 {
    animation: pr-float-1 5.2s ease-in-out infinite;
}

.photo-rhythm__item.is-2 {
    animation: pr-float-2 6.0s ease-in-out infinite;
}

.photo-rhythm__item.is-3 {
    animation: pr-float-3 5.6s ease-in-out infinite;
}

@keyframes pr-float-1 {

    0%,
    100% {
        transform: translateY(10px);
    }

    50% {
        transform: translateY(0);
    }
}

@keyframes pr-float-2 {

    0%,
    100% {
        transform: translateY(-12px);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes pr-float-3 {

    0%,
    100% {
        transform: translateY(6px);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ---- SP：スライダー表示、PC列は非表示 ---- */
.photo-rhythm__slider {
    display: none;
}

@media (max-width: 768px) {
    .photo-rhythm {
        padding: 14px 0 18px;
    }

    .photo-rhythm__row {
        display: none;
    }

    .photo-rhythm__slider {
        display: block;
    }

    .photo-rhythm__track {
        display: flex;
        gap: 14px;
        will-change: transform;
        animation: pr-marquee 18s linear infinite;
    }

    .photo-rhythm__slide {
        flex: 0 0 78%;
        transform: none !important;
        animation: none !important;
        /* ←揺れなし */
    }

    .photo-rhythm__slide img {
        width: 100%;
        height: 200px;
        display: block;
        object-fit: contain;
        background: transparent;
    }

    @keyframes pr-marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}


@media (max-width: 768px) {
    .photo-rhythm__slider {
        display: none !important;
    }
}

/* ===================================
   SERVICE（完全差し替え：区切れ目ボカシ入り）
   =================================== */
/* ===================================
   SERVICE（境目ボカシ対応：差し替え）
   ※既存のSERVICE定義に「isolation」だけ追加
   =================================== */
.service {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* ←これ必須（ボカシ層の干渉を止める） */

    /* ↓ここから下は、あなたの既存の.serviceの中身をそのまま残してOK */
    padding: 60px 0 100px;
    background-color: #F9F6F2;
    background-image: url(../images/bgimg.png);
    background-repeat: repeat;
    background-position: 0 0;
    background-size: cover;
}

/* ===================================
   SERVICE（下端をボカしてVOICEへ溶かす：追加じゃなく差し替えとして入れる）
   =================================== */

/* ===================================
   SERVICE → VOICE 繋ぎ目ボカシ（差し替え）
   =================================== */
/* ===================================
   SERVICE：下端のボカシ（全文差し替え）
   - はみ出し禁止（overflow:hiddenでも確実に効く）
   - 最下部の色をVOICE色に“塗り替えて”境目線を消す
   =================================== */
.service::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    /* ★セクション内だけで完結 */
    height: 420px;

    pointer-events: none;
    z-index: 1;

    /* ★下端をVOICE色(#FAEFEC)に寄せて“塗り替える” */
    background: linear-gradient(to bottom,
            rgba(249, 246, 242, 0) 0%,
            rgba(250, 239, 236, 0.55) 55%,
            rgba(250, 239, 236, 1) 100%);

    /* ★ボカシは内側だけに効く */
    filter: blur(34px);
    opacity: 1;
}


/* ===================================
   VOICE（上端の境目だけを“内側で”ボカす：差し替え）
   ※ top:- で外に出さない（overflow:hidden で切れない）
   =================================== */


.service__wrapper {
    max-width: var(--inner);
    margin: 0 auto;
    padding: 0 4%;
    position: relative;

    /* ✅ ボカシより上に中身を固定 */
    z-index: 2;
}

/* 中身（grid + sidebar） */
.service__container-box {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(16px, 2vw, 32px);
}

/* ✅ 白背景：左端に貼り付け & 中身（見出し含む）を全部囲う & 外側をぼかす */
.service__container-box::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;

    /* 左端は viewport に貼り付け */
    left: calc(50% - 50vw);

    /* ★右端は container-box の右端（＝見出しの右端）に合わせる */
    right: 0;

    background: rgba(255, 255, 255, .94);

    /* 右上/右下だけ角丸（左は貼り付け） */
    border-radius: 0 clamp(28px, 3vw, 52px) clamp(28px, 3vw, 52px) 0;

    /* 外側を“白でぼかす” */
    box-shadow: 0 0 70px 45px rgba(255, 255, 255, .85);

    z-index: 0;
    pointer-events: none;
}

/* 白背景より上に中身を載せる */
.service__grid,
.service__sidebar {
    position: relative;
    z-index: 1;
}

/* ✅ 横の余白が大きすぎる問題：grid を締める（列が間延びしない） */
.service__grid {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    /* ← width:74% を殺す */
    max-width: 860px;
    /* ←ここで横間延び防止 */

    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    column-gap: clamp(8px, 1.4vw, 18px);
    /* Restore spacing */
    row-gap: clamp(26px, 2.6vw, 44px);

    /* 白背景内の余白：収まり優先 */
    padding: clamp(100px, 4vw, 62px) clamp(22px, 2.6vw, 40px) clamp(54px, 5vw, 74px);
}

/* ✅ 見出し（縦）を段落ちさせない＆白背景内に収める */
.service__sidebar {
    padding: clamp(100px, 4vw, 62px) clamp(16px, 2vw, 28px) 0 clamp(16px, 2vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;

    flex: 0 0 clamp(140px, 12vw, 180px);
    min-width: clamp(140px, 12vw, 180px);
}

/* 装飾 */
.service__title-icon {
    width: 50px;
    margin-bottom: 28px;
}

/* 文字を縦に保ったまま、段落ち/折返しを防止 */
.service__title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-en-sans);
    font-size: 2.0rem;
    letter-spacing: .1em;
    font-weight: 300;
    color: #555;

    white-space: nowrap;
    /* ★段落ち防止 */
    line-height: 1;
    /* ★変な間延び防止 */
    overflow: visible;
}

/* items */
.service__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service__head-img {
    width: clamp(100px, 5.2vw, 94px);
    margin: 0 auto 12px;
}

.service__icon-wrap {
    width: clamp(66px, 4.8vw, 80px);
    height: clamp(66px, 4.8vw, 80px);
    border-radius: 999px;
    background: #e1c9b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.service__icon-wrap img {
    width: 50%;
    filter: brightness(0) invert(1);
}

.service__name {
    font-family: var(--font-ja);
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: 500;
    color: #444;
    letter-spacing: .05em;
}

.service {
    border-bottom: 1px solid rgba(250, 239, 236, .001);
}

#voice.voice {
    border-top: 1px solid rgba(249, 246, 242, .001);
}


/* ===================================
   Responsive（SERVICEだけ）
   =================================== */
@media (max-width: 1024px) {
    .service {
        padding: 90px 0 100px;
        /* Reduced padding */
        background-size: 380px auto;
    }

    .service__container-box {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        /* Center align for tablet */
    }

    /* タブレット以下：白背景を左右いっぱいにして破綻防止 */
    .service__container-box::before {
        left: calc(50% - 50vw);
        right: calc(50% - 50vw);
        box-shadow: 0 0 70px 46px rgba(255, 255, 255, .86);
        border-radius: 0;
        /* スマホ〜タブは角丸なしで安全運用（必要なら戻してOK） */
    }

    .service__sidebar {
        order: -1;
        /* ★ Fix: Move Title to Top */
        width: 100%;
        min-width: 0;
        flex: none;
        padding: 0 5% 10px;
        /* Reduced top padding, added bottom space */
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .service__title-vertical {
        writing-mode: horizontal-tb;
        white-space: normal;
        letter-spacing: .1em;
        font-size: 1.8rem;
        /* Slightly smaller */
    }

    /* ★ Fix: Horizontal title image for SP */
    .service__title-img {
        max-width: none;
        height: 24px;
        margin-bottom: 0;
    }

    .service__grid {
        max-width: none;
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns for Tablet */
        padding: 24px 2% 44px;
        /* Optimized padding */
        column-gap: 16px;
        row-gap: 36px;
    }
}

@media (max-width: 480px) {
    .service {
        background-size: 320px auto;
        padding: 60px 0 80px;
    }

    .service__grid {
        display: grid;
        /* Revert to grid */
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
        gap: 24px 12px;
        /* Row gap 24px, Column gap 12px */
        padding: 20px 4% 40px;
    }

    .service__item {
        background: transparent;
        /* Remove card background */
        padding: 0;
        border-radius: 0;
    }

    .service__name {
        font-size: 1.25rem;
        /* Adjusted for 2-col fit */
        margin-top: 0;
        line-height: 1.5;
    }

    .service__head-img {
        width: 80px;
        margin-bottom: 8px;
    }

    .service__icon-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
}


/* ===================================
   VOICE（全部差し替え：最終版）
   - 背景を確実に全幅に（container干渉対策）
   - 中央に淡い白面＋外側の白ボケ
   - セクション上下の“ぼやけ”（滑らか）
   - 波状背景を小さめ
   - audioを小さく
   =================================== */

/* ===================================
   VOICE（全部差し替え：干渉に勝つ・全幅・縦線ムラ対策）
   =================================== */

#voice.voice {
    position: relative;
    overflow: hidden;
    text-align: center;
    isolation: isolate;

    /* 全幅（変なセンタリングtransformを撤去） */
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;

    background-color: #FAEFEC;
    background-image: url(../images/bgimg02.png);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    /* ★余白を詰める（ここがでかすぎた） */
    padding: 80px 0 100px;
}


/* ▼ “縦線（区切れ）”のムラは、四角い白面が原因になりやすいので
   放射状の面感で作る（自然でムラが出にくい） */
#voice.voice::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background: radial-gradient(circle at 50% 42%,
            rgba(255, 255, 255, 0.62) 0%,
            rgba(255, 255, 255, 0.28) 42%,
            rgba(255, 255, 255, 0.00) 74%);
}

/* ===================================
   VOICE セクション上下の繋ぎ目ボカシ（差し替え）
   SERVICE ↔ VOICE ↔ CONTACT の境目線を消す
   =================================== */
/* ===================================
   VOICE：上端のボカシ（全文差し替え）
   - はみ出し禁止（overflow:hiddenでも確実に効く）
   - 上端を同じVOICE色で馴染ませ、境目の帯を消す
   =================================== */
#voice.voice::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    /* ★セクション内だけで完結 */
    height: 420px;

    pointer-events: none;
    z-index: 0;

    /* ★開始色も終了色も“VOICE側の色”で統一して、帯を作らない */
    background: linear-gradient(to bottom,
            rgba(250, 239, 236, 1) 0%,
            rgba(250, 239, 236, 0.75) 38%,
            rgba(250, 239, 236, 0) 100%);

    filter: blur(34px);
    opacity: 1;
}



/* 中身は前面に */
#voice.voice>* {
    position: relative;
    z-index: 1;
}

/* ===== 以下：中身のレイアウト（必要最低限） ===== */

.voice__header {
    margin-bottom: clamp(34px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.voice__list {
    width: min(720px, 100%);
    margin: 0 auto 50px;
    display: grid;
    gap: clamp(22px, 2.8vw, 34px);
}

.voice__item {
    position: relative;
    margin-top: 16px;
}

.voice__tag {
    position: absolute;
    top: -14px;
    left: -54px;
    width: 128px;
    z-index: 2;
    transform: rotate(-8deg);
    transform-origin: left top;
}

.voice__content {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: clamp(6px, 2.0vw, 22px) clamp(18px, 2.2vw, 26px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.voice__info-row {
    display: block;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.voice__category-pill {
    background: #d8b8a1;
    color: #fff;
    font-size: 1.2rem;
    padding: 1px 0px;
    border-radius: 10px;
    font-family: var(--font-ja);
    font-weight: 500;
    display: flex;
    width: 22%;
    align-items: center;
    justify-content: center;
}

.voice__desc {
    font-size: 1.4rem;
    font-family: var(--font-ja);
    font-weight: 500;
    color: #444;
    margin-top: 5px;
    margin-bottom: 0px;
}

/* audioを細く・小さく */
.voice__player-wrapper {
    border-radius: 999px;
    overflow: hidden;
}

.voice__player-wrapper audio {
    width: 100%;
    height: 26px;
    display: block;
    filter: grayscale(1) opacity(0.65);
    transform: scale(0.82);
    transform-origin: left center;
}

/* 下のリンク */
.voice__link {
    font-family: var(--font-ja);
    font-size: 1.4rem;
    color: #888;
    letter-spacing: 0.1em;
}

.voice__link:hover {
    color: var(--gold);
}

@media (max-width: 1024px) {
    .voice__category-pill {
        width: 35%;
    }
}

/* =========================
   Voice Modal
========================= */
/* ===== Voice Modal ===== */
.voice-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.voice-modal.is-open {
    display: block;
}

.voice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.voice-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw);
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.voice-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: none;
    background: #f3f3f3;
    border-radius: 999px;
    cursor: pointer;
    font-size: 20px;
    line-height: 38px;
}

.voice-modal__title {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 6px 0 14px;
    color: #333;
}

.voice-modal__audio {
    width: 100%;
}



/* Responsive */
@media (max-width: 1024px) {
    #voice.voice {
        padding: 120px 0 110px;
        background-size: 320px auto;
    }

    .voice__player-wrapper audio {
        transform: scale(0.80);
    }
}

@media (max-width: 480px) {
    #voice.voice {
        padding: 96px 0 96px;
        background-size: 280px auto;
    }

    .voice__tag {
        width: 100px;
        top: -22px;
        left: -6px;
    }

    .voice__player-wrapper audio {
        transform: scale(0.78);
    }
}



/* ===================================
   CONTACT（理想：丸柄が薄い・面が柔らかい）
   - 背景は疑似要素で「薄く」重ねる（直貼り禁止）
   =================================== */

.contact {
    padding: 100px 0 100px;
    background: #FAEFEC;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #F9F6F2;
    background-image: url(../images/bgimg.png);
    background-repeat: repeat;
    background-position: 0 0;
    background-size: cover;
}

/* うっすらテクスチャ（理想の“にじみ”寄せ） */
.contact::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 420px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(249, 246, 242, 0) 0%, rgba(250, 239, 236, 0.55) 55%, rgba(250, 239, 236, 1) 100%);
    filter: blur(34px);
    opacity: 1;
}



/* 丸柄（bgimg02）を「かなり薄く」重ねる */
.contact::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image: url("./images/bgimg02.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    opacity: 0.12;
    /* ★ここが肝：現状はこれが強すぎる */
}

/* 中身は前面へ */
.contact>.container {
    position: relative;
    z-index: 1;
}

/* カード（理想に寄せて余白を少し増やす） */
.contact__card {
    background: rgba(255, 255, 255, 0.98);
    max-width: 880px;
    margin: 0 auto 84px;
    padding: 86px 96px;
    border-radius: 6px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.04);
}

.contact__header {
    text-align: center;
    margin-bottom: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact__note {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    font-family: var(--font-ja);
}

/* フォーム */
.contact__field-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.contact__field-row--top {
    align-items: flex-start;
}

.contact__label {
    width: 240px;
    font-size: 1.5rem;
    color: #444;
    font-family: var(--font-ja);
    padding-right: 20px;
}

.contact__input-wrap {
    flex: 1;
}

.contact__input,
.contact__textarea {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 18px 20px;
    font-size: 1.5rem;
    outline: none;
    border: 1px solid #f4f4f4;
}


.contact__textarea {
    height: 220px;
    resize: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
    color: #bbb;
}

.contact__radios {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.contact__radios label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    color: #555;
    font-family: var(--font-ja);
    cursor: pointer;
}

.contact__radios input {
    accent-color: #D8CBBD;
}

.contact__submit-wrap {
    margin-top: 56px;
    text-align: center;
}

.contact__submit {
    background: #d8b8a1;
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1.4rem;
    padding: 10px 64px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: .25s;
}

.contact__submit:hover {
    opacity: .86;
}

.contact__submit .arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 8px;
    vertical-align: middle;
    color: transparent;
    font-size: 0;
}

/* ===================================
   Banner（現状の“強すぎる枠＆グロー”を理想の柔らかさへ）
   =================================== */
.banner-area {
    display: flex;
    justify-content: center;
    width: 60%;
    margin: auto;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #D8C3B3;
    padding: 54px 0 34px;
    text-align: center;
    color: #fff;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__logo-script {
    width: 160px;
    margin-bottom: 18px;
}

.footer__nav {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
}

.footer__nav a {
    font-family: var(--font-en-sans);
    font-weight: 300;
    font-size: 14px;
}

.footer__notes {
    font-size: 14px;
    opacity: .72;
    margin-bottom: 14px;
}

.footer__copy {
    font-size: 14px;
    opacity: .55;
    font-family: var(--font-en-sans);
    margin-top: 0px;
    margin-bottom: 0px;
}

/* ===================================
   Responsive（contact以降だけ）
   =================================== */
@media (max-width: 768px) {
    .contact {
        padding: 92px 0 110px;
    }

    .contact__card {
        padding: 44px 22px;
        margin: 0 auto 62px;
    }

    .contact__field-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact__label {
        width: 100%;
        margin-bottom: 10px;
        padding-right: 0;
    }
}



/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {

    .header__nav,
    .header__pill,
    .header__sns {
        display: none;
    }

    .header__menu-btn {
        display: block;
        top: 10px;
    }

    /* .header__pill {
        padding: 12px 24px;
    } */

    section {
        padding: 90px 0;
    }

    .service__container-box {
        flex-direction: column;
        gap: 30px;
    }

    .service__grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .service__sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        display: block;
        text-align: center;
        padding-top: 50px;
    }


    .service__title-icon {
        width: 50px;
        margin-bottom: 0px;
        opacity: .35;
        margin-right: auto;
        margin-left: auto;
    }

    .service__title-vertical {
        writing-mode: horizontal-tb;
    }


    .message__img-scatter img {
        opacity: .82;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .contact__card {
        padding: 34px 20px 40px;
        width: 100%;
        max-width: none;
        box-shadow: none;
        /* Remove shadow for cleaner look on small screens */
        background: transparent;
        /* Seamless blend */
        border-radius: 0;
        margin-bottom: 40px;
    }

    /* Make inputs larger and easier to tap */
    .contact__input,
    .contact__textarea {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevent iOS zoom */
        border: 1px solid rgba(0, 0, 0, 0.05);
        /* Subtle border */
    }

    .contact__label {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    /* Stack radios for easier selection */
    .contact__radios {
        flex-direction: column;
        gap: 16px;
    }

    .contact__radios label {
        padding: 10px 0;
        /* Increase touch area */
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        width: 100%;
    }

    .contact__submit {
        width: 60%;
        padding: 10px;
        font-size: 1.6rem;
    }

    .banner-link {
        width: 100%;
    }

    .banner-area {
        width: 100%;
    }


    /* SP：散らしは消してスライダーのみ表示（増殖100%解消） */
    .message__img-scatter {
        display: none;
    }

    .message__img-slider {
        display: block;
        margin-top: 28px;
        overflow: hidden;
    }

    .message__img-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 4%;
    }

    .message__img-track::-webkit-scrollbar {
        display: none;
    }

    .message__img-slide {
        flex: 0 0 72vw;
        scroll-snap-align: start;
    }

    .message__img-slide img {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .header__inner {
        padding: 0 16px;
    }

    /* さらに詰める */
    :root {
        --message-top: 56px;
        --mv-fade: 40px;
    }

    .message {
        margin-top: 0px;
    }

    .message__voice-btn {
        padding: 12px 24px;
        /* Ensure larger touch target */
        width: 60%;
        /* Wider button */
        max-width: 280px;
    }

    .message__greeting {
        font-size: 1.5rem;
        /* Readable text */
        line-height: 2.0;
        text-align: justify;
        /* Better block text alignment */
    }

    .message__text-block p {
        font-size: 1.4rem;
        line-height: 2.1;
        text-align: justify;
    }

    /* ★ Fix: Add top spacing to prevent logo overlap */
    /* .mv {
        padding-top: 80px !important;
    } */
}

/* ===================================
   Tablet & Mobile Optimization (max-width: 1024px)
   =================================== */
@media (max-width: 1024px) {

    /* Global Container Fix */
    .container {
        width: 96%;
        margin: 0 auto;
        padding: 0;
    }

    /* Contact Card Optimization */
    .contact__card {
        padding: 40px 30px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .contact__input-wrap {
        width: 100%;
        padding: 0;
    }

    .contact__input,
    .contact__textarea {
        width: 100% !important;
        /* Force full width */
        box-sizing: border-box;
    }

    .contact__form {
        width: 96%;
        margin: 0 auto;
    }
}


/* ===================================
   PROFILE PAGE STYLES
   =================================== */

/* Page Hero */
/* =========================
   PROFILE FV (Responsive)
   ========================= */

/* =========================
   PROFILE FV
   ========================= */

/* =========================
   PROFILE FV - title overlap fix
   ========================= */
:root {
    --hero-title-overlap: 76px;
    /* タイトルを境目に“はみ出させる量” */
}

/* Hero（写真） */
.page-hero {
    position: relative;
    height: clamp(510px, 58vh, 640px);
    background: url(../images/plofilemv.jpg) no-repeat center / cover;
    margin-top: -80px;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .page-hero.page-hero--profile {
        background-image: url(../images/plofilemv.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}




/* 白い霞 */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .35);
}

/* ← ここ重要：タイトルは“中の余白”で下げるのではなく、absoluteで境界に被せる */
.page-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1100px, 90%);
    margin: 0 auto;
    height: 100%;
    /* padding-bottom は不要（これがあると上に見えたりブレます） */
    padding: 0;
}

/* タイトル画像を境目に跨らせる（FVの下端から下へはみ出す） */
.page-hero__title {
    position: absolute;
    left: 0;
    bottom: -120px;
    transform: translateY(calc(var(--hero-title-overlap) * 0.55));
    z-index: 2;
    margin: 0;
}

/* サイズが大きい問題：ここで確実に制御 */
.page-hero__title-img {
    display: block;
    width: auto;
    height: 100px;
    /* Fixed height to unify font size appearance */
    max-width: min(80vw, 910px);
    /* Allow wider titles */
    object-fit: contain;
}

/* 画像の下の帯（サブ＆パンくず） */
.page-hero-meta {
    position: relative;
    background: #EAE0D5;
    /* タイトルがはみ出した分、帯の上に“受け皿の余白”を作る */
    padding: calc(var(--hero-title-overlap) * 0.55 + 26px) 0 34px;
}

/* 右の白抜け */
.page-hero-meta::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 32%;
    height: 100%;
    background: #fbfbfb;
}

.page-hero-meta__inner {
    width: min(1100px, 90%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero__sub {
    margin: 0 0 18px;
    font-family: var(--font-ja);
    font-size: 22px;
    color: #444;
    letter-spacing: .05em;
}

.page-hero__crumb {
    margin: 0;
    font-family: var(--font-en-sans);
    font-size: 14px;
    color: #444;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.page-hero__crumb a {
    text-decoration: underline;
    transition: opacity .3s;
}

.page-hero__crumb a:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
    :root {
        --hero-title-overlap: 54px;
    }

    .page-hero {
        height: clamp(360px, 52vh, 520px);
        margin-top: 0;
        padding-top: 0;
    }

    .page-hero__title {
        left: 0;
        bottom: -65px;
        transform: translateY(50%);
        width: 100%;
        /* Ensure centering works if needed, or container width */
        text-align: left;
        /* Keep left alignment */
    }

    .page-hero__title-img {
        width: auto;
        height: 80px;
        max-width: min(84vw, 560px);
    }

    .page-hero-meta::after {
        width: 0;
        /* SPは白抜け無しの方が破綻しにくい */
    }
}

@media (max-width: 480px) {
    :root {
        --hero-title-overlap: 44px;
    }

    .page-hero {
        height: 46vh;
        min-height: 300px;
        background-image: url(../images/mv-sp.jpg);
        background-position: center top;
    }

    .page-hero__title-img {
        width: auto;
        height: 56px;
        max-width: min(88vw, 400px);
    }
}


.section-bg-circle {
    background-color: #F9F6F2;
    background-image: url(../images/bgimg02.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.u-pt-0 {
    padding-top: 0 !important;
}

.u-mt-20 {
    margin-top: 20px !important;
}

.u-mt-30 {
    margin-top: 30px !important;
}


/* P-Message（理想寄せ） */
.p-message {
    position: relative;
    overflow: hidden;
    padding: 80px 0 110px;
    /* ← 上の空きすぎを解消（100px 0 より詰める） */
    background-color: #EAE0D5;
    /* Beige bg from design */
}

/* 右の白抜け帯（FVと連続して見えるように） */
.p-message::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 32%;
    height: 100%;
    background: #fbfbfb;
}

/* 中身は白帯より手前に */
.p-message__inner {
    position: relative;
    z-index: 1;
    padding: 0px;
    display: flex;
    flex-wrap: nowrap;
    /* ← PCは折り返さない（見本寄せ） */
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
    /* 60→80（見本の“ゆとり”の質） */

    width: min(1100px, 90%);
    margin: 0 auto;
}

.p-message__content {
    flex: 1;
    min-width: 320px;
    max-width: 560px;
    /* ← 行間が間延びしない文章幅に */
    padding-top: 10px;
    /* ← タイトル帯との距離を整える */
}

.p-message__img {
    flex: 0 0 520px;
    /* 400→520（写真の存在感UP） */
    max-width: 520px;
}

.p-message__img img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* 少しだけ薄く上品に */
}

/* 見出しまわり */
.p-message__title {
    margin-bottom: 18px;
    line-height: 1;
}

.p-message__title .en {
    display: block;
    font-family: "Pinyon Script", cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: -8px;
    width: 250px;
}

.p-message__title .jp {
    display: block;
    font-family: var(--font-ja);
    font-weight: 500;
    color: #444;
}

.p-message__name {
    font-family: var(--font-ja);
    font-size: 28px;
    margin-bottom: 34px;
    font-weight: 100;
    /* 40→34（空きすぎを解消） */
    color: #444;
}


.p-message__name .en {
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-weight: 100;
    margin-left: 10px;
    color: #e2d0c3;
}

.p-message__body p {
    font-family: var(--font-ja);
    font-size: 16px;
    ;
    line-height: 2.2;
    margin-bottom: 2em;
    color: #444;
}

/* =========================
   ボタン（理想寄せ）
   「▶ 音声で聴く」をピル＋丸アイコンに
========================= */
/* =========================
   ボタン（理想寄せ）
   「▶ 音声で聴く」をピル＋丸アイコンに
========================= */
.p-message__btn,
.message__voice-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #d8b79a;
    /* Beige color matching image */
    color: #fff;
    /* Reduced button size */
    padding: 0 32px 0 60px;
    /* Room for icon on left */
    height: 44px;
    /* Fix height for sticking out effect */
    border-radius: 9999px;
    font-family: var(--font-ja);
    font-size: 1.4rem;
    /* Matched to normal size */
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    /* Important: Allow sticking out */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 12px rgba(216, 191, 174, 0.4);
}

.p-message__btn:hover,
.message__voice-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(216, 191, 174, 0.6);
}

/* 左の丸い再生アイコン（はみ出す） */
.p-message__btn .icon-play,
.message__voice-btn .btn-icon {
    width: 54px;
    /* Icon larger than button height (54px vs 44px) */
    height: 54px;
    position: absolute;
    top: 50%;
    left: -5px;
    /* Stick out left */
    transform: translateY(-50%);
    /* Center vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #fff;
    color: #d8b79a;
    /* Icon color matches button bg */
    font-size: 22px;
    /* ▶ の見た目調整 */
    padding-left: 4px;
    /* Center the triangle visually */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.p-message__btn:hover .icon-play,
.message__voice-btn:hover .btn-icon {
    transform: translateY(-50%) scale(1.1) rotate(360deg);
}

/* Pulse Animation Ring */
.message__voice-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 22px;
    /* Center of the icon (half of 54px width + left offset -5px => 27-5=22px) */
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.0);
        opacity: 0;
    }
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
    .p-message__inner {
        gap: 60px;
    }

    .p-message__img {
        flex-basis: 420px;
        max-width: 420px;
    }

    .p-message::after {
        width: 28%;
    }

    .section-en {
        margin-top: 0px;
    }
}

.mti-0 {
    margin-top: 0px !important;
}

@media (max-width: 768px) {
    .p-message {
        padding: 60px 0 80px;
    }

    .p-message::after {
        display: none;
        /* SPは白抜け帯を消す方が自然 */
    }

    .p-message__inner {
        flex-direction: column-reverse;
        /* 写真→テキストの順にしたければここを column に */
        flex-wrap: nowrap;
        gap: 30px;
    }

    .p-message__content {
        max-width: none;
        padding-top: 0;
    }

    .p-message__img {
        flex: none;
        width: min(420px, 100%);
        max-width: none;
        margin: 0 auto;
    }

    .p-message__title .en {
        font-size: 3.2rem;
    }
}


/* ===================================
   PROFILE: Career / Achievements / Current / Qualification
   1セクション統合（理想寄せ）
   - 背景：bgimg.png を薄く表示（濃すぎない）
   - 境目：上下をフェード（ぼかし）
   - 余白：見本の密度
   - 文字：MESSAGE基準（本文16px相当）
   =================================== */

/* --- ここから置換：p-profile-info 背景まわり一式 --- */

/* ===================================
   PROFILE: 背景（リング柄）＋境目ぼかし（上下）
   置換用：.p-profile-info / ::before / ::after / >.container
   =================================== */

.p-profile-info {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
}

/* リング柄：ここで“確実に表示”させる（あなたの成功パターン） */
.p-profile-info::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background-image: url(../images/bgimg.png);
    background-repeat: repeat;
    background-position: 0 0;

    /* coverだと柄が伸びて濃くなりやすいので、繰り返し前提のサイズに */
    background-size: cover;
    opacity: .4;
}

/* 境目ぼかし：上下に“同色グラデ”を被せて溶かす（画像は消えない） */
.p-profile-info::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* 中身は前面へ */
.p-profile-info>.container {
    position: relative;
    z-index: 2;
}

/* =========================
   Responsive（背景サイズ・ぼかし幅）
   ========================= */
@media (max-width: 1024px) {
    .p-profile-info {
        padding: 78px 0 82px;
    }

    .p-profile-info::before {
        background-size: 480px auto;
        opacity: 0.08;
    }

    .p-profile-info::after {
        background:
            linear-gradient(rgba(249, 246, 242, 1), rgba(249, 246, 242, 0)) top/100% 72px no-repeat,
            linear-gradient(to top, rgba(249, 246, 242, 1), rgba(249, 246, 242, 0)) bottom/100% 72px no-repeat;
    }
}

@media (max-width: 768px) {
    .p-profile-info {
        padding: 70px 0 76px;
    }

    .p-profile-info::before {
        background-size: 440px auto;
        opacity: 0.07;
    }

    .p-profile-info::after {
        background:
            linear-gradient(rgba(249, 246, 242, 1), rgba(249, 246, 242, 0)) top/100% 64px no-repeat,
            linear-gradient(to top, rgba(249, 246, 242, 1), rgba(249, 246, 242, 0)) bottom/100% 64px no-repeat;
    }
}

@media (max-width: 480px) {
    .p-profile-info {
        padding: 62px 0 68px;
    }

    .p-profile-info::before {
        background-size: 420px auto;
        opacity: 0.06;
    }

    .p-profile-info::after {
        background:
            linear-gradient(rgba(249, 246, 242, 1), rgba(249, 246, 242, 0)) top/100% 56px no-repeat,
            linear-gradient(to top, rgba(249, 246, 242, 1), rgba(249, 246, 242, 0)) bottom/100% 56px no-repeat;
    }
}


/* 中身は前面へ */
.p-profile-info>.container {
    position: relative;
    z-index: 2;
}

/* --- ここまで置換 --- */


/* 4カラムではなく「2カラム×2段」を基本に */
.p-profile-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 90px;
}

/* 各ブロック */
.p-profile-info__col {
    min-width: 0;
}

/* =========================
   見出し（英語：img対応）
   ========================= */
.p-profile-info__title {
    position: relative;
    margin: 0 0 34px;
    line-height: 1;

    /* 英語見出し（絶対配置）の高さ分を確保 */
    padding-top: clamp(26px, 3vw, 44px);
}

/* 英語見出し：画像を「薄い飾り」として背面に */
.p-profile-info__title .en {

    display: block;
    z-index: 0;
    /* ← ここも薄め */
    pointer-events: none;
}

.p-profile-info__title .en img {
    display: block;
    height: auto;
}

/* 日本語見出し：前面に出す */
.p-profile-info__title .jp {
    position: relative;
    z-index: 1;
    display: block;

    font-family: var(--font-ja);
    font-size: 1.8rem;
    font-weight: 500;
    color: #444;
}

/* =========================
   本文：MESSAGE基準（16px相当）
   ========================= */
.p-profile-info__body {
    font-family: var(--font-ja);
    font-size: 1.6rem;
    line-height: 2.1;
    color: #444;
}

/* リード文（経歴上段） */
.p-profile-info__lead {
    margin: 0 0 26px;
    line-height: 2.2;
}

/* 年表 */
.p-profile-info__dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 22px;
}

.p-profile-info__dl dt {
    font-weight: 500;
    white-space: nowrap;
    color: #444;
    font-size: 1.4rem;
    line-height: 2.0;
}

.p-profile-info__dl dd {
    margin: 0;
    font-size: 1.5rem;
    line-height: 2.0;
    color: #444;
}

/* 実績内の小見出し */
.p-profile-info__sub-head {
    margin: 22px 0 10px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #444;
}

.p-profile-info__text {
    margin: 0 0 14px;
    font-size: 1.5rem;
    line-height: 2.1;
}

/* 余白ユーティリティ（このセクション内だけで完結） */
.p-profile-info .u-mt-20 {
    margin-top: 20px !important;
}

.p-profile-info .u-mt-30 {
    margin-top: 30px !important;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
    .p-profile-info {
        padding: 78px 0 82px;
    }

    .p-profile-info__grid {
        gap: 52px 60px;
    }

    .p-profile-info::before {
        background-size: 480px auto;
        opacity: 0.09;
        /* ← 少し薄く */
    }

    .p-profile-info__title .en img {
        width: clamp(220px, 34vw, 420px);
    }

    .p-profile-info__title .en {
        opacity: 0.28;
    }
}

@media (max-width: 768px) {
    .p-profile-info {
        padding: 70px 0 76px;
    }

    .p-profile-info__grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .p-profile-info::before {
        background-size: 440px auto;
        opacity: 0.08;
    }

    .p-profile-info__title {
        padding-top: clamp(24px, 5vw, 42px);
        margin-bottom: 30px;
    }

    .p-profile-info__title .en {
        opacity: 0.26;
    }

    .p-profile-info__title .en img {
        width: clamp(220px, 62vw, 420px);
    }
}

@media (max-width: 480px) {
    .p-profile-info {
        padding: 62px 0 68px;
    }

    .p-profile-info__title .jp {
        font-size: 1.7rem;
    }

    /* 年表は縦積みの方が読みやすい */
    .p-profile-info__dl {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .p-profile-info__dl dt {
        margin-top: 14px;
        width: fit-content;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-bottom: 4px;
    }

    .p-profile-info__dl dd {
        font-size: 1.5rem;
    }

    .p-profile-info::before {
        background-size: 420px auto;
        opacity: 0.07;
    }

    .p-profile-info__title .en {
        opacity: 0.24;
    }
}



@media (max-width: 480px) {
    .page-hero {
        height: 50vh;
        padding-bottom: 40px;
        background-image: url(../images/mv-sp.jpg);
        /* Use SP image */
    }

    .page-hero__title {
        font-size: 3rem;
    }

    .p-message {
        padding: 60px 0;
    }

    .p-message__title .en {
        font-size: 3rem;
    }

    .p-history {
        padding: 60px 0;
    }

    .p-history__dl {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .p-history__dl dt {
        margin-top: 15px;
        color: #887;
        border-bottom: 1px solid #eee;
        padding-bottom: 4px;
        width: fit-content;
    }

    .p-history__dl dd {
        margin-left: 0;
    }
}


/* ===================================
   VOICE SAMPLE SECTION (PROFILE) - FULL CSS
   - 背景色あり（#EAE0D5）
   - 境目ぼかし（上/下）
   - 英語見出し：HTMLで <img> を置く前提
   - 見本（2枚目）寄せ：サイズ/余白/密度調整
   =================================== */

.p-voice {
    position: relative;
    overflow: hidden;
    padding: 90px 0 110px;

    /* ✅背景色はここで確実に戻す */
    background: #EAE0D5;
}

/* ✅セクション境目をふわっと（上） */
.p-voice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    pointer-events: none;
    z-index: 0;

    /* 上のセクション（白系=#fbfbfb）→ p-voice背景色へ溶かす */
    background: linear-gradient(to bottom,
            rgba(251, 251, 251, 0.95),
            rgba(234, 224, 213, 0));
    filter: blur(14px);
    transform: translateY(-60px);
    opacity: 0.95;
}

/* ✅セクション境目をふわっと（下） */

/* 中身を前面へ */
.p-voice>.container {
    position: relative;
    z-index: 1;
}

/* ------------- Header ------------- */
.p-voice__header {
    margin-bottom: 34px;
}

.p-voice__title {
    position: relative;
    margin: 0;
    line-height: 1;

    /* 英語画像が背面に来るので高さ確保 */
    padding-top: clamp(32px, 4vw, 60px);
}

/* ✅英語見出し：HTMLのimgを背面で薄く */
.p-voice__title-en {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.42;
    pointer-events: none;
}

.p-voice__title-en img {
    display: block;
    height: auto;
}

/* 日本語見出し */
.p-voice__title .jp {
    position: relative;
    z-index: 1;
    display: block;
    font-family: var(--font-ja);
    font-size: 1.8rem;
    font-weight: 500;
    color: #444;
}

/* ------------- Layout ------------- */
/* 見本：左細めのリスト + 右2カラム */
.p-voice__container {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0 70px;
    align-items: start;
}

/* Sidebar */
.p-voice__sidebar {
    width: auto;
    background: rgba(251, 251, 251, 0.88);
    border-radius: 16px;
    padding: 18px 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.p-voice__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p-voice__cat-list li {
    font-family: var(--font-ja);
    font-size: 1.4rem;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    color: #666;
}

.p-voice__cat-list li:last-child {
    border-bottom: none;
}

.p-voice__cat-list li.is-active {
    color: #3f3f3f;
    font-weight: 500;
}

/* Grid */
.p-voice__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 61px 70px;
}

/* ------------- Card ------------- */
/* 見本の“横長コンパクト” */
.p-voice__card {
    position: relative;
    background: rgba(251, 251, 251, 0.92);
    border-radius: 16px;
    padding: 10px 12px 10px;
    min-height: 120px;
}

/* 付箋（tag01.png等） */
.p-voice__tag {
    position: absolute;
    top: -28px;
    left: -48px;
    width: 128px;
    z-index: 2;
    transform: rotate(356deg);
}

/* カテゴリpill */
.p-voice__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    width: 38%;
    padding: 0px 12px;
    border-radius: 999px;
    background: rgb(205, 178, 159);
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
    font-family: var(--font-ja);
}

/* サンプル名 */
.p-voice__name {
    font-family: var(--font-ja);
    font-size: 1.5rem;
    font-weight: 500;
    color: #444;
    margin-top: 10px;
    margin-bottom: 0px;
}

/* audio UI */
.p-voice__player {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    padding: 0px 0px;
    margin: 10px 0px;
}

.p-voice__player audio {
    width: 100%;
    height: 34px;
    display: block;
    outline: none;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
    .p-voice {
        padding: 84px 0 100px;
    }

    .p-voice__container {
        grid-template-columns: 150px 1fr;
        gap: 0 46px;
    }

    .p-voice__grid {
        gap: 24px 34px;
    }

    .p-voice__title-en img {
        width: clamp(320px, 52vw, 640px);
    }

    .p-voice__tag {
        position: absolute;
        top: -22px;
        left: -6px;
        width: 108px;
        z-index: 2;
        transform: rotate(356deg);
    }
}

@media (max-width: 768px) {
    .p-voice {
        padding: 76px 0 92px;
    }

    .p-voice__container {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    /* Sidebarを横並びのボタン風に */
    .p-voice__sidebar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
    }

    .p-voice__cat-list li {
        border-bottom: 0;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 12px;
        padding: 12px 12px;
        text-align: center;
    }

    .p-voice__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .p-voice__title {
        padding-top: clamp(30px, 6vw, 58px);
    }

    .p-voice__title-en {
        opacity: 0.40;
    }

    .p-voice__title-en img {
        width: clamp(300px, 78vw, 620px);
    }
}

@media (max-width: 480px) {
    .p-voice {
        padding: 70px 0 86px;
    }

    .p-voice__sidebar {
        grid-template-columns: auto;
        margin-bottom: 10px;
    }

    .p-voice__title .jp {
        font-size: 1.7rem;
    }
}




/* =========================
   ✅Footer直前の白帯を潰す（決定打）
   ========================= */
.p-voice+footer,
.p-voice+.l-footer,
.p-voice+.p-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* フィルタで隠す用 */
.p-voice__card.is-hidden {
    display: none;
}

/* ===================================
   Contact Page Specific
   =================================== */
.page-hero--contact {
    background-image: url(../images/contactmv.png);
}

@media (max-width: 480px) {
    .page-hero--contact {
        background-image: url(../images/contactmv.png);
    }
}

/* Contact Page Meta Section Override */
.page-hero-meta--contact {
    background: #f9f6f2;
}

.page-hero-meta--contact::after {
    display: none;
}

/* Contact Page Main Section Override */
.contact--page {
    background-image: none;
}

.contact--page::before,
.contact--page::after {
    display: none;
}

/* ===================================
   Legal Notice Page Specific
   =================================== */
.page-hero--legal {
    background-image: url(../images/legalnoticemv.png);
}

@media (max-width: 480px) {
    .page-hero--legal {
        background-image: url(../images/legalnoticemv.png);
    }
}

/* ===================================
   Privacy Policy Page Specific
   =================================== */
.page-hero--privacy {
    background-image: url(../images/privacypolicymv.png);
}

/* プライバシーポリシー・特定商取引法ページ用のmeta帯オーバーライド */
.page-hero-meta--privacy,
.page-hero-meta--legal {
    background: #fbfbfb;
    /* 他下層ページと同じpadding設定を使用 */
    padding: calc(var(--hero-title-overlap) * 0.55 + 26px) 0 34px;
}

/* 右の白抜けを無効化 */
.page-hero-meta--privacy::after,
.page-hero-meta--legal::after {
    display: none;
}

@media (max-width: 768px) {

    .page-hero-meta--privacy,
    .page-hero-meta--legal {
        padding: 30px 0 40px;
    }

    .page-hero--privacy .page-hero__title-img,
    .page-hero--legal .page-hero__title-img {
        width: clamp(280px, 70vw, 500px);
        max-height: 80px;
    }
}

@media (max-width: 480px) {

    .page-hero--privacy,
    .page-hero--legal {
        background-image: url(../images/privacypolicymv.png);
    }

    .page-hero-meta--privacy,
    .page-hero-meta--legal {
        padding: 24px 0 30px;
    }

    .page-hero--privacy .page-hero__title-img,
    .page-hero--legal .page-hero__title-img {
        width: clamp(200px, 80vw, 360px);
        max-height: 56px;
    }
}

/* Legal Section */
.legal {
    padding: 80px 0 100px;
    background: #F9F6F2;
    /* Standard background */
}

.p-legal-box {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--font-ja);
    background: #fff;
    padding: 60px 50px;
}

/* Legal Notice specific override */
.legal .p-legal-box {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.p-legal-list {
    display: block;
}

/* Default Style (Privacy Policy - Stacked) */
.p-legal-row {
    display: block;
    margin-bottom: 30px;
    border-bottom: none;
}

.p-legal-row:last-child {
    margin-bottom: 0;
}

.p-legal-row dt {
    background: #efe8e4;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 0;
    width: 100%;
    display: block;
}

.p-legal-row dd {
    background: #fff;
    padding: 20px 0px 24px;
    font-size: 1.4rem;
    line-height: 2;
    color: #555;
    margin: 0;
    border-left: none;
    width: 100%;
    display: block;
}

/* Legal Notice Specific Style (Table Layout) */
.legal .p-legal-list {
    border-top: 1px solid #ddd;
}

.legal .p-legal-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.legal .p-legal-row dt {
    width: 240px;
    padding: 24px;
    display: flex;
    align-items: center;
}

.legal .p-legal-row dd {
    width: calc(100% - 240px);
    padding: 24px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}


/* Responsive Styling (Tablet & Mobile) */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .legal {
        padding: 50px 0 80px;
    }

    .p-legal-box {
        padding: 0;
        background: transparent;
    }

    /* Privacy Policy Mobile adjustments if needed */

    /* Legal Notice Mobile Stack */
    .legal .p-legal-row {
        display: block;
    }

    .legal .p-legal-row dt {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.4rem;
    }

    .legal .p-legal-row dd {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.4rem;
        display: block;
        /* revert flex */
    }
}

/* Mobile Nav Tweaks */
@media (max-width: 1024px) {
    .mobile-nav__list li {
        margin-bottom: 40px;
        /* More space */
    }
}

/* ===================================
   Responsive (Polished Designs)
   =================================== */

/* Animation Robustness */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.js-fade-up.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .js-fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {



    /* Standardize mobile section padding */
    section {
        padding: 50px 0;
    }

    .legal {
        padding: 60px 0 80px;
    }

    /* --- Polished Profile Timeline --- */
    .p-profile-info__dl {
        display: flex;
        flex-direction: column;
        gap: 24px;
        /* More breathing room */
        margin-top: 10px;
    }

    .p-profile-info__dl dt {
        display: inline-block;
        width: fit-content;
        margin: 0 0 8px;
        padding: 4px 0 4px 12px;
        border-left: 3px solid #D8C3B3;
        /* Timeline accent */
        border-bottom: none;
        font-weight: 700;
        font-size: 1.5rem;
        line-height: 1.4;
        color: #6d5f53;
        background: transparent;
    }

    .p-profile-info__dl dd {
        padding-left: 12px;
        /* Indent content */
        margin: 0;
        font-size: 1.5rem;
        line-height: 1.8;
    }

    /* --- Polished Voice Filter (Horizontal Scroll) --- */
    .p-voice__cat-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 4px 4% 0px;
        /* Bottom padding for scrollbar space if any */
        margin: 0 -4% 0px;
        /* Bleed out */
        justify-content: flex-start;
        /* Left align start */
    }

    .p-voice__cat-list::after {
        content: "";
        display: block;
        flex: 0 0 4%;
        /* Spacer for end of scroll */
        width: 4%;
    }

    .p-voice__cat-list li {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 20px;
        font-size: 1rem;
        border: 1px solid #ddd;
        border-radius: 999px;
        background: #fff;
    }

    .p-voice__cat-list li.is-active {
        background: #444;
        color: #fff;
        border-color: #444;
    }

    /* --- Voice Grid Mobile --- */
    .p-voice__grid {
        grid-template-columns: 1fr;
        /* Force 1 column */
        gap: 50px;
    }

    .p-voice__card {
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    /* --- Legal Table Mobile Polish --- */
    .p-legal-row {
        gap: 8px;
        border-bottom: 1px solid #e0e0e0;
    }

    .p-legal-row dt {
        background: #f4f4f4;
        width: 100%;
        padding: 12px 16px;
        font-size: 1.3rem;
        color: #666;
        border-left: 4px solid #D8C3B3;
        border-bottom: none;
    }

    .p-legal-row dd {
        padding: 12px 16px 20px;
        font-size: 1.4rem;
    }
}

/* Menu Button Animation (X shape) */
.header__menu-btn.is-open span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

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

.header__menu-btn.is-open span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: rotate(-45deg);
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* ===================================
   Scroll Animation (Pop Up & Bounce)
   =================================== */
.js-fade-up {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    /* Start lower and smaller */
    transition:
        opacity 1.0s ease,
        transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
    /* Smoother Expo easing */
    will-change: opacity, transform;
}

.js-fade-up.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Slide Animations (Left / Right) */
.js-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 1.0s ease,
        transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

.js-slide-left.is-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.js-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 1.0s ease,
        transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

.js-slide-right.is-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Staggered Delays (Rhythm) */
.u-delay-100 {
    transition-delay: 0.1s;
}

.u-delay-200 {
    transition-delay: 0.2s;
}

.u-delay-300 {
    transition-delay: 0.3s;
}

.u-delay-400 {
    transition-delay: 0.4s;
}

.u-delay-500 {
    transition-delay: 0.5s;
}

/* ===================================
   TOP MESSAGE IMAGE ANIMATION
   =================================== */

/* PC: Floating Animation (Gentle hover) */
@keyframes floating-anim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.message__img-scatter img {
    animation: floating-anim 6s ease-in-out infinite;
    will-change: transform;
    /* Add fade-in on scroll entrance */
    opacity: 0;
    transition: opacity 1s;
}

.message__img-scatter.is-visible img {
    opacity: 1;
}

/* Stagger floating start times slightly */
.img-pos-1 img {
    animation-delay: 0s;
}

.img-pos-2 img {
    animation-delay: 1.5s;
}

.img-pos-3 img {
    animation-delay: 3s;
}

.img-pos-4 img {
    animation-delay: 4.5s;
}

/* SP: Infinite Loop Scroll (Marquee) */
@keyframes loop-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Shift by half (since we duplicate content) */
}

.message__img-slider {
    /* Existing style override/ensure */
    display: none;
    /* Default PC hidden */
    width: 100%;
    overflow: hidden;
}

.message__img-track {
    display: flex;
    width: fit-content;
    /* Animation applied here */
    animation: loop-scroll 20s linear infinite;
    /* Slow continuous scroll */
    will-change: transform;
}

.message__img-slide {
    flex: 0 0 auto;
    width: 200px;
    /* Adjust based on image size */
    margin-right: 20px;
}

.message__img-slide img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Add shadow for depth */
}

@media (max-width: 480px) {
    .message__img-slider {
        display: block;
        margin-top: 40px;
        margin-bottom: -40px;
        /* Pull closer to bottom if needed */
    }

    .message__img-scatter {
        display: none !important;
    }
}

/* Breadcrumb Link Style */
.page-hero__crumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.page-hero__crumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ===================================
   Fixed Contact Button (Mobile Only)
   =================================== */
.fixed-contact-btn {
    display: none !important;
}

@media (max-width: 768px) {

    /* Add padding to body to prevent button from covering content */
    body {
        padding-bottom: 80px;
    }

    .fixed-contact-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 340px;
        height: 50px;
        background: #d8b8a1;
        color: #fff;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        text-decoration: none;
        transition: opacity 0.3s, transform 0.3s;
    }

    .fixed-contact-btn:hover {
        opacity: 0.9;
    }

    .fixed-contact-btn .en {
        font-family: var(--font-en-sans);
        font-size: 1.6rem;
        letter-spacing: 0.1em;
        line-height: 1.2;
    }

    .fixed-contact-btn .jp {
        font-family: var(--font-ja);
        font-size: 1.0rem;
        line-height: 1;
        margin-top: 2px;
        color: #fff;
    }
}

#contact .section-en {
    margin-top: 0;
}