@charset "utf-8";
html {
    font-size: 15px;
    scroll-behavior: smooth;
}

:root{
    --bg:#fff;
    --paper:#fff;
    --ink:#333;
    --muted:#666;
    --line: 51,51,51;
    --max:1040px;
    --pad:clamp(32px, 4vw, 48px);
    --swiper-navigation-size: 24px;
    --headerH: 72px; /* JSで上書きする */
}
*{ box-sizing:border-box; }
body{
    margin:0;
    color:var(--ink);
    background:var(--bg);
    font-family: ui-serif, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "Noto Serif JP", serif;
    letter-spacing:.02em;
    line-height:1.9;
}
img{ max-width:100%; height:auto; display:block; }
a,
a:-webkit-any-link {
    color: #fff;
    cursor: pointer;
    text-decoration:none;
    transition: all 0.5s;
}
a:hover {
    opacity: .75;
}
.br_sp {
    display: none;
}

/* ===== layout (l-) ===== */
.l-page{
    min-height:100svh;
    overflow-x: hidden;
    overflow-y: visible;
}
.l-header{ position:relative; }
.l-main{ background:var(--paper); }
.l-footer{ background:#393939; color:#fff; }

.l-container{
    width:min(var(--max), calc(100% - var(--pad)*2));
    margin-inline:auto;
}

/* ===== 2x image rules ===== */
.p-img2x{ height:auto; }
.p-img2x--w26{ width:26px; }
.p-img2x--w320{ width:320px; }

/* ===== hero ===== */
.l-hero{
    height: 80svh;
    display: flex;
    align-items: center;
    background:
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.20) 40%, rgba(0,0,0,.65)),
    url("../images/hero.webp") center/cover no-repeat;
}
.l-hero__inner{
    width: 100%;
    padding:28px var(--pad);
    display: flex;
    align-items: center;
    justify-content: center;
}
.p-heroTitle {
    display: flex;
    align-items: flex-start;
    color: #fff;
    transform: translate(10%, 0);
    margin: 0 auto;
}
.p-heroTitle img {
    height: 480px;
    max-width: unset;
    width: auto;
}
.p-heroTitle__sub{
    writing-mode: vertical-rl;
    letter-spacing: .35em;
    margin-top: 16px;
    text-shadow:0 10px 30px rgba(0,0,0,.55);
    font-size: 18px;
    font-weight: normal;
}
.p-heroNav{
    display: flex;
    gap: 6px;
    align-items: flex-start;
    position: absolute;
    top: 20px;
    right: 20px;
}
.p-heroNav__item{
    writing-mode:vertical-rl;
    font-weight: bold;
    letter-spacing: .25em;
    color:#fff;
    opacity:.9;
    padding: 0 2px;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,.18);
}

/* ===== section (semantic) ===== */
.p-section{ 
    padding: 100px 0;
    scroll-margin-top: calc(var(--headerH) + 18px);
}
.p-section--soft{ background:#fbf8f1; }

.p-section__head {
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}
.p-section__mark {
    mix-blend-mode: multiply;
    margin:0 auto 48px;
    height: 72px;
    width: auto;
}
.p-section__title{
    font-size:clamp(22px, 2.2vw, 28px);
    letter-spacing:.35em;
    margin:0 0 20px;
}
.p-section__lead{
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: .1em;
}
.p-section__title--sub {
    display: block;
    font-size: 20px;
}
.p-section__body{ }

/* ===== news ===== */
.p-news {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: #fbf8f1;
    padding: 30px;
}
.p-news__title {
    font-size: 22px;
    font-weight: 600;
}
.p-news__detail {
    font-size: 15px;
    margin: 0;
}
.p-news__detail a {
    color: var(--ink);
    font-weight: 600;
}

/* ===== legend ===== */
.p-legend{
    display:grid;
    grid-template-columns: 360px 1fr;
    gap: clamp(28px, 3vw, 36px);
    align-items: center;
}
.p-legend__figure{
    margin: 0;
}
.p-legend__figure img {
    margin: 0 auto;
}
.p-legend__text{ 
    margin:0 0 14px;
    letter-spacing: .15em;
    line-height: 2.25;
}


/* ===== origin (bg text block) ===== */
.p-origin{
    display: flex;
    justify-content: center;
    overflow:hidden;
    min-height: 380px;
    padding: 100px var(--pad);
    color:#fff;
    background:
    linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.5) 45%, rgba(0,0,0,.5)),
    url("../images/origin-bg.webp") center/cover no-repeat;
}
.p-origin__title{
    font-size: 17px;
    letter-spacing: .12em;
}
.p-origin__text{
    margin:0;
    max-width: 78ch;
    font-size: 16px;
    letter-spacing: .1em;
    line-height: 2.25;
}
.p-origin__text_add {
    display: block;
    font-size: 15px;
    letter-spacing: 0;
    margin: 24px 0 0;
    padding: 24px 0 0;
    position: relative;
}
.p-origin__text_add::before {
    border-top: 1px solid #fff;
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 40px;
}

.p-photoStrip {
    width:min(var(--max), calc(100% - var(--pad)*2));
    margin-inline:auto;
    margin-top: 100px;
}
.p-photoStrip__item {
    margin: 0 0 28px;
}
.p-photoStrip__text {
    letter-spacing: .15em;
    margin: 0 auto;
    width:min(75ch, 100%);
}

/* ===== amulets (update) ===== */
.p-section__amuletLead {
    border: 1px solid #ccc;
    font-weight: 500;
    display: inline-block;
    text-align: left;
    padding: 16px;
    line-height: 1.75;
    margin: 20px 0 0;
}
.p-amuletGrid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 48px;
    margin-top: 40px;
}

/* カードの枠は消して、背景はmedia側に持たせる */
.p-amuletCard{
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* グレー背景（外側） */
.p-amuletCard__media{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 画像を台紙の上に重ねて中央に置く */
.p-amuletCard__media{
    position: relative;
}
.p-amuletCard__media::before{
    position: absolute;
    inset: 0;
}

/* ステッカー画像：トリミングしないで中央に収める */
.p-amuletCard__img{
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
}

/* キャプションは中央寄せ */
.p-amuletCard__caption{
    padding: 4px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .1em;
}

.p-cta{
    margin-top:22px;
    display:flex;
    justify-content:center;
}
.p-cta__btn {
    min-width: 240px;
    padding: 12px 24px;
    background:#111;
    color:#fff;
    letter-spacing:.2em;
    text-align: center;
    line-height: 1.5;
}
.p-cta__btn span {
    display: block;
    font-size: 13px;
    letter-spacing: 0; 
}

/* ===== bike shrine ===== */
.p-feature{
    display:grid;
    grid-template-columns: 400px 1fr;
    gap:clamp(18px, 4vw, 60px);
    align-items: center;
}
.p-feature__media{
    overflow:hidden;
    margin: 0 auto;
}
.p-feature__img{
    width: auto;
    height: 100%;
}
.p-feature__text{
    letter-spacing: 0.075em;
}
.p-feature__text p{
    line-height: 2.25;
}

/* ===== access ===== */
.p-access__list {
    margin-top:18px;
    margin: 40px auto 0;
    padding:0;
    list-style: none;
    width:min(650px, calc(100% - var(--pad)*2));
}
.p-access__item {
    border-bottom: 1px dotted rgba(var(--line), .3);
    padding: 15px 0;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: clamp(12px, 2vw, 24px); 
    letter-spacing:.12em;
}
.p-access__item:last-child {
    border-bottom: none;
}
.p-access__label {
    border: 1px solid rgb(var(--line)); 
    font-size: 14px;
    font-weight: bold;
    padding: 4px 0;
    text-align: center;
    width: 120px;
}

/* ===== footer ===== */
.l-footer__inner { 
    padding: 48px 0 24px; 
}
.p-footerLogo {
    text-align: center;
}
.p-footerLogo__sub {
    font-size: 12px;
    letter-spacing: .1em;
}
.p-footerLogo__img {
    margin: 8px auto 12px;
    height: auto;
    width: 300px;
}
.p-footerAddress {
    font-size: 13px;
    letter-spacing: .1em;
    margin: 0 0 40px;
    text-align: center;
}
.p-footerNav{
    display:flex;
    justify-content:center;
    gap: 28px;
    flex-wrap:wrap;
    font-size: 14px;
    font-weight: bold;
    letter-spacing:.12em;
}
.p-footerBrand{
    margin-top: 40px;
    text-align:center;
    font-size: 12px;
    color:rgba(255,255,255,.7);
    letter-spacing:.14em;
}


/* ===== fixed header ===== */
.l-siteHeader{
position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    /* ← 常に表示させる（消さない） */
    transform: none;
    opacity: 1;
    pointer-events: auto;

    /* トップでは“背景なし”で溶け込ませる */
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;

    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.l-siteHeader.is-visible{
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(6px);
}

/* トップ（is-visible じゃないとき）は、ロゴとPCナビだけ消す */
.l-siteHeader:not(.is-visible) .p-headerLogo,
.l-siteHeader:not(.is-visible) .p-headerNav{
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.l-siteHeader__inner{
    width: calc(100% - var(--pad)*2);
    margin-inline: auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.p-headerLogo img{
    height: 26px;
    width: auto;
    display: block;
}

/* PC nav */
.p-headerNav{
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--ink);
    font-size: 13px;
    letter-spacing: .18em;
    font-weight: 700;
}
.p-headerNav a{
    color: var(--ink);
}

/* burger */
.p-burger{
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    padding: 0;
    display: none; /* デフォルトは非表示（PC） */
    cursor: pointer;
}
.p-burger span{
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.is-visible .p-burger span {
    background: var(--ink);
}

/* ===== overlay menu (HTML: #overlayMenu = .p-overlay) ===== */
.p-overlay{
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.p-overlay.is-open{
    opacity: 1;
    pointer-events: auto;
}

.p-overlay__panel{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px var(--pad);
}

.p-overlay__close{
    position: absolute;
    top: 12px;
    right: 28px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}

.p-overlayNav{
    width: min(520px, 100%);
    display: grid;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.3);
}

.p-overlayNav a{
    display: block;
    padding: 24px 20px;
    color:#fff;
    font-size: 18px;
    letter-spacing: .18em;
    border-top: 1px solid rgba(255,255,255,.3);
}


/* ===== swiper js ===== */
.swiper-legend,
.swiper-sticker{
    position: relative;
}

.swiper-legend .swiper-button-next,
.swiper-legend .swiper-button-prev {
    color: #fff;
}
.swiper-sticker .swiper-button-next,
.swiper-sticker .swiper-button-prev {
    color: #999;
}

/* ===== responsive ===== */
@media (max-width: 960px){
    .p-legend{ grid-template-columns:1fr; }
    .p-feature{ grid-template-columns:1fr; }
    .p-amuletGrid{ grid-template-columns:1fr; }
    .p-photoStrip{ grid-template-columns:1fr; }
    .p-heroTitle img {
        height: 420px;
    }
    .p-heroTitle__sub {
        font-size: 16px;
    }
    .p-section__title--sub {
        font-size: 18px;
    }
    .p-legend__figure img {
        width: 280px;
    }
    .p-heroNav{ display:none; }
    .p-headerNav{ display:none; }
    .p-burger{ display:block; }
    .l-siteHeader:not(.is-visible) .l-siteHeader__inner{
        justify-content: flex-end; /* トップだけ右寄せ */
    }
    .l-siteHeader.is-visible .l-siteHeader__inner{
        justify-content: space-between; /* スクロール後は通常 */
    }
    .l-siteHeader:not(.is-visible) .p-headerLogo{
        display: none;
    }
    .p-feature__img {
        height: 480px;
    }
    .p-news {
        display: grid;
        gap: 10px;
    }
    .p-news__title {
        font-size: 20px;
    }
    .p-news__detail {
        font-size: 14px;
    }
}

@media (max-width: 768px){
    html {
        font-size: 14px;
    }
    .p-section {
        padding: 60px 0;
    }
    .p-section__head {
        margin-bottom: 28px;
    }
    .p-section__title {
        margin: 0 0 16px;
        line-height: 1.75;
    }
    .p-section__lead {
        font-size: 13px;
    }
    .p-section__mark {
        height: 56px;
        margin: 0 auto 32px;
    }
    .p-heroTitle img {
        height: 380px;
    }
    .p-heroTitle__sub {
        font-size: 14px;
    }
    .p-news__title {
        text-align: center;
    }
    .p-legend__figure img {
        width: 240px;
    }
    .p-photoStrip {
        margin-top: 80px;
    }
    .p-origin__text {
        font-size: 14px;
    }
    .p-cta {
        margin-top: 0;
    }
    .p-feature__img {
        height: 340px;
    }
    .p-access__item{
        grid-template-columns:1fr;
        place-items: center;
        text-align: center;
    }
    .p-access__label {
        font-size: 13px;
    }
    .p-footerLogo__img {
        width: 230px;
    }
}

@media (max-width: 500px){
    .p-heroTitle img {
        height: 320px;
    }
    .p-heroTitle__sub {
        font-size: 13px;
    }
    .br_sp {
        display: block;
    }
}

