/**
 * ヒーローブロック CSS — 全パターン共通
 */

:root {
    --hero-dark:  #100d08;
    --hero-dark2: #1c1610;
    --hero-cream: #e8dfc8;
    --hero-gold:  #c8a04a;
}

/* ==========================================================================
   グレインテクスチャ（共通）
   ========================================================================== */

.hero-a__grain,
.hero-b__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
    z-index: 3;
}


/* ==========================================================================
   案A：フルスクリーン写真 + テキスト下寄せ
   ========================================================================== */

.hero-a {
    position: relative;
    overflow: hidden;
    background: var(--hero-dark);
    height: var(--hero-h, 100svh);
    min-height: 400px;
}
@media (max-width: 768px) {
    .hero-a { height: var(--hero-h-sp, var(--hero-h, 100svh)); }
}

/* スライド */
.hero-a__slides {
    position: absolute;
    inset: 0;
}

.hero-a__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-a__slide.is-active {
    opacity: 1;
}

.hero-a__slide--placeholder {
    background: radial-gradient(ellipse 70% 60% at 55% 45%, rgba(170,65,8,.4), transparent 65%),
                radial-gradient(ellipse 50% 70% at 15% 70%, rgba(120,45,5,.3), transparent 60%),
                linear-gradient(160deg, #1a1008, #0a0603);
    opacity: 1;
}

/* オーバーレイ */
.hero-a__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(8,5,2,.92) 0%,
        rgba(8,5,2,.45) 40%,
        rgba(8,5,2,.1)  70%,
        rgba(8,5,2,.0)  100%
    );
}

/* テキスト */
.hero-a__inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px 72px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.hero-a__en {
    letter-spacing: .42em;
    font-weight: 700;
    display: block;
    margin-bottom: 14px;
    font-size: 11px;
    color: #fff;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.hero-a__title {
    font-size: clamp(56px, 9vw, 108px);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #fff 20%, #ffd580 55%, #e8720a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-a__catch {
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 400;
    letter-spacing: .22em;
    color: rgba(232,223,200,.9);
    line-height: 1.8;
    text-shadow: 0 1px 12px rgba(0,0,0,.9), 0 0 32px rgba(0,0,0,.6);
}

.hero-a__cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.hero-a__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    transition: all .25s;
    white-space: nowrap;
}

.hero-a__btn--primary {
    background: var(--ark-color--main);
    color: #fff;
}

.hero-a__btn--primary:hover {
    background: #a82c08;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,57,14,.4);
}

.hero-a__btn--outline {
    border: 1.5px solid rgba(232,223,200,.3);
    color: var(--hero-cream);
}

.hero-a__btn--outline:hover {
    border-color: var(--hero-gold);
    color: var(--hero-gold);
    transform: translateY(-2px);
}

/* スクロール示唆 */
.hero-a__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-a__scroll span {
    font-size: 8px;
    letter-spacing: .35em;
    color: rgba(232,223,200,.3);
}

.hero-a__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(200,120,14,.5), transparent);
    animation: heroScrollLine 1.8s ease infinite;
}

@keyframes heroScrollLine {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ドットインジケーター（案A・共通スタイル） */
.hero-a__indicators {
    position: absolute;
    bottom: 36px;
    right: 64px;
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-a__dot {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,.25);
    border: none;
    cursor: pointer;
    transition: all .3s;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-a__dot.is-active {
    background: rgba(255,255,255,.2);
}

.hero-a__dot.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--ark-color--main);
    animation: heroDotFill var(--hero-interval, 4000ms) linear forwards;
}

@keyframes heroDotFill {
    from { width: 0; }
    to   { width: 100%; }
}

/* 湯気 */
@keyframes heroSteam {
    0%   { transform: translateY(0) scaleX(1);    opacity: 0; }
    15%  { opacity: .5; }
    80%  { opacity: .15; }
    100% { transform: translateY(-120px) scaleX(1.5); opacity: 0; }
}

.steam-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 5;
}

.steam {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255,210,140,.5);
    filter: blur(7px);
    animation: heroSteam linear infinite;
}

.steam:nth-child(1) { left: 10%; width: 5px;  height: 70px; animation-duration: 3.8s; animation-delay: 0s; }
.steam:nth-child(2) { left: 22%; width: 3px;  height: 50px; animation-duration: 3.2s; animation-delay: 1.1s; }
.steam:nth-child(3) { left: 38%; width: 6px;  height: 80px; animation-duration: 4.1s; animation-delay: 0.5s; filter: blur(10px); }
.steam:nth-child(4) { left: 55%; width: 4px;  height: 60px; animation-duration: 3.6s; animation-delay: 2.0s; }
.steam:nth-child(5) { left: 70%; width: 5px;  height: 72px; animation-duration: 4.0s; animation-delay: 0.8s; }
.steam:nth-child(6) { left: 84%; width: 3px;  height: 55px; animation-duration: 3.4s; animation-delay: 1.6s; }


/* ==========================================================================
   案B：スライドショー背景 + テキスト中央
   ========================================================================== */

.hero-b {
    position: relative;
    overflow: hidden;
    background: var(--hero-dark);
    height: var(--hero-h, 100svh);
    min-height: 400px;
}
@media (max-width: 768px) {
    .hero-b { height: var(--hero-h-sp, var(--hero-h, 100svh)); }
}

.hero-b__slides {
    position: absolute;
    inset: 0;
}

.hero-b__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-b__slide.is-active {
    opacity: 1;
}

.hero-b__slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-b__slide-bg--placeholder {
    background: radial-gradient(ellipse 65% 65% at 50% 50%, rgba(180,70,10,.45), #0e0906);
}

.hero-b__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(8,5,2,.55);
}

.hero-b__inner {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 32px;
}

.hero-b__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-b__rule {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(200,120,14,.6));
}

.hero-b__rule--bottom {
    background: linear-gradient(to bottom, rgba(200,120,14,.6), transparent);
}

.hero-b__en {
    letter-spacing: .46em;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}


.hero-b__title {
    font-size: clamp(64px, 11vw, 120px);
    font-weight: 900;
    line-height: .9;
    background: linear-gradient(135deg, #fff 20%, #ffd580 55%, #e8720a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-b__catch {
    font-size: clamp(13px, 1.6vw, 17px);
    letter-spacing: .28em;
    color: rgba(232,223,200,1);
    line-height: 1.9;
}

.hero-b__cta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-b__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
    padding: 14px 32px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    transition: all .25s;
    white-space: nowrap;
    text-decoration: unset;
}

.hero-b__btn--primary {
    background: var(--ark-color--main);
    color: #fff;
}

.hero-b__btn--primary:hover {
    background: #a82c08;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,57,14,.4);
}

.hero-b__btn--outline {
    border: 1.5px solid rgba(232,223,200,.3);
    color: var(--hero-cream);
}

.hero-b__btn--outline:hover {
    border-color: var(--hero-gold);
    color: var(--hero-gold);
}

.hero-b__indicators {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-b__dot {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,.25);
    border: none;
    cursor: pointer;
    transition: all .3s;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-b__dot.is-active {
    background: rgba(255,255,255,.2);
}

.hero-b__dot.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--ark-color--main);
    animation: heroDotFill var(--hero-interval, 4000ms) linear forwards;
}

@media (max-width: 768px) {
.hero-b__rule {
    display: none;
}
.hero-b__indicators{
    bottom: 20px;
}
.hero-b__text{
    gap:10px;
}
}



/* ==========================================================================
   案C：左写真 / 右テキスト（縦分割）
   ========================================================================== */

.hero-c {
    display: grid;
    grid-template-columns: 55% 45%;
    overflow: hidden;
    position: relative;
    height: var(--hero-h, 100svh);
    min-height: 400px;
}
@media (max-width: 768px) {
    .hero-c { height: var(--hero-h-sp, var(--hero-h, 100svh)); }
}

.hero-c__photo {
    position: relative;
    overflow: hidden;
    background: #0e0906;
}

.hero-c__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 70%, var(--hero-dark2) 100%);
    z-index: 2;
    pointer-events: none;
}

/* スライド */
.hero-c__slides {
    position: absolute;
    inset: 0;
}

.hero-c__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-c__slide.is-active {
    opacity: 1;
}

.hero-c__slide--placeholder {
    background: radial-gradient(ellipse 70% 60% at 45% 55%, rgba(170,65,8,.45), transparent 65%), #0e0906;
    opacity: 1;
}

/* ケン・バーンズ効果 */
.hero-c__slide--kb {
    animation: heroCKenBurns 12s ease infinite alternate;
}

@keyframes heroCKenBurns {
    from { transform: scale(1)    translate(0, 0); }
    to   { transform: scale(1.06) translate(-2%, 1%); }
}

/* テキスト */
.hero-c__body {
    background: var(--hero-dark2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 64px;
    position: relative;
    overflow: hidden;
    gap: 24px;
}

.hero-c__body::before {
    content: '湯氣';
    position: absolute;
    right: -30px;
    bottom: -40px;
    font-size: 260px;
    font-weight: 900;
    color: rgba(255,255,255,.022);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hero-c__accent {
    width: 32px;
    height: 3px;
    background: var(--ark-color--main);
}

.hero-c__en {
    font-size: 9px;
    letter-spacing: .42em;
    color: var(--ark-color--main);
    font-weight: 700;
}

.hero-c__title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.55;
    color: var(--hero-cream);
}

.hero-c__title em {
    font-style: normal;
    color: var(--hero-gold);
    display: block;
}

.hero-c__catch {
    font-size: 13px;
    line-height: 2.1;
    color: rgba(232,223,200,.55);
    letter-spacing: .08em;
    max-width: 320px;
}

.hero-c__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    align-items: stretch;
}

.hero-c__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    transition: all .25s;
    white-space: nowrap;
    width: fit-content;
}

.hero-c__btn--primary {
    background: var(--ark-color--main);
    color: #fff;
}

.hero-c__btn--primary:hover {
    background: #a82c08;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(200,57,14,.35);
}

.hero-c__btn--outline {
    border: 1.5px solid rgba(232,223,200,.25);
    color: var(--hero-cream);
}

.hero-c__btn--outline:hover {
    border-color: var(--hero-gold);
    color: var(--hero-gold);
    transform: translateX(4px);
}

.hero-c__indicators {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.hero-c__dot {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,.2);
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: background .3s;
}

.hero-c__dot.is-active {
    background: rgba(255,255,255,.15);
}

.hero-c__dot.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--hero-gold);
    animation: heroDotFill var(--hero-interval, 4000ms) linear forwards;
}


/* ==========================================================================
   案D：コラージュグリッド（6枚）
   ========================================================================== */

.hero-d {
    position: relative;
    overflow: hidden;
    background: var(--hero-dark);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    height: var(--hero-h, 100svh);
    min-height: 400px;
}
@media (max-width: 768px) {
    .hero-d { height: var(--hero-h-sp, var(--hero-h, 100svh)); }
}

.hero-d__cell {
    position: relative;
    overflow: hidden;
    background: var(--hero-dark2);
}

.hero-d__cell-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}

.hero-d__cell:hover .hero-d__cell-bg {
    transform: scale(1.05);
}

/* プレースホルダー背景 */
.hero-d__cell:nth-child(1) .hero-d__cell-bg:not([style]) { background: radial-gradient(ellipse at 45% 50%, rgba(180,70,10,.5), #0e0906); }
.hero-d__cell:nth-child(2) .hero-d__cell-bg:not([style]) { background: radial-gradient(ellipse at 55% 45%, rgba(130,50,5,.5), #0a0704); }
.hero-d__cell:nth-child(3) .hero-d__cell-bg:not([style]) { background: radial-gradient(ellipse at 40% 55%, rgba(160,60,8,.45), #0c0805); }
.hero-d__cell:nth-child(4) .hero-d__cell-bg:not([style]) { background: radial-gradient(ellipse at 50% 40%, rgba(100,40,5,.5), #080504); }
.hero-d__cell:nth-child(5) .hero-d__cell-bg:not([style]) { background: radial-gradient(ellipse at 45% 55%, rgba(140,55,8,.5), #0b0705); }
.hero-d__cell:nth-child(6) .hero-d__cell-bg:not([style]) { background: radial-gradient(ellipse at 50% 45%, rgba(170,65,10,.45), #0d0906); }

.hero-d__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background:
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(8,5,2,.72), transparent 70%),
        linear-gradient(to top, rgba(8,5,2,.7) 0%, transparent 50%);
}

.hero-d__text {
    position: absolute;
    z-index: 20;
    bottom: 56px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-d__en {
    font-size: 9px;
    letter-spacing: .44em;
    color: var(--ark-color--main);
    font-weight: 700;
}

.hero-d__title {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 900;
    line-height: .9;
    background: linear-gradient(135deg, #fff 20%, #ffd580 55%, #e8720a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-d__catch {
    font-size: clamp(12px, 1.4vw, 15px);
    letter-spacing: .24em;
    color: rgba(232,223,200,.6);
}

.hero-d__cta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-d__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
    padding: 13px 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    transition: all .25s;
    white-space: nowrap;
}

.hero-d__btn--primary {
    background: var(--ark-color--main);
    color: #fff;
}

.hero-d__btn--primary:hover {
    background: #a82c08;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,57,14,.4);
}

.hero-d__btn--outline {
    border: 1.5px solid rgba(232,223,200,.28);
    color: var(--hero-cream);
}

.hero-d__btn--outline:hover {
    border-color: var(--hero-gold);
    color: var(--hero-gold);
}


/* ==========================================================================
   SP (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* 案A */
    .hero-a__inner {
        padding: 0 24px 56px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-a__cta {
        flex-direction: row;
        align-items: flex-start;
    }

    .hero-a__indicators {
        right: 24px;
    }

    /* 案B */
    .hero-b__catch {
        letter-spacing: .14em;
    }

    /* 案C */
    .hero-c {
        grid-template-columns: 1fr;
        grid-template-rows: 45% 55%;
    }

    .hero-c__photo::after {
        background: linear-gradient(to bottom, transparent 70%, var(--hero-dark2) 100%);
    }

    .hero-c__body {
        padding: 40px 28px;
        gap: 16px;
    }

    .hero-c__body::before {
        font-size: 160px;
    }

    .hero-c__catch {
        max-width: 100%;
    }

    .hero-c__btn {
        padding: 13px 24px;
    }

    /* 案D */
    .hero-d {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    .hero-d__text {
        bottom: 40px;
    }

    .hero-d__cta {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   タイトル画像（ロゴ）共通
   ========================================================================== */

.hero-a__title-img,
.hero-b__title-img,
.hero-c__title-img,
.hero-d__title-img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff) drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
}



/* 案A・B・D：グラデーションタイトルと同じ最大幅に合わせる */
.hero-a__title-img { height: clamp(100px, 14vw, 150px); width: auto; }
.hero-b__title-img { height: clamp(50px, 40vw, 550px); width: auto; }
.hero-d__title-img { height: clamp(48px, 8vw, 88px); width: auto; }

/* 案C：テキストタイトルと同等の幅 */
.hero-c__title-img { height: clamp(40px, 4vw, 60px); width: auto; }

/* ロゴ画像フェードイン */
@keyframes heroLogoFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-a__title-img,
.hero-b__title-img,
.hero-c__title-img,
.hero-d__title-img {
    animation: heroLogoFadeIn .9s ease .3s both;
}
