﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #f25545;
  --coral: #ff6b5c;
  --ink: #19192f;
  --text: #19192f;
  --subtext: #747b8c;
  --muted: #f5f6f8;
  --bg: #ffffff;
  --white: #ffffff;
  --border: #e7e8ee;
  --shadow: 0 18px 50px rgba(25, 25, 47, 0.09);
  --radius: 18px;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.active-page {
  display: block;
}

.hidden-page {
  display: none;
}

.header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(25, 25, 47, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--red);
  font-size: 1.18rem;
  font-weight: 900;
}

.brand-text h1 {
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-text h1::first-letter {
  color: var(--red);
}

.brand-text p {
  display: none;
}


.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1 1 auto;
}

.nav-link {
  position: relative;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.active-nav {
  color: var(--red);
}

.nav-link.active-nav::after,
.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(242, 85, 69, 0.24);
}

.btn-primary:hover,
.btn-secondary:hover,
.back-link:hover,
.edit-btn:hover,
.delete-btn:hover,
.stat-button:hover,
.comment-submit:hover,
.search-button:hover,
.tag-list button:hover,
.slider-arrow:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-language {
  padding-inline: 16px;
}

.hero {
  background: #fff;
  color: var(--ink);
  padding: 48px 0 26px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  gap: clamp(28px, 4.8vw, 54px);
  align-items: center;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #fff1ef;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 7px 14px;
  margin-bottom: 24px;
}

.hero-kicker::before {
  content: "*";
  font-size: 0.78rem;
}

.hero h2 {
  font-size: clamp(2.15rem, 4.4vw, 3.85rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.hero h2::first-line {
  color: var(--ink);
}

.hero h2 strong,
.hero h2 em {
  color: var(--red);
  font-style: normal;
}

.hero p {
  color: var(--subtext);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  max-width: 600px;
  margin-bottom: 28px;
}

.search-box {
  width: min(590px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(25, 25, 47, 0.09);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
}

.search-icon {
  color: #7b8291;
  font-size: 1.18rem;
  line-height: 1;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
}

.search-box input::placeholder {
  color: #82899a;
}

.search-button {
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 10px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-tags {
  margin-top: 14px;
  color: #667085;
  font-size: 0.84rem;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 8px;
}

.tag-list button {
  border: none;
  border-radius: 999px;
  background: #f0f2f5;
  color: #536071;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 5px 12px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tag-list button:hover {
  background: #fff1ef;
  color: var(--red);
}

.hero-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 460px;
  overflow: hidden;
  border-radius: 22px;
  background: #e9ebef;
  box-shadow: 0 24px 70px rgba(25, 25, 47, 0.16);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.active-slide {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.slide-location {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  max-width: calc(100% - 40px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 9px 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.slide-location::before {
  content: "JP";
  color: var(--red);
  margin-right: 8px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.03);
}

.slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.slider-dot.active-dot {
  width: 24px;
  background: #fff;
}

.about-section {
  padding: 34px 0 42px;
  background: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.eyebrow {
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.about-copy h3 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.28;
  margin-bottom: 14px;
}

.about-copy p:last-child {
  color: var(--subtext);
  font-size: 1.03rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 148px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 20px 18px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0ef;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.feature-icon.amber {
  background: #fff5e6;
  color: #f29a1f;
}

.feature-icon.pink {
  background: #fff0f7;
  color: #ef3c98;
}

.feature-icon.green {
  background: #eafbf2;
  color: #12bf73;
}

.feature-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--subtext);
  font-size: 0.92rem;
}


.explore-top {
  background: #fff4ef;
  border-top: 1px solid #f3e5e1;
  padding: 42px 0 0;
}

.explore-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: 332px;
}

.explore-top-copy h2 {
  color: var(--ink);
  display: grid;
  font-size: clamp(2.15rem, 4.2vw, 3.45rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 18px;
}

.explore-top-copy .accent-line {
  color: var(--red);
}

.explore-top-copy p:not(.eyebrow) {
  color: var(--subtext);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 560px;
}

.explore-filter-strip {
  background: #fff;
  border-top: 1px solid #f3e5e1;
  box-shadow: 0 2px 8px rgba(25, 25, 47, 0.06);
  margin-top: 34px;
  padding: 14px 0;
}

.explore-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.explore-quick-tags button {
  border: none;
  border-radius: 999px;
  background: #f0f2f5;
  color: #657083;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 18px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.explore-quick-tags button:hover,
.explore-quick-tags button.active-filter {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.explore-illustration {
  align-self: stretch;
  min-height: 292px;
  overflow: hidden;
  position: relative;
}

.explore-illustration span {
  display: block;
  position: absolute;
}

.illu-cloud,
.illu-sun,
.illu-fuji,
.illu-fuji-snow,
.illu-petal,
.illu-lake,
.illu-torii,
.illu-tree,
.illu-house {
  z-index: 1;
}

.illu-cloud {
  background: #fff;
  border-radius: 999px;
  filter: drop-shadow(18px -5px 0 rgba(255, 255, 255, 0.92));
  height: 22px;
  opacity: 0.95;
  width: 84px;
}

.cloud-one {
  left: 9%;
  top: 48px;
}

.cloud-two {
  right: 25%;
  top: 34px;
  transform: scale(0.74);
}

.illu-sun {
  background: #ffc2ad;
  border: 12px solid #ffd8ca;
  border-radius: 50%;
  height: 52px;
  right: 14%;
  top: 52px;
  width: 52px;
}

.illu-fuji {
  background: #bfd4e2;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  height: 128px;
  left: 40%;
  top: 58px;
  transform: translateX(-50%);
  width: 156px;
}

.illu-fuji::after {
  background: rgba(255, 255, 255, 0.28);
  clip-path: polygon(50% 0, 66% 100%, 34% 100%);
  content: "";
  height: 128px;
  left: 0;
  position: absolute;
  top: 0;
  width: 156px;
}

.illu-fuji-snow {
  background: #fff;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  height: 46px;
  left: 40%;
  top: 58px;
  transform: translateX(-50%);
  width: 48px;
}


.illu-petal {
  background: #ffa6bf;
  border-radius: 999px;
  height: 7px;
  width: 12px;
}

.petal-one { left: 29%; top: 112px; transform: rotate(9deg); }
.petal-two { left: 35%; top: 86px; transform: rotate(18deg); }
.petal-three { right: 29%; top: 104px; transform: rotate(22deg); }
.petal-four { right: 38%; top: 124px; transform: rotate(-12deg); }

.illu-hill {
  background: #bfe5bc;
  border-radius: 55% 55% 0 0 / 100% 100% 0 0;
  bottom: 0;
  height: 92px;
  left: -8%;
  width: 116%;
  z-index: 0;
}

.illu-lake {
  background: #cfe8e9;
  border-radius: 50%;
  bottom: 54px;
  height: 42px;
  left: 44%;
  opacity: 0.9;
  transform: translateX(-50%);
  width: 196px;
}

.illu-torii {
  bottom: 63px;
  height: 64px;
  left: 44%;
  transform: translateX(-50%);
  width: 78px;
}

.illu-torii::before,
.illu-torii::after {
  background: #eb5945;
  border-radius: 999px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.illu-torii::before {
  height: 7px;
  top: 0;
  width: 72px;
}

.illu-torii::after {
  height: 7px;
  top: 12px;
  width: 58px;
}

.illu-torii span {
  background: #d95c4c;
  bottom: 0;
  height: 48px;
  width: 7px;
}

.illu-torii span:first-child { left: 20px; }
.illu-torii span:last-child { right: 20px; }

.illu-tree {
  background: #ff9fbd;
  border-radius: 50%;
  bottom: 73px;
  height: 44px;
  width: 44px;
}

.illu-tree::before {
  background: #8a6f55;
  bottom: -30px;
  content: "";
  height: 34px;
  left: 20px;
  position: absolute;
  width: 5px;
}

.illu-tree::after {
  background: rgba(255, 183, 204, 0.82);
  border-radius: 50%;
  content: "";
  height: 34px;
  position: absolute;
  right: -13px;
  top: 8px;
  width: 34px;
}

.tree-left { left: 24%; }
.tree-right { right: 22%; }

.illu-house {
  background: #f5d7b1;
  bottom: 58px;
  height: 18px;
  width: 24px;
}

.illu-house::before {
  border-bottom: 14px solid #e76452;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  content: "";
  left: 50%;
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
}

.illu-house::after {
  background: #fff6e9;
  bottom: 0;
  content: "";
  height: 10px;
  left: 9px;
  position: absolute;
  width: 7px;
}

.house-left { left: 18%; }
.house-right { right: 12%; }

.section {
  padding: 34px 0 26px;
  background: #fafafa;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(25, 25, 47, 0.08);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(25, 25, 47, 0.13);
}

.card:focus-visible {
  outline: 3px solid rgba(242, 85, 69, 0.22);
  outline-offset: 3px;
}

.card-image {
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 16px 14px;
}

.card-title {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.story-description {
  color: var(--subtext);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta,
.stats,
.card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--subtext);
  font-size: 0.92rem;
}

.story-location {
  color: var(--red);
  font-weight: 800;
}

.stats {
  justify-content: space-between;
  border-bottom: 1px solid #eceef3;
  padding-bottom: 10px;
}

.stats-left,
.stats-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-button {
  border: 1px solid #e2e5ec;
  border-radius: 999px;
  background: #f8f9fb;
  color: var(--red);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 7px 12px;
  transition: 0.25s ease;
}

.stat-button.liked,
.stat-button:disabled {
  background: #fff0ef;
  border-color: #ffc3bc;
  color: var(--red);
  cursor: default;
}

.owner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.edit-btn,
.delete-btn {
  margin-top: 4px;
  padding: 8px 14px;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.edit-btn {
  color: #3157a6;
  border: 1px solid #b9caee;
}

.edit-btn:hover {
  background: #3157a6;
  color: var(--white);
  border-color: #3157a6;
}

.delete-btn {
  color: #c94a4a;
  border: 1px solid #e7b2b2;
}

.delete-btn:hover {
  background: #c94a4a;
  color: var(--white);
  border-color: #c94a4a;
}

.comments-panel {
  border-top: 1px solid #eceef3;
  padding-top: 12px;
}

body.modal-open {
  overflow: hidden;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 23, 48, 0.62);
}

.detail-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.detail-image-wrap {
  aspect-ratio: 16 / 9;
  background: #eceef3;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.detail-location {
  color: var(--red);
  font-weight: 800;
}

.detail-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
}

.detail-meta,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--subtext);
}

.detail-description {
  white-space: pre-wrap;
  color: #3c4658;
  font-size: 1.05rem;
}

.detail-comments {
  border-top: 1px solid #eceef3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
}

.detail-comments h3 {
  font-size: 1.25rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-item {
  background: #f8f9fb;
  border: 1px solid #eceef3;
  border-radius: 10px;
  padding: 10px 12px;
}

.comment-head {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.comment-item p,
.comment-empty {
  color: var(--subtext);
  font-size: 0.92rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.comment-form textarea {
  min-height: 82px;
  resize: vertical;
}

.comment-submit {
  align-self: flex-end;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 9px 16px;
  transition: 0.25s ease;
}

.empty-state {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  color: var(--subtext);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.footer-note {
  margin-top: 48px;
  background: #0d1730;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 14px 18px;
  font-size: 0.92rem;
}

.form-page {
  padding: 28px 0 58px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4c5668;
  font-weight: 600;
  margin-bottom: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.form-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.form-card h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 10px;
  font-weight: 800;
}

.form-card > p {
  color: var(--subtext);
  font-size: 1.15rem;
  margin-bottom: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.field label {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d8dde6;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.95rem;
  outline: none;
  transition: 0.2s ease;
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #f25545;
  box-shadow: 0 0 0 4px rgba(242, 85, 69, 0.1);
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.file-input {
  display: none;
}

.upload-box {
  border: 2px dashed #d4d8e2;
  border-radius: 14px;
  min-height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8a93a5;
  background: #fcfcfd;
  cursor: pointer;
}

.upload-box .icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #5b6577;
  font-weight: 800;
}

.upload-box strong {
  color: #5b6577;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.selected-file {
  margin-top: 10px;
  color: #445066;
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.form-actions .btn-primary {
  flex: 1 1 560px;
  min-height: 58px;
  font-size: 1.05rem;
}

.guidelines {
  max-width: 920px;
  margin: 28px auto 0;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 22px 24px;
  color: #3157a6;
}

.guidelines h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.guidelines ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.map-guide-section { background: #f7f8fb; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 34px 0 42px; }
.map-guide-layout { display: grid; grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr); gap: clamp(28px, 4vw, 54px); align-items: start; }
.map-section-head h3, .how-panel h3 { color: var(--ink); font-size: clamp(1.65rem, 2.8vw, 2.15rem); line-height: 1.15; margin-bottom: 10px; }
.map-section-head p { color: var(--subtext); font-size: 0.98rem; margin-bottom: 18px; }
.map-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 42px rgba(25, 25, 47, 0.08); padding: 24px; }
.japan-map { position: relative; min-height: 420px; border: 1px solid #edf0f4; border-radius: 12px; overflow: hidden; background-image: linear-gradient(#edf0f4 1px, transparent 1px), linear-gradient(90deg, #edf0f4 1px, transparent 1px); background-size: 64px 56px; }
.map-region { position: absolute; border: none; background: #f9b5ae; color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 0.72rem; font-weight: 900; transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.map-region span { pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.map-region:hover, .map-region.active-map-region { background: var(--red); box-shadow: 0 10px 22px rgba(242, 85, 69, 0.28); transform: translateY(-2px) scale(1.02); z-index: 2; }
.map-region.hokkaido { width: 118px; height: 88px; right: 38px; top: 18px; clip-path: polygon(6% 8%, 76% 0, 100% 48%, 70% 92%, 28% 100%, 0 64%); }
.map-region.tohoku { width: 82px; height: 118px; right: 116px; top: 108px; clip-path: polygon(22% 0, 82% 8%, 100% 62%, 62% 100%, 20% 88%, 0 42%); }
.map-region.kanto { width: 76px; height: 80px; right: 104px; top: 232px; clip-path: polygon(8% 12%, 86% 0, 100% 66%, 52% 100%, 0 78%); }
.map-region.chubu { width: 94px; height: 82px; right: 178px; top: 226px; clip-path: polygon(12% 26%, 78% 0, 100% 58%, 50% 100%, 8% 82%, 0 42%); }
.map-region.kansai { width: 82px; height: 74px; right: 252px; top: 278px; clip-path: polygon(0 38%, 70% 4%, 100% 74%, 48% 100%, 10% 78%); }
.map-region.chugoku { width: 86px; height: 66px; right: 318px; top: 320px; clip-path: polygon(8% 18%, 100% 0, 94% 72%, 42% 100%, 0 70%); }
.map-region.shikoku { width: 82px; height: 52px; right: 250px; top: 366px; clip-path: polygon(10% 24%, 88% 0, 100% 64%, 48% 100%, 0 70%); }
.map-region.kyushu { width: 82px; height: 82px; right: 392px; top: 354px; clip-path: polygon(10% 14%, 86% 0, 100% 64%, 48% 100%, 0 72%); }
.map-region.okinawa { width: 34px; height: 28px; left: 28px; bottom: 34px; clip-path: polygon(0 28%, 82% 0, 100% 76%, 44% 100%); }
.map-filter-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--subtext); font-size: 0.92rem; font-weight: 800; margin-top: 14px; }
.clear-map-filter { border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--red); cursor: pointer; font-size: 0.85rem; font-weight: 900; padding: 7px 14px; }
.how-panel h3 { text-align: center; margin-bottom: 22px; }
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.how-step { position: relative; text-align: center; color: var(--subtext); }
.step-badge { position: absolute; top: -10px; right: 14px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 0.88rem; font-weight: 900; }
.step-badge.amber { background: #ff9f0a; }
.phone-preview { position: relative; width: min(126px, 100%); height: 250px; margin: 0 auto 14px; border: 4px solid #111827; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 18px 34px rgba(17, 24, 39, 0.13); padding: 18px 10px 12px; }
.phone-status { position: absolute; top: 7px; left: 50%; width: 34px; height: 4px; border-radius: 999px; background: #111827; transform: translateX(-50%); }
.mini-brand { color: var(--red); font-size: 0.72rem; font-weight: 900; margin-bottom: 14px; }
.mini-search { border: 1px solid #e5e7eb; border-radius: 999px; color: #7b8291; font-size: 0.62rem; padding: 7px 8px; text-align: left; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.mini-tags span { background: #f0f2f5; border-radius: 999px; color: #596273; font-size: 0.55rem; padding: 4px 7px; }
.mini-card, .mini-photo { height: 86px; border-radius: 10px; background: linear-gradient(135deg, #f9b5ae, #f25545); margin-bottom: 12px; }
.mini-lines span { display: block; height: 7px; border-radius: 999px; background: #e5e7eb; margin-bottom: 7px; }
.mini-lines span:nth-child(1) { width: 86%; background: #111827; }
.mini-lines span:nth-child(2) { width: 72%; }
.mini-lines span:nth-child(3) { width: 56%; }
.mini-like { border: 1px solid #ffd0cb; border-radius: 999px; color: var(--red); font-size: 0.62rem; font-weight: 900; padding: 7px; margin-bottom: 12px; }
.mini-saved { height: 54px; border-radius: 10px; background: #fff1ef; }
.mini-upload { height: 72px; display: grid; place-items: center; border: 1px dashed #f25545; border-radius: 12px; color: var(--red); font-size: 1.5rem; font-weight: 900; margin-bottom: 12px; background: #fff8f7; }
.mini-input { height: 32px; border-radius: 8px; background: #f0f2f5; margin-bottom: 10px; }
.mini-button { border-radius: 999px; background: var(--red); color: #fff; font-size: 0.62rem; font-weight: 900; padding: 7px; }
.how-step h4 { color: var(--ink); font-size: 0.98rem; margin-bottom: 6px; }
.how-step p { font-size: 0.9rem; line-height: 1.35; max-width: 150px; margin: 0 auto; }

@media (max-width: 1100px) {
  .hero-layout,
  .about-layout,
  .explore-top-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-slider,
  .explore-illustration {
    width: min(560px, 100%);
    min-height: 420px;
    margin: 0 auto;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav,
  .header-actions,
  .header-actions .btn {
    width: 100%;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding: 30px 0 22px;
  }

  .hero h2 {
    font-size: clamp(2rem, 11vw, 2.9rem);
  }

  .search-box {
    border-radius: 16px;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 12px;
  }

  .search-icon {
    align-self: center;
  }

  .search-box input {
    min-height: 40px;
  }

  .search-button {
    width: 100%;
  }

  .hero-slider {
    min-height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  .about-section {
    padding: 28px 0;
  }

  .feature-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .explore-top {
    padding: 30px 0 26px;
  }

  .explore-illustration {
    min-height: 230px;
  }

  .explore-filter-strip {
    margin-top: 24px;
  }

  .section {
    padding-top: 30px;
  }

  .detail-modal {
    padding: 12px;
  }

  .detail-content,
  .form-card {
    padding: 22px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* compact sizing adjustments */
html {
  font-size: 15px;
}

.container {
  width: min(1120px, calc(100% - 32px));
}

.header-inner {
  min-height: 46px;
  gap: 18px;
  padding: 6px 0;
}

.brand {
  gap: 8px;
}

.brand-icon {
  width: 24px;
  height: 24px;
  font-size: 1rem;
}

.brand-text h1 {
  font-size: 0.88rem;
}

.main-nav {
  gap: 18px;
}

.nav-link {
  font-size: 0.86rem;
  padding: 6px 0;
}

.header-actions {
  gap: 10px;
}

.btn {
  font-size: 0.86rem;
  padding: 8px 15px;
}

.hero {
  padding: 34px 0 20px;
}

.hero-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.58fr);
  gap: clamp(22px, 3.8vw, 44px);
}

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

.hero-kicker {
  font-size: 0.8rem;
  margin-bottom: 18px;
  padding: 6px 12px;
}

.hero h2 {
  font-size: clamp(1.9rem, 3.45vw, 3.05rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(0.9rem, 1.05vw, 0.98rem);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 540px;
}

.search-box {
  width: min(520px, 100%);
  border-radius: 16px;
  gap: 8px;
  padding: 6px 8px 6px 14px;
}

.search-icon {
  font-size: 1rem;
}

.search-box input {
  font-size: 0.88rem;
}

.search-button {
  font-size: 0.86rem;
  padding: 8px 16px;
}

.trending-tags {
  font-size: 0.78rem;
  margin-top: 12px;
}

.tag-list {
  gap: 7px 8px;
}

.tag-list button {
  font-size: 0.78rem;
  padding: 4px 10px;
}

.hero-slider {
  width: min(410px, 100%);
  min-height: 360px;
  justify-self: end;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(25, 25, 47, 0.13);
}

.slide-location {
  left: 16px;
  bottom: 15px;
  font-size: 0.78rem;
  padding: 7px 12px;
}

.slider-arrow {
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

.slider-dots {
  bottom: 14px;
  gap: 6px;
}

.slider-dot {
  width: 6px;
  height: 6px;
}

.slider-dot.active-dot {
  width: 20px;
}

.about-section {
  padding: 28px 0 34px;
}

.about-layout {
  grid-template-columns: 260px 1fr;
  gap: 34px;
}

.about-copy h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.62rem);
}

.about-copy p {
  font-size: 0.93rem;
}

.feature-grid {
  gap: 14px;
}

.feature-card {
  min-height: 126px;
  padding: 16px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 0.88rem;
}

.feature-card p {
  font-size: 0.84rem;
}

.map-guide-section {
  padding: 28px 0 34px;
}

.map-guide-layout {
  gap: clamp(22px, 3vw, 40px);
}

.map-card {
  padding: 18px;
}

.map-section-head h3,
.how-panel h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.how-steps {
  gap: 14px;
}

.phone-preview {
  width: min(108px, 100%);
  height: 214px;
  border-radius: 18px;
  margin-bottom: 12px;
}

.explore-top {
  padding: 32px 0 0;
}

.explore-top-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.95fr);
  gap: clamp(24px, 4vw, 54px);
  min-height: 280px;
}

.explore-top-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.85rem);
}

.explore-top-copy p:not(.eyebrow) {
  font-size: 0.94rem;
}

.explore-illustration {
  min-height: 250px;
}

.explore-filter-strip {
  margin-top: 24px;
  padding: 11px 0;
}

.explore-quick-tags button {
  font-size: 0.8rem;
  min-height: 30px;
  padding: 6px 14px;
}

.section {
  padding: 28px 0 22px;
}

.section-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.cards {
  gap: 18px;
}

.card-content {
  padding: 13px 14px 12px;
}

@media (max-width: 1100px) {
  .hero-copy {
    max-width: 640px;
  }

  .hero-slider,
  .explore-illustration {
    width: min(440px, 100%);
    min-height: 340px;
  }

  .about-layout,
  .explore-top-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    font-size: 14.5px;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    gap: 10px;
    padding: 8px 0;
  }

  .hero {
    padding: 24px 0 18px;
  }

  .hero h2 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  .search-box {
    padding: 10px;
  }

  .hero-slider {
    width: 100%;
    min-height: auto;
    aspect-ratio: 4 / 4.7;
  }

  .feature-card {
    padding: 15px;
  }

  .explore-illustration {
    min-height: 220px;
  }
}
/* end compact sizing adjustments */

/* okinawa map visibility fix */
.map-region.okinawa {
  width: 78px;
  height: 36px;
  left: 42px;
  bottom: 22px;
  clip-path: polygon(8% 46%, 32% 18%, 72% 0, 100% 42%, 82% 80%, 34% 100%, 0 72%);
  font-size: 0.68rem;
  z-index: 1;
}

.map-region.okinawa span {
  white-space: nowrap;
}

/* map vertical layout adjustment */
.japan-map {
  min-height: 500px;
}

.map-region.kyushu {
  top: 352px;
}

.map-region.okinawa {
  width: 82px;
  height: 36px;
  left: 34px;
  bottom: 12px;
  clip-path: polygon(8% 46%, 32% 18%, 72% 0, 100% 42%, 82% 80%, 34% 100%, 0 72%);
  font-size: 0.68rem;
  z-index: 1;
}

.map-region.okinawa span {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .japan-map {
    min-height: 460px;
  }

  .map-region.kyushu {
    top: 320px;
  }

  .map-region.okinawa {
    left: 24px;
    bottom: 10px;
  }
}
/* end map vertical layout adjustment */

/* kyushu map visibility fix */
.map-region.kyushu {
  left: 18px;
  right: auto;
  top: 352px;
}

@media (max-width: 760px) {
  .map-region.kyushu {
    left: 18px;
    right: auto;
    top: 320px;
  }
}
/* end kyushu map visibility fix */

/* west japan map separation fix */
.map-region.chugoku {
  left: 118px;
  right: auto;
  top: 322px;
}

.map-region.kansai {
  left: 214px;
  right: auto;
  top: 286px;
}

.map-region.shikoku {
  left: 206px;
  right: auto;
  top: 392px;
}

.map-region.kyushu {
  left: 22px;
  right: auto;
  top: 360px;
}

.map-region.okinawa {
  left: 88px;
  bottom: 12px;
}

@media (max-width: 760px) {
  .map-region.chugoku {
    left: 108px;
    right: auto;
    top: 306px;
  }

  .map-region.kansai {
    left: 198px;
    right: auto;
    top: 274px;
  }

  .map-region.shikoku {
    left: 190px;
    right: auto;
    top: 366px;
  }

  .map-region.kyushu {
    left: 22px;
    right: auto;
    top: 338px;
  }

  .map-region.okinawa {
    left: 82px;
    bottom: 10px;
  }
}
/* end west japan map separation fix */

/* story detail social layout */
.card {
  cursor: pointer;
}

.detail-modal {
  padding: 22px;
}

.detail-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  width: min(1040px, calc(100% - 44px));
  height: min(82vh, 700px);
  overflow: hidden;
  border-radius: 18px;
}

.detail-image-wrap {
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
}

.detail-image {
  object-fit: cover;
}

.detail-content {
  min-height: 0;
  overflow: auto;
  padding: 22px 24px;
}

.detail-location {
  align-self: flex-start;
  background: #fff1ef;
  border-radius: 999px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 10px;
}

.detail-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.detail-description {
  font-size: 0.95rem;
  line-height: 1.7;
}

.detail-actions {
  border-top: 1px solid #eceef3;
  border-bottom: 1px solid #eceef3;
  padding: 12px 0;
}

.detail-comment-count {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.detail-comments {
  flex: 1;
  min-height: 0;
}

.detail-comments h3 {
  font-size: 1rem;
}

#detailCommentsList {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.comment-item {
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
}

.comment-head {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
}

.comment-author {
  color: var(--ink);
  font-weight: 900;
}

.comment-time {
  color: #9aa1af;
  font-size: 0.78rem;
  font-weight: 800;
}

.comment-item p,
.comment-empty {
  color: #465164;
  font-size: 0.9rem;
  line-height: 1.55;
}

#detailCommentForm {
  border-top: 1px solid #eceef3;
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) minmax(0, 1.4fr) auto;
  gap: 8px;
  padding-top: 12px;
}

#detailCommentForm textarea {
  min-height: 44px;
  resize: none;
}

#detailCommentSubmit {
  align-self: stretch;
  padding-inline: 14px;
}

@media (max-width: 860px) {
  .detail-dialog {
    grid-template-columns: 1fr;
    height: min(88vh, 760px);
    overflow: auto;
  }

  .detail-image-wrap {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  #detailCommentForm {
    grid-template-columns: 1fr;
  }
}
/* end story detail social layout */
