/*
Theme Name: 三本松高校野球部後援会・OB会
Theme URI: https://example.com/
Author: 三本松高校野球部後援会・OB会
Author URI: https://example.com/
Description: 三本松高校野球部後援会・OB会の公式サイト用WordPressテーマ。トップページ・甲子園出場記録・マスターズ甲子園・歴代成績に対応し、「お知らせ」「試合日程・結果」「マスターズ甲子園」を管理画面から追加・編集できます。デザインは静的HTML版を忠実に再現しています。
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sanko-ob
*/

:root {
      --navy: #17375e;
      --navy-dark: #102943;
      --navy-deep: #0b1e33;
      --gold: #c8a14a;
      --cream: #f3efe5;
      --paper: #fbfaf7;
      --text: #26323d;
      --subtext: #68717b;
      --line: rgba(23, 55, 94, .18);
      --white: #ffffff;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--text);
      background: var(--cream);
      font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
      line-height: 1.8;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    .header {
      position: fixed;
      inset: 0 0 auto;
      z-index: 100;
      color: var(--white);
      transition: background-color .3s ease, box-shadow .3s ease;
    }
    .header.is-scrolled {
      background: var(--navy);
      box-shadow: 0 2px 12px rgba(11,30,51,.25);
    }
    .header-inner {
      max-width: 1380px;
      margin: 0 auto;
      padding: 24px 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .brand-mark {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.72);
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1.12rem;
      letter-spacing: .05em;
    }
    .brand-name {
      font-size: 1.08rem;
      font-weight: 700;
      letter-spacing: .08em;
    }
    .nav {
      display: flex;
      flex-wrap: wrap;
      gap: 22px;
      font-size: .86rem;
      letter-spacing: .08em;
    }
    .nav a {
      padding-bottom: 4px;
      border-bottom: 1px solid transparent;
    }
    .nav a:hover {
      color: var(--gold);
      border-color: var(--gold);
    }

    /* 歴代成績ドロップダウン */
    .nav-dropdown {
      position: relative;
    }
    .nav-parent {
      cursor: default;
      padding-bottom: 4px;
      border-bottom: 1px solid transparent;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .nav-parent::after {
      content: "";
      width: 5px;
      height: 5px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg);
      transition: transform .2s ease;
      opacity: .8;
      margin-top: -3px;
    }
    .nav-dropdown:hover .nav-parent,
    .nav-dropdown:focus-within .nav-parent {
      color: var(--gold);
    }
    .nav-dropdown:hover .nav-parent::after,
    .nav-dropdown:focus-within .nav-parent::after {
      transform: rotate(225deg);
      margin-top: 2px;
    }
    .nav-submenu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      min-width: 200px;
      padding: 8px 0;
      background: var(--navy);
      box-shadow: 0 8px 24px rgba(11,30,51,.3);
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, visibility .2s ease;
      z-index: 200;
    }
    .nav-dropdown:hover .nav-submenu,
    .nav-dropdown:focus-within .nav-submenu {
      opacity: 1;
      visibility: visible;
    }
    .nav-submenu a {
      display: block;
      padding: 9px 20px;
      border-bottom: 0;
      white-space: nowrap;
      color: var(--white);
    }
    .nav-submenu a:hover {
      color: var(--gold);
      background: rgba(255,255,255,.06);
      border-bottom: 0;
    }

    .hero {
      position: relative;
      min-height: 760px;
      display: flex;
      align-items: end;
      color: var(--white);
      background:
        linear-gradient(90deg, rgba(7,24,42,.94) 0%, rgba(7,24,42,.67) 40%, rgba(7,24,42,.18) 82%),
        linear-gradient(0deg, rgba(7,24,42,.88) 0%, rgba(7,24,42,.06) 62%),
        url("images/hero-bg.png") center center / cover no-repeat;
    }
    .hero-inner {
      width: min(1380px, 100%);
      margin: 0 auto;
      padding: 150px 34px 74px;
    }
    .hero h1 {
      max-width: 900px;
      margin: 0;
      font-family: Arial, "Yu Gothic", sans-serif;
      font-size: clamp(3.7rem, 9vw, 8.5rem);
      line-height: .94;
      letter-spacing: -.045em;
      text-transform: uppercase;
    }
    .hero-jp {
      margin-top: 24px;
      font-size: clamp(1rem, 1.4vw, 1.2rem);
      letter-spacing: .07em;
    }
    .hero-note {
      max-width: 690px;
      margin: 12px 0 0;
      color: rgba(255,255,255,.8);
      font-size: .91rem;
    }

    .section {
      padding: 108px 34px;
    }
    .section-dark {
      color: var(--white);
      background: var(--navy-deep);
    }
    .section-white {
      background: var(--paper);
    }
    .container {
      width: min(1180px, 100%);
      margin: 0 auto;
    }
    .section-heading {
      margin-bottom: 44px;
    }
    .section-heading h2 {
      margin: 0;
      color: inherit;
      font-size: clamp(2rem, 4vw, 4rem);
      line-height: 1.08;
      letter-spacing: -.035em;
    }
    .section-heading p {
      max-width: 720px;
      margin: 16px 0 0;
      color: var(--subtext);
      font-size: .96rem;
    }
    .section-dark .section-heading p {
      color: rgba(255,255,255,.68);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1.06fr .94fr;
      gap: 56px;
      align-items: start;
    }
    .about-copy {
      font-size: 1rem;
    }
    .about-copy p {
      margin: 0 0 18px;
    }
    .about-points {
      display: grid;
      gap: 0;
      margin-top: 28px;
      border-top: 1px solid var(--line);
    }
    .about-point {
      display: grid;
      grid-template-columns: 54px 1fr;
      gap: 12px;
      padding: 15px 0;
      border-bottom: 1px solid var(--line);
    }
    .about-point span {
      color: var(--gold);
      font-family: Arial, sans-serif;
      font-size: .75rem;
      letter-spacing: .08em;
    }
    .about-photo {
      min-height: 440px;
      overflow: hidden;
    }
    .about-photo img {
      width: 100%;
      height: 100%;
      min-height: 440px;
      object-fit: cover;
      display: block;
    }

    .news-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      border-top: 1px solid rgba(255,255,255,.22);
    }
    .news-item {
      min-height: 188px;
      padding: 24px 24px 22px 0;
      border-bottom: 1px solid rgba(255,255,255,.22);
    }
    .news-item:nth-child(odd) {
      padding-right: 34px;
      border-right: 1px solid rgba(255,255,255,.22);
    }
    .news-item:nth-child(even) {
      padding-left: 34px;
    }
    .news-meta {
      display: flex;
      gap: 12px;
      color: var(--gold);
      font-size: .78rem;
      letter-spacing: .12em;
    }
    .news-title {
      margin-top: 24px;
      font-size: 1.08rem;
      line-height: 1.7;
    }
    .news-link {
      display: inline-block;
      margin-top: 18px;
      color: rgba(255,255,255,.64);
      font-size: .76rem;
      letter-spacing: .12em;
    }
    .news-item:hover .news-link {
      color: var(--gold);
    }

    .blog-list {
      border-top: 1px solid var(--line);
    }
    .blog-item {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: 28px;
      padding: 24px 0;
      border-bottom: 1px solid var(--line);
    }
    .blog-date {
      color: var(--gold);
      font-size: .86rem;
      letter-spacing: .08em;
      white-space: nowrap;
    }
    .blog-content h3 {
      margin: 0;
      color: var(--navy-dark);
      font-size: 1.18rem;
      line-height: 1.6;
    }
    .blog-content p {
      margin: 10px 0 0;
      color: var(--subtext);
      font-size: .94rem;
    }
    .blog-link {
      display: inline-block;
      margin-top: 10px;
      color: var(--navy);
      font-size: .86rem;
    }

    .guide-copy {
      max-width: 860px;
      margin-bottom: 26px;
    }
    .guide-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border-top: 1px solid var(--line);
      border-left: 1px solid var(--line);
    }
    .guide-card {
      min-height: 188px;
      padding: 22px;
      background: var(--white);
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      transition: .2s ease;
    }
    .guide-card:hover {
      background: #f4f0e6;
    }
    .guide-card h3 {
      margin: 0;
      color: var(--navy-dark);
      font-size: 1.04rem;
    }
    .guide-card p {
      margin: 8px 0 0;
      color: var(--subtext);
      font-size: .84rem;
    }
    .guide-card-logo {
      height: 60px;
      width: auto;
      margin-top: 14px;
      display: block;
    }

    .supporters-title {
      margin: 52px 0 18px;
      color: var(--navy-dark);
      font-size: 1.2rem;
      letter-spacing: .04em;
    }
    /* ご協力いただいている皆さま：guideカードと同じ枠線・余白スタイル */
    .supporters-cards .supporter-card {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: var(--navy-dark);
      font-size: .9rem;
      line-height: 1.6;
    }
    .supporters-cards .supporter-card span {
      color: var(--subtext);
    }
    .supporters-cards .supporter-card img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
    }
    /* 帝國製薬バナー：01〜04の4セルを1枚で占有 (1200x300) */
    .supporters-cards .supporter-card-wide {
      grid-column: 1 / -1;
      padding: 0;
    }
    .supporters-cards .supporter-card-wide img {
      width: 100%;
      height: auto;
      max-width: 100%;
      max-height: none;
      object-fit: contain;
      display: block;
    }

    .contact {
      padding: 92px 34px;
      color: var(--white);
      background: var(--navy);
    }
    .contact-inner {
      width: min(1180px, 100%);
      margin: 0 auto;
    }
    .contact h2 {
      margin: 0;
      font-size: clamp(2.2rem, 4vw, 4rem);
      line-height: 1;
      letter-spacing: -.04em;
    }
    .contact p {
      max-width: 720px;
      margin: 18px 0 0;
      color: rgba(255,255,255,.72);
    }
    .contact-button {
      display: inline-block;
      margin-top: 24px;
      padding: 12px 18px;
      color: var(--white);
      border: 1px solid rgba(255,255,255,.58);
      font-size: .86rem;
      letter-spacing: .07em;
    }
    .contact-button:hover {
      color: var(--navy-dark);
      background: var(--gold);
      border-color: var(--gold);
    }
    .contact-grid {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 56px;
      align-items: start;
    }
    .contact-right {
      padding-top: 8px;
    }
    .contact-right h3,
    .contact-bank h3 {
      margin: 0 0 12px;
      color: var(--gold);
      font-size: 1rem;
      letter-spacing: .06em;
    }
    .contact-right p {
      max-width: none;
      margin: 0 0 16px;
    }
    .contact-right a {
      color: var(--white);
      border-bottom: 1px solid rgba(255,255,255,.4);
    }
    .contact-right a:hover {
      color: var(--gold);
      border-color: var(--gold);
    }
    .contact-bank {
      margin-bottom: 28px;
      padding: 18px 20px;
      border: 1px solid rgba(255,255,255,.28);
    }
    .contact-bank p {
      max-width: none;
      margin: 0;
      color: rgba(255,255,255,.86);
      font-size: .92rem;
      line-height: 1.9;
    }

    footer {
      padding: 30px 34px;
      color: rgba(255,255,255,.62);
      background: var(--navy-deep);
      font-size: .77rem;
    }
    .footer-inner {
      width: min(1180px, 100%);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    @media (max-width: 900px) {
      .header-inner {
        padding: 18px 20px;
      }
      .nav {
        display: none;
      }
      .hero {
        min-height: 620px;
      }
      .hero-inner {
        padding: 120px 20px 54px;
      }
      .section {
        padding: 78px 20px;
      }
      .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
      }
      .about-photo {
        min-height: 310px;
      }
      .about-photo img {
        min-height: 310px;
      }
      .guide-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .contact {
        padding: 72px 20px;
      }
      .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    @media (max-width: 620px) {
      .brand-name {
        font-size: .94rem;
      }
      .hero {
        min-height: 560px;
        background-position: 58% center;
      }
      .hero h1 {
        font-size: 4rem;
      }
      .hero-jp {
        font-size: .95rem;
      }
      .hero-note {
        font-size: .84rem;
      }
      .news-grid {
        grid-template-columns: 1fr;
      }
      .news-item:nth-child(odd),
      .news-item:nth-child(even) {
        padding: 20px 0;
        border-right: 0;
      }
      .blog-item {
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .guide-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .guide-card {
        min-height: 156px;
        padding: 16px;
      }
      .guide-card h3 {
        font-size: .94rem;
      }
      .guide-card p {
        font-size: .76rem;
      }
    }


    /* ============================================================
       演出スタイル 2026-07 追加 (js/effects.jsとセット)
       帯見出し: .lp > .line > .b-txt / フェード: .fade-y
       JS無効環境ではCSS適用されず、最初から表示された状態になります
       ============================================================ */
    html.js .fade-y {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .8s ease, transform .8s ease;
      transition-delay: var(--d, 0s);
    }
    html.js .fade-y.is-inview {
      opacity: 1;
      transform: none;
    }

    .lp .line {
      display: inline-block;
      position: relative;
      padding: .08em .22em;
      margin: -.08em -.22em;
    }
    .lp .line::before {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--gold);
      z-index: 0;
    }
    .lp .b-txt {
      position: relative;
      z-index: 1;
      color: var(--navy-deep);
      font-weight: inherit;
    }
    .section-dark .lp .line::before,
    .contact .lp .line::before {
      background: var(--white);
    }
    .section-dark .lp .b-txt,
    .contact .lp .b-txt {
      color: var(--navy-dark);
    }
    html.js .lp .line::before {
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .7s cubic-bezier(.76, 0, .24, 1);
      transition-delay: var(--d, 0s);
    }
    html.js .lp .b-txt {
      opacity: 0;
      transform: translateY(.35em);
      transition: opacity .55s ease, transform .55s ease;
      transition-delay: calc(var(--d, 0s) + .32s);
    }
    html.js .lp.is-inview .line::before {
      transform: scaleX(1);
    }
    html.js .lp.is-inview .b-txt {
      opacity: 1;
      transform: none;
    }

    /* ライトボックス (js-lightboxクラスを付けたリンクで使用可能) */
    .lb-overlay {
      position: fixed;
      inset: 0;
      z-index: 300;
      display: grid;
      place-items: center;
      padding: 28px 16px;
      background: rgba(6, 16, 28, .92);
      opacity: 0;
      visibility: hidden;
      transition: opacity .3s ease, visibility .3s ease;
    }
    .lb-overlay.is-open {
      opacity: 1;
      visibility: visible;
    }
    .lb-img {
      max-width: min(94vw, 720px);
      max-height: 90vh;
      width: auto;
      height: auto;
      box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
      background: #fff;
    }
    .lb-close {
      position: absolute;
      top: 14px;
      right: 18px;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255, 255, 255, .5);
      border-radius: 50%;
      background: transparent;
      color: var(--white);
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
    }
    .lb-close:hover {
      color: var(--navy-dark);
      background: var(--gold);
      border-color: var(--gold);
    }

    @media (prefers-reduced-motion: reduce) {
      html.js .fade-y,
      html.js .lp .line::before,
      html.js .lp .b-txt {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }


    /* ============================================================
       スクロールトップボタン 2026-07 追加 (js/effects.jsが生成)
       ============================================================ */
    .scroll-top {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 150;
      width: 52px;
      height: 52px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      border: 1px solid rgba(255, 255, 255, .35);
      border-radius: 50%;
      background: var(--navy);
      color: var(--white);
      font-size: .58rem;
      letter-spacing: .08em;
      cursor: pointer;
      box-shadow: 0 8px 22px rgba(11, 30, 51, .35);
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: opacity .35s ease, visibility .35s ease, transform .35s ease,
        background .3s ease, color .3s ease, border-color .3s ease;
    }
    .scroll-top::before {
      content: "";
      width: 9px;
      height: 9px;
      margin-top: 4px;
      border-top: 2px solid currentColor;
      border-left: 2px solid currentColor;
      transform: rotate(45deg);
    }
    .scroll-top.is-visible {
      opacity: 1;
      visibility: visible;
      transform: none;
    }
    .scroll-top:hover {
      color: var(--navy-dark);
      background: var(--gold);
      border-color: var(--gold);
    }
    @media (max-width: 620px) {
      .scroll-top {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .scroll-top {
        transition: none;
      }
    }


    /* ============================================================
       SP用ハンバーガーメニュー 2026-07 追加
       (header.phpにマークアップ、js/effects.jsで開閉制御)
       ============================================================ */
    .nav-toggle {
      display: none;
      position: relative;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 0;
      background: none;
      cursor: pointer;
      flex-shrink: 0;
    }
    /* 900px以下でのみボタンを表示 (このルールは上記のdisplay:noneより
       後に書く必要がある。詳細度が同じ場合は後勝ちのため) */
    @media (max-width: 900px) {
      .nav-toggle {
        display: block;
      }
    }
    .nav-toggle-bar {
      position: absolute;
      left: 10px;
      right: 10px;
      height: 2px;
      background: var(--white);
      border-radius: 1px;
      transition: transform .3s ease, opacity .3s ease, top .3s ease;
    }
    .nav-toggle-bar:nth-child(1) { top: 15px; }
    .nav-toggle-bar:nth-child(2) { top: 21px; }
    .nav-toggle-bar:nth-child(3) { top: 27px; }
    .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
      top: 21px;
      transform: rotate(45deg);
    }
    .nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
      top: 21px;
      transform: rotate(-45deg);
    }

    /* 背景オーバーレイ */
    .nav-overlay {
      position: fixed;
      inset: 0;
      z-index: 90;
      background: rgba(11, 30, 51, .55);
      opacity: 0;
      visibility: hidden;
      transition: opacity .3s ease, visibility .3s ease;
    }
    .nav-overlay.is-open {
      opacity: 1;
      visibility: visible;
    }

    /* 右からスライドするドロワー本体 */
    .nav-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 95;
      width: min(320px, 84vw);
      overflow-y: auto;
      padding: 90px 0 40px;
      background: var(--navy);
      box-shadow: -8px 0 28px rgba(11, 30, 51, .35);
      transform: translateX(100%);
      visibility: hidden;
      transition: transform .35s ease, visibility .35s ease;
    }
    .nav-drawer.is-open {
      transform: translateX(0);
      visibility: visible;
    }
    .nav-drawer-nav {
      display: flex;
      flex-direction: column;
    }
    .nav-drawer-nav a,
    .nav-drawer-parent {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 16px 28px;
      border: 0;
      border-bottom: 1px solid rgba(255, 255, 255, .14);
      background: none;
      color: var(--white);
      font-family: inherit;
      font-size: .92rem;
      letter-spacing: .06em;
      text-align: left;
      cursor: pointer;
    }
    .nav-drawer-nav a:hover,
    .nav-drawer-parent:hover {
      color: var(--gold);
    }

    /* 歴代成績アコーディオン */
    .nav-drawer-parent::after {
      content: "";
      width: 7px;
      height: 7px;
      flex-shrink: 0;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg);
      transition: transform .25s ease;
      opacity: .8;
    }
    .nav-drawer-parent[aria-expanded="true"]::after {
      transform: rotate(-135deg);
    }
    .nav-drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: rgba(0, 0, 0, .14);
      transition: max-height .3s ease;
    }
    .nav-drawer-submenu a {
      padding-left: 44px;
      font-size: .88rem;
      border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .nav-drawer-submenu a:last-child {
      border-bottom: 0;
    }

    /* ドロワー表示中はTOPボタンを隠す (body.nav-drawer-openはjs/effects.jsが付与) */
    body.nav-drawer-open .scroll-top {
      opacity: 0;
      visibility: hidden;
    }

    @media (prefers-reduced-motion: reduce) {
      .nav-toggle-bar,
      .nav-overlay,
      .nav-drawer,
      .nav-drawer-parent::after,
      .nav-drawer-submenu {
        transition: none;
      }
    }


    /* ============================================================
       ホバー強化 2026-07 追加 (全ページ共通)
       ============================================================ */
    .nav > a {
      position: relative;
    }
    .nav > a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1px;
      background: var(--gold);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform .35s cubic-bezier(.65, 0, .35, 1);
    }
    .nav > a:hover {
      border-color: transparent;
    }
    .nav > a:hover::after {
      transform: scaleX(1);
      transform-origin: left;
    }

    .guide-card {
      transition: background .3s ease, transform .35s cubic-bezier(.22, .9, .36, 1), box-shadow .35s ease;
    }
    .guide-card:hover {
      position: relative;
      z-index: 1;
      transform: translateY(-4px);
      box-shadow: 0 14px 28px -14px rgba(11, 30, 51, .35);
    }

    .news-item {
      transition: background .3s ease;
    }
    .news-item:hover {
      background: rgba(255, 255, 255, .05);
    }
    .news-link,
    .blog-link {
      transition: transform .3s ease, color .3s ease;
    }
    .news-item:hover .news-link {
      transform: translateX(4px);
    }
    .blog-item {
      transition: background .3s ease;
    }
    .blog-item:hover {
      background: rgba(23, 55, 94, .045);
    }
    .blog-item:hover .blog-link {
      color: var(--gold);
      transform: translateX(4px);
    }

    .results-page .rp-item {
      transition: transform .35s cubic-bezier(.22, .9, .36, 1), box-shadow .35s ease;
    }
    .results-page .rp-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 32px -18px rgba(11, 30, 51, .28);
    }
    .results-page .rp-figure {
      overflow: hidden;
    }
    .results-page .rp-figure img {
      display: block;
      transition: transform .6s cubic-bezier(.22, .9, .36, 1);
    }
    .results-page .rp-item:hover .rp-figure img {
      transform: scale(1.02);
    }

    .results-page .score-table tbody tr td {
      transition: background .25s ease;
    }
    .results-page .score-table tbody tr:hover td {
      background: rgba(200, 161, 74, .14);
    }

    @media (prefers-reduced-motion: reduce) {
      .nav > a::after,
      .guide-card,
      .news-item,
      .news-link,
      .blog-link,
      .blog-item,
      .results-page .rp-item,
      .results-page .rp-figure img,
      .results-page .score-table tbody tr td {
        transition: none;
      }
      .guide-card:hover,
      .results-page .rp-item:hover {
        transform: none;
      }
    }


    /* ============================================================
       歴代成績・甲子園ページ用スタイル
       (旧: koushien.html / masterkoushien.html / results.html の inline <style>)
       ============================================================ */
    .results-main { padding: 150px 16px 0; background: var(--cream); }
    .results-main h1 {
      max-width: 980px; margin: 0 auto 8px; color: var(--navy-dark);
      font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em;
    }

    .results-page {
      --rp-navy: #17375e;
      --rp-navy-dark: #102943;
      --rp-gold: #c8a14a;
      --rp-text: #26323d;
      --rp-subtext: #68717b;
      --rp-line: rgba(23, 55, 94, .18);
      max-width: 980px;
      margin: 0 auto;
      padding: 8px 16px 48px;
      color: var(--rp-text);
      font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
      line-height: 1.9;
    }
    .results-page .rp-intro { margin: 0 0 40px; color: var(--rp-subtext); font-size: 1rem; }
    .results-page .rp-lead {
      margin: 0 0 8px; color: var(--rp-navy-dark);
      font-size: 1.5rem; font-weight: 700; letter-spacing: .04em;
    }
    .results-page .rp-item { margin: 0 0 44px; padding: 0 0 36px; border-bottom: 1px solid var(--rp-line); }
    .results-page .rp-item:last-child { border-bottom: none; }
    .results-page .rp-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
    .results-page .rp-no {
      color: var(--rp-gold); font-family: Arial, sans-serif;
      font-size: .82rem; letter-spacing: .12em;
    }
    .results-page .rp-title { margin: 0; color: var(--rp-navy-dark); font-size: 1.18rem; font-weight: 700; }
    .results-page .rp-result { margin: 0 0 14px; color: var(--rp-text); font-size: .98rem; }
    .results-page .rp-result strong { color: var(--rp-navy); }
    .results-page .rp-figure { margin: 0; }
    .results-page .rp-figure img {
      width: 100%; height: auto; display: block;
      border: 1px solid var(--rp-line); border-radius: 4px;
    }
    .results-page .rp-figure figcaption {
      margin-top: 8px; color: var(--rp-subtext); font-size: .84rem; text-align: right;
    }
    @media (max-width: 620px) {
      .results-page { padding: 8px 12px 36px; }
      .results-page .rp-title { font-size: 1.05rem; }
    }

    /* セクション見出し（甲子園 / マスターズ） */
    .results-page .rp-section-title {
      margin: 8px 0 6px; padding-bottom: 10px; color: var(--rp-navy-dark);
      font-size: 1.6rem; font-weight: 700; letter-spacing: .04em;
      border-bottom: 2px solid var(--rp-navy);
    }
    .results-page .rp-section + .rp-section { margin-top: 56px; }

    /* 甲子園：年ごとのカード */
    .results-page .koshien-year {
      margin: 0 0 28px; padding: 22px 22px 8px; background: #fff;
      border: 1px solid var(--rp-line); border-radius: 6px;
    }
    .results-page .koshien-year-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
    .results-page .koshien-year-no {
      color: var(--rp-navy); font-family: Arial, sans-serif;
      font-size: 1.5rem; font-weight: 700; letter-spacing: .04em;
    }
    .results-page .koshien-era { color: var(--rp-subtext); font-size: .9rem; }
    .results-page .koshien-meet { margin: 0 0 16px; color: var(--rp-text); font-size: .98rem; font-weight: 700; }
    .results-page .koshien-meet .badge {
      display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 3px;
      font-size: .82rem; font-weight: 700; color: #fff;
    }
    .results-page .badge.summer { background: #4a9d54; }
    .results-page .badge.spring { background: #5aa9d6; }
    .results-page .koshien-game { margin: 0 0 22px; padding: 0 0 4px; }
    .results-page .koshien-round { margin: 0 0 8px; color: var(--rp-navy-dark); font-size: .92rem; font-weight: 700; }
    .results-page .koshien-line { margin: 0 0 12px; font-size: 1.02rem; }
    .results-page .koshien-line .score { font-weight: 700; font-family: Arial, sans-serif; }
    .results-page .koshien-line .win { color: #c0392b; font-weight: 700; }
    .results-page .koshien-line .opp { color: var(--rp-text); }
    .results-page .koshien-line .pref { color: var(--rp-subtext); font-size: .9rem; }
    .results-page .score-table {
      width: 100%; border-collapse: collapse; margin: 6px 0 8px;
      font-size: .9rem; font-family: Arial, sans-serif;
    }
    .results-page .score-table th,
    .results-page .score-table td { border: 1px solid var(--rp-line); padding: 5px 4px; text-align: center; }
    .results-page .score-table thead th { background: #f4f0e6; color: var(--rp-navy-dark); font-weight: 700; }
    .results-page .score-table .team {
      text-align: left; white-space: nowrap;
      font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    }
    .results-page .score-table .total { background: #faf7f0; font-weight: 700; }
    .results-page .koshien-pitcher { margin: 0; color: var(--rp-subtext); font-size: .86rem; }
    @media (max-width: 620px) {
      .results-page .score-table { font-size: .78rem; }
      .results-page .score-table th,
      .results-page .score-table td { padding: 4px 2px; }
    }


    /* ============================================================
       記事・固定ページ本文（single / page / archive）用スタイル
       ============================================================ */
    .entry {
      max-width: 860px;
      margin: 0 auto;
      padding: 8px 16px 56px;
      color: var(--text);
      line-height: 1.95;
    }
    .entry-meta {
      display: flex;
      gap: 14px;
      align-items: baseline;
      flex-wrap: wrap;
      margin: 0 0 10px;
      color: var(--gold);
      font-size: .82rem;
      letter-spacing: .1em;
    }
    .entry-meta .entry-label {
      padding: 1px 10px;
      background: var(--navy);
      color: #fff;
      border-radius: 3px;
      letter-spacing: .06em;
    }
    .entry-title {
      margin: 0 0 28px;
      color: var(--navy-dark);
      font-size: clamp(1.4rem, 3vw, 2rem);
      line-height: 1.4;
      letter-spacing: -.01em;
    }
    .entry-content p { margin: 0 0 1.2em; }
    .entry-content h2 {
      margin: 1.8em 0 .6em;
      padding-bottom: .3em;
      color: var(--navy-dark);
      font-size: 1.4rem;
      border-bottom: 2px solid var(--navy);
    }
    .entry-content h3 {
      margin: 1.6em 0 .5em;
      color: var(--navy-dark);
      font-size: 1.15rem;
    }
    .entry-content a { color: var(--navy); border-bottom: 1px solid var(--line); }
    .entry-content a:hover { color: var(--gold); border-color: var(--gold); }
    .entry-content img { height: auto; border-radius: 4px; margin: .6em 0; }
    .entry-content ul,
    .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
    .entry-content li { margin: .3em 0; }
    .entry-content blockquote {
      margin: 1.4em 0;
      padding: .6em 1.2em;
      border-left: 3px solid var(--gold);
      color: var(--subtext);
      background: #fff;
    }
    .entry-thumb { margin: 0 0 28px; }
    .entry-thumb img {
      width: 100%; height: auto;
      border: 1px solid var(--line); border-radius: 4px;
    }

    /* 一覧（アーカイブ） */
    .archive-list {
      max-width: 900px;
      margin: 0 auto;
      padding: 8px 16px 56px;
      border-top: 1px solid var(--line);
    }
    .archive-item {
      display: block;
      padding: 22px 4px;
      border-bottom: 1px solid var(--line);
      transition: background .3s ease;
    }
    .archive-item:hover { background: rgba(23, 55, 94, .045); }
    .archive-item .archive-meta {
      display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
      color: var(--gold); font-size: .8rem; letter-spacing: .1em;
    }
    .archive-item .archive-meta .archive-label {
      padding: 1px 9px; background: var(--navy); color: #fff; border-radius: 3px; letter-spacing: .06em;
    }
    .archive-item .archive-title {
      margin: 8px 0 0; color: var(--navy-dark); font-size: 1.12rem; line-height: 1.6;
    }
    .archive-item:hover .archive-title { color: var(--navy); }
    .archive-item .archive-excerpt { margin: 8px 0 0; color: var(--subtext); font-size: .92rem; }

    /* ページネーション */
    .sanko-pagination {
      max-width: 900px; margin: 28px auto 0; padding: 0 16px;
      display: flex; gap: 8px; flex-wrap: wrap;
    }
    .sanko-pagination .page-numbers {
      display: inline-block; padding: 8px 14px;
      border: 1px solid var(--line); color: var(--navy-dark);
      font-size: .9rem; border-radius: 3px;
    }
    .sanko-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
    .sanko-pagination a.page-numbers:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }

    /* 戻るリンク */
    .back-link {
      max-width: 860px; margin: 0 auto; padding: 0 16px 48px;
    }
    .back-link a {
      display: inline-block; color: var(--navy); font-size: .9rem;
      border-bottom: 1px solid var(--line); padding-bottom: 2px;
    }
    .back-link a:hover { color: var(--gold); border-color: var(--gold); }
