/* ============ トマリバ design tokens ============
   夜の田舎道: 夜藍 × ヘッドライトの琥珀 × 畑の緑 */
:root {
  --night:   #182136;
  --night-2: #223050;
  --paper:   #F2F3EC;
  --card:    #FCFCF8;
  --ink:     #262C28;
  --ink-dim: #6C7369;
  --amber:   #F2A33C;
  --amber-d: #C97F16;
  --green:   #47603F;
  --green-l: #E3EADC;
  --line:    #DCDFD2;
  --danger:  #B4432F;
  --radius: 10px;
  --font-display: "Shippori Mincho B1", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.4; }
.pre { white-space: pre-line; }
.pc { display: inline; }
@media (max-width: 640px) { .pc { display: none; } }

/* ============ header ============ */
.site-header {
  background: var(--night);
  color: #EDEFF4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.4rem;
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  background: var(--amber); color: var(--night);
  width: 2rem; height: 2rem; border-radius: 6px;
  display: grid; place-items: center;
}
.brand-name { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.12em; font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.9rem; flex-wrap: wrap; }
.nav a:hover { color: var(--amber); }
.nav-host { color: var(--amber); font-weight: 700; }
.nav-dim { opacity: 0.6; }

/* ============ buttons ============ */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.75rem 1.6rem; border-radius: 999px;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-amber { background: var(--amber); color: var(--night); box-shadow: 0 4px 14px rgba(242,163,60,0.35); }
.btn-amber:hover { background: #F7B356; }
.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: #EDEFF4; border: 1.5px solid rgba(237,239,244,0.5); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost-dark { background: transparent; color: var(--ink-dim); border: 1.5px solid var(--line); }
.btn-s { padding: 0.45rem 1.1rem; font-size: 0.88rem; }
.btn-wide { width: 100%; text-align: center; }

/* ============ flashes ============ */
.flashes { max-width: 1080px; margin: 0.8rem auto 0; padding: 0 1.4rem; }
.flash { padding: 0.7rem 1.1rem; border-radius: var(--radius); margin-bottom: 0.5rem; font-size: 0.92rem; font-weight: 500; }
.flash-ok    { background: var(--green-l); color: var(--green); }
.flash-warn  { background: #FBEFD9; color: var(--amber-d); }
.flash-error { background: #F7E3DE; color: var(--danger); }

/* ============ hero (signature) ============ */
.hero { background: var(--night); color: #EDEFF4; position: relative; overflow: hidden; }
.hero-sky { position: absolute; inset: 0; }
.stars, .stars::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 15%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 75% 25%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 45%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 38%, #fff 50%, transparent 51%);
  opacity: 0.7;
}
.stars::after { transform: translate(-4%, 6%) scale(1.15); opacity: 0.35; }
.hero-glow {
  position: absolute; right: 8%; bottom: 8%;
  width: 380px; height: 200px;
  background: radial-gradient(ellipse at 30% 80%, rgba(242,163,60,0.5), transparent 65%);
  filter: blur(6px);
}
.hero-field {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to top, #10161F 55%, transparent);
}
.hero-field::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 55%;
  height: 40px;
  background:
    radial-gradient(60px 22px at 10% 100%, #10161F 60%, transparent 61%),
    radial-gradient(90px 30px at 32% 100%, #10161F 60%, transparent 61%),
    radial-gradient(70px 24px at 58% 100%, #10161F 60%, transparent 61%),
    radial-gradient(100px 32px at 85% 100%, #10161F 60%, transparent 61%);
}
.hero-van {
  position: absolute; right: 12%; bottom: 9%;
  font-size: 3.2rem; transform: scaleX(-1);
  filter: drop-shadow(0 0 22px rgba(242,163,60,0.55));
}
.hero-copy {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 5.5rem 1.4rem 6.5rem;
}
.hero-eyebrow {
  font-size: 0.82rem; letter-spacing: 0.28em; color: var(--amber);
  font-weight: 700; margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800; letter-spacing: 0.04em; margin-bottom: 1.2rem;
}
.hero-sub { color: #C3C9D6; margin-bottom: 2rem; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ============ stats band ============ */
.stats-band {
  background: var(--night-2); color: #EDEFF4;
  display: flex; justify-content: center; gap: clamp(1.5rem, 6vw, 5rem);
  padding: 1.3rem 1rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: 1.6rem; color: var(--amber); display: block; line-height: 1.2; }
.stat span { font-size: 0.78rem; opacity: 0.75; letter-spacing: 0.08em; }

/* ============ sections / layout ============ */
.section { max-width: 1080px; margin: 0 auto; padding: 3.5rem 1.4rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.6rem; }
.section h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.section-head h2 { margin-bottom: 0; }
.more { color: var(--green); font-weight: 700; font-size: 0.92rem; }
.page { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.4rem 4rem; }
.page-narrow { max-width: 720px; }
.page-auth { max-width: 420px; }
.page-title { font-size: 1.7rem; margin-bottom: 1rem; }
.page-lead { color: var(--ink-dim); margin-bottom: 1.8rem; }
.page-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.page-head-row .page-title { margin-bottom: 0; }

/* ============ spot cards ============ */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(24,33,54,0.12); }
.card-visual {
  height: 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.3rem;
}
.card-type-icon { font-size: 2.4rem; }
.card-type-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.85; }
.type-akichi  { background: linear-gradient(135deg, #DCE5C8, #B9C89A); color: #4A5732; }
.type-haigyo  { background: linear-gradient(135deg, #D9D4CB, #B3AB9E); color: #57503F; }
.type-nouchi  { background: linear-gradient(135deg, #E9DFC0, #CBB98A); color: #6B5A2A; }
.type-parking { background: linear-gradient(135deg, #D3DCE3, #A9B8C6); color: #3D4E5E; }
.type-yama    { background: linear-gradient(135deg, #CBDCD2, #9BB8A8); color: #375246; }
.card-body { padding: 0.9rem 1.1rem 1.1rem; }
.card-loc { font-size: 0.78rem; color: var(--ink-dim); letter-spacing: 0.05em; }
.card-title { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; margin: 0.15rem 0 0.55rem; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; }
.rate { color: var(--amber-d); font-weight: 700; font-size: 0.9rem; }
.rate em { font-style: normal; color: var(--ink-dim); font-weight: 400; font-size: 0.8rem; }
.rate-new { color: var(--green); letter-spacing: 0.1em; font-size: 0.78rem; }
.price { font-weight: 700; font-size: 1.05rem; }
.price em { font-style: normal; font-size: 0.75rem; color: var(--ink-dim); font-weight: 400; }

/* ============ why / host ============ */
.why h2, .host-cta h2 { text-align: center; font-size: 1.6rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.why-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.why-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.why-item h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.why-item p { font-size: 0.92rem; color: var(--ink-dim); }

.host-hero { background: var(--night); color: #EDEFF4; text-align: center; padding: 5rem 1.4rem; }
.host-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 1.2rem; }
.host-hero .hero-sub { margin: 0 auto 2rem; max-width: 560px; }
.flow { list-style: none; counter-reset: step; max-width: 640px; margin: 0 auto; }
.flow li {
  counter-increment: step; position: relative;
  padding: 1rem 0 1rem 3.4rem; border-left: 2px solid var(--line); margin-left: 1.2rem;
}
.flow li::before {
  content: counter(step);
  position: absolute; left: -1.25rem; top: 1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--amber); color: var(--night);
  font-family: var(--font-display); font-weight: 800;
  display: grid; place-items: center;
}
.flow b { display: block; font-size: 1.05rem; }
.flow span { color: var(--ink-dim); font-size: 0.92rem; }
.host-cta { text-align: center; }
.host-cta .btn { margin-top: 1.4rem; }

/* ============ filters ============ */
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 1.2rem;
}
.filters select {
  font-family: var(--font-body); font-size: 0.92rem;
  padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.am-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-block; font-size: 0.82rem; padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  transition: all 0.1s ease;
}
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--amber); }
.result-count { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 1rem; }

/* ============ spot detail ============ */
.detail-hero {
  height: 220px; border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: 1.2rem;
  margin-bottom: 1.8rem;
}
.detail-type { background: rgba(255,255,255,0.85); border-radius: 999px; padding: 0.35rem 1rem; font-weight: 700; font-size: 0.9rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-title { font-size: 1.7rem; margin: 0.2rem 0 0.6rem; }
.detail-meta { display: flex; gap: 1.2rem; align-items: baseline; margin-bottom: 1.6rem; flex-wrap: wrap; }
.host-name { color: var(--ink-dim); font-size: 0.9rem; }
.detail-sec { border-top: 1px solid var(--line); padding: 1.6rem 0; }
.detail-sec h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.story { background: var(--green-l); border-radius: var(--radius); padding: 1.4rem; border-top: none; margin: 0.4rem 0 1rem; }
.story h2 { color: var(--green); }
.am-list { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.am { font-size: 0.85rem; padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 500; }
.am.on { background: var(--green); color: #fff; }
.am.off { background: #E6E7E0; color: #A2A69B; text-decoration: line-through; }
.am-note { font-size: 0.8rem; color: var(--ink-dim); margin-top: 0.6rem; }

.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.cal-day {
  background: var(--card); border: 1px solid var(--line); border-radius: 7px;
  text-align: center; padding: 0.35rem 0;
}
.cal-num { display: block; font-weight: 700; font-size: 0.95rem; }
.cal-wd { font-size: 0.68rem; color: var(--ink-dim); }
.cal-booked { background: #E4E5DE; opacity: 0.55; }

.review { border-top: 1px dashed var(--line); padding: 0.9rem 0; }
.review:first-of-type { border-top: none; }
.review-head { display: flex; gap: 0.8rem; align-items: baseline; margin-bottom: 0.2rem; }
.review p { font-size: 0.94rem; }

.book-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; position: sticky; top: 5rem;
  box-shadow: 0 6px 20px rgba(24,33,54,0.07);
}
.book-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; margin-bottom: 1rem; }
.book-price em { font-style: normal; font-size: 0.85rem; color: var(--ink-dim); font-weight: 400; }
.book-box label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.8rem; }
.book-box input, .book-box textarea {
  display: block; width: 100%; margin-top: 0.25rem;
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
}
.book-note { font-size: 0.78rem; color: var(--ink-dim); margin-top: 0.7rem; }

/* ============ forms ============ */
.form label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 1.1rem; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 0.3rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 400;
  padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2.5px solid var(--amber); border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hint { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-dim); margin-top: 0.25rem; }
.form-ams { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.1rem; }
.form-ams legend { font-weight: 700; font-size: 0.92rem; padding: 0 0.4rem; }
.auth-alt { margin-top: 1.2rem; font-size: 0.9rem; text-align: center; }
.auth-alt a { color: var(--green); font-weight: 700; }

/* ============ dashboard / bookings ============ */
.dash-sec { margin-bottom: 2.5rem; }
.dash-sec h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.badge { background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.78rem; padding: 0.1rem 0.6rem; font-family: var(--font-body); vertical-align: middle; }
.req, .dash-spot, .booking {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-bottom: 0.8rem;
}
.req { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.req-main span { display: block; font-size: 0.88rem; color: var(--ink-dim); }
.req-note { font-size: 0.88rem; margin-top: 0.3rem; }
.req-actions { display: flex; gap: 0.5rem; }
.dash-spot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dash-spot-main .card-loc { display: block; }
.dash-spot-stats { display: flex; gap: 1.2rem; font-size: 0.88rem; color: var(--ink-dim); align-items: center; }
.status { font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.7rem; border-radius: 999px; }
.status-published, .status-confirmed { background: var(--green-l); color: var(--green); }
.status-paused, .status-pending { background: #FBEFD9; color: var(--amber-d); }
.status-declined, .status-cancelled { background: #EEE; color: #999; }
.booking-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.booking-body { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-dim); margin-bottom: 0.7rem; }
.booking-actions { display: flex; gap: 0.6rem; align-items: flex-start; }
.review-form summary { list-style: none; }
.review-form form { margin-top: 0.8rem; display: grid; gap: 0.6rem; max-width: 420px; }
.review-form select, .review-form textarea {
  font-family: var(--font-body); padding: 0.5rem; border: 1px solid var(--line); border-radius: 8px;
}

/* ============ footer ============ */
.site-footer { background: var(--night); color: #C3C9D6; margin-top: 3rem; }
.foot-inner {
  max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.4rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.foot-tag { font-size: 0.88rem; margin-top: 0.5rem; opacity: 0.8; }
.foot-links { display: grid; gap: 0.4rem; font-size: 0.9rem; }
.foot-links a:hover { color: var(--amber); }
.foot-copy { text-align: center; font-size: 0.78rem; opacity: 0.5; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============ photos ============ */
.card-photo { background-size: cover; background-position: center; position: relative; align-items: flex-start; justify-content: flex-end; }
.card-type-badge {
  position: absolute; left: 0.6rem; bottom: 0.6rem;
  background: rgba(24,33,54,0.78); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 999px;
}
.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 130px;
  gap: 6px; border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 1.8rem;
}
.gallery-item:first-child { grid-row: span 2; }
.gallery-1 { grid-template-columns: 1fr; grid-auto-rows: 280px; }
.gallery-1 .gallery-item:first-child { grid-row: span 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.12s; }
.gallery-item:hover img { opacity: 0.88; }
.gallery-badge { position: absolute; left: 0.8rem; bottom: 0.8rem; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 110px; }
  .gallery-item:first-child { grid-column: span 2; }
}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
.photo-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo-item img { width: 100%; height: 130px; object-fit: cover; display: block; }
.photo-cover {
  position: absolute; left: 0.5rem; top: 0.5rem;
  background: var(--amber); color: var(--night);
  font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.55rem; border-radius: 999px;
}
.photo-del {
  position: absolute; right: 0.4rem; top: 0.4rem;
  width: 1.7rem; height: 1.7rem; border: none; border-radius: 50%;
  background: rgba(24,33,54,0.75); color: #fff; cursor: pointer; font-size: 0.85rem;
}
.photo-del:hover { background: var(--danger); }
input[type="file"] { border: 1.5px dashed var(--line) !important; padding: 1rem !important; background: var(--card) !important; }

/* ============ delete / disabled buttons ============ */
.dash-spot-actions { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid #E8C9C1; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-disabled { opacity: 0.4; cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.upcoming { font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--green-l); color: var(--green); }
