:root {
  color: #24322f;
  background: #f7f4ee;
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(247, 244, 238, 0.7)),
    #f7f4ee;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(36, 50, 47, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #20322e;
  background: transparent;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #2f6f73;
  border-radius: 8px;
  font-family: Georgia, serif;
}

nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(36, 50, 47, 0.1);
  border-radius: 999px;
}

nav button {
  min-width: 64px;
  padding: 8px 16px;
  color: #43534f;
  background: transparent;
  border-radius: 999px;
}

nav button.active {
  color: #fff;
  background: #24322f;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 7vw, 84px) clamp(18px, 5vw, 72px) 42px;
}

.hero-copy h1,
.page-heading h1,
.detail-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #182723;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-title-translation {
  margin-top: 14px;
  font-size: 0.48em;
  line-height: 1.18;
}

.hero-summary,
.page-heading p,
.detail-hero p {
  max-width: 650px;
  color: #5f6d68;
  font-size: 1.08rem;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b45f43;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
}

.primary-button {
  color: #fff;
  background: #2f6f73;
}

.secondary-button,
.back-button {
  color: #24322f;
  background: #fff;
  border: 1px solid rgba(36, 50, 47, 0.14);
}

.feature-panel,
.trip-card,
.side-panel,
.detail-hero,
.journal-section {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 50, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(35, 48, 44, 0.08);
}

.feature-panel {
  overflow: hidden;
}

.photo-placeholder,
.card-image,
.wide-photo-placeholder {
  display: grid;
  place-items: end start;
  min-height: 280px;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31, 69, 73, 0.2), rgba(172, 93, 65, 0.52)),
    linear-gradient(145deg, #769f9d 0%, #ecd0a4 48%, #c98968 100%);
}

.photo-placeholder span,
.card-image span,
.wide-photo-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.tokyo-tower-cover {
  position: relative;
  background:
    linear-gradient(180deg, rgba(13, 29, 34, 0.12), rgba(13, 29, 34, 0.76)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Tokyo_Tower_at_night_8.JPG?width=1600");
  background-position: center;
  background-size: cover;
}

.tokyo-tower-cover small {
  position: absolute;
  right: 16px;
  bottom: 14px;
  max-width: calc(100% - 32px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: right;
}

.trip-cover-image.tokyo-tower-cover {
  min-height: 210px;
}

.trip-cover-image.tokyo-tower-cover span {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.fuji-handdrawn-cover {
  position: relative;
  background:
    linear-gradient(180deg, rgba(22, 42, 48, 0.02), rgba(22, 42, 48, 0.36)),
    url("/src/assets/fuji-handdrawn-cover.png") center / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.trip-cover-image.fuji-handdrawn-cover {
  min-height: 210px;
}

.fuji-handdrawn-cover span {
  text-shadow: 0 2px 16px rgba(18, 38, 43, 0.42);
}

.feature-content,
.trip-card-body {
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #2f6f73;
  background: #e7f0ec;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.feature-content h2,
.trip-card h3,
.section-heading h2,
.section-title-row h2,
.detail-hero h1,
.check-group h3,
.timeline-item h3 {
  color: #182723;
}

.feature-content h2 {
  margin: 14px 0;
  font-size: 1.75rem;
}

.meta-grid,
.detail-facts {
  display: grid;
  gap: 10px;
}

.meta-grid span,
.detail-facts span,
.compact-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6d68;
}

.content-band,
.page,
.detail-page {
  padding: 34px clamp(18px, 5vw, 72px) 72px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
}

.highlight-grid,
.trip-grid,
.journal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 18px;
  color: #24322f;
  background: #fff;
  border: 1px solid rgba(36, 50, 47, 0.1);
  border-radius: 8px;
}

.page-heading {
  margin: 22px 0 34px;
}

.trip-section {
  margin-top: 30px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-title-row span {
  color: #7b8782;
}

.trip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trip-card {
  overflow: hidden;
}

.card-image {
  min-height: 180px;
}

.trip-card p,
.timeline-item p,
.check-group p,
.note-list p {
  color: #5f6d68;
  line-height: 1.7;
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  font-size: 0.92rem;
}

.text-button {
  color: #2f6f73;
  background: transparent;
  font-weight: 800;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 110px;
  padding: 20px;
  color: #5f6d68;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(36, 50, 47, 0.22);
  border-radius: 8px;
}

.back-button {
  margin-bottom: 18px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: end;
  padding: clamp(24px, 5vw, 44px);
}

.detail-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.trip-overview-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
  margin-top: 22px;
}

.overview-panel {
  min-width: 0;
}

.flight-grid,
.stay-grid {
  display: grid;
  gap: 12px;
}

.flight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flight-card,
.stay-card {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 50, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(35, 48, 44, 0.06);
}

.overview-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #2d7b80;
  font-weight: 800;
}

.overview-card-top span {
  color: #bf6045;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flight-card h3,
.stay-card h3 {
  margin: 0 0 10px;
  color: #182723;
  font-size: 1.1rem;
}

.flight-card p,
.stay-card p {
  overflow-wrap: anywhere;
  margin: 0;
  color: #5f6d68;
  line-height: 1.65;
}

.flight-card p + p {
  margin-top: 8px;
}

.flight-route,
.flight-time {
  color: #182723;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.timeline-section {
  min-width: 0;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(36, 50, 47, 0.1);
  border-radius: 8px;
}

.day-number {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #fff;
  background: #b45f43;
  border-radius: 8px;
  font-weight: 800;
}

.date-label {
  color: #2f6f73;
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 6px 0;
}

.side-panel {
  padding: 22px;
}

.checklist {
  display: grid;
  gap: 18px;
}

.check-group h3 {
  margin: 0 0 8px;
}

.check-group p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
}

.check-group svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: #2f6f73;
}

.journal-section {
  margin-top: 22px;
  padding: 22px;
}

.journal-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.wide-photo-placeholder {
  min-height: 260px;
  border-radius: 8px;
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-list p {
  margin: 0;
  padding: 16px;
  background: #f7f4ee;
  border-radius: 8px;
}

@media (max-width: 960px) {
  .hero,
  .detail-hero,
  .trip-overview-section,
  .detail-layout,
  .day-detail-layout,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .flight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-grid,
  .trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  nav {
    width: 100%;
  }

  nav button {
    flex: 1;
  }

  .hero,
  .content-band,
  .page,
  .detail-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h1,
  .page-heading h1,
  .detail-hero h1 {
    font-size: 2.35rem;
    line-height: 1.05;
  }

  .highlight-grid,
  .trip-grid,
  .flight-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .day-number {
    width: 100%;
    height: 48px;
  }
}

.rich-timeline-item {
  align-items: start;
}

.day-content {
  min-width: 0;
}

.day-summary {
  margin: 8px 0 12px;
  color: #51615c;
  font-size: 1rem;
  line-height: 1.75;
}

.route-line {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px 14px;
  color: #44544f;
  background: #f7f4ee;
  border: 1px solid rgba(36, 50, 47, 0.08);
  border-radius: 8px;
  line-height: 1.65;
}

.route-line strong {
  color: #b45f43;
  font-size: 0.82rem;
}

.day-blocks {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.day-block {
  background: rgba(247, 244, 238, 0.72);
  border: 1px solid rgba(36, 50, 47, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.day-block summary {
  display: grid;
  grid-template-columns: minmax(92px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: #20322e;
  cursor: pointer;
}

.day-block summary span {
  color: #2f6f73;
  font-size: 0.86rem;
  font-weight: 800;
}

.day-block ul {
  margin: 0;
  padding: 0 18px 14px 34px;
  color: #5f6d68;
  line-height: 1.7;
}

.tip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tip-list span {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 10px;
  color: #7a4a38;
  background: #fff3ec;
  border: 1px solid rgba(180, 95, 67, 0.16);
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.day-entry-card {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.day-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 115, 0.28);
  box-shadow: 0 18px 44px rgba(35, 48, 44, 0.1);
}

.day-link {
  margin-top: 8px;
}

.day-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.day-main-panel {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(36, 50, 47, 0.1);
  border-radius: 8px;
}

.large-route {
  margin-bottom: 26px;
}

.open-day-block .day-block-heading {
  display: grid;
  grid-template-columns: minmax(96px, 0.26fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: #20322e;
}

.open-day-block .day-block-heading span {
  color: #2f6f73;
  font-size: 0.86rem;
  font-weight: 800;
}

.day-page-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.day-page-nav span {
  flex: 1;
}

.day-tip-list {
  display: grid;
}

@media (max-width: 640px) {
  .day-block summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .open-day-block .day-block-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .day-page-nav {
    flex-direction: column;
  }

  .tip-list span {
    width: 100%;
    border-radius: 8px;
  }
}

@media (max-width: 760px) {
  .day-detail-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .day-detail-page .back-button {
    width: 100%;
  }

  .day-hero {
    gap: 18px;
    padding: 22px 18px;
  }

  .day-hero h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .day-hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .day-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .day-main-panel,
  .day-detail-layout .side-panel {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }

  .day-detail-page .detail-facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .day-detail-page .detail-facts span {
    align-items: flex-start;
    line-height: 1.45;
  }

  .route-line {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .large-route {
    margin-bottom: 20px;
  }

  .open-day-block .day-block-heading {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .open-day-block ul {
    padding: 0 14px 14px 28px;
  }

  .day-page-nav {
    flex-direction: column;
  }

  .day-page-nav .primary-button,
  .day-page-nav .secondary-button {
    width: 100%;
  }
}
