/* ---------- Tokens ---------- */
:root {
  --cream: #14120F;
  --cream-card: #211D18;
  --ink: #F4EFE5;
  --ink-soft: #B3A99A;
  --gold: #F0B33D;
  --gold-deep: #D99A2B;
  --sage: #6F8768;
  --sage-deep: #7BC26E;
  --sage-pale: #1E2A1B;
  --line: rgba(255, 255, 255, 0.14);

  --font-display: "Zen Maru Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;

  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

main section[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }

.btn-outline { background: var(--cream-card); color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { background: #2A241D; }

.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: #2B2620; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(217, 154, 43, 0.6); }

.btn-large { padding: 16px 34px; font-size: 1rem; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--cream);
  box-shadow: 0 1px 0 0 var(--line);
  z-index: 100;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 26px; height: 26px; object-fit: contain; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1rem; }
.brand-x { color: var(--gold-deep); }

.header-right { display: flex; align-items: center; gap: 20px; }

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 0.9rem; font-weight: 500; }

.nav-cta { display: inline-flex; align-items: center; background: var(--ink); color: var(--cream); padding: 9px 20px; border-radius: 999px; font-weight: 700; border: none; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nav-cta:hover { background: var(--gold-deep); }

.floating-mygift-btn {
  position: fixed;
  right: 48px;
  bottom: 48px;
  z-index: 500;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  background: var(--gold-deep);
  color: #2B2620;
  padding: 0;
  border-radius: 50%;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}
.floating-mygift-btn:hover { background: var(--gold); transform: translateY(-2px); }

@media (max-width: 640px) {
  .floating-mygift-btn { right: 20px; bottom: 20px; width: 88px; height: 88px; font-size: 0.72rem; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-visual { position: absolute; inset: 0; cursor: pointer; }

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-photo.is-active { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 13, 10, 0.15) 0%, rgba(15, 13, 10, 0.25) 40%, rgba(12, 10, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0.05) 55%);
}

.hero-wrap { position: relative; z-index: 1; padding: 80px 32px 96px; width: 100%; max-width: var(--max-width); margin: 0 auto; }

.hero-copy { max-width: 640px; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 1.2em;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.01em;
}

.hero-lead {
  color: rgba(244, 239, 229, 0.82);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 46ch;
  margin: 1.2em 0 2em;
}

.btn-hero-cta {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #2B2620;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 16px 32px -14px rgba(217, 154, 43, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(217, 154, 43, 0.7); }

/* ---------- Services ---------- */
.services { padding: 40px 0 60px; }

.services-inner {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 64px 48px;
}

.services-eyebrow {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  margin-bottom: 0.6em;
}

.services-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin-bottom: 44px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: #1B1712;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  --accent: var(--gold-deep);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 154, 43, 0.4);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6);
}

.service-card--featured {
  grid-row: 1 / 3;
  background: #211A10;
  border-color: rgba(217, 154, 43, 0.3);
  padding: 20px;
}

.service-photo-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 170px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card--featured .service-photo-wrap { height: 320px; }

.service-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.service-card:hover .service-photo { transform: scale(1.06); }

.service-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #2B2620;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  border-radius: 999px;
  z-index: 3;
}

.service-body { padding: 0 6px 6px; position: relative; flex: 1; display: flex; flex-direction: column; }

.service-kicker {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.2em;
  letter-spacing: 0.02em;
}

.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.service-card--featured h3 { font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; margin-bottom: 0.8em; }
.service-card--featured p { font-size: 1rem; line-height: 1.85; max-width: 44ch; }

.service-card p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 2.2em; }

.service-arrow {
  margin-top: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.service-card:hover .service-arrow { background: var(--gold-deep); color: #2B2620; }

.service-card--featured .service-arrow { width: 48px; height: 48px; border-color: var(--gold); color: var(--gold); }
.service-card--featured:hover .service-arrow { background: var(--gold); color: #2B2620; }

/* ---------- Travel feature ---------- */
.travel-feature { padding: 20px 0 90px; }

.travel-inner {
  background: linear-gradient(155deg, #241C10 0%, #14110C 75%);
  border: 1px solid rgba(217, 154, 43, 0.22);
  border-radius: 32px;
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.badge-light {
  position: static;
  display: inline-block;
  background: var(--gold);
  color: #2B2620;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 1.2em;
}

.badge-handwritten {
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: 'Yomogi', var(--font-body);
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
}

.travel-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.travel-copy h2 .en { font-size: 0.9rem; font-weight: 500; color: var(--gold-deep); margin-left: 8px; }

.travel-copy p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.9; }

.feature-list { list-style: none; margin: 1.4em 0 1.8em; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; color: var(--ink-soft); }
.feature-icon { font-size: 1.1rem; }

.travel-photos { position: relative; height: 420px; }
.photo {
  display: block;
  border-radius: 18px;
  border: 4px solid rgba(244, 239, 229, 0.9);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.6);
  object-fit: cover;
}
.photo--center { width: 100%; height: 100%; }
.photo--left {
  position: absolute;
  width: 180px;
  height: 140px;
  bottom: -30px;
  left: -24px;
  transform: rotate(-6deg);
  z-index: 2;
}
.photo--right {
  position: absolute;
  width: 150px;
  height: 190px;
  bottom: -46px;
  right: -20px;
  transform: rotate(5deg);
  z-index: 3;
}

/* ---------- Flow ---------- */
.flow { padding: 80px 0; }

.flow-inner {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 56px 40px;
}

.flow h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.flow-lead { color: var(--ink-soft); margin-bottom: 3em; }

.flow-steps { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }

.flow-step { display: flex; align-items: center; gap: 16px; max-width: 280px; text-align: left; }

.flow-step-text { flex: 1; }

.step-tag { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gold-deep); margin-bottom: 0.4em; }

.step-icon {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.step-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.flow-step p { font-size: 0.86rem; color: var(--ink-soft); }

.step-arrow { color: var(--gold); font-size: 2rem; font-weight: 700; }

.flow-steps--vertical {
  flex-direction: column;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
  gap: 40px;
}

.flow-steps--vertical .flow-step { max-width: none; gap: 24px; }

.flow-steps--vertical .step-icon { width: 120px; height: 120px; }

.flow-steps--vertical .flow-step p { font-size: 0.95rem; line-height: 1.8; }

/* ---------- Audience ---------- */
.audience { padding: 20px 0 80px; }

.audience h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 44px; }

.audience-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 640px; margin: 0 auto; }

.audience-card { background: var(--cream-card); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }

.audience-card img { width: 100%; height: 220px; object-fit: cover; }

.audience-body { padding: 26px 26px 30px; }

.badge-gold { position: static; display: inline-block; background: var(--gold); color: #2B2620; margin-bottom: 0.8em; }
.badge-sage { position: static; display: inline-block; background: var(--sage-pale); color: var(--sage-deep); margin-bottom: 0.8em; }

.audience-badge { display: inline-block; background: none; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.6em; }
.audience-badge--gold { color: var(--gold); }
.audience-badge--sage { color: var(--sage-deep); }

.audience-body h3 { font-size: 1.15rem; }

.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li { font-size: 0.88rem; color: var(--ink-soft); padding-left: 1.4em; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

.first-time-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.first-time-image { position: relative; min-height: 260px; }
.first-time-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.first-time-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 70%);
  pointer-events: none;
}
.first-time-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  right: 24px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.first-time-label:hover { text-decoration: underline; }

.first-time-body { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.first-time-body h3 { font-size: 1.2rem; }
.first-time-more { display: inline-block; margin-top: 6px; font-size: 0.9rem; font-weight: 700; color: var(--gold-deep); text-decoration: none; }
.first-time-more:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .first-time-card { grid-template-columns: 1fr; }
  .first-time-image { height: 220px; min-height: 0; }
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.testimonial-card { background: var(--cream-card); border-radius: 20px; padding: 26px 24px; }

.testimonial-quote { font-size: 0.92rem; color: var(--ink); margin: 0 0 16px; line-height: 1.75; }

.testimonial-meta { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; }

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { padding: 20px 0 90px; }

.contact-panel {
  background: linear-gradient(135deg, var(--gold) 0%, #F0BD68 100%);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.contact-copy h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.contact-copy p { color: #4A3B1B; }
.contact-free { font-weight: 700; }

.contact-form { background: transparent; display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea {
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #0A0908; color: #C9C2B4; padding: 44px 0; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 0.85rem; }

.footer-brand { display: flex; align-items: center; gap: 8px; }
.brand-name--small { color: #fff; }

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-social { display: flex; gap: 10px; }

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #211D18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #C9C2B4;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.social-link svg { width: 17px; height: 17px; display: block; }
.social-link:hover { transform: translateY(-2px); color: #fff; }
.social-link--line:hover { background: #06C755; border-color: #06C755; }
.social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }
.social-link--tiktok:hover { background: #000; }

.footer-meta { text-align: right; }
.footer-tagline { color: var(--gold); font-size: 0.8rem; }

/* ---------- Responsive ---------- */
.mobile-only { display: none; }

@media (max-width: 900px) {
  .hero { min-height: calc(100svh - 41px); align-items: flex-end; }
  .hero-wrap { padding: 32px 24px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .hero-copy h1 { font-size: clamp(2rem, 7.4vw, 2.6rem); }
  .hero-lead { font-size: 0.95rem; }

  .travel-inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .travel-photos { height: 260px; margin-top: 30px; }
  .photo--left { width: 120px; height: 96px; bottom: -20px; left: -14px; }
  .photo--right { width: 100px; height: 130px; bottom: -30px; right: -12px; }

  .flow-inner { padding: 36px 24px; border-radius: 24px; }
  .services-inner { padding: 36px 24px; border-radius: 24px; }

  .audience-grid { grid-template-columns: 1fr; }

  .contact-panel { grid-template-columns: 1fr; padding: 36px 28px; }

  .flow-steps { flex-direction: column; align-items: stretch; gap: 32px; }
  .step-arrow { display: none; }
  .flow-step { max-width: none; gap: 20px; align-items: flex-start; }
  .step-icon { width: 110px; height: 110px; }

  /* --- mobile front-page redesign --- */
  .mobile-only { display: block; }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  .floating-mygift-btn { display: none; }

  /* PICK UP spotlight card */
  .pickup-feature { padding: 28px 20px 8px; }

  .pickup-badge {
    display: inline-block;
    background: var(--gold);
    color: #2B2620;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
  }

  .pickup-card {
    position: relative;
    display: block;
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
  }

  .pickup-photo { height: 200px; }
  .pickup-photo img { width: 100%; height: 100%; object-fit: cover; }

  .pickup-body { padding: 20px 24px 26px; }
  .pickup-body h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; margin-bottom: 0.4em; }
  .pickup-body p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.7; margin: 0; padding-right: 40px; }

  .pickup-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-deep);
    color: #2B2620;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  }

  /* services: horizontal scroll, hide the duplicate ギフト×プラン card */
  .service-card--pickup-dupe { display: none; }

  .service-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    margin: 0 -4px;
  }

  .service-card {
    flex: 0 0 68%;
    scroll-snap-align: start;
  }

  /* bottom tab bar */
  .tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    display: flex;
    background: rgba(20, 18, 15, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .tab-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px;
    cursor: pointer;
  }

  .tab-bar-icon { font-size: 1.2rem; }
}

@media (max-width: 640px) {
  .header-right { gap: 12px; }
  .nav-cta { padding: 8px 14px; font-size: 0.82rem; }

  .wrap { padding: 0 20px; }
  .header-inner { padding: 14px 20px; }
  .travel-inner { padding: 36px 24px; }
  .contact-panel { padding: 36px 24px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }

  .service-card { flex-basis: 74%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Login / New-user gate modal ---------- */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.gate-overlay[hidden] {
  display: none;
}

.gate-modal {
  background: var(--cream-card);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
}

.gate-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}

.gate-step h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.gate-step p { color: var(--ink-soft); font-size: 0.9rem; }

.gate-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 1.4em; }
.gate-actions .btn { width: 100%; text-align: center; }

.gate-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 1.2em 0;
}

.gate-field input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.gate-step .btn { width: 100%; text-align: center; }

.gate-back {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.gate-back:hover { color: var(--ink); }

.gate-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gold-deep);
  font-weight: 700;
}

/* ---------- My Page ---------- */
.mypage-hero { padding: 64px 0 20px; }
.mypage-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.mypage-hero p { color: var(--ink-soft); }

.mypage-hero .section-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--gold-deep);
  letter-spacing: 0.02em;
  margin-bottom: 0.3em;
}

.mypage-list { padding: 20px 0 60px; }

.mypage-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mypage-heading { font-size: 1.2rem; margin-bottom: 0; }

@media (max-width: 640px) {
  .mypage-heading-row { align-items: stretch; }
  .mypage-heading-row .btn-line { text-align: center; }
}

.proposal-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.proposal-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: var(--cream-card);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.6em;
}

.proposal-main h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.proposal-main p { font-size: 0.88rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 0; }

.proposal-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.status-badge--pending { background: #3A2E14; color: #F0C877; }
.status-badge--done { background: var(--sage-pale); color: var(--sage-deep); }
.status-badge--progress { background: #2E2818; color: var(--ink-soft); }

.proposal-date { font-size: 0.78rem; color: var(--ink-soft); }
.proposal-link { font-size: 0.85rem; font-weight: 700; color: var(--gold-deep); background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }

.proposal-schedule { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.proposal-schedule th, .proposal-schedule td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.proposal-schedule th { color: var(--ink-soft); font-weight: 700; }

.proposal-email-gate { background: var(--cream-card); border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; }
.proposal-email-gate p { margin-bottom: 12px; color: var(--ink-soft); font-size: 0.9rem; }
.proposal-email-gate-row { display: flex; gap: 10px; flex-wrap: wrap; }
.proposal-email-gate-row input { flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); font-family: inherit; }

.mypage-state { text-align: center; color: var(--ink-soft); padding: 40px 20px; }

.mypage-cta { padding: 20px 0 90px; }

.mypage-cta-inner {
  background: var(--paper, var(--cream-card));
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.mypage-cta-inner h2 { font-size: 1.2rem; margin-bottom: 0.4em; }
.mypage-cta-inner p { color: var(--ink-soft); margin-bottom: 0; }

.mypage-cta-links { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .proposal-card { flex-direction: column; }
  .proposal-side { align-items: flex-start; }
  .mypage-cta-inner { flex-direction: column; align-items: flex-start; }
}
