*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --espresso:  #301913;
  --brown-mid: #6b3820;
  --cream:     #fcf8e8;
  --cream-dk:  #f5edcf;
  --yellow:    #ffea98;
  --yellow-dk: #e6c86a;
  --white:     #ffffff;
  --text:      #301913;
  --text-mid:  #5a3820;
  --text-lt:   #9a7850;
  --border:    #e6dcb8;
  --ease: cubic-bezier(.4,.4,0,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header-top {
  background: var(--espresso);
  text-align: center;
  padding: 8px;
}
.header-sub {
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.2em;
  font-family: 'Noto Serif JP', serif;
}

.nav {
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 14px 0;
  gap: 2px;
}
.nav-logo-en {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  color: var(--yellow);
  letter-spacing: 0.18em;
  font-style: italic;
}
.nav-logo-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-links li a {
  display: block;
  padding: 22px 20px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color .3s var(--ease), background .3s var(--ease);
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav-links li a:hover { color: var(--yellow); }
.nav-links li a:hover::after { transform: scaleX(1); }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--espresso);
}

.hero-visual {
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
  background: var(--espresso);
}

.hero-en {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--yellow);
  margin-bottom: 20px;
  font-style: italic;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 2.1;
  margin-bottom: 40px;
}
.hero-desc br { display: block; }

.hero-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--espresso);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 40px;
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: background .3s var(--ease), transform .3s var(--ease);
  align-self: flex-start;
}
.hero-btn:hover {
  background: var(--yellow-dk);
  transform: translateY(-2px);
}

/* ===== SECTION COMMON ===== */
.section { padding: 80px 0; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-head {
  margin-bottom: 48px;
  border-bottom: 2px solid var(--espresso);
  padding-bottom: 20px;
}

.section-en {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--espresso);
  margin-bottom: 8px;
  font-style: italic;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: 0.05em;
}

/* ===== CAFE GRID ===== */
.pickup-section { background: var(--cream); }

.cafe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cafe-card {
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cafe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(48, 25, 19, 0.14);
}

.cafe-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.cafe-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.cafe-card:hover .cafe-card-img img {
  transform: scale(1.05);
}
.cafe-card-area {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--espresso);
  color: var(--yellow);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  font-family: 'Noto Serif JP', serif;
  z-index: 1;
}

.cafe-card-body {
  padding: 20px 22px 24px;
}
.cafe-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cafe-tag {
  font-size: 0.68rem;
  border: 1px solid var(--espresso);
  color: var(--espresso);
  padding: 2px 8px;
  letter-spacing: 0.08em;
}
.cafe-card-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.cafe-card-catch {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}
.cafe-card-link {
  font-size: 0.8rem;
  color: var(--espresso);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.cafe-card-link::before {
  content: '▶';
  font-size: 0.6rem;
  color: var(--espresso);
}

/* ===== CATEGORY ===== */
.category-section { background: var(--yellow); }
.category-section .section-head { border-bottom-color: var(--espresso); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 16px 24px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.category-card:hover {
  background: var(--espresso);
  transform: translateY(-3px);
}
.category-card:hover .category-icon,
.category-card:hover .category-label,
.category-card:hover .category-desc { color: var(--yellow); }

.category-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  transition: color .3s var(--ease);
}
.category-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  transition: color .3s var(--ease);
}
.category-desc {
  font-size: 0.72rem;
  color: var(--text-lt);
  line-height: 1.7;
  transition: color .3s var(--ease);
}

/* ===== AREA ===== */
.area-section { background: var(--cream-dk); }

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.area-card {
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.area-card:hover {
  border-bottom-color: var(--espresso);
  background: var(--cream);
}
.area-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--espresso);
  letter-spacing: 0.08em;
}
.area-count {
  font-size: 0.75rem;
  color: var(--text-lt);
  letter-spacing: 0.06em;
}

/* ===== FEATURE ===== */
.feature-section { background: var(--cream); }

.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
}

.feature-card {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: opacity .3s var(--ease);
}
.feature-card:hover { opacity: 0.88; }

.feature-card-img {
  height: 220px;
  overflow: hidden;
}
.feature-card--main .feature-card-img { height: 280px; }

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.feature-card:hover .feature-card-img img {
  transform: scale(1.04);
}

.feature-card-text {
  padding: 22px 24px;
  border-top: 3px solid var(--espresso);
}

.feature-tag {
  font-family: 'Playfair Display', serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--espresso);
  font-style: italic;
  margin-bottom: 8px;
}
.feature-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.6;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.feature-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 14px;
}
.feature-link {
  font-size: 0.8rem;
  color: var(--espresso);
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: opacity .3s var(--ease);
}
.feature-link:hover { opacity: 0.65; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--espresso);
  padding: 56px 40px;
  text-align: center;
}
.footer-logo-en {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: var(--yellow);
  letter-spacing: 0.2em;
  font-style: italic;
  margin-bottom: 4px;
}
.footer-logo-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(48, 25, 19, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  max-width: 600px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(48,25,19,0.3);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--espresso);
  color: var(--yellow);
  border: none;
  width: 36px; height: 36px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s var(--ease);
  z-index: 10;
}
.modal-close:hover { opacity: 0.75; }

.modal-img {
  height: 260px;
  overflow: hidden;
}
.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body { padding: 32px 36px 40px; }

.modal-area-tag {
  display: inline-block;
  background: var(--espresso);
  color: var(--yellow);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  margin-bottom: 16px;
  font-family: 'Noto Serif JP', serif;
}

.modal-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.modal-catch {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-style: italic;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-desc {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 24px;
}

.modal-info {
  background: var(--cream);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-info-row {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}
.modal-info-label {
  color: var(--text-lt);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  min-width: 80px;
  padding-top: 2px;
}
.modal-info-value {
  color: var(--espresso);
  font-weight: 500;
}
.modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cafe-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--main { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 240px; }
  .hero-text { padding: 48px 28px; }
  .hero-desc br { display: none; }

  .section-inner { padding: 0 20px; }
  .section { padding: 56px 0; }

  .cafe-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--main { grid-column: auto; }

  .modal-body { padding: 24px 20px 32px; }
}
