/* ========================================
   神宮前食堂ソラーヴェ — 共通スタイル
   暖色系・写真重視・スマホファースト
   ======================================== */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f5efe6;
  --color-surface: #ffffff;
  --color-primary: #c45c26;
  --color-primary-light: #d97a42;
  --color-primary-dark: #a34a1c;
  --color-brown: #5c4033;
  --color-brown-light: #8b6f5c;
  --color-text: #5c4f44;
  --color-text-muted: #8a7b6e;
  --color-border: #e8ddd0;

  --font-body: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);

  --section-gap: 5rem;
  --container-max: 1100px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-primary-light);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----------------------------------------
   ボタン
   ---------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 92, 38, 0.25);
}

.btn--full {
  width: 100%;
}

/* ----------------------------------------
   ヘッダー
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header__logo {
  font-size: clamp(0.85rem, 3.2vw, 1.35rem);
  font-weight: 600;
  color: var(--color-brown);
  letter-spacing: 0.03em;
  line-height: 1.3;
  max-width: calc(100% - 3rem);
}

.header__logo:hover {
  color: var(--color-primary);
}

.header__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-brown);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
}

.header__nav.is-open {
  display: block;
}

.header__nav ul {
  list-style: none;
}

.header__nav li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.header__nav li a:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.header__nav-cta {
  color: var(--color-primary) !important;
  font-weight: 500;
}

@media (min-width: 768px) {
  .header__menu-btn {
    display: none;
  }

  .header__nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .header__nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .header__nav li a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
  }

  .header__nav li a:hover {
    background: var(--color-bg-alt);
  }
}

/* ----------------------------------------
   ヒーロー（トップ）
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 85vh;
  margin-top: var(--header-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0;
  animation: heroFadeIn 1.4s ease forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(45, 30, 20, 0.82) 0%,
      rgba(45, 30, 20, 0.45) 38%,
      rgba(45, 30, 20, 0.08) 62%
    ),
    linear-gradient(
      to top,
      rgba(60, 40, 25, 0.7) 0%,
      rgba(60, 40, 25, 0.15) 45%,
      transparent 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  padding: 3rem 1.25rem 4rem;
  margin: 0;
  margin-left: max(1.25rem, calc((100% - var(--container-max)) / 2 + 1.25rem));
  color: #fff;
}

.hero__sub {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  opacity: 0.92;
}

.hero__title {
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero__btn {
  min-width: 200px;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ----------------------------------------
   セクション共通
   ---------------------------------------- */
.section {
  padding: var(--section-gap) 0;
}

.section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-brown);
  margin-bottom: 0.5rem;
}

.section__lead {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

/* ----------------------------------------
   メニューカード
   ---------------------------------------- */
.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.menu-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.menu-card__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.menu-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card__image-wrap img {
  transform: scale(1.05);
}

.menu-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.menu-card__name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-brown);
  margin-bottom: 0.35rem;
}

.menu-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (min-width: 600px) {
  .menu__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .menu__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------------------------------
   ギャラリー
   ---------------------------------------- */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

@media (min-width: 600px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .gallery__item img {
    aspect-ratio: 1 / 1;
  }
}

/* ----------------------------------------
   営業時間
   ---------------------------------------- */
.hours__content {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.hours__table {
  width: 100%;
  border-collapse: collapse;
}

.hours__table th,
.hours__table td {
  padding: 0.75rem 0;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.hours__table th {
  width: 35%;
  font-weight: 500;
  color: var(--color-brown);
}

.hours__table tr:last-child th,
.hours__table tr:last-child td {
  border-bottom: none;
}

.hours__tel {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.hours__tel-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.hours__tel-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.hours__tel-number:hover {
  color: var(--color-primary-light);
}

/* ----------------------------------------
   アクセス
   ---------------------------------------- */
.access__grid {
  display: grid;
  gap: 2rem;
}

.access__list > div {
  margin-bottom: 1.25rem;
}

.access__list dt {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-brown-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.access__list dd {
  font-size: 0.95rem;
  line-height: 1.7;
}

.access__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.access__map iframe {
  width: 100%;
  height: 280px;
  display: block;
}

@media (min-width: 768px) {
  .access__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .access__map iframe {
    height: 360px;
  }
}

/* ----------------------------------------
   フッター
   ---------------------------------------- */
.footer {
  background: var(--color-brown);
  color: #e8ddd0;
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__address {
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer__address a {
  color: #f5d4b8;
}

.footer__address a:hover {
  color: #fff;
}

.footer__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer__nav a {
  font-size: 0.875rem;
  color: #e8ddd0;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-brown-light);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer__copy {
    width: 100%;
  }
}

/* ----------------------------------------
   お問い合わせページ
   ---------------------------------------- */
.page-hero {
  margin-top: var(--header-height);
  padding: 3rem 0 2rem;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-hero__title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-brown);
  margin-bottom: 0.5rem;
}

.page-hero__sub {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.contact__grid {
  display: grid;
  gap: 2.5rem;
}

.contact__heading {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-brown);
  margin-bottom: 1.25rem;
}

.contact__form-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brown);
  margin-bottom: 0.4rem;
}

.required {
  font-size: 0.75rem;
  color: var(--color-primary);
  margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.15);
}

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

.form-group--error input,
.form-group--error textarea {
  border-color: #c45c26;
  background-color: #fffaf7;
}

.form-error {
  min-height: 1.25rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-primary-dark);
  line-height: 1.5;
}

.contact-form__submit {
  margin-top: 0.5rem;
  border: none;
}

.contact-form.is-hidden {
  display: none;
}

.contact-form__success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.contact-form__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: 50%;
}

.contact-form__success-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-brown);
  margin-bottom: 1rem;
}

.contact-form__success-message {
  font-size: 0.9rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-form__back {
  min-width: 200px;
  border: none;
}

.contact-phone {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin-bottom: 2rem;
}

.contact-phone__lead {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.contact-phone__number {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.contact-phone__number:hover {
  color: var(--color-primary-light);
}

.contact-phone__hours {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.contact-access {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.contact-access__list > div {
  margin-bottom: 1rem;
}

.contact-access__list dt {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-brown-light);
  margin-bottom: 0.2rem;
}

.contact-access__list dd {
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-access__map {
  margin-top: 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contact-access__map iframe {
  width: 100%;
  height: 200px;
  display: block;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

/* ----------------------------------------
   フェードイン（初期状態）
   ---------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ヒーロー内は即時表示用 */
.hero .fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: contentFadeIn 1s ease 0.5s forwards;
}

@keyframes contentFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
