/* ==========================================================================
   Golux Japan Tours — shared stylesheet
   Simple, white, mobile-first. System fonts only for fast loading.
   ========================================================================== */

:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #ffffff;
  --soft: #f8fafc;
  --badge: #eff6ff;
  --accent: #1e3a8a;        /* buttons, links, numbers */
  --accent-dark: #172e6e;
  --footer: #0f172a;
  --tbc-bg: #fff3b0;
  --tbc-line: #d9b300;

  --sans: "Lato", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 8px;
  --wrap: 1120px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .9em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }

/* ---------- Placeholder markers (要確認) — search "tbc" in HTML ----------
   公開版では見た目を通常表示にしている。内容確定後にタグごと外す。 */
.tbc { background: none; outline: none; padding: 0; }
.tbc-flag { display: none; }
.tbc-block { margin: 0 0 1em; }

/* ---------- Photo placeholders — replace each .ph with <img> (see README) ---------- */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: #eef1f5; color: #7a8699; font-size: 13px; line-height: 1.4;
  padding: 10px; border-radius: var(--radius); width: 100%; min-width: 0; overflow-wrap: anywhere;
  aspect-ratio: 3 / 2;
}
.ph small { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 11px; margin-top: 4px; opacity: .85; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 400; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav a { white-space: nowrap; }
@media (max-width: 479px) {
  .brand { font-size: 1rem; }
  .nav a { font-size: 14px; padding: 8px 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 28px;
  background: var(--accent); color: #fff;
  font: 700 15px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-outline:hover { background: var(--badge); color: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Floating pill button (mobile). Hidden while the form is on screen. */
.fab {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 700 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 16px 22px; border-radius: 999px; box-shadow: 0 6px 20px rgba(30, 58, 138, .35);
  transition: opacity .2s, transform .2s;
}
.fab:hover { color: #fff; background: var(--accent-dark); }
.fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (min-width: 1000px) { .fab { display: none; } }

/* ==========================================================================
   Tour detail page
   ========================================================================== */
.tour-head { padding: 24px 0 16px; }
.tour-head h1 { margin-bottom: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.badge {
  background: var(--badge); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; color: var(--muted);
}
.badge b { color: var(--accent); margin-left: 4px; }
.price-line { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; margin: 0; font-size: 15px; color: var(--muted); }
.price-line strong { font-size: 1.2rem; color: var(--ink); }
@media (min-width: 768px) {
  .tour-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .badges { margin: 0; }
}

/* Gallery: big photo + thumbnail strip (mobile) / big photo + 4 tiles (desktop) */
.gallery-main .ph, .gallery-main img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.gallery-strip {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery-strip > * { flex: 0 0 23%; scroll-snap-align: start; }
.gallery-strip .ph, .gallery-strip img { aspect-ratio: 4 / 3; object-fit: cover; font-size: 10px; padding: 4px; }
.gallery-strip .ph small { display: none; }
@media (min-width: 768px) {
  .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
  .gallery-main { grid-row: span 2; }
  .gallery-main .ph, .gallery-main img { aspect-ratio: auto; height: 100%; min-height: 380px; }
  .gallery-strip { display: contents; }
  .gallery-strip > * { flex: none; }
  .gallery-strip > :nth-child(n+5) { display: none; }
  .gallery-strip .ph, .gallery-strip img { aspect-ratio: 4 / 3; font-size: 12px; }
  .gallery-strip .ph small { display: block; }
}

.tour-grid { padding-top: 16px; }
@media (min-width: 1000px) {
  .tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-top: 32px; }
  .tour-aside { position: sticky; top: 80px; }
  .cta-mobile { display: none; }
}
.cta-mobile { margin: 0 0 8px; }

/* Sections: small bold heading with a hairline */
.t-section { padding: 28px 0 8px; }
.t-section > h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.t-section ul { padding-left: 1.2em; margin: 0 0 1em; }
.t-section li { margin-bottom: 6px; }

/* Rate card */
.rate-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rate-card-body { padding: 16px; }
.rate-card h3 { margin-bottom: 10px; }
.rate-rows { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.rate-rows div { display: flex; gap: 12px; }
.rate-rows dt { color: var(--muted); min-width: 92px; }
.rate-rows dd { margin: 0; }
.rate-price { margin: 0; background: var(--soft); border-top: 1px solid var(--line); padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rate-price dt { font-size: 15px; }
.rate-price dd { margin: 0; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.rate-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* Itinerary timeline */
.timeline { list-style: none; padding: 0 !important; margin: 0; }
.timeline > li { position: relative; padding: 0 0 24px 48px; margin: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--line);
}
.timeline > li:last-child::before { display: none; }
.tl-num {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.tl-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; line-height: 32px; }
.timeline h3 { margin: 0 0 6px; font-size: 1.02rem; }
.timeline p { margin: 0 0 6px; }
.tl-meta { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--muted); }
.tl-meta li { margin: 0 !important; }
.tl-meta b { color: var(--ink); }

.route-text { font-weight: 700; margin-bottom: 12px; }
.route-text span { font-weight: 400; color: var(--muted); }
.route-map .ph { aspect-ratio: 4 / 3; }
.route-map img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }

/* More info grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 0; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-grid dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.info-grid dd { margin: 2px 0 0; font-size: 15px; }

.stats-line { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 0 0 1em !important; }
.stats-line li { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 14px; margin: 0 !important; }
.stats-line b { color: var(--accent); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 8px; }

/* Bottom contact CTA */
.contact-cta { text-align: center; padding: 56px 0 64px; border-top: 1px solid var(--line); margin-top: 32px; }
.contact-cta h2 { font-size: 1.3rem; }
.contact-cta p { color: var(--muted); }

/* ==========================================================================
   Inquiry form
   ========================================================================== */
.inquiry { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; background: #fff; }
@media (min-width: 768px) { .inquiry { padding: 24px; } }
.inquiry-title { font-size: 1.15rem; margin-bottom: 4px; }
.inquiry-price { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.inquiry-price strong { color: var(--ink); font-size: 1.25rem; }
.inquiry-lead { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.form-grid { display: grid; gap: 14px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 46px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 9px 12px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid #bfd0f5; outline-offset: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field .inline-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 400; }
.inline-check input { width: 18px; height: 18px; margin: 0; }
.party { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.party label { font-weight: 400; font-size: 13px; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 13px; color: var(--muted); margin: 12px 0; }
.form-status { margin: 10px 0 0; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b42318; }
.form-success { text-align: center; padding: 20px 4px; }
.form-success h3 { font-size: 1.25rem; }
.form-success:focus { outline: none; }

/* Wider pages (contact) put fields in two columns */
@media (min-width: 640px) {
  .form-wide .form-grid { grid-template-columns: 1fr 1fr; }
  .form-wide .full { grid-column: 1 / -1; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head { padding: 32px 0 8px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 44em; }
.page-body { padding: 8px 0 24px; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 2em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.info-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-table th { width: 34%; font-weight: 700; color: var(--muted); padding-right: 16px; }
@media (max-width: 559px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 0; }
}

.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; } }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: 15px; }
.side-card h2 { font-size: 1rem; }
.side-card ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.side-card p:last-child { margin-bottom: 0; }

/* Home */
.home-hero { padding: 40px 0 16px; }
.home-hero p { color: var(--muted); max-width: 40em; font-size: 1.05em; }
.section-title { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 24px 0 16px; }
.tour-cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .tour-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tour-cards { grid-template-columns: repeat(3, 1fr); } }
.tour-card { display: block; text-decoration: none; color: inherit; }
.tour-card .ph, .tour-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.tour-card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.tour-card:hover h3 { color: var(--accent); }
.tour-card .card-meta { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.tour-card .card-price { margin: 0; font-size: 15px; }
.tour-card .card-price strong { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #cbd5e1; padding: 48px 0 96px; font-size: 15px; margin-top: 0; }
@media (min-width: 1000px) { .site-footer { padding-bottom: 40px; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand { font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: .02em; margin-bottom: 8px; }
.footer-head { font-size: 13px; font-weight: 700; color: #94a3b8; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: 13px; color: #94a3b8; }

/* Real photos */
.gallery-strip img, .tour-card img { border-radius: var(--radius); }
.tour-card img { width: 100%; }
.gallery-strip img { width: 23%; min-width: 0; }
@media (min-width: 768px) { .gallery-strip img { width: 100%; height: 100%; } }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 32px; height: 32px; }
@media (max-width: 479px) { .brand img { width: 28px; height: 28px; } .brand { gap: 6px; } }
.about-logo { width: 100%; border-radius: var(--radius); }
@media (max-width: 419px) { .brand span { display: none; } }

/* Tour card without a photo yet: simple route panel */
.card-route {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--badge); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  color: var(--accent); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.card-route span + span::before { content: "↓"; display: block; text-align: center; color: var(--muted); font-weight: 400; font-size: .8em; line-height: 1.3; }

/* Footer partner block (Travelstride) */
.footer-partner { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 24px; }
.partner-logo { display: inline-block; background: #fff; border-radius: 6px; padding: 8px 12px; line-height: 0; }
.partner-logo img { width: 140px; height: auto; }
.site-footer .partner-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14px; }
.site-footer .partner-links li { margin: 0; }
