/* デザイン全体で使う色・フォント・余白を変数として管理します。 */
:root {
  --color-primary: #5C4033;
  --color-secondary: #8B6252;
  --color-accent: #C97D4E;
  --color-bg: #FAF7F2;
  --color-surface: #F0EBE3;
  --color-text: #2C2C2C;
  --color-muted: #7A7A72;
  --color-border: #DDD8D0;
  --color-white: #FFFFFF;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --space-section: 80px;
  --space-gap: 24px;
  --container-width: 1200px;
}

/* ブラウザごとの余白差を抑え、幅計算を安定させます。 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.8;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.section {
  padding: var(--space-section) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 固定ヘッダーを上部に配置し、各セクションへ移動しやすくします。 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container-width));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-gap);
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a,
.footer-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--color-accent);
}

.header-reserve-button,
.primary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-reserve-button {
  padding: 10px 24px;
}

.primary-button {
  padding: 16px 48px;
}

.header-reserve-button:hover,
.primary-button:hover,
.submit-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.menu-toggle {
  display: none;
}

/* ヒーローは背景写真の対象物を避け、左側の余白にコピーとロゴを置きます。 */
.hero {
  min-height: 640px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(250, 247, 242, 0.94) 0%, rgba(250, 247, 242, 0.76) 35%, rgba(250, 247, 242, 0.08) 64%),
    url("images/hero-background.png");
  background-position: center right;
  background-size: cover;
  text-align: left;
}

.hero-content {
  display: grid;
  justify-items: start;
  gap: 28px;
  padding: 96px 0;
}

.hero h1,
.section h2,
.course-card h3,
.shop-info h2,
.contact-form h2 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-serif);
  line-height: 1.35;
}

.hero h1 {
  max-width: 560px;
  font-size: 42px;
  line-height: 1.45;
}

.hero-logo {
  margin: 0;
}

.hero-logo img {
  width: min(100%, 420px);
  height: auto;
}

.about-section,
.access-section {
  background: var(--color-white);
}

.price-section {
  background: var(--color-bg);
}

.section h2 {
  margin-bottom: 40px;
  text-align: center;
  font-size: 32px;
}

/* 体験ステップはカード化して、初めての方でも工程を追いやすくします。 */
.step-grid,
.price-grid,
.access-grid {
  display: grid;
  gap: var(--space-gap);
}

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

.step-card {
  min-height: 150px;
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--color-surface);
}

.step-number {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.step-illustration {
  margin: 0 0 18px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.step-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

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

.course-card {
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
}

.course-card h3 {
  margin-bottom: 24px;
  text-align: center;
  font-size: 22px;
}

.course-photo {
  margin: 0;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: var(--color-surface);
}

.course-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-price {
  margin: 24px 0;
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.course-tax {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.56em;
  vertical-align: 0.08em;
}

.course-details {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.course-details div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

.course-details dt,
.course-details dd {
  margin: 0;
}

.course-note {
  margin-top: 32px;
  padding: 32px 40px;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 15px;
  line-height: 2;
}

.course-note p {
  margin: 0;
}

.course-note-strong {
  margin-top: 1em !important;
  color: var(--color-text);
  font-weight: 700;
}

/* Instagramギャラリーは濃い背景で作品投稿とフォローボタンを引き立てます。 */
.section-gallery {
  background-color: var(--color-primary);
  padding: var(--space-section) 0;
  text-align: center;
}

.section-gallery .section-title {
  color: var(--color-white);
}

.gallery-sub {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans);
  font-size: 15px;
  margin-bottom: 40px;
}

.instagram-feed-wrapper {
  max-width: 1200px;
  margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 600px;
}

.instagram-follow {
  margin-top: 32px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-instagram:hover {
  opacity: 0.85;
}

.access-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
}

.map-wrapper {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--color-border);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

.shop-info {
  font-size: 15px;
}

.shop-info h2 {
  margin-bottom: 20px;
  text-align: left;
  font-size: 24px;
}

.access-logo img {
  width: min(100%, 300px);
  height: auto;
}

.shop-info p {
  margin: 0 0 10px;
}

.shop-info a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 電話予約ボタンは、スマートフォンでも押しやすい高さを確保します。 */
.phone-reserve-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 260px);
  min-height: 48px;
  margin: 8px 0 16px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(92, 64, 51, 0.14);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.phone-reserve-button:hover,
.phone-reserve-button:focus-visible {
  transform: translateY(-1px);
  opacity: 0.9;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 16px;
  background: var(--color-surface);
}

.contact-form h2 {
  margin-bottom: 28px;
  font-size: 28px;
  text-align: left;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
}

.form-field textarea {
  resize: vertical;
}

.form-message {
  min-height: 1.8em;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-message.is-error {
  color: #9f2a1f;
}

.form-message.is-success {
  color: #2f6b3c;
}

.submit-button {
  width: 100%;
  padding: 14px 24px;
}

.site-footer {
  padding: 32px 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-gap);
}

.footer-logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

/* JavaScriptが動かない環境でも本文が見えるよう、通常状態は表示します。 */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JavaScriptが有効な場合だけ、スクロール時のフェードイン演出を使います。 */
.js-enabled .fade-in {
  opacity: 0;
  transform: translateY(20px);
}

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

/* タブ操作でも現在位置が分かるようにフォーカス表示を整えます。 */
:focus-visible {
  outline: 3px solid rgba(201, 125, 78, 0.45);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  :root {
    --space-section: 56px;
    --space-gap: 18px;
  }

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

  .header-inner {
    min-height: 64px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    display: grid;
    place-content: center;
    gap: 5px;
  }

  .menu-toggle span:not(.sr-only) {
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 16px 24px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-reserve-button {
    display: none;
  }

  .hero {
    min-height: 520px;
    background:
      linear-gradient(90deg, rgba(250, 247, 242, 0.96) 0%, rgba(250, 247, 242, 0.86) 52%, rgba(250, 247, 242, 0.2) 100%),
      url("images/hero-background.png");
    background-position: left center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-logo img {
    width: min(100%, 320px);
  }

  .hero p {
    font-size: 15px;
  }

  .primary-button {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
  }

  .section h2 {
    margin-bottom: 28px;
    font-size: 24px;
  }

  .step-grid,
  .price-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  /* SPではInstagram埋め込みの最低高を抑え、長すぎる余白を避けます。 */
  .instagram-feed-wrapper {
    min-height: 400px;
  }

  .course-card,
  .course-note,
  .contact-form {
    padding: 28px 22px;
  }

  .course-details div {
    grid-template-columns: 78px 1fr;
  }

  .contact-form h2 {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}
