/* =========================================================
   Base
========================================================= */

:root {
    --color-green: #0f4c3d;
    --color-green-dark: #153f35;
    --color-gold: #c6a34e;
    --color-cream: #f4f0e5;
    --color-text: #222;
    --color-white: #fff;

    --content-width: 1200px;

    --font-serif: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
    --font-sans: Arial, "Helvetica Neue", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-cream);
    font-family: var(--font-sans);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =========================================================
   Header
========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 8px 20px;
}

.site-header__logo {
    width: 150px;
}

.site-header__logo img {
    width: 100%;
    height: auto;
}

.site-header__controls {
    display: flex;
    align-items: center;
    gap: 18px;
}


/* Language */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.language-switcher a {
    opacity: 0.45;
}

.language-switcher a.is-current {
    opacity: 1;
}

.language-switcher a + a::before {
    content: "/";
    margin-right: 7px;
    opacity: 0.35;
}


/* Hamburger */

.menu-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 32px;
    height: 32px;

    padding: 0;
    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;

    margin-left: auto;

    background: #222;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   Navigation
========================================================= */

.global-navigation {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    padding: 30px 20px;

    background: #fff;
}

.global-navigation.is-open {
    display: block;
}

.global-navigation__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.global-navigation__list li {
    border-bottom: 1px solid #ddd;
}

.global-navigation__list a {
    display: block;
    padding: 16px 0;

    font-size: 13px;
    letter-spacing: 0.08em;
}


/* =========================================================
   Hero
========================================================= */

.hero {
    position: relative;

    min-height: calc(100svh - 72px);

    overflow: hidden;

    color: #fff;

    background: #28342f;
}


/* Background image */

.hero__background {
    position: absolute;
    inset: 0;
}

.hero__background-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
     * SPでは人物を右側に残したいので
     * 少し右寄せ
     */
    object-position: 56% center;
}


/* Overlay */

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 25, 20, 0.56) 0%,
            rgba(10, 25, 20, 0.25) 48%,
            rgba(10, 25, 20, 0.04) 100%
        );
}


/* Shippo */

.hero__shippou {
    position: absolute;

    top: 28px;
    right: -65px;

    width: 210px;

    opacity: 0.22;

    pointer-events: none;

    animation: hero-shippo-float 10s ease-in-out infinite;
}

@keyframes hero-shippo-float {
    0%, 100% {
        filter: blur(3px);
        opacity: 0.12;
    }

    50% {
        filter: blur(0);
        opacity: 0.3;
    }
}

.hero-welcome {
    position: relative;
    isolation: isolate;
}

.hero-welcome > .hero__shippou {
    position: absolute;
    top: 620px; /* SPのhero下端。今の高さに合わせる */
    bottom: auto;
    left: -25px;
    right: auto;
    width: 160px;
    transform: translateY(-50%);
    z-index: 99;
    pointer-events: none;
}

/* Content */

.hero__inner {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    min-height: calc(100svh - 72px);

    padding:
        clamp(52px, 8vh, 90px)
        24px
        120px;
}


/* Location */

.hero__location {
    margin: 0 0 20px;

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.24em;
}


/* Main copy */

.hero__title {
    margin: 0;

    font-family: var(--font-serif);

    font-size: clamp(43px, 12vw, 64px);
    line-height: 0.89;

    font-weight: 400;

    letter-spacing: -0.025em;
}


/* Lead */

.hero__lead {
    max-width: 360px;

    margin:
        clamp(30px, 5vh, 50px)
        0
        0;

    font-size: 12px;
    line-height: 1.75;

    letter-spacing: 0.2em;
}


/* Buttons */

.hero__actions {
    display: grid;
    gap: 11px;

    width: 100%;

    max-width: 390px;

    margin-top: auto;
    padding-top: 44px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 13px 24px;

    border-radius: 999px;

    font-size: 9px;
    letter-spacing: 0.08em;

    transition:
        opacity 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}



.button--primary {
    background: var(--color-green);
    border: 1px solid var(--color-green);
    color: #fff;
}

.button--outline {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    background: rgba(0, 0, 0, 0.08);
}


/* Scroll */

.hero__scroll {
    position: absolute;
    z-index: 3;

    bottom: 18px;
    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    transform: translateX(-50%);

    font-size: 7px;
    letter-spacing: 0.15em;
}

/* =========================================================
   Temporary sections
========================================================= */




/* =========================================================
   Desktop
========================================================= */

@media (min-width: 768px) {

    .site-header__inner {
        height: 88px;
        padding-inline: 42px;
    }

    .site-header__logo {
        width: 190px;
    }

    .hero {
        min-height: calc(100vh - 88px);
    }

    .hero__inner {
        justify-content: center;

        min-height: calc(100vh - 88px);

        padding:
            70px
            max(7vw, 60px)
            100px;
    }

    .hero__background-image {
        object-position: center 43%;
    }

    .hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(13, 30, 24, 0.64) 0%,
                rgba(13, 30, 24, 0.32) 42%,
                rgba(13, 30, 24, 0.02) 72%
            );
    }

    .hero__location {
        font-size: 10px;
    }

    .hero__title {
        max-width: 650px;

        font-size: clamp(64px, 6vw, 104px);
    }

    .hero__lead {
        max-width: 460px;

        font-size: 14px;
    }

    .hero__actions {
        grid-template-columns: repeat(2, minmax(180px, 240px));

        max-width: none;

        margin-top: 42px;
        padding-top: 0;
    }

    /* PC: place the ornament across the Hero / Welcome boundary. */
    .hero-welcome > .hero__shippou {
        top: calc(100vh - 88px);
        bottom: auto;
        left: auto;
        right: 4vw;
        width: clamp(300px, 23vw, 600px);
        transform: translateY(-50%);
		opacity:0.1
    }
    .hero-welcome {
        --hero-height: clamp(620px, 75vh, 760px);
    }

    .hero,
    .hero__inner {
        min-height: var(--hero-height);
    }

    /* 七宝も新しいHEROの下端に合わせる */
    .hero-welcome > .hero__shippou {
        top: var(--hero-height);
    }
}


/* LP sections — column counts follow the supplied SP composition. */
:root { --color-green: #183f36; --color-green-dark: #183f36; --color-gold: #bd9c48; --color-cream: #f7f3e7; --color-text: #858585; }
.section-pad { padding: 80px 15px 90px; }
.section-inner,.welcome-section__inner { width:min(100%, 1100px); margin-inline:auto; }
.section-eyebrow { margin:0 0 18px; color:var(--color-gold); font-size:12px; font-weight:600; letter-spacing:.025em; }
.section-title,.welcome-section__title { margin:0; color:var(--color-green); font:400 34px/.94 var(--font-serif); letter-spacing:.005em; }
.section-copy { margin:34px 0 0; font-size:14px; line-height:1.5; letter-spacing:.025em; }
.section-copy p { margin:0 0 12px; }
.section-button { margin:42px 15px 0; }
.button { font-size:12px; min-height:54px; }
.welcome-section { padding:55px 15px 40px; }
.welcome-guide { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:36px; }
.welcome-card { display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:94px; padding:60px 2px 8px; border:1px solid #e3d9bb; border-radius:9px; background:white; text-align:center; }
.welcome-card--01 { background: url("../images/welcome_01.jpg"); background-position:center; background-size:cover;}
.welcome-card--02 { background: url("../images/welcome_02.jpg"); background-position:center; background-size:cover;}
.welcome-card--03 { background: url("../images/welcome_03.jpg"); background-position:center; background-size:cover;}
.welcome-card__title { margin:0 0 5px; font-size:10px; font-weight:400; color:var(--color-white); }
.welcome-card__text { margin:0 0 12px; font-size:8px; color:var(--color-white); }
.round-arrow { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; flex-shrink:0; border-radius:50%; background:#ded0a8; color:white;  }
.souvenirs-section,.story-section { background:white; }
.souvenirs-section { padding-top:64px; padding-bottom:88px; }
.souvenir-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:34px; }
.souvenir-card__image { position:relative; }
.souvenir-card img { width:100%; border-radius:14px; }
.souvenir-card .round-arrow { position:absolute; bottom:9px; left:calc(50% - 7px); background:white; color:var(--color-green); }
.souvenir-card h3 { margin:8px 0 0; text-align:center; color:var(--color-green); font-size:11px; line-height:1.3; }
.selection-section { position:relative; background:var(--color-green); color:white; padding-top:108px; padding-bottom:96px; }
.selection-section::before,.story-section::before { content:''; position:absolute; width:150px; height:150px; background:url('../images/shippou_on_fv01.svg') center/contain no-repeat; pointer-events:none; }
.selection-section::before { right:0; top:-40px; opacity:.17; }
.selection-section .section-title,.visit-section .section-title { color:white; }
.selection-section .section-copy { margin-top:38px; }
.selection-list { list-style:none; counter-reset:selection; padding:0 0 0 16px; margin:40px 0 0; }
.selection-list li { counter-increment:selection; display:flex; align-items:center; gap:28px; font-size:14px; margin-top:24px; }
.selection-list li::before { content:counter(selection,decimal-leading-zero); color:var(--color-gold); font-size:12px; font-weight:bold; }
.selection-list li > span { flex:1; padding-bottom:9px; border-bottom:1px solid #ffffff38; }
.prayer-section { padding-bottom:100px; }
.facility-list { display:grid; gap:22px; margin-top:44px; }
.facility-card { display:grid; grid-template-columns:100px 1fr 14px; align-items:center; gap:18px; padding:20px 16px; border:1px solid #ddc994; background:white; border-radius:15px; }
.facility-card img { width:100%; aspect-ratio:1; object-fit:cover; }
.facility-card h3 { margin:0 0 12px; font-size:16px; letter-spacing:.03em; color:var(--color-green); }
.facility-card p { margin:0; font-size:14px; line-height:1.3; letter-spacing:.02em; }
.story-section { position:relative; padding-top:90px; padding-bottom:108px; }
.story-section::before { width:120px; height:120px; left:15px; top:-60px; opacity:.3; }
.story-image { width:100%; margin-top:44px; background:url('../images/ourstory.jpg') center/contain no-repeat; pointer-events:none; }
.news-section { padding-top:44px; padding-bottom:88px; }
.news-section .section-copy { margin-top:24px; }
.news-list { margin-top:52px; }
.news-item { border-top:1px solid #cfc5ab; padding:28px 0; }
.news-item:last-child { border-bottom:1px solid #cfc5ab; }
.news-meta { display:flex; gap:20px; margin:0 0 16px; font-size:10px; color:#555; text-transform:uppercase; }
.news-meta span:last-child { color:var(--color-gold); letter-spacing:.08em; }
.news-item h3 { margin:0 0 12px; font-size:14px; color:var(--color-green); text-decoration:underline; letter-spacing:.03em; }
.news-excerpt,.news-excerpt p { margin:0; font-size:12px; line-height:1.5; letter-spacing:.025em; }
.all-stories { display:inline-block; margin-top:28px; color:var(--color-green); font-size:12px; font-weight:600; }
.visit-section { padding-top:108px; padding-bottom:76px; color:white; position:relative; isolation:isolate; background:var(--color-green); }
.visit-section .section-eyebrow { color:white; }
.visit-section .section-copy { margin-top:38px; }
.visit-details { margin:58px 0 36px; font-size:14px; line-height:1.5; }
.visit-details dt { font-weight:bold; margin-top:16px; letter-spacing:.02em; }
.visit-details dd { margin:4px 0 0; }
.visit-map { width:232px; margin:34px auto 0; }
.visit-section .section-button { margin-top:34px; }
.site-footer { text-align:center; padding:42px 15px 30px; color:var(--color-green); border-bottom:6px solid var(--color-green); }
.instagram-link { display:flex; align-items:center; justify-content:center; gap:12px; min-height:52px; border:1px solid var(--color-green); border-radius:28px; margin:0 auto 32px; max-width:265px; font-size:16px; font-weight:600; }
.instagram-icon { width:23px; height:23px; border:2px solid; border-radius:6px; position:relative; }
.instagram-icon::before { content:''; position:absolute; width:9px; height:9px; border:2px solid; border-radius:50%; left:5px; top:5px; }
.instagram-icon::after { content:''; position:absolute; width:3px; height:3px; border-radius:50%; background:currentColor; right:3px; top:3px; }
.footer-brand { font-size:14px; margin:0; font-weight:600; }
.footer-tagline { margin:4px 0 14px; font-size:12px; }
.footer-navigation { border-top:1px solid #cfc5ab; padding-top:16px; font-size:12px; line-height:1.8; }
.footer-navigation a + a::before { content:' / '; white-space:pre; }
:focus-visible { outline:2px solid var(--color-gold); outline-offset:5px; }
.menu-toggle[aria-expanded='true'] span:first-child { transform:translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity:0; }
.menu-toggle[aria-expanded='true'] span:last-child { transform:translateY(-6px) rotate(-45deg); }
@media(max-width:767px) {
 .site-header__inner { height:72px; padding:10px 15px; }
 .hero,.hero__inner { min-height:0; height:646px; }
 .hero__inner { padding:36px 15px 116px; }
 .hero__location { font-size:10px; margin-bottom:18px; }
 .hero__title { font-size:46px; font-weight:600; }
 .hero__lead { font-size:12px; line-height:1.35; margin-top:72px; }
 .hero__actions { margin-inline:15px; width:calc(100% - 30px); padding-top:34px; gap:12px; }
 .hero__scroll { bottom:12px; }
 .hero__shippou { top:auto; bottom:-35px; left:-25px; right:auto; width:165px; opacity:.2; }
}
@media(min-width:768px) {
 .section-pad,.welcome-section { padding-left:60px; padding-right:60px; }
 .welcome-section { padding-top:80px; padding-bottom:80px; }
 .section-inner,.welcome-section__inner { max-width:760px; }
 .section-title,.welcome-section__title { font-size:50px; }
 .welcome-card { min-height:190px; }
 .welcome-card__title { font-size:14px; }
 .welcome-card__text { font-size:11px; }
 .souvenir-card h3 { font-size:14px; }

 .visit-map { width:601px; max-width:100%; }
 .visit-section .section-inner { padding:30px; background:#183f3699; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }



.story-section::before { background-image:url("../images/ourdyoty_obj.svg"); opacity:1; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    width: 14px;
    height: 14px;
    overflow: hidden;
}
.all-stories { display:inline-flex; align-items:center; gap:6px; }
.all-stories .round-arrow { background:var(--color-green); color:white; }

/* Redline corrections: preserve layout while animating transforms and opacity. */
[id] { scroll-margin-top:24px; }
.welcome-card__number { color:var(--color-white); font:12px/1.2 var(--font-serif); margin-bottom:8px; }
.hero__scroll .hero__scroll-icon { width:28px; height:28px; font-size:28px; }
.visit-section::before {
    content:'';
    position:absolute;
    z-index:-1;
    inset:0 0 auto;
    aspect-ratio:391 / 489;
    background:url('../images/visitus.jpg') center top / cover no-repeat;
    -webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 55%,transparent 100%);
}
.reveal-ready { opacity:0; transform:translateY(10px);  }
.reveal-ready.is-visible { opacity:1; transform:translateY(0); }
@media (hover:hover) and (pointer:fine) and (min-width:768px) {
    .button:hover { opacity:.65; }
    .hero__actions .button--outline:hover { opacity:1; background:rgba(0,0,0,.3); }
    .souvenir-card:hover,.facility-card:hover { animation:card-hop .45s ease-out; }
    .instagram-link { transition:background .35s ease,color .35s ease; }
    .instagram-link:hover { color:white; background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); }
}
@keyframes card-hop { 0%,100% { transform:translateY(0); } 45% { transform:translateY(-4px); } }
@media(prefers-reduced-motion:reduce) {
    .reveal-ready { opacity:1; transform:none; }
}

@media(min-width:768px) { .visit-section::before { height:700px; aspect-ratio:auto; } }

/* =========================================================
   Desktop header navigation (mobile layout remains unchanged)
========================================================= */
@media (min-width: 1024px) {
    .site-header__inner {
        gap: clamp(20px, 2vw, 32px);
        padding-inline: clamp(28px, 3vw, 48px);
    }

    .site-header__logo {
        flex: 0 0 auto;
    }

    .site-header__controls {
        flex: 0 0 auto;
    }

    .site-header .menu-toggle {
        display: none;
    }

    .site-header .global-navigation,
    .site-header .global-navigation.is-open {
        display: block;
        position: static;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        padding: 0;
        background: transparent;
    }

    .global-navigation__list {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 4px clamp(14px, 1.8vw, 28px);
    }

    .global-navigation__list > li {
        position: relative;
        border: 0;
    }

    .global-navigation__list > li > a {
        padding: 10px 0;
        color: var(--color-green-dark);
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: .04em;
        white-space: nowrap;
        text-decoration-color: var(--color-gold);
        text-underline-offset: 7px;
    }

    .global-navigation__list > li > a:hover,
    .global-navigation__list > .current-menu-item > a,
    .global-navigation__list > .current-menu-ancestor > a {
        text-decoration-line: underline;
        text-decoration-thickness: 1px;
    }

    /* Keep any registered child menu accessible by mouse and keyboard. */
    .global-navigation__list .sub-menu {
        display: none;
        position: absolute;
        z-index: 1;
        top: 100%;
        right: 0;
        width: 220px;
        margin: 0;
        padding: 8px 16px;
        list-style: none;
        background: #fff;
        border: 1px solid #e3dcc8;
    }

    .global-navigation__list li:hover > .sub-menu,
    .global-navigation__list li:focus-within > .sub-menu {
        display: block;
    }

    .global-navigation__list .sub-menu li { position: relative; }
    .global-navigation__list .sub-menu a { padding: 12px 0; font-size: 11px; line-height: 1.5; }
    .global-navigation__list .sub-menu li:last-child { border-bottom: 0; }
    .global-navigation__list .sub-menu .sub-menu { top: 0; right: 100%; }
}
