/* ===================================================================
   京都観光ポータル「ことたび京都」共通スタイル
=================================================================== */

:root {
  --sea: #b5432c;
  --sea-deep: #6e2418;
  --sea-light: #e0824a;
  --sand: #f6efe0;
  --sand-deep: #e9dcc0;
  --coral: #c99a1e;
  --coral-deep: #a67c0d;
  --sunset: #e0824a;
  --ink: #2a201c;
  --ink-soft: #6b5d52;
  --line: #e3d6bd;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(110, 36, 24, 0.14);
  --shadow-sm: 0 4px 14px rgba(110, 36, 24, 0.10);
  --max: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; }
p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sea-deep);
  letter-spacing: 0.02em;
}
.brand .flag { font-size: 1.4rem; }
.brand small {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  letter-spacing: 0.08em;
}

.main-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--sea);
  color: var(--white);
}

.main-nav a.cta {
  background: var(--coral);
  color: var(--white);
}
.main-nav a.cta:hover { background: var(--coral-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--sea-deep);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 110px;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 160, 23, 0.35), transparent 45%),
    linear-gradient(160deg, var(--sea-light) 0%, var(--sea) 45%, var(--sea-deep) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: var(--sand);
  clip-path: polygon(0 55%, 5% 60%, 12% 52%, 20% 62%, 28% 50%, 36% 60%, 44% 48%, 52% 60%, 60% 50%, 68% 62%, 76% 52%, 84% 60%, 92% 50%, 100% 58%, 100% 100%, 0 100%);
}

.hero .wrap { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  max-width: 760px;
}

.hero h1 span { color: var(--coral); }

.hero p {
  margin-top: 18px;
  max-width: 560px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(201, 154, 30, 0.4);
}
.btn-primary:hover { background: var(--coral-deep); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn-outline {
  background: transparent;
  border-color: var(--sea);
  color: var(--sea-deep);
}
.btn-outline:hover { background: var(--sea); color: var(--white); }

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 760px;
}
.hero-stats div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
}
.hero-stats strong { display: block; font-size: 1.3rem; }
.hero-stats span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- Section shell ---------- */
section.block { padding: 84px 0; }
section.block.tight { padding: 56px 0; }
section.block.alt { background: var(--white); }

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

.section-head .kicker {
  color: var(--coral-deep);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--sea-deep);
}

.section-head p { color: var(--ink-soft); margin-top: 10px; max-width: 520px; }

.section-head .more {
  font-weight: 700;
  color: var(--sea-deep);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 3px;
  white-space: nowrap;
}

/* ---------- Area cards ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.area-card {
  position: relative;
  border-radius: var(--radius);
  padding: 26px 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.area-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, var(--g1), var(--g2));
  opacity: 0.94;
}
.area-card.higashiyama { --g1: #d5734a; --g2: #7a2f1a; }
.area-card.arashiyama { --g1: #5c8a5c; --g2: #2c4d2c; }
.area-card.rakuchu { --g1: #c99a1e; --g2: #7a5c0e; }
.area-card.fushimi { --g1: #b5432c; --g2: #591d12; }

.area-card > * { position: relative; z-index: 1; }
.area-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.24);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: auto;
}
.area-card h3 { font-size: 1.35rem; font-weight: 800; margin-top: 14px; }
.area-card p { font-size: 0.85rem; margin-top: 6px; color: rgba(255, 255, 255, 0.9); }

/* ---------- Card grid (spots / gourmet) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-media {
  height: 150px;
  background: linear-gradient(135deg, var(--m1), var(--m2));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.card-media img.illust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media .emoji { position: relative; z-index: 1; font-size: 2.4rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); }
.card-media .badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sea-deep);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 { font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.card-body .area-label { font-size: 0.76rem; color: var(--coral-deep); font-weight: 700; }
.card-body p.desc { font-size: 0.88rem; color: var(--ink-soft); flex: 1; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span {
  font-size: 0.72rem;
  background: var(--sand-deep);
  color: var(--sea-deep);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.card-footer a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sea-deep);
}
.card-footer a:hover { color: var(--coral-deep); }

/* ---------- Transport CTA band ---------- */
.flight-band {
  background: linear-gradient(120deg, var(--sea-deep), var(--sea));
  color: var(--white);
  border-radius: 22px;
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.flight-band h2 { font-size: 1.7rem; font-weight: 800; }
.flight-band p { margin-top: 10px; color: rgba(255,255,255,0.88); max-width: 420px; }
.flight-band .planes { font-size: 2.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 54px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 9px; font-size: 0.86rem; }
.footer-grid ul a:hover { color: var(--coral); }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-note { font-size: 0.82rem; margin-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-note .disclaimer { max-width: 700px; color: rgba(255,255,255,0.5); font-size: 0.76rem; }

/* ---------- Page header (sub pages) ---------- */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(160deg, var(--sea-light), var(--sea));
  color: var(--white);
}
.page-hero .kicker {
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em;
  color: var(--coral);
  display: block; margin-bottom: 10px;
}
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.page-hero p { margin-top: 12px; max-width: 620px; color: rgba(255,255,255,0.9); }

.breadcrumb { font-size: 0.8rem; margin-top: 18px; color: rgba(255,255,255,0.75); }
.breadcrumb a { text-decoration: underline; }

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-tabs button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tabs button:hover { border-color: var(--sea); color: var(--sea-deep); }
.filter-tabs button.active {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--white);
}

.area-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 52px 0 24px;
}
.area-heading:first-of-type { margin-top: 0; }
.area-heading .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--coral);
}
.area-heading h2 { font-size: 1.3rem; font-weight: 800; color: var(--sea-deep); }
.area-heading .count { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Transport page ---------- */
.search-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: -70px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: end;
}
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field select, .field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--sand);
  color: var(--ink);
}
.search-panel .btn-primary { height: 48px; padding: 0 30px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partner-card .logo-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 800;
}
.partner-card h3 { font-size: 1.08rem; font-weight: 800; }
.partner-card p { font-size: 0.86rem; color: var(--ink-soft); flex: 1; }
.partner-card .btn { align-self: flex-start; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}
.step .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--ink-soft); }

.info-box {
  background: var(--sand-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.info-box strong { color: var(--ink); }

/* ---------- Legal page ---------- */
.legal { padding: 64px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.25rem; font-weight: 800; color: var(--sea-deep); margin: 44px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.9; }
.legal ul { padding-left: 1.4em; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal .updated { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid, .steps { grid-template-columns: 1fr; }
  .search-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.2s; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; width: 100%; }
  .main-nav a { display: block; text-align: center; }
  .nav-toggle { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .area-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .flight-band { flex-direction: column; text-align: center; }
  section.block { padding: 56px 0; }
}
