@charset "UTF-8";

/* =========================================================
   style.css / サイト共通スタイル

   【よく変更する場所】
   ・サイト全体の色、角丸、最大幅 → 01. 基本設定（:root）
   ・通常のトップヒーロー       → 03. トップページ：ヒーロー
   ・index.html のヒーロー      → 16. index.html 専用調整（ファイル末尾）
   ・スマホのセクション余白     → 16. index.html 専用調整（ファイル末尾）
   ・Guideカードのスマホ1列表示 → 16. index.html 専用調整（ファイル末尾）

   ※ CSSは後に書かれた同等以上の指定が優先されるため、
      index.html 専用の上書き設定は意図的にファイル末尾へ配置しています。
   ========================================================= */

/* =========================================================
   01. 基本設定
   カラー・角丸・影・コンテンツ最大幅など、サイト全体で使う共通変数です。
   ========================================================= */

:root {
  --ink: #1d211c;
  --ink2: #2b3029;
  --paper: #f4f0e7;
  --paper2: #fbfaf6;
  --line: #ded6c8;
  --gold: #ad873f;
  --gold2: #d3b568;
  --red: #8a342d;
  --green: #566a58;
  --muted: #71756d;
  --white: #fff;
  --shadow: 0 16px 40px rgba(25,28,23,.10);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper2);
  font-family: "Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

button, input, textarea {
  font: inherit;
}


/* =========================================================
   02. ヘッダー・ナビゲーション
   ロゴ、PCナビ、スマホのメニューボタンをまとめています。
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(21,22,18,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  max-width: var(--max);
  height: 76px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: max-content;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(211,181,104,.8);
  color: var(--gold2);
  font-family: serif;
  font-weight: 700;
  font-size: 22px;
  transform: rotate(45deg);
}

.brand-mark::first-letter {
  transform: rotate(-45deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-copy strong {
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: 20px;
  letter-spacing: .08em;
}

.brand-copy small {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .18em;
  color: #bdb8ac;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.global-nav a {
  color: #e8e4da;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.global-nav a:hover {
  color: var(--gold2);
}

.global-nav .nav-contact {
  padding: 9px 14px;
  border: 1px solid rgba(211,181,104,.5);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .25s;
}


/* =========================================================
   03. トップページ：ヒーロー
   背景画像・通常の高さ・見出し・ボタンの基本デザインです。index.html は末尾で個別上書きします。
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #222 url("../img/topimg.webp") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  transform: scale(1.06);
  filter: saturate(.8) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,rgba(12,14,11,.88) 0%,rgba(12,14,11,.66) 46%,rgba(12,14,11,.30) 100%),linear-gradient(0deg,rgba(12,14,11,.68),transparent 60%);
}

.hero-inner {
  width: min(var(--max),calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .20em;
  color: var(--gold2);
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

.hero h1, .page-hero h1, .castle-title {
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(42px,7vw,84px);
  line-height: 1.1;
  letter-spacing: .08em;
}

.hero-lead {
  max-width: 700px;
  margin: 0;
  color: #dedbd2;
  font-size: clamp(15px,2vw,18px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #171713 !important;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  background: var(--gold2);
  border-color: var(--gold2);
}

.btn.ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.5);
}

.btn.ghost:hover {
  background: rgba(255,255,255,.10);
}


/* =========================================================
   04. 共通レイアウト・セクション
   コンテンツ幅、各セクション、カード、地域・Guide系の共通レイアウトです。
   ========================================================= */

.container {
  width: min(var(--max),calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 32px 0;
}

.section.alt {
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-kicker {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section h2, .content-card h2 {
  margin: 6px 0 0;
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: clamp(28px,4vw,42px);
  letter-spacing: .05em;
  line-height: 1.35;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: start;
}

.intro-copy p {
  margin: 0 0 1.2em;
  color: #3d423b;
}

.quote-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #e9e4d8;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.quote-card strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Yu Mincho",serif;
  font-size: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 17px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
}

.stat b {
  display: block;
  color: var(--gold2);
  font-size: 26px;
  line-height: 1.2;
}

.stat span {
  font-size: 11px;
  color: #bbb7ad;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.region-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.66);
  box-shadow: 0 8px 24px rgba(25,28,23,.04);
}

.region-card h3 {
  margin: 0 0 16px;
  font-family: "Yu Mincho",serif;
  font-size: 20px;
}

.pref-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pref-links a, .pref-links span {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
}

.pref-links a {
  background: #fff;
  border: 1px solid #d7d0c3;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.pref-links a:hover {
  border-color: var(--gold);
  color: var(--red);
  transform: translateY(-1px);
}

.pref-links span {
  color: #aaa79f;
  border: 1px dashed #d8d4cb;
}

.mini-note {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.utility-card {
  display: block;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: .2s;
  box-shadow: 0 8px 26px rgba(25,28,23,.04);
}

.utility-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.utility-icon {
  font-size: 28px;
}

.utility-card h3 {
  margin: 13px 0 6px;
  font-size: 19px;
}

.utility-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}


/* =========================================================
   05. 下層ページ共通・城郭一覧
   下層ページの見出し、検索欄、城郭カード一覧などです。
   ========================================================= */

.page-hero {
  background: var(--ink);
  color: #fff;
}

.page-hero-inner {
  width: min(var(--max),calc(100% - 48px));
  margin: auto;
  padding: 58px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12px;
  color: #b9b6ad;
}

.breadcrumb a {
  color: var(--gold2);
  text-decoration: none;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px,5vw,58px);
  letter-spacing: .06em;
}

.page-hero p {
  margin: 12px 0 0;
  color: #c9c6bd;
}

.pref-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173,135,63,.13);
}

.search-box::after {
  content: "⌕";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  color: var(--muted);
}

.count-badge {
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}

.castle-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.castle-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(25,28,23,.05);
  transition: .2s;
}

.castle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.castle-thumb {
  display: block;
  aspect-ratio: 16/10;
  background: #d8d4ca;
  overflow: hidden;
}

.castle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.castle-card:hover .castle-thumb img {
  transform: scale(1.035);
}

.castle-card-body {
  padding: 18px;
}

.castle-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-family: "Yu Mincho",serif;
}

.castle-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.castle-meta {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.castle-meta a {
  color: var(--green);
}

.tag {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0ece3;
  color: #5c5a53;
  font-size: 11px;
}

.no-results {
  display: none;
  padding: 48px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}


/* =========================================================
   06. 城郭詳細ページ
   城郭詳細のヒーロー、写真、歴史解説、ギャラリーなどです。
   ========================================================= */

.castle-hero {
  background: linear-gradient(135deg,#161914,#252a22);
  color: #fff;
}

.castle-hero-inner {
  width: min(var(--max),calc(100% - 48px));
  margin: auto;
  padding: 52px 0 44px;
}

.castle-title {
  margin: 4px 0 5px;
  font-size: clamp(38px,6vw,64px);
  line-height: 1.22;
  letter-spacing: .08em;
}

.castle-subtitle {
  margin: 0;
  color: #c6c3b9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: 32px;
  align-items: start;
}

.lead-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e4da;
  box-shadow: var(--shadow);
}

.lead-photo img {
  display: block;
  width: 100%;
  max-height: 550px;
  object-fit: cover;
}

.lead-photo figcaption {
  padding: 12px 16px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.history-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.history-panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "Yu Mincho",serif;
  font-size: 25px;
}

.history-panel h2::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.history-panel p {
  margin: 0;
  white-space: pre-line;
  color: #3b4039;
  font-size: 14px;
}

.gallery-head {
  margin-bottom: 22px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.photo-card a {
  display: block;
  background: #e6e1d7;
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .35s;
}

.photo-card:hover img {
  transform: scale(1.025);
}

.photo-card figcaption {
  padding: 12px 14px;
  color: #64675f;
  font-size: 12px;
  min-height: 47px;
}

.detail-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.plain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.plain-btn:hover {
  border-color: var(--gold);
  color: var(--red);
}


/* =========================================================
   07. 案内・固定ページ
   注意事項、用語、プロフィール旧共通部品などの汎用コンテンツです。
   ========================================================= */

.content-page {
  padding: 52px 0;
}

.content-card {
  padding: clamp(24px,5vw,48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(25,28,23,.05);
}

.content-card>h1 {
  margin-top: 0;
  font-family: "Yu Mincho",serif;
  font-size: clamp(30px,5vw,44px);
}

.notice-list {
  display: grid;
  gap: 16px;
}

.notice-item {
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  background: #f8f5ee;
  border-radius: 0 12px 12px 0;
}

.notice-item strong {
  display: block;
  margin-bottom: 6px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: start;
}

.profile-photo {
  overflow: hidden;
  border-radius: 16px;
  background: #eee;
}

.profile-data {
  display: grid;
  gap: 14px;
}

.profile-block {
  padding: 20px;
  border-radius: 14px;
  background: #f6f2e9;
}

.profile-block h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.profile-block p {
  margin: 0;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.term-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.term-card dt {
  font-weight: 800;
  font-size: 17px;
  color: var(--red);
}

.term-card dd {
  margin: 7px 0 0;
  color: #50544d;
  font-size: 13px;
}

.back-home {
  margin-top: 30px;
  text-align: center;
}


/* =========================================================
   08. フッター・ページトップボタン
   フッターリンク、著作権表示、ページトップボタンです。
   ========================================================= */

.site-footer {
  margin-top: 52px;
  background: #171914;
  color: #bdbbb2;
}

.footer-inner {
  width: min(var(--max),calc(100% - 48px));
  margin: auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.footer-brand {
  color: #fff;
  text-decoration: none;
  font-family: "Yu Mincho",serif;
  font-size: 22px;
  font-weight: 700;
}

.footer-inner p {
  margin: 8px 0 0;
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2,max-content);
  gap: 9px 26px;
}

.footer-links a {
  color: #c9c6bd;
  text-decoration: none;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--gold2);
}

.copyright {
  padding: 15px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 10px;
  letter-spacing: .12em;
  color: #77766f;
}

.page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s;
}

.page-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}


/* =========================================================
   09. お問い合わせフォーム
   入力欄、ラジオボタン、送信・リセットボタンなどです。
   ========================================================= */

.contact-shell {
  max-width: 820px;
  margin: auto;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}

.form-row label, .form-label {
  padding-top: 11px;
  font-weight: 700;
  font-size: 13px;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.form-control:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173,135,63,.13);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 9px;
}

.radio-group label {
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.form-actions input {
  min-width: 140px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.form-actions input[type=submit] {
  background: var(--gold);
  color: #171713;
}

.form-actions input[type=reset] {
  background: #e8e4dc;
  color: #4d4f49;
}

.privacy-note {
  margin-top: 30px;
  padding: 18px;
  border-radius: 12px;
  background: #f6f2e9;
  font-size: 12px;
  color: #595d56;
}


/* =========================================================
   10. 共通レスポンシブ
   960px・680px・420px以下で、共通レイアウトを段階的にスマホ向けへ変更します。
   ========================================================= */

@media (max-width:960px) {
  .global-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: #171914;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .global-nav.open {
    display: flex;
  }

  .global-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .global-nav .nav-contact {
    border: 0;
    border-radius: 0;
  }

  .nav-toggle {
    display: block;
  }

  .castle-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .utility-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-grid {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width:680px) {
  .header-inner {
    height: 68px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .global-nav {
    top: 68px;
  }

  .container, .hero-inner, .page-hero-inner, .castle-hero-inner, .footer-inner {
    width: min(100% - 32px,var(--max));
  }

  .hero {
    min-height: 540px;
    background-position: center;
  }

  .hero-inner {
    padding: 80px 0 58px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .intro-grid, .region-grid, .utility-grid, .castle-grid, .glossary-grid, .profile-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(3,1fr);
  }

  .stat {
    padding: 12px;
  }

  .stat b {
    font-size: 21px;
  }

  .pref-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    max-width: none;
  }

  .castle-card {
    display: grid;
    grid-template-columns: 122px 1fr;
  }

  .castle-thumb {
    aspect-ratio: auto;
    min-height: 136px;
  }

  .castle-card-body {
    padding: 14px;
  }

  .castle-card h2 {
    font-size: 18px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .content-page {
    padding: 34px 0;
  }

  .content-card {
    border-radius: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2,1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-row label, .form-label {
    padding-top: 0;
  }

  .detail-actions {
    flex-direction: column;
  }

  .plain-btn {
    width: 100%;
  }
}

@media (max-width:420px) {
  .hero h1 {
    font-size: 39px;
  }

  .castle-card {
    grid-template-columns: 104px 1fr;
  }

  .castle-thumb {
    min-height: 130px;
  }

  .castle-meta {
    font-size: 11px;
  }

  .stats {
    gap: 7px;
  }

  .stat span {
    font-size: 9px;
  }

  .site-footer {
    margin-top: 40px;
  }
}


/* =========================================================
   11. 城郭詳細：基本情報・関連城郭
   基本情報パネル、地図リンク、関連城郭カードです。
   ========================================================= */

.castle-facts-section {
  padding-top: 42px;
  padding-bottom: 20px;
}

.castle-facts {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(25,28,23,.05);
}

.castle-facts-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  align-items: end;
  margin-bottom: 24px;
}

.castle-facts-head .section-kicker {
  grid-column: 1/-1;
}

.castle-facts-head h2 {
  margin: 0;
  font-size: clamp(25px,3vw,34px);
}

.castle-facts-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.fact-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 15px;
  margin: 0;
  padding: 16px 18px;
  background: #fbfaf6;
}

.fact-item dt {
  font-weight: 800;
  color: #5b4b2c;
}

.fact-item dd {
  margin: 0;
  color: #3e433c;
}

.fact-wide {
  grid-column: 1/-1;
}

.map-link {
  font-weight: 700;
}

.related-castles {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.related-head {
  margin-bottom: 22px;
}

.related-head h2 {
  margin: 5px 0 5px;
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: clamp(25px,3vw,34px);
}

.related-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: .2s;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.related-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e4dfd5;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.related-card:hover .related-thumb img {
  transform: scale(1.035);
}

.related-body {
  padding: 14px;
}

.related-body h3 {
  margin: 0 0 5px;
  font-family: "Yu Mincho",serif;
  font-size: 17px;
}

.related-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.related-body p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
}

.related-body span {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0ece3;
  color: #646057;
  font-size: 10px;
}

.related-castles+.detail-actions {
  margin-top: 30px;
}

@media (max-width:960px) {
  .related-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:680px) {
  .castle-facts-section {
    padding-top: 36px;
  }

  .castle-facts {
    padding: 20px;
  }

  .castle-facts-head {
    grid-template-columns: 1fr;
  }

  .castle-facts-head p {
    margin-top: 5px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .fact-wide {
    grid-column: auto;
  }

  .fact-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-body {
    padding: 12px;
  }

  .related-body h3 {
    font-size: 15px;
  }
}

@media (max-width:420px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-body p em {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #ece6d8;
  color: #6b5834;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
}


/* =========================================================
   12. 合戦・戦乱一覧ページ
   合戦一覧の検索・絞り込み、年代別カード、参考資料エリアです。
   ========================================================= */

.battle-page-hero {
  background: linear-gradient(135deg,#22251f,#3a3328);
}

.battle-intro {
  max-width: 900px;
  margin: 0 auto 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.battle-intro h2 {
  margin: 5px 0 12px;
  font-family: "Yu Mincho",serif;
  font-size: clamp(26px,4vw,38px);
}

.battle-intro p {
  margin: 0 0 10px;
}

.battle-note {
  padding: 13px 15px;
  border-left: 3px solid var(--gold);
  background: #f8f5ee;
  color: var(--muted);
  font-size: 12px;
}

.battle-controls {
  position: relative;
  margin-bottom: 42px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f3eb;
}

.battle-search {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr);
  gap: 14px;
  align-items: center;
}

.battle-search label {
  font-weight: 800;
}

.battle-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.battle-search input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173,135,63,.13);
}

.battle-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.battle-filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.battle-filter small {
  font-size: 9px;
  color: var(--muted);
}

.battle-filter.active {
  border-color: var(--gold);
  background: var(--ink);
  color: #fff;
}

.battle-filter.active small {
  color: #d8d2c5;
}

.battle-result {
  margin-top: 13px;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

.battle-result strong {
  color: var(--red);
  font-size: 20px;
}

.battle-era-section {
  margin: 40px 0;
}

.battle-era-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.battle-era-head .section-kicker {
  grid-column: 1/-1;
}

.battle-era-head h2 {
  margin: 3px 0 0;
  font-family: "Yu Mincho",serif;
  font-size: clamp(27px,4vw,38px);
}

.battle-era-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.battle-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.battle-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25,28,23,.04);
}

.battle-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.battle-year {
  font-family: Georgia,serif;
  color: var(--red);
  font-size: 17px;
  font-weight: 700;
}

.battle-era {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0ece3;
  color: #655e53;
  font-size: 10px;
}

.battle-card h3 {
  margin: 8px 0 14px;
  font-family: "Yu Mincho",serif;
  font-size: 22px;
}

.battle-meta {
  display: grid;
  gap: 7px;
  margin: 0;
}

.battle-meta div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 9px;
}

.battle-meta dt {
  font-size: 11px;
  font-weight: 800;
  color: #6c5a35;
}

.battle-meta dd {
  margin: 0;
  color: #4d524a;
  font-size: 12px;
}

.battle-summary {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: #4d524a;
  font-size: 13px;
}

.battle-related {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.battle-related>span {
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
}

.battle-related div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.battle-related a {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2eee5;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}

.battle-no-results {
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.battle-sources {
  margin-top: 46px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.battle-sources h2 {
  margin: 4px 0 10px;
  font-family: "Yu Mincho",serif;
}

.battle-sources p {
  font-size: 13px;
  color: #50544d;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.source-links a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
}

@media (max-width:960px) {
  .utility-grid {
    grid-template-columns: 1fr 1fr;
  }

  .battle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:680px) {
  .battle-search {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .battle-controls {
    padding: 17px;
  }

  .battle-card {
    padding: 18px;
  }

  .battle-meta div {
    grid-template-columns: 72px 1fr;
  }

  .battle-related {
    grid-template-columns: 1fr;
  }

  .battle-era-head {
    grid-template-columns: 1fr;
  }

  .battle-era-head p {
    margin-top: 4px;
  }

  .source-links {
    flex-direction: column;
  }

  .source-links a {
    text-align: center;
  }
}


/* =========================================================
   13. 合戦詳細ページ
   合戦概要、武将、戦いの流れ、関連史跡・城郭などです。
   ========================================================= */

.battle-detail-hero {
  background: linear-gradient(135deg,#191b17,#372f25);
  color: #fff;
}

.battle-detail-hero .page-hero-inner {
  padding-bottom: 48px;
}

.battle-detail-tag {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 11px;
  border: 1px solid rgba(211,181,104,.45);
  border-radius: 999px;
  color: #e8d8a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.battle-overview {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.battle-overview-item {
  padding: 20px;
  background: #fff;
}

.battle-overview-item span {
  display: block;
  margin-bottom: 6px;
  color: #785f31;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.battle-overview-item strong {
  font-size: 14px;
}

.battle-story {
  max-width: 900px;
  margin: 0 auto;
}

.battle-story h2 {
  margin: 40px 0 16px;
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: clamp(26px,4vw,38px);
  line-height: 1.4;
}

.battle-story h3 {
  margin: 32px 0 12px;
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: 22px;
}

.battle-story p {
  margin: 0 0 1.15em;
  color: #3f443d;
}

.battle-story .lead {
  font-size: 17px;
  line-height: 2;
}

.history-caution {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #f3ede0;
}

.history-caution strong {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
}

.history-caution p {
  margin: 0;
  font-size: 13px;
}

.commander-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.commander-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.commander-card .side {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.commander-card.hojo .side {
  background: #f4e5e1;
  color: #7c2f2a;
}

.commander-card.uesugi .side {
  background: #e4ebef;
  color: #31546a;
}

.commander-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.commander-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.battle-map-figure {
  margin: 38px 0 10px;
}

.battle-map-figure img {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid #cfc4b0;
  box-shadow: var(--shadow);
}

.battle-map-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.battle-flow {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.battle-flow-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.battle-flow-item b {
  color: var(--red);
  font-size: 13px;
}

.battle-flow-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.battle-flow-item p {
  margin: 0;
  font-size: 13px;
}

.battle-sites {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.battle-site-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.battle-site-card h3 {
  margin: 0 0 8px;
  font-family: "Yu Mincho",serif;
  font-size: 19px;
}

.battle-site-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.battle-site-card a {
  font-weight: 700;
  font-size: 12px;
}

.battle-castles {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.battle-castle-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.battle-castle-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.battle-castle-body {
  padding: 20px;
}

.battle-castle-body h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.battle-castle-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.battle-castle-body a {
  font-weight: 800;
}

.battle-reference {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f5ee;
}

.battle-reference h2 {
  margin: 0 0 10px;
  font-family: "Yu Mincho",serif;
  font-size: 24px;
}

.battle-reference ul {
  margin: 0;
  padding-left: 20px;
}

.battle-reference li {
  margin: 7px 0;
  font-size: 12px;
}

.battle-detail-link {
  display: inline-flex;
  margin-top: 15px;
  padding: 8px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: #fbf7ed;
  color: #63491f !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.battle-detail-link:hover {
  background: #f2e8ce;
}

.castle-battle-link {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid #d8ccb7;
  border-radius: 14px;
  background: #faf5e9;
}

.castle-battle-link span {
  display: block;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.castle-battle-link a {
  display: inline-block;
  margin-top: 4px;
  font-family: "Yu Mincho",serif;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.castle-battle-link p {
  margin: 5px 0 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  white-space: normal !important;
}

@media (max-width:960px) {
  .battle-overview {
    grid-template-columns: repeat(2,1fr);
  }

  .battle-sites {
    grid-template-columns: 1fr;
  }

  .battle-castles {
    grid-template-columns: 1fr;
  }
}

@media (max-width:680px) {
  .battle-overview {
    grid-template-columns: 1fr;
    margin-top: -12px;
  }

  .battle-story .lead {
    font-size: 15px;
  }

  .commander-grid {
    grid-template-columns: 1fr;
  }

  .battle-flow-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .battle-castle-card {
    grid-template-columns: 120px 1fr;
  }

  .battle-castle-body {
    padding: 14px;
  }

  .battle-castle-body h3 {
    font-size: 18px;
  }
}


/* =========================================================
   14. トップページ：注目の合戦
   トップページに表示する特集カードです。
   ========================================================= */

.featured-battle-section {
  background: linear-gradient(180deg,#f7f3eb 0%,#fdfbf7 100%);
}

.featured-battle-card {
  display: grid;
  grid-template-columns: minmax(0,1.03fr) minmax(320px,.97fr);
  gap: 28px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.featured-battle-media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #d8ccb7;
  background: #e9e0cf;
  text-decoration: none;
}

.featured-battle-media::after {
  content: "概略図を見る";
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(17,18,15,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.featured-battle-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform .45s ease;
}

.featured-battle-media:hover img {
  transform: scale(1.03);
}

.featured-battle-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 4px 6px 0;
}

.featured-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f7efe0;
  color: #7e5d25;
  border: 1px solid #eadab9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.featured-battle-copy h3 {
  margin: 0;
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: clamp(30px,4vw,46px);
  line-height: 1.25;
  letter-spacing: .04em;
}

.featured-battle-copy h3 small {
  display: block;
  margin-top: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.featured-lead {
  margin: 18px 0 0;
  color: #3d423b;
  font-size: 16px;
  line-height: 2;
}

.featured-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.featured-points li {
  position: relative;
  padding: 0 0 0 28px;
  color: #495046;
}

.featured-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn.ghost.dark {
  background: transparent;
  color: var(--ink) !important;
  border-color: #c4b497;
}

.btn.ghost.dark:hover {
  background: #f5efe1;
  color: var(--ink) !important;
}

@media (max-width:960px) {
  .featured-battle-card {
    grid-template-columns: 1fr;
  }

  .featured-battle-copy {
    padding: 0;
  }

  .featured-battle-media img {
    min-height: 280px;
  }
}

@media (max-width:680px) {
  .featured-battle-card {
    padding: 16px;
    border-radius: 20px;
  }

  .featured-battle-media {
    border-radius: 16px;
  }

  .featured-battle-media img {
    min-height: 210px;
  }

  .featured-battle-media::after {
    left: 12px;
    bottom: 12px;
    font-size: 10px;
  }

  .featured-battle-copy h3 {
    font-size: 28px;
  }

  .featured-lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .featured-actions {
    flex-direction: column;
  }

  .featured-actions .btn {
    width: 100%;
  }
}

/* スマホ表示：特集エリア周辺の縦余白を微調整 */

@media (max-width:680px) {
  .section-head {
    margin-bottom: 22px;
  }

  .featured-battle-card {
    gap: 20px;
  }

  .battle-map-figure {
    margin-top: 28px;
  }
}

/* =========================================================
      Profile page / prof.html
      =========================================================


/* =========================================================
   15. 管理人プロフィールページ
   prof.html 専用のヒーロー、年表、好きな武将、サイト方針などです。
   ========================================================= */

.profile-page {
  overflow: hidden;
  background: var(--paper2);
}

.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #151713;
  color: #fff;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 48%;
  height: 150%;
  z-index: -2;
  background: radial-gradient(circle,rgba(173,135,63,.18) 0%,rgba(173,135,63,.06) 34%,transparent 66%);
}

.profile-hero::after {
  content: "夢";
  position: absolute;
  right: -.02em;
  bottom: -.28em;
  z-index: -1;
  color: rgba(255,255,255,.025);
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: clamp(220px,32vw,520px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.profile-hero-inner {
  width: min(var(--max),calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,780px);
  justify-content: start;
  align-items: center;
  padding: 38px 0 38px;
}

.profile-hero-copy {
  max-width: 780px;
  padding: 2px 0;
}

.profile-breadcrumb {
  margin-bottom: 26px;
}

.profile-hero-eyebrow {
  color: var(--gold2);
}

.profile-hero-kicker {
  margin: 18px 0 0;
  color: #d6d0c4;
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: clamp(21px,3.1vw,34px);
  letter-spacing: .06em;
  line-height: 1.6;
}

.profile-hero h1 {
  margin: 12px 0 14px;
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: clamp(34px,5vw,52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .07em;
}

.profile-hero-lead {
  max-width: 690px;
  margin: 0;
  color: #c7c4bb;
  font-size: 12px;
  line-height: 2.05;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.profile-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(211,181,104,.35);
  border-radius: 999px;
  color: #d9c99b;
  background: rgba(255,255,255,.025);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.profile-portrait {
  position: relative;
  margin: 0;
  padding: 0 0 28px;
}

.profile-portrait::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -20px;
  bottom: 8px;
  left: 20px;
  border: 1px solid rgba(211,181,104,.35);
  border-radius: 24px;
}

.profile-portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 24px 24px 4px 24px;
  background: #262922;
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
}

.profile-portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 450/562;
  object-fit: cover;
}

.profile-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: 0;
  min-width: 188px;
  padding: 13px 18px 14px;
  border-left: 3px solid var(--gold);
  background: #f6f1e5;
  color: var(--ink);
  box-shadow: 0 14px 35px rgba(0,0,0,.25);
}

.profile-portrait figcaption span {
  display: block;
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.profile-portrait figcaption strong {
  display: block;
  margin-top: 1px;
  font-family: "Yu Mincho",serif;
  font-size: 22px;
  letter-spacing: .08em;
}

.profile-portrait figcaption small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.profile-narrow {
  max-width: 980px;
}

.profile-intro-section {
  position: relative;
  padding: 32px 0 32px;
  background: #f1ece1;
}

.profile-message-layout {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  gap: 52px;
  align-items: start;
}

.profile-portrait-message {
  width: 100%;
  max-width: 300px;
  margin: 38px 0 0;
  padding-bottom: 22px;
}

.profile-portrait-message::before {
  top: 16px;
  right: -12px;
  bottom: 7px;
  left: 14px;
  border-radius: 18px;
}

.profile-portrait-message .profile-portrait-frame {
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.profile-intro-copy h2, .profile-section-head h2, .profile-note h2 {
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
}

.profile-intro-copy h2 {
  margin: 7px 0 24px;
  font-size: clamp(26px,3.5vw,38px);
  line-height: 1.55;
  letter-spacing: .045em;
}

.profile-intro-copy p {
  margin: 0 0 1em;
  color: #43483f;
  line-height: 2;
}

.profile-story-section, .profile-purpose-section {
  padding: 38px 0;
}

.profile-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.profile-section-head h2 {
  margin: 5px 0 0;
  font-size: clamp(30px,4.2vw,44px);
  line-height: 1.3;
  letter-spacing: .05em;
}

.profile-section-head>p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.profile-story-layout {
  display: block;
}

.profile-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 6px;
}

.profile-timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 42px;
  width: 1px;
  background: linear-gradient(var(--gold),#ddd4c5);
}

.profile-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0,1fr);
  gap: 25px;
  padding: 0 0 26px;
}

.profile-timeline-item:last-child {
  padding-bottom: 0;
}

.profile-timeline-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 84px;
  height: 68px;
  border: 1px solid #d6c8ad;
  border-radius: 50%;
  background: var(--paper2);
  color: var(--gold);
  font-family: Georgia,serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.profile-timeline-body {
  padding: 2px 0 28px;
  border-bottom: 1px solid var(--line);
}

.profile-timeline-item:last-child .profile-timeline-body {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-timeline-body>span {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.profile-timeline-body h3 {
  margin: 5px 0 8px;
  font-family: "Yu Mincho",serif;
  font-size: clamp(20px,2.4vw,27px);
  line-height: 1.45;
}

.profile-timeline-body p {
  margin: 0;
  max-width: 850px;
  color: #52574f;
  font-size: 14px;
}

.profile-favorites-section {
  position: relative;
  padding: 38px 0 38px;
  background: #1b1e19;
  color: #fff;
}

.profile-favorites-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,transparent 0 55%,rgba(173,135,63,.055) 55% 56%,transparent 56% 100%);
  background-size: 48px 48px;
  opacity: .9;
  pointer-events: none;
}

.profile-favorites-section .container {
  position: relative;
}

.light-head h2 {
  color: #fff;
}

.light-head>p {
  color: #aaa99f;
}

.samurai-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.samurai-card {
  position: relative;
  display: flex;
  gap: 18px;
  min-height: 225px;
  padding: 28px 25px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  transition: .22s;
}

.samurai-card:hover {
  transform: translateY(-3px);
  border-color: rgba(211,181,104,.45);
  background: rgba(255,255,255,.055);
}

.samurai-card-main {
  border-color: rgba(211,181,104,.38);
  background: linear-gradient(145deg,rgba(173,135,63,.13),rgba(255,255,255,.035));
}

.samurai-rank {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(211,181,104,.38);
  border-radius: 50%;
  color: var(--gold2);
  font-family: "Yu Mincho",serif;
  font-size: 16px;
}

.samurai-card small {
  display: block;
  color: #98998f;
  font-family: Georgia,serif;
  font-size: 9px;
  letter-spacing: .12em;
}

.samurai-card h3 {
  margin: 3px 0 12px;
  color: #fff;
  font-family: "Yu Mincho",serif;
  font-size: 25px;
  letter-spacing: .07em;
}

.samurai-card p {
  margin: 0;
  color: #bfc0b7;
  font-size: 12px;
  line-height: 1.9;
}

.samurai-more {
  margin: 20px 0 0;
  color: #aaa99f;
  font-size: 12px;
}

.samurai-more span {
  display: inline-flex;
  margin-right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(211,181,104,.13);
  color: var(--gold2);
  font-size: 10px;
  font-weight: 800;
}

.profile-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.profile-purpose-grid article {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25,28,23,.04);
}

.purpose-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #f1eadc;
  color: var(--red);
  font-family: "Yu Mincho",serif;
  font-weight: 800;
}

.profile-purpose-grid h3 {
  margin: 0 0 9px;
  font-family: "Yu Mincho",serif;
  font-size: 21px;
}

.profile-purpose-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.profile-note {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 25px;
  margin-top: 32px;
  padding: 30px 32px;
  border: 1px solid #d9ccb4;
  border-radius: 18px;
  background: #f5efe3;
}

.profile-note-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #ceb98e;
  border-radius: 50%;
  color: #9b7432;
  font-family: Georgia,serif;
  font-size: 28px;
}

.profile-note span {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.profile-note h2 {
  margin: 3px 0 10px;
  font-size: 23px;
}

.profile-note p {
  margin: 0;
  color: #55584f;
  font-size: 13px;
  line-height: 1.9;
}

.profile-closing {
  margin: 72px auto 4px;
  text-align: center;
}

.profile-closing::before {
  content: "";
  display: block;
  width: 1px;
  height: 52px;
  margin: 0 auto 26px;
  background: linear-gradient(transparent,var(--gold));
}

.profile-closing-en {
  margin: 0 0 13px;
  color: #8e713d;
  font-family: Georgia,serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .20em;
}

.profile-closing p:not(.profile-closing-en) {
  margin: 0 auto;
  max-width: 720px;
  color: #555a52;
  line-height: 2;
}

.profile-closing .btn {
  margin-top: 26px;
}

.global-nav a[aria-current="page"] {
  color: var(--gold2);
}

@media (max-width:960px) {
  .profile-message-layout {
    grid-template-columns: 250px 1fr;
    gap: 34px;
  }

  .profile-portrait-message {
    max-width: 250px;
  }

  .samurai-grid {
    grid-template-columns: 1fr;
  }

  .samurai-card {
    min-height: 0;
  }
}

@media (max-width:680px) {
  .profile-hero-inner {
    width: min(100% - 32px,var(--max));
    padding: 20px 0 20px;
  }

  .profile-breadcrumb {
    margin-bottom: 22px;
  }

  .profile-hero-kicker {
    font-size: 22px;
    line-height: 1.55;
  }

  .profile-hero h1 {
    font-size: 38px;
    margin-top: 8px;
  }

  .profile-hero-lead {
    font-size: 12px;
    line-height: 1.9;
  }

  .profile-tags {
    margin-top: 18px;
  }

  .profile-intro-section, .profile-story-section, .profile-favorites-section, .profile-purpose-section {
    padding: 54px 0;
  }

  .profile-message-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .profile-portrait-message {
    width: min(100%,260px);
    max-width: 260px;
    margin: 0 auto;
    padding-bottom: 18px;
  }

  .profile-portrait-message::before {
    right: -10px;
    left: 12px;
  }

  .profile-intro-copy h2 {
    font-size: 29px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .profile-intro-copy p {
    font-size: 14px;
  }

  .profile-section-head {
    align-items: start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 26px;
  }

  .profile-section-head>p {
    text-align: left;
  }

  .profile-timeline::before {
    left: 27px;
  }

  .profile-timeline-item {
    grid-template-columns: 55px 1fr;
    gap: 16px;
    padding-bottom: 20px;
  }

  .profile-timeline-no {
    width: 55px;
    height: 55px;
    font-size: 11px;
  }

  .profile-timeline-body {
    padding-bottom: 20px;
  }

  .profile-timeline-body h3 {
    font-size: 20px;
  }

  .profile-timeline-body p {
    font-size: 13px;
    line-height: 1.85;
  }

  .samurai-card {
    padding: 22px 19px;
    gap: 14px;
  }

  .samurai-rank {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .samurai-card h3 {
    font-size: 22px;
  }

  .profile-purpose-grid {
    grid-template-columns: 1fr;
  }

  .profile-note {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 23px 20px;
  }

  .profile-note-mark {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .profile-note h2 {
    font-size: 20px;
  }

  .profile-closing {
    margin-top: 54px;
  }

  .profile-closing p:not(.profile-closing-en) {
    font-size: 13px;
  }
}


/* =========================================================
   16. index.html 専用調整
   Guideのスマホ1列化、トップページのヒーロー、スマホのセクション余白を最後に上書きします。
   ========================================================= */

/* 768px以下：Guide「このサイトについて」のカードを必ず1列にします。
   body に home-page クラスが付いていない場合でも効くよう、
   .home-guide-grid を直接指定しています。 */
@media (max-width:768px) {
  .home-guide-grid {
    grid-template-columns: 1fr !important;
  }
}

body.home-page .hero {
  min-height: 330px;
}

body.home-page .hero-inner {
  padding: 20px 0 20px;
}

body.home-page .hero h1 {
  font-size: clamp(40px,6vw,70px);
}

/* 680px以下：トップページの各sectionの上下paddingとヒーローを調整します。 */
@media (max-width:680px) {
  body.home-page .section {
    padding: 20px 0;
  }

  body.home-page .hero {
    min-height: 230px;
  }

  body.home-page .hero-inner {
    padding: 20px 0 20px;
  }

  body.home-page .hero h1 {
    font-size: 40px;
  }
}
