/* ============================================================
   page.css — 下層固定ページ PC スタイル
============================================================ */

/* ── Page Hero ── */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/mv_bg.jpg') center / cover no-repeat;
  z-index: 0;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,24,38,.78) 0%, rgba(26,35,64,.65) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero-label {
  font-family: var(--serif);
  font-size: .75rem;
  letter-spacing: .35em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .12em;
  line-height: 1.4;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid var(--gray);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-family: var(--sans);
  color: #888;
}

.breadcrumb-inner a {
  color: var(--gold-lt);
  text-decoration: none;
  transition: opacity .2s;
}

.breadcrumb-inner a:hover { opacity: .7; }

.breadcrumb-sep {
  color: #bbb;
  font-size: .9rem;
}

.breadcrumb-current { color: #555; }

/* ── Page Content Wrapper ── */
.page-content {
  background: var(--white);
  padding: 80px 0 100px;
}

.page-content--cream {
  background: var(--cream);
}

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

/* ============================================================
   コンテンツパーツ  (c- prefix)
============================================================ */

/* ── ページ内アンカーリンク ── */
.c-anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
  padding: 28px 32px;
  background: var(--cream);
  border: 1px solid rgba(191,171,136,.3);
  border-left: 4px solid var(--gold);
}

.c-anchor-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px 9px 16px;
  background: var(--white);
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .25s, color .25s;
}

.c-anchor-btn::before {
  content: '▼';
  font-size: .6rem;
  opacity: .7;
}

.c-anchor-btn:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── セクション間隔 ── */
.content-inner section + section {
  margin-top: 80px;
}

/* ── H2 ── */
.c-h2 {
  position: relative;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: .1em;
  line-height: 1.5;
  padding: 0 0 18px 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--gray);
}

.c-h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 22px;
  width: 4px;
  background: var(--gold);
}

.c-h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 80px;
  height: 2px;
  background: var(--gold);
}

/* ── H3 ── */
.c-h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: .08em;
  line-height: 1.5;
  padding: 10px 0 10px 16px;
  margin: 40px 0 20px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(to right, rgba(191,171,136,.07) 0%, transparent 60%);
}

/* ── H4 ── */
.c-h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dk);
  letter-spacing: .08em;
  line-height: 1.5;
  margin: 32px 0 14px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-h4::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── リード文 ── */
.c-lead {
  font-size: 1.02rem;
  line-height: 2;
  color: #333;
  margin-bottom: 28px;
  font-family: var(--serif);
}

/* ── 通常段落 ── */
.content-inner p {
  font-size: .95rem;
  line-height: 1.95;
  color: #444;
  margin-bottom: 20px;
}

/* ── 強調ボックス ── */
.c-em-box {
  position: relative;
  margin: 28px 0;
  padding: 28px 32px;
  background: var(--cream);
  border: 1px solid rgba(191,171,136,.35);
  border-left: 4px solid var(--gold-lt);
}

.c-em-box p {
  margin: 0;
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 2.1;
  color: #333;
}

/* ── ボタン ── */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .12em;
  text-decoration: none;
  transition: background .25s, color .25s;
  margin-top: 8px;
}

.c-btn::after { content: '→'; }
.c-btn:hover { background: var(--gold); color: var(--white); }

/* ── 強調ボックス バリエーション ── */
.c-em-box--dark {
  background: var(--navy);
  border-color: transparent;
  border-left-color: var(--gold);
}

.c-em-box--dark p {
  color: var(--white);
  line-height: 2.1;
}

/* ── インラインマーカー ── */
.c-mark {
  background: linear-gradient(to bottom, transparent 55%, rgba(191,171,136,.45) 55%);
  color: inherit;
  padding: 0 2px;
}

/* ── 注釈テキスト ── */
.c-note {
  font-size: .82rem !important;
  color: #888 !important;
  padding-left: 1em;
  text-indent: -1em;
  margin-top: -8px !important;
}

/* ── 引用ブロック ── */
.c-quote {
  position: relative;
  margin: 28px 0;
  padding: 28px 36px 24px 48px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
}

.c-quote::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
}

.c-quote p {
  font-family: var(--serif);
  font-size: .97rem;
  line-height: 2;
  color: #333;
  margin-bottom: 12px !important;
}

.c-quote cite {
  display: block;
  font-size: .78rem;
  color: var(--gold-lt);
  letter-spacing: .1em;
  font-style: normal;
}

/* ── 全幅画像 ── */
.c-img-full {
  margin: 28px 0 36px;
}

.c-img-full img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.c-img-full figcaption,
.c-img-col figcaption {
  font-size: .78rem;
  color: #888;
  letter-spacing: .06em;
  margin-top: 8px;
  padding-left: 2px;
}

/* ── 2カラム画像 ── */
.c-img-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 36px;
}

.c-img-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ── 画像＋テキスト ── */
.c-img-text {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 36px 0;
}

.c-img-text-body {
  flex: 1;
}

.c-img-text-body p {
  font-size: .93rem;
  line-height: 1.9;
  color: #444;
}

.c-img-text-img {
  width: 40%;
  flex-shrink: 0;
}

.c-img-text-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* 画像左バージョン */
.c-img-text--rev {
  flex-direction: row-reverse;
}

/* ── ul リスト ── */
.c-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 32px;
}

.c-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: .93rem;
  line-height: 1.7;
  color: #444;
  border-bottom: 1px solid var(--gray);
}

.c-list li:first-child { border-top: 1px solid var(--gray); }

.c-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

/* ── ol リスト ── */
.c-list-ol {
  list-style: none;
  padding: 0;
  margin: 20px 0 32px;
  counter-reset: ol-count;
}

.c-list-ol li {
  position: relative;
  padding: 10px 0 10px 44px;
  font-size: .93rem;
  line-height: 1.7;
  color: #444;
  border-bottom: 1px solid var(--gray);
  counter-increment: ol-count;
}

.c-list-ol li:first-child { border-top: 1px solid var(--gray); }

.c-list-ol li::before {
  content: counter(ol-count, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: .78rem;
  color: var(--gold-lt);
  font-weight: 700;
  letter-spacing: .05em;
  width: 32px;
  text-align: center;
}

/* ── テーブル ── */
.c-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 36px;
  font-size: .9rem;
}

.c-table th,
.c-table td {
  padding: 14px 18px;
  line-height: 1.75;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

/* 行ヘッダー（th列）*/
.c-table tbody th {
  width: 28%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .08em;
  white-space: nowrap;
  border-color: rgba(255,255,255,.1);
}

.c-table tbody td {
  background: var(--white);
  color: #444;
}

.c-table tbody tr:nth-child(even) td {
  background: var(--cream);
}

/* thead付きテーブル */
.c-table--head thead th {
  background: var(--navy-dk);
  color: var(--white);
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  border-color: rgba(255,255,255,.1);
  text-align: center;
}

.c-table--head tbody td {
  text-align: center;
  color: #444;
}

.c-table--head tbody tr:nth-child(even) td {
  background: var(--cream);
}

/* ── Contact Form 7 ── */
.contact-form-wrap { margin-top: 48px; }

/* ── テーブル型レイアウト ── */
.cf7-group {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.cf7-group:first-of-type { border-top: 1px solid #ddd; }

.cf7-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 220px;
  min-height: 72px;
  padding: 18px 20px;
  background: #f3f0ea;
  border-right: 1px solid #ddd;
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: .06em;
  line-height: 1.5;
}

.cf7-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: .62rem;
  letter-spacing: .1em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.6;
}

.cf7-required .cf7-badge {
  background: var(--navy);
  color: var(--white);
}

.cf7-optional .cf7-badge {
  background: #999;
  color: var(--white);
}

.cf7-input {
  flex: 1;
  padding: 16px 60px 16px 40px !important;
  display: flex !important;
  align-items: center;
  min-height: 72px;
}

/* ── テキスト・メール・電話・数字 ── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: var(--white);
  font-family: var(--serif);
  font-size: .92rem;
  color: var(--dark);
  line-height: 1.6;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191,171,136,.18);
}

/* ── テキストエリア ── */
.cf7-textarea { align-items: flex-start; padding-top: 18px; }

.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: var(--white);
  font-family: var(--serif);
  font-size: .92rem;
  color: var(--dark);
  line-height: 1.9;
  height: 220px;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191,171,136,.18);
}

/* ── プレースホルダー ── */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #c0b89e;
  font-size: .85rem;
}

/* ── ラジオボタン ── */
.cf7-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
}

.cf7-radio-group .wpcf7-list-item { margin: 0 !important; }
.cf7-radio-group .wpcf7-list-item:first-child { margin-left: 0 !important; }
.cf7-radio-group .wpcf7-list-item-label { padding-right: 24px !important; }

.cf7-radio-group .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: .9rem;
  color: #333;
  letter-spacing: .04em;
  user-select: none;
}

.cf7-radio-group input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #bbb;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color .2s;
  top: -1px;
}

.cf7-radio-group input[type="radio"]:checked {
  border-color: var(--gold-lt);
}

.cf7-radio-group input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold-lt);
  border-radius: 50%;
}

/* ── span（CF7デフォルト出力）を block に ── */
.cf7-input .wpcf7-form-control-wrap { display: block; width: 100%; }

/* ── 送信ボタン ── */
.wpcf7 .wpcf7-submit,
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 48px auto 0;
  padding: 20px 32px;
  background: var(--navy);
  border: 2px solid var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: .9rem;
  letter-spacing: .3em;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
  appearance: none;
  border-radius: 0;
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7 input[type="submit"]:hover {
  background: transparent;
  border-color: var(--gold-lt);
  color: var(--gold-lt);
}

/* ── レスポンスメッセージ ── */
.wpcf7-response-output {
  margin-top: 28px !important;
  padding: 16px 24px !important;
  font-family: var(--serif);
  font-size: .85rem !important;
  border: 1px solid var(--gold) !important;
  color: var(--navy) !important;
  background: #f9f7f2;
  border-radius: 0 !important;
}

/* ── バリデーションエラー ── */
.wpcf7-not-valid-tip {
  display: block;
  font-size: .78rem !important;
  color: #b33 !important;
  margin-top: 6px !important;
}

.wpcf7 .wpcf7-not-valid { border-color: #b33 !important; }

/* ── アーカイブ カテゴリータブ ── */
.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.archive-tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .25s, color .25s;
}

.archive-tab:hover,
.archive-tab.is-active {
  background: var(--gold);
  color: var(--white);
}

/* ── アーカイブ リスト ── */
.archive-list { margin-bottom: 48px; }

.archive-empty {
  padding: 48px 0;
  text-align: center;
  color: #888;
  font-size: .9rem;
}

/* ── ページネーション ── */
.archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  list-style: none;
  gap: 6px;
  padding: 0;
}

.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray);
  color: #555;
  font-family: var(--serif);
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.archive-pagination .page-numbers li a:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
}

.archive-pagination .page-numbers li span.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.archive-pagination .page-numbers li a.prev,
.archive-pagination .page-numbers li a.next {
  width: auto;
  padding: 0 16px;
  letter-spacing: .05em;
}

/* ── 記事ヘッダー（single） ── */
.single-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray);
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.single-date {
  font-family: var(--serif);
  font-size: .85rem;
  color: var(--gold-lt);
  letter-spacing: .08em;
}

.single-cat {
  font-size: .75rem;
  letter-spacing: .12em;
  background: var(--cream);
  color: var(--gold-lt);
  border: 1px solid rgba(191,171,136,.4);
  padding: 4px 14px;
  white-space: nowrap;
}

.single-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: .08em;
  line-height: 1.6;
}

/* 記事本文（エディタ出力のスタイル） */
.single-body {
  margin-bottom: 56px;
}

.single-body p {
  font-size: .95rem;
  line-height: 2;
  color: #444;
  margin-bottom: 20px;
}

.single-body h2 { margin: 48px 0 24px; }
.single-body h3 { margin: 36px 0 18px; }
.single-body h4 { margin: 28px 0 14px; }

.single-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 28px auto;
}

.single-body ul,
.single-body ol {
  padding-left: 1.5em;
  margin-bottom: 24px;
}

.single-body ul li,
.single-body ol li {
  font-size: .93rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 6px;
}

.single-body a {
  color: var(--gold-lt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-body blockquote {
  border-left: 4px solid var(--gold);
  background: var(--cream);
  padding: 20px 24px;
  margin: 24px 0;
  color: #555;
  font-style: italic;
}

/* ── ページ下部ナビ ── */
.c-page-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--gray);
}

.c-page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .25s, color .25s;
}

.c-page-nav-btn:hover {
  background: var(--gold);
  color: var(--white);
}

.c-page-nav-btn--next { margin-left: auto; }

/* ── 沿革（日本青年社とは） ── */
.about-history {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.history-era {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}

.history-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  margin: 0;
}

.history-list dt {
  padding: 12px 16px 12px 0;
  font-family: var(--serif);
  font-size: .88rem;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--gray);
}

.history-list dd {
  padding: 12px 0;
  margin: 0;
  font-size: .92rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--gray);
}

.history-list dt:last-of-type,
.history-list dd:last-of-type {
  border-bottom: none;
}

/* ── 日本青年社とは：サブページリンク ── */
.about-subpage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-subpage-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-left: 4px solid var(--gold);
  text-decoration: none;
  color: var(--navy);
  font-family: var(--serif);
  transition: background .2s, border-color .2s;
}

.about-subpage-link:hover {
  background: var(--cream);
  border-left-color: var(--gold-dk);
}

.about-subpage-num {
  font-size: .75rem;
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: .1em;
  min-width: 24px;
}

.about-subpage-title {
  flex: 1;
  font-size: 1rem;
  letter-spacing: .05em;
}

.about-subpage-arrow {
  color: var(--gold);
  font-size: .9rem;
}
