/* samurai.ufirst.jp のトップ。
   色と書体は戦国大名 勢力マップの theme.js に合わせてある。別々に育てると
   ドメインの下で2つの見た目が並ぶことになるので、ここを揃えておく。 */

:root {
    --washi:        #eee5d2;  /* 和紙 */
    --washi-light:  #f7f1e4;
    --sumi:         #392d27;  /* 墨色 */
    --sumi-soft:    #67564a;
    --bengara:      #8c3b2f;  /* 弁柄 */
    --kincha:       #a57a2a;  /* 金茶 */

    --serif:  "Noto Serif JP", serif;
    --mincho: "Shippori Mincho", "Noto Serif JP", serif;

    --page:   1080px;
    --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.85;
    color: var(--sumi);
    background: var(--washi);
    -webkit-font-smoothing: antialiased;
}

/* 和紙の地。
   勢力マップが地図の下に敷いているのと同じ紙を使う。同じドメインに並ぶ以上、
   紙が違うと別のサイトに見える。あちらは寒色寄りの紙なので、温かい地色に
   乗算で重ねて色を寄せている。
   繊維のむらは1枚の写真なので、大きな画面では継ぎ目が並んで見える。
   縮尺の違う2枚を重ね、四隅の陰を足して、模様の周期を目立たなくする。 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 252, 245, 0.55), transparent 60%),
        linear-gradient(180deg, var(--washi-light), var(--washi) 45%, #e7dcc5 100%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url("/assets/images/washi.jpg"), url("/assets/images/washi.jpg");
    background-size: 520px 520px, 190px 190px;
    background-position: 0 0, 60px 40px;
    mix-blend-mode: multiply;
    opacity: 0.5;
    pointer-events: none;
}

/* 七宝つなぎ。円が四方に連なって途切れない文様で、吉祥の柄として
   襖にも風呂敷にもある。読ませる面の下に敷くので、輪郭が意識に上がらない
   濃さまで落として使う。青海波は波、麻の葉は魔除け。ここは「つながり」を選ぶ。 */
:root {
    --shippou: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'><g fill='none' stroke='%238a6a3a' stroke-width='1'><circle cx='0' cy='0' r='28'/><circle cx='56' cy='0' r='28'/><circle cx='0' cy='56' r='28'/><circle cx='56' cy='56' r='28'/><circle cx='28' cy='28' r='28'/></g></svg>");
    /* 青海波。末広がりに重なる波で、穏やかな暮らしが続くことを表す。 */
    --seigaiha: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='20' viewBox='0 0 60 20'><g fill='none' stroke='%238a6a3a' stroke-width='1'><path d='M0 20a30 30 0 0160 0'/><path d='M0 20a22 22 0 0160 0'/><path d='M0 20a14 14 0 0160 0'/><path d='M0 20a6 6 0 0160 0'/><path d='M-30 20a30 30 0 0160 0'/><path d='M30 20a30 30 0 0160 0'/></g></svg>");
}

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

a { color: inherit; }

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 12px; top: 12px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--washi-light);
    color: var(--sumi);
    border-radius: 2px;
}

/* ============================================================
   ヒーロー
   勢力が塗り変わっていく動画そのものが、このサイトの説明になる。
   ============================================================ */

.hero {
    position: relative;
    min-height: 92svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: #2b211c;
    isolation: isolate;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 列島は画面の中ほどに寄せたい。cover の切り取りは既定だと中央基準で、
       上下の余白が均等に落ちて列島が下がって見える。少し上を残す。 */
    object-position: center 42%;
    z-index: -2;
}

/* 動画の上に文字を置くので暗く落とすが、地図が見えなくなっては本末転倒。
   全面を一様に暗くするのではなく、見出しの掛かるあたりだけを濃くして、
   周りの地図は色が分かる明るさで残す。下辺は本文へ向けて和紙の色に溶かす。 */
.hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 68% 52% at 50% 40%, rgba(24, 18, 14, 0.62), transparent 72%),
        linear-gradient(180deg, rgba(30, 23, 19, 0.52) 0%, rgba(30, 23, 19, 0.26) 42%, rgba(30, 23, 19, 0.48) 76%, rgba(238, 229, 210, 0.96) 100%);
}

.hero__inner {
    width: min(100% - 48px, var(--page));
    margin: 0 auto;
    padding: 64px 0 40px;
    color: #f6efe2;
    text-align: center;
}

.hero__wordmark {
    margin: 0 0 28px;
    font-family: var(--mincho);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    color: rgba(246, 239, 226, 0.82);
}

/* 金茶の罫を見出しの上下に。勢力マップの側パネルと同じ作法。 */
.hero__title {
    position: relative;
    margin: 0;
    padding: 26px 0;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: clamp(1.9rem, 5.4vw, 3.4rem);
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 18px rgba(20, 14, 10, 0.55);
}

.hero__title::before,
.hero__title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(340px, 62%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kincha) 22%, #d9b063 50%, var(--kincha) 78%, transparent);
}
.hero__title::before { top: 0; }
.hero__title::after  { bottom: 0; }

.hero__lead {
    margin: 26px auto 0;
    max-width: 34em;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 2;
    color: rgba(246, 239, 226, 0.9);
    text-shadow: 0 1px 12px rgba(20, 14, 10, 0.6);
}

.hero__scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 44px;
    padding: 8px 18px;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    color: rgba(246, 239, 226, 0.9);
    transition: color 0.3s var(--ease);
}
.hero__scroll:hover { color: #f0d9a4; }
.hero__scroll svg {
    width: 24px;
    animation: nudge 2.4s var(--ease) infinite;
}

@keyframes nudge {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.75; }
    30%           { transform: translateY(5px); opacity: 1; }
}

/* 敷いてある地図が何年のものか。画像には焼き込まず、ここで重ねている。
   焼き込むと object-fit: cover の切り取りで位置がずれ、言語も1つに固定される。
   見出しとぶつからないよう画面の隅に置き、押せばその年の地図へ入れる。 */
.hero__year {
    position: absolute;
    left: clamp(20px, 4vw, 56px);
    bottom: clamp(30px, 6vh, 64px);
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 0 5px;
    font-family: var(--mincho);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    color: rgba(246, 239, 226, 0.88);
    text-shadow: 0 2px 14px rgba(20, 14, 10, 0.65);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s var(--ease);
}
.hero__year::before {
    content: "";
    grid-column: 1 / -1;
    width: 44px;
    height: 2px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #d9b063, transparent);
    transition: width 0.4s var(--ease);
}
.hero__year:hover,
.hero__year:focus-visible { color: #f3e2bb; }
.hero__year:hover::before { width: 84px; }

.hero__year-num  { font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: 0.03em; }
.hero__year-unit { font-size: clamp(0.9rem, 1.6vw, 1.15rem); letter-spacing: 0.08em; }
.hero__year-name {
    grid-column: 1 / -1;
    margin-top: 10px;
    font-weight: 400;
    font-size: clamp(0.82rem, 1.3vw, 0.95rem);
    letter-spacing: 0.1em;
    color: rgba(246, 239, 226, 0.72);
}

/* 家紋の帯。読ませるものではないので、うっすらと。
   両端に金茶の罫を引いて、ヒーローと本文を分ける一本の線として見せる。 */
.kamon-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(18px, 4vw, 46px);
    width: min(100% - 40px, var(--page));
    margin: clamp(30px, 5vw, 54px) auto 0;
    padding: 0;
    list-style: none;
}
.kamon-band::before,
.kamon-band::after {
    content: "";
    flex: 1 1 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 122, 42, 0.5));
}
.kamon-band::after { background: linear-gradient(90deg, rgba(165, 122, 42, 0.5), transparent); }
.kamon-band img {
    width: 30px;
    height: 30px;
    opacity: 0.3;
}

/* ============================================================
   コンテンツのカード
   ============================================================ */

main {
    width: min(100% - 40px, var(--page));
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) 0 0;
}

.card {
    position: relative;
    margin-bottom: clamp(40px, 6vw, 72px);
    padding: clamp(30px, 4.4vw, 52px) clamp(22px, 4vw, 52px);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 251, 242, 0.9), transparent 42%),
        linear-gradient(180deg, rgba(250, 244, 232, 0.96), rgba(240, 231, 212, 0.96));
    border: 1px solid rgba(116, 83, 44, 0.16);
    border-radius: 3px;
    box-shadow: 0 12px 34px rgba(58, 39, 21, 0.09);
    overflow: hidden;
}

/* 上辺の金茶。カードを掛け軸のように見せる。 */
.card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    z-index: 1;
    background: linear-gradient(90deg, rgba(110, 77, 38, 0.1), var(--kincha) 30%, #d9b063 50%, var(--kincha) 70%, rgba(110, 77, 38, 0.1));
}

/* 七宝つなぎ。全面に敷くと文字が読みにくくなるので、右上から流して
   本文にかかる前に消す。掛け軸の表装で、地の裂が縁にだけ見えるのと同じ扱い。 */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.09;
    pointer-events: none;
    background-image: var(--shippou);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000 0%, transparent 72%);
            mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000 0%, transparent 72%);
}

.card > * { position: relative; z-index: 1; }

.card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(116, 83, 44, 0.16);
}

.card__title {
    margin: 0;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: clamp(1.35rem, 3.2vw, 1.95rem);
    letter-spacing: 0.04em;
    line-height: 1.4;
}
.card__title a {
    text-decoration: none;
    background-image: linear-gradient(var(--kincha), var(--kincha));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1.5px;
    transition: background-size 0.4s var(--ease);
}
.card__title a:hover { background-size: 100% 1.5px; }

.card__range {
    margin: 0;
    font-family: var(--mincho);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--kincha);
}

.card__lead {
    margin: 22px 0 0;
    max-width: 46em;
    color: var(--sumi-soft);
}

.card__label {
    margin: 34px 0 14px;
    font-family: var(--mincho);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    color: var(--sumi-soft);
}
.card__label::after {
    content: "";
    display: inline-block;
    width: 34px;
    height: 1px;
    margin-left: 12px;
    vertical-align: middle;
    background: rgba(116, 83, 44, 0.34);
}

/* ---- 節目の年 ---- */

.years, .castles {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* どちらも6つ。auto-fit に任せると画面幅によって4+2に割れ、右下に穴が空いて
   据わりが悪くなる。3列2行で固定する。 */
.years   { grid-template-columns: repeat(3, 1fr); }
.castles { grid-template-columns: repeat(3, 1fr); }

.years a, .castles a {
    display: block;
    height: 100%;
    padding: 16px 18px;
    text-decoration: none;
    background: rgba(255, 252, 245, 0.66);
    border: 1px solid rgba(116, 83, 44, 0.16);
    border-radius: 2px;
    transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
                border-color 0.32s var(--ease), background-color 0.32s var(--ease);
}
.years a:hover, .castles a:hover,
.years a:focus-visible, .castles a:focus-visible {
    transform: translateY(-3px);
    background: #fffdf7;
    border-color: rgba(165, 122, 42, 0.55);
    box-shadow: 0 10px 22px rgba(58, 39, 21, 0.13);
}

.years__num {
    display: block;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 1.86rem;
    line-height: 1.15;
    letter-spacing: 0.04em;
    color: var(--bengara);
}
.years__name {
    display: block;
    margin-top: 4px;
    font-size: 0.98rem;
    line-height: 1.5;
}
.years__note {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--sumi-soft);
}

/* ---- 名だたる城 ---- */

.castles__name {
    display: block;
    font-family: var(--mincho);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.4;
}
.castles__pref {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--sumi-soft);
}

/* ---- ボタン ---- */

.cta {
    display: inline-block;
    margin-top: 30px;
    padding: 13px 34px;
    font-family: var(--mincho);
    font-size: 0.98rem;
    letter-spacing: 0.14em;
    text-decoration: none;
    color: var(--washi-light);
    background: linear-gradient(180deg, #9a4436, var(--bengara));
    border: 1px solid rgba(58, 26, 20, 0.34);
    border-radius: 2px;
    box-shadow: 0 6px 16px rgba(88, 40, 30, 0.24);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s var(--ease);
}
.cta:hover, .cta:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 22px rgba(88, 40, 30, 0.3);
}

/* ============================================================
   このサイトについて
   ============================================================ */

.about {
    max-width: 42em;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px);
    text-align: left;
}
.about__title {
    margin: 0 0 20px;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    text-align: center;
}
.about__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--kincha), transparent);
}
.about p { margin: 0 0 18px; color: var(--sumi-soft); }
.about__more {
    margin-top: 30px;
    text-align: center;
    font-family: var(--mincho);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
}
.about__more a {
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(165, 122, 42, 0.5);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.about__more a:hover { color: var(--bengara); border-bottom-color: var(--bengara); }

/* ============================================================
   下層ページ（データの出所）
   ヒーローは置かない。読ませるためのページなので、名乗りと見出しだけ。
   ============================================================ */

.page-head {
    width: min(100% - 40px, var(--page));
    margin: 0 auto;
    padding: clamp(38px, 7vw, 76px) 0 clamp(22px, 3vw, 34px);
    text-align: center;
}
.page-head__wordmark {
    margin: 0 0 26px;
    font-family: var(--mincho);
    font-size: 0.78rem;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    color: var(--sumi-soft);
}
.page-head__wordmark a { text-decoration: none; }
.page-head__wordmark a:hover { color: var(--bengara); }
.page-head__title {
    position: relative;
    margin: 0;
    padding: 22px 0;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    letter-spacing: 0.08em;
    line-height: 1.35;
}
.page-head__title::before,
.page-head__title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(300px, 56%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kincha) 24%, #d9b063 50%, var(--kincha) 76%, transparent);
}
.page-head__title::before { top: 0; }
.page-head__title::after  { bottom: 0; }

.sources {
    width: min(100% - 40px, 760px);
    margin: 0 auto;
    padding: 0 0 clamp(40px, 6vw, 76px);
}
.sources__lead {
    margin: 0 0 clamp(34px, 5vw, 56px);
    color: var(--sumi-soft);
}

.sources__group { margin-bottom: clamp(30px, 4.5vw, 50px); }
.sources__group-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: 0.14em;
}
.sources__group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(165, 122, 42, 0.45), transparent);
}

.sources__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.source {
    padding: 18px 20px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 251, 242, 0.85), transparent 46%),
        linear-gradient(180deg, rgba(250, 244, 232, 0.92), rgba(241, 233, 215, 0.92));
    border: 1px solid rgba(116, 83, 44, 0.16);
    border-left: 3px solid rgba(165, 122, 42, 0.55);
    border-radius: 2px;
}
.source__name {
    margin: 0;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.5;
}
.source__name a {
    text-decoration: none;
    background-image: linear-gradient(var(--kincha), var(--kincha));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1.5px;
    transition: background-size 0.4s var(--ease);
}
.source__name a:hover { background-size: 100% 1.5px; }

.source__tag {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 9px;
    vertical-align: 2px;
    font-family: var(--serif);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--bengara);
    border: 1px solid rgba(140, 59, 47, 0.35);
    border-radius: 2px;
}

.source__use {
    margin: 8px 0 0;
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--sumi-soft);
}

/* 提供元が表示を求めている文言。訳さずそのまま出すので、地の文と見分けが
   付くように囲う。 */
.source__credit {
    margin: 14px 0 0;
    padding: 11px 14px;
    background: rgba(255, 252, 245, 0.66);
    border: 1px dashed rgba(116, 83, 44, 0.3);
    border-radius: 2px;
}
.source__credit-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: rgba(103, 86, 74, 0.85);
}
.source__credit cite {
    font-style: normal;
    font-size: 0.86rem;
    line-height: 1.75;
}

.sources__thanks {
    margin: clamp(30px, 5vw, 52px) 0 0;
    padding: 22px 24px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--sumi-soft);
    border-top: 1px solid rgba(116, 83, 44, 0.18);
    border-bottom: 1px solid rgba(116, 83, 44, 0.18);
}

.sources__back {
    margin: 34px 0 0;
    text-align: center;
    font-family: var(--mincho);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
}
.sources__back a {
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(165, 122, 42, 0.5);
}
.sources__back a:hover { color: var(--bengara); border-bottom-color: var(--bengara); }

/* ============================================================
   フッター
   ============================================================ */

.footer {
    position: relative;
    padding: 32px 24px 44px;
    text-align: center;
    border-top: 1px solid rgba(116, 83, 44, 0.18);
    background: rgba(240, 231, 212, 0.6);
}

/* 足元に青海波を一段だけ。全面に敷くと柄が主役になるので、
   紙の裾に波が寄せている、くらいの見え方で止める。 */
.footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 60px;
    background-image: var(--seigaiha);
    background-size: 60px 20px;
    opacity: 0.12;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
            mask-image: linear-gradient(180deg, #000, transparent);
    pointer-events: none;
}
.footer__langs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 26px;
    font-size: 0.88rem;
}
.footer__langs a {
    text-decoration: none;
    color: var(--sumi-soft);
    border-bottom: 1px solid transparent;
    transition: color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.footer__langs a:hover { color: var(--bengara); border-bottom-color: var(--kincha); }
.footer__langs .is-current {
    color: var(--sumi);
    border-bottom: 1px solid var(--kincha);
}
.footer__mark {
    margin: 22px 0 0;
    font-family: var(--mincho);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: rgba(103, 86, 74, 0.78);
}

/* ============================================================
   スクロールで現れる
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* 動きを減らす設定なら、動画も含めて止める。 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__scroll svg { animation: none; }
    .years a:hover, .castles a:hover, .cta:hover { transform: none; }
}

@media (max-width: 600px) {
    .hero { min-height: 86svh; }
    .hero__inner { padding: 48px 0 28px; }
    .kamon-band { gap: 14px; }
    .kamon-band img { width: 22px; height: 22px; }
    /* 8つ並べると端まで詰まって、両端の罫が潰れる。狭い画面では6つに減らす。 */
    .kamon-band li:nth-child(n + 7) { display: none; }
    .years { grid-template-columns: repeat(2, 1fr); }
    .years a, .castles a { padding: 13px 14px; }
    .years__num { font-size: 1.5rem; }
    .cta { display: block; text-align: center; }
}
