/*
Theme Name: YOKOHAMAトレインフェスティバル
Theme URI: https://example.com/
Author: YTF Project
Description: YOKOHAMAトレインフェスティバル向けオリジナルWordPressテーマ
Version: 1.1.3
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ytf
*/

:root {
  --navy: #092a4a;
  --navy-2: #104772;
  --red: #dc342b;
  --yellow: #f6bd28;
  --sky: #e9f7ff;
  --cream: #fffaf0;
  --ink: #162536;
  --muted: #607184;
  --line: #d8e1e8;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 16px 44px rgba(9, 42, 74, .12);
  --container: min(1120px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; background: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-title { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.35; letter-spacing: .03em; }
.section-title .en { display: block; margin-bottom: 4px; color: var(--red); font: 800 .72rem/1.2 ui-sans-serif, sans-serif; letter-spacing: .18em; }
.section-lead { max-width: 700px; margin: 14px 0 0; color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section { padding: 92px 0; }
.section--tint { background: var(--sky); }
.section--cream { background: var(--cream); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 2px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; transition: .2s ease; cursor: pointer; }
.button::after { content: "→"; }
.button:hover { transform: translateY(-2px); background: var(--navy-2); box-shadow: 0 8px 20px rgba(9,42,74,.18); }
.button--red { border-color: var(--red); background: var(--red); }
.button--outline { background: #fff; color: var(--navy); }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(9,42,74,.08); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; min-height: 82px; gap: 28px; }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 900; line-height: 1.25; }
.site-brand .custom-logo-link { display: block; flex: 0 0 48px; }
.site-brand .custom-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-mark { position: relative; display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 14px; background: var(--navy); color: #fff; font-size: 1.45rem; }
.brand-mark::after { position: absolute; bottom: 7px; width: 24px; height: 3px; border-radius: 9px; background: var(--yellow); content: ""; }
.brand-copy small { display: block; color: var(--red); font-size: .61rem; letter-spacing: .08em; }
.main-nav { margin-right: auto; }
.main-nav ul { display: flex; align-items: center; justify-content: flex-start; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 12px 11px; border-radius: 10px; color: var(--navy); font-size: .9rem; font-weight: 800; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--sky); color: var(--red); }
.main-nav .menu-disabled, .main-nav .menu-disabled-item > a { display: block; padding: 12px 11px; border-radius: 10px; color: #9aa6b2; font-size: .9rem; font-weight: 800; cursor: not-allowed; pointer-events: none; }
.archive-link { padding: 9px 14px !important; border: 1px solid var(--line); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font-size: 1.35rem; }

.hero-slider { width: var(--container); margin-inline: auto; overflow: hidden; background: #eef3f6; }
.hero-slider-viewport { position: relative; overflow: hidden; background: #e6ebef; }
.hero-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-slide-image { width: 100%; height: auto; object-fit: contain; object-position: center; }
.hero-slider-control { position: absolute; top: 50%; z-index: 2; display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(9,42,74,.72); color: #fff; font-size: 2rem; line-height: 1; transform: translateY(-50%); cursor: pointer; backdrop-filter: blur(6px); }
.hero-slider-control:hover { background: var(--navy); }
.hero-slider-prev { left: 22px; }
.hero-slider-next { right: 22px; }
.hero-slider-action-area { padding: 22px 20px 26px; background: #fff; text-align: center; }
.hero-slide-actions { display: none; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-slide-actions.is-active { display: flex; }
.hero-slider-dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.hero-slider-dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #b7c3cc; cursor: pointer; }
.hero-slider-dot.is-active { background: var(--red); transform: scale(1.2); }

.event-strip { position: relative; z-index: 5; }
.event-strip-inner { display: grid; grid-template-columns: 1.1fr 1fr 1fr; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.event-fact { display: flex; align-items: center; gap: 16px; min-height: 114px; padding: 22px 28px; border-right: 1px solid var(--line); }
.event-fact:last-child { border-right: 0; }
.fact-icon { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--sky); font-size: 1.35rem; }
.event-fact small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.event-fact strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.5; }

.news-list { border-top: 2px solid var(--navy); }
.news-item { display: grid; grid-template-columns: 125px 110px 1fr 30px; align-items: center; gap: 18px; min-height: 86px; border-bottom: 1px solid var(--line); }
.news-item time { color: var(--muted); font-weight: 700; }
.news-label { padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .74rem; font-weight: 800; text-align: center; }
.news-item h3 { margin: 0; font-size: 1rem; }
.news-arrow { color: var(--red); font-size: 1.25rem; transition: transform .2s; }
.news-item:hover .news-arrow { transform: translateX(4px); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-card { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.feature-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .45s ease; }
.feature-card:hover img { transform: scale(1.025); }
.feature-card-body { padding: 28px; }
.feature-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.45rem; }
.feature-card p { margin: 0 0 20px; color: var(--muted); }
.text-link { color: var(--red); font-weight: 900; }
.text-link::after { margin-left: 8px; content: "→"; }

.pickup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pickup { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pickup-number { display: block; color: var(--yellow); font-size: 2.8rem; font-weight: 900; line-height: 1; }
.pickup h3 { margin: 14px 0 8px; color: var(--navy); font-size: 1.18rem; }
.pickup p { margin: 0; color: var(--muted); font-size: .92rem; }

.access-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.access-copy { padding: 52px; }
.access-copy h2 { margin: 0 0 18px; font-size: clamp(1.8rem,3vw,2.5rem); }
.access-copy p { margin: 0 0 24px; }
.map-placeholder { position: relative; display: grid; min-height: 360px; place-items: center; overflow: hidden; background-color: #dceef4; background-image: linear-gradient(30deg, transparent 49%, rgba(255,255,255,.9) 50%, transparent 52%), linear-gradient(120deg, transparent 47%, rgba(9,42,74,.12) 48%, transparent 51%); background-size: 80px 80px, 105px 105px; color: var(--navy); }
.map-pin { display: grid; width: 100px; height: 100px; place-items: center; border: 8px solid rgba(255,255,255,.85); border-radius: 50% 50% 50% 0; background: var(--red); color: #fff; font-size: 2rem; transform: rotate(-45deg); box-shadow: 0 14px 30px rgba(9,42,74,.2); }
.map-pin img { width: 52px; height: 52px; object-fit: contain; transform: rotate(45deg); }
.access-map { margin-top: 24px; overflow: hidden; border-radius: var(--radius); background: #dceef4; box-shadow: var(--shadow); }
.access-map iframe { display: block; width: 100%; height: 460px; border: 0; }

.page-hero { padding: 37px 0 31px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.00; }
.breadcrumbs { margin-bottom: 4px; color: rgba(255,255,255,.7); font-size: .82rem; }
.breadcrumbs a { text-decoration: underline; }
.entry-wrap { max-width: 900px; margin: 0 auto; }
.entry-content { padding: 70px 0 100px; }
.entry-content h2 { margin-top: 2.2em; padding-bottom: 10px; border-bottom: 3px solid var(--yellow); color: var(--navy); font-size: 1.7rem; }
.entry-content h3 { margin-top: 2em; color: var(--navy); }
.entry-content a:not(.button) { color: var(--red); text-decoration: underline; }
.entry-content .wp-block-image img { border-radius: var(--radius); }
.event-table { width: 100%; border-collapse: collapse; }
.event-table th, .event-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.event-table th { width: 170px; color: var(--navy); }
.archive-notice { padding: 14px 0; background: var(--yellow); color: var(--navy); font-weight: 800; text-align: center; }
.archive-notice a { text-decoration: underline; text-underline-offset: 3px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.post-card-body { padding: 22px; }
.post-card time { color: var(--muted); font-size: .82rem; }
.post-card h2 { margin: 8px 0 10px; color: var(--navy); font-size: 1.15rem; line-height: 1.55; }
.post-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.pagination { margin-top: 40px; }

.ytf-form { display: grid; gap: 22px; }
.ytf-field label { display: block; margin-bottom: 6px; color: var(--navy); font-weight: 800; }
.ytf-required { margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--red); color: #fff; font-size: .68rem; }
.ytf-field input, .ytf-field textarea, .ytf-field select { width: 100%; padding: 14px 16px; border: 1px solid #aab8c4; border-radius: 8px; background: #fff; }
.ytf-field input:focus, .ytf-field textarea:focus, .ytf-field select:focus { outline: 3px solid rgba(246,189,40,.45); border-color: var(--navy); }
.ytf-message { padding: 16px 20px; border-radius: 8px; background: var(--sky); color: var(--navy); font-weight: 800; }
.ytf-message--error { background: #fff0ef; color: #9f211b; }

.site-footer { background: #061d32; color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; padding: 66px 0; }
.footer-brand { font-size: 1.2rem; font-weight: 900; }
.footer-brand p { max-width: 520px; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 400; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: rgba(255,255,255,.82); font-size: .9rem; }
.footer-bottom { padding: 24px 0 18px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .75rem; text-align: center; }
.footer-credits p { margin: 0; }
.footer-host { color: rgba(255,255,255,.78); font-weight: 700; }
.footer-committee-title { margin-top: 18px !important; }
.footer-committee-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 980px; margin: 10px auto 0; padding: 0; list-style: none; }
.footer-committee-members li { white-space: nowrap; }
.footer-sponsor { margin-top: 20px !important; }
.footer-copyright { margin-top: 18px !important; }

@media (max-width: 900px) {
  .site-brand { margin-right: auto; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 82px; left: 0; display: none; width: 100%; margin-right: 0; padding: 12px 20px 22px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 16px 30px rgba(9,42,74,.12); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav a { padding: 13px; border-bottom: 1px solid var(--line); }
  .event-strip-inner { grid-template-columns: 1fr; }
  .event-fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid, .access-card { grid-template-columns: 1fr; }
  .pickup-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1120px); --radius: 16px; }
  .brand-copy { font-size: .78rem; }
  .brand-copy small { display: none; }
  .header-inner { min-height: 68px; }
  .main-nav { top: 68px; }
  .hero-slider-control { width: 40px; height: 40px; font-size: 1.65rem; }
  .hero-slider-prev { left: 10px; }
  .hero-slider-next { right: 10px; }
  .hero-slider-action-area { padding: 18px 14px 22px; }
  .hero-slide-actions .button { width: min(100%, 320px); }
  .section { padding: 66px 0; }
  .section-head { display: block; }
  .section-head .button { margin-top: 22px; }
  .news-item { grid-template-columns: 90px 1fr 22px; gap: 10px; padding: 15px 0; }
  .news-label { display: none; }
  .pickup-grid, .post-grid { grid-template-columns: 1fr; }
  .access-copy { padding: 34px 26px; }
  .access-map iframe { height: 340px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; }
  .event-table th, .event-table td { display: block; width: 100%; padding: 10px; }
  .event-table th { padding-bottom: 0; border-bottom: 0; }
}
