/*
Theme Name: Fukuki Bishoku Hamamatsucho
Theme URI: https://example.com/
Author: Fukuki Bishoku
Author URI: https://example.com/
Description: 福記美食 浜松町シーバンス店のWordPressテーマ。白と赤を基調にした中国料理店向けデザインです。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: fukuki-bishoku
*/

:root {
  --red: #c41222;
  --red-dark: #8f0f1b;
  --ink: #24191a;
  --muted: #6f6260;
  --line: #eaded9;
  --soft: #fff6f2;
  --gold: #c8922f;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(36, 25, 26, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.topbar {
  background: var(--red-dark);
  color: #fff;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.25;
}

.brand-logo {
  width: 74px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand small {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.brand strong {
  font-size: clamp(22px, 3vw, 31px);
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 14px;
}

.nav a { padding: 8px 0; }
.nav a.is-current { color: var(--red); }
.nav a:hover { color: var(--red); }

.menu-group {
  position: relative;
}

.menu-group > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  cursor: default;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
}

.menu-group:hover .dropdown {
  display: grid;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 10px 20px rgba(196, 18, 34, 0.18);
}

.cta.secondary {
  background: #fff;
  color: var(--red);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 24px;
  color: var(--red);
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #170d0d;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 10, 9, 0.78), rgba(22, 10, 9, 0.34), rgba(22, 10, 9, 0.08)),
    url("assets/images/hero-dishes.jpg") center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 680px;
  padding: 80px 0 120px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.35;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0.04em;
  margin: 12px 0 18px;
}

.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: inherit;
}

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

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--soft);
}

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

.section-title {
  display: grid;
  gap: 8px;
}

.section-title.centered {
  justify-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.news-section {
  background: #fff;
}

.news-list {
  width: min(820px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  background: #fff;
}

.news-list a,
.news-empty {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}

.news-list a {
  transition: background 0.18s ease, color 0.18s ease;
}

.news-list a:hover {
  background: #fff4f2;
}

.news-list time {
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.news-list span,
.news-empty {
  color: #342828;
  font-weight: 700;
}

.pagination {
  margin-top: 34px;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pagination .page-numbers {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  font-weight: 800;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.page-content {
  max-width: 900px;
}

.page-content > p:first-child {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
}

.page-photo {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.menu-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.menu-photo-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(36, 25, 26, 0.06);
}

.menu-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.menu-photo-grid figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 700;
}

.menu-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 9px 14px;
  background: var(--soft);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  color: var(--red-dark);
  font-weight: 800;
}

.food-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 32px;
}

.food-category-card {
  display: grid;
  gap: 5px;
  min-height: 110px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(36, 25, 26, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.food-category-card span {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.food-category-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.food-category-card:hover {
  transform: translateY(-3px);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.menu-section {
  margin: 42px 0 0;
  scroll-margin-top: 120px;
}

.menu-section h2 {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  color: var(--ink);
  font-size: clamp(24px, 3vw, 32px);
}

.menu-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
}

.menu-list {
  display: grid;
  border-top: 1px solid var(--line);
  background: #fff;
}

.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.menu-name {
  color: var(--ink);
  font-weight: 700;
}

.menu-price {
  min-width: 86px;
  color: var(--red);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.commitment-list {
  display: grid;
  gap: 34px;
}

.commitment-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(36, 25, 26, 0.07);
}

.commitment-block.reverse .commitment-copy {
  order: 2;
}

.commitment-block.reverse .commitment-image {
  order: 1;
}

.commitment-copy h2 {
  margin: 4px 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  font-size: clamp(24px, 3vw, 34px);
}

.commitment-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 500;
}

.commitment-image {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

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

.page-content:empty {
  display: none;
}

.page-content-section:has(.page-content:empty) {
  display: none;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(36, 25, 26, 0.06);
}

.card-body { padding: 24px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

.image-frame {
  aspect-ratio: 4 / 3;
  background: #f4ece8;
  overflow: hidden;
}

.image-frame.wide { aspect-ratio: 16 / 9; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

.placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 22px;
  color: var(--red);
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(196, 18, 34, 0.08), rgba(200, 146, 47, 0.13)),
    repeating-linear-gradient(45deg, rgba(196, 18, 34, 0.08) 0 1px, transparent 1px 12px);
}

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.feature-copy p { color: var(--muted); }

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

.tag {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.info-table th,
.info-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  vertical-align: top;
  text-align: left;
}

.info-table th {
  width: 170px;
  color: var(--red);
  background: #fff9f7;
}

.page-hero {
  padding: 92px 0 66px;
  background:
    linear-gradient(120deg, rgba(196, 18, 34, 0.11), rgba(255, 255, 255, 0.88)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(36px, 6vw, 60px);
}

.page-hero .lead {
  color: var(--muted);
  max-width: 780px;
}

.menu-list {
  display: grid;
  gap: 14px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.menu-item strong { font-size: 17px; }
.price { color: var(--red); font-weight: 900; white-space: nowrap; }

.notice {
  padding: 18px 20px;
  border-left: 5px solid var(--red);
  background: #fff;
  color: var(--muted);
}

.map-box {
  min-height: 320px;
  border: 1px solid var(--line);
  background: #f7f1ee;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.required {
  display: inline-flex;
  width: fit-content;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  vertical-align: middle;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
}

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

.contact-layout {
  align-items: start;
}

.contact-card {
  box-shadow: var(--shadow);
}

.form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.form-message p {
  margin: 0 0 6px;
}

.form-message ul {
  margin: 0;
  padding-left: 1.2em;
}

.form-message.success {
  background: #f0fff5;
  border: 1px solid #b7e6c4;
  color: #166534;
}

.form-message.error {
  background: #fff6f2;
  border: 1px solid #efc3ba;
  color: var(--red-dark);
}

.checkbox-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.checkbox-label input {
  width: auto;
  margin-top: 7px;
  accent-color: var(--red);
}

.checkbox-label span {
  color: var(--ink);
}

.site-footer {
  background: #211616;
  color: #fff;
  padding: 56px 0 92px;
}

.site-footer .brand {
  width: fit-content;
  max-width: 100%;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.site-footer .brand-logo {
  width: 116px;
  height: 64px;
}

.site-footer .brand small {
  color: var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.site-footer a { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.copyright { color: #d7c7c1; font-size: 13px; margin-top: 28px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: #d7c7c1;
}

.footer-legal a {
  color: #d7c7c1;
}

@media (max-width: 940px) {
  .topbar { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 18px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: grid;
    align-items: stretch;
    gap: 8px;
  }
  .menu-group > span { display: none; }
  .dropdown {
    position: static;
    display: grid;
    width: auto;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .nav .cta { width: 100%; }
  .hero { min-height: 600px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-inner { padding: 12px 0; }
  .brand strong { font-size: 21px; }
  .hero { min-height: 570px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(22, 10, 9, 0.52), rgba(22, 10, 9, 0.84)),
      url("assets/images/hero-dishes.jpg") center/cover no-repeat;
  }
  .hero-content { padding: 72px 0 96px; }
  .section { padding: 58px 0; }
  .section-head {
    display: grid;
    align-items: start;
  }
  .news-list a,
  .news-empty {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 12px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .food-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-photo-grid { grid-template-columns: 1fr; }
  .menu-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .menu-price {
    min-width: 0;
    text-align: left;
  }
  .commitment-block {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .commitment-block.reverse .commitment-copy,
  .commitment-block.reverse .commitment-image {
    order: initial;
  }
  .hero-actions .cta, .actions .cta { width: 100%; }
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .menu-item {
    display: grid;
    gap: 6px;
  }
  .site-footer { padding-bottom: 58px; }
}

@media (max-width: 430px) {
  .food-category-grid { grid-template-columns: 1fr; }
}
