/* ===================================
   米粉パン教室 — Design System & Styles
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FAF7F0;
  --color-cream: #F5F0E8;
  --color-warm: #F8E8C8;
  --color-accent: #C4956A;
  --color-accent-dark: #A87B54;
  --color-text: #5C4A3A;
  --color-text-light: #8B7B6B;
  --color-white: #FFFFFF;
  --color-border: #E8DDD0;
  --color-star: #E8B84B;
  --shadow-sm: 0 2px 8px rgba(92, 74, 58, 0.06);
  --shadow-md: 0 4px 20px rgba(92, 74, 58, 0.08);
  --shadow-lg: 0 8px 40px rgba(92, 74, 58, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-main: 'Zen Maru Gothic', 'Hiragino Maru Gothic Pro', 'Rounded Mplus 1c', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1080px;
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===================================
   HEADER
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(250, 247, 240, 0.95);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-icon {
  font-size: 1.4rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(196, 149, 106, 0.1);
}

.nav-link--cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  margin-left: 8px;
  border-radius: 100px;
  padding: 8px 20px;
}

.nav-link--cta:hover {
  background: var(--color-accent-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 247, 240, 0.82) 0%,
    rgba(248, 232, 200, 0.65) 50%,
    rgba(245, 240, 232, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent-dark);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
  line-height: 2;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 0.7rem;
  color: var(--color-text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ===================================
   SECTIONS
   =================================== */
.section {
  padding: 100px 0;
}

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

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

.section--warm {
  background: linear-gradient(180deg, var(--color-warm) 0%, var(--color-cream) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ===================================
   ABOUT
   =================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.about-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.about-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-card-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 500;
}

.about-answer {
  margin-top: 16px;
}

.about-answer-inner {
  display: flex;
  gap: 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-answer-img {
  width: 42%;
  object-fit: cover;
  min-height: 320px;
}

.about-answer-content {
  flex: 1;
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-answer-content h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  line-height: 1.6;
  color: var(--color-text);
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===================================
   STORY
   =================================== */
.story-block {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.story-block:last-child {
  margin-bottom: 0;
}

.story-block--reverse {
  flex-direction: row-reverse;
}

.story-text {
  flex: 1;
}

.story-heading {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--color-text);
}

.story-text p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2;
}

.story-text strong {
  color: var(--color-text);
  font-weight: 700;
}

.story-img-wrap {
  flex: 0 0 42%;
}

.story-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ===================================
   LESSON
   =================================== */
.lesson-formats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.format-tag {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.lesson-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 740px;
  margin: 0 auto 48px;
}

.lesson-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
}

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

.lesson-card--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.lesson-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 100px;
}

.lesson-card-title {
  font-size: 1.2rem;
  margin-top: 8px;
  margin-bottom: 12px;
}

.lesson-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.lesson-card-price {
  margin-bottom: 24px;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.price-unit {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.lesson-card-features {
  text-align: left;
  margin-bottom: 28px;
}

.lesson-card-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--color-text);
}

.lesson-card-features li::before {
  content: '◎';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8rem;
}

.lesson-time {
  display: flex;
  justify-content: center;
}

.time-info {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  padding: 24px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.time-icon {
  font-size: 2rem;
}

.time-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.time-slot {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

/* ===================================
   PROFILE
   =================================== */
.profile-content {
  display: flex;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

.profile-img-wrap {
  flex: 0 0 280px;
}

.profile-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--color-cream);
}

.profile-text {
  flex: 1;
}

.profile-name {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.profile-text p {
  font-size: 0.93rem;
  color: var(--color-text-light);
  margin-bottom: 14px;
  line-height: 2;
}

.profile-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.profile-tag {
  background: var(--color-cream);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ===================================
   VOICE
   =================================== */
.voice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.voice-card-stars {
  color: var(--color-star);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.voice-card-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 20px;
}

.voice-card-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-card-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.voice-card-info {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* ===================================
   FAQ
   =================================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-accent-dark);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 0 22px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* ===================================
   CONTACT
   =================================== */
.contact-form {
  max-width: 560px;
  margin: 0 auto 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

.required {
  color: var(--color-accent);
  font-size: 0.8rem;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.93rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

.form-input::placeholder {
  color: #C5B9AD;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B7B6B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.contact-sns {
  text-align: center;
}

.sns-label {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.sns-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--color-accent);
}

/* ===================================
   BUTTON
   =================================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-main);
  font-size: 0.93rem;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(196, 149, 106, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 149, 106, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-white);
}

.footer-copy {
  font-size: 0.78rem;
}

/* ===================================
   RESPONSIVE — Tablet
   =================================== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-answer-inner {
    flex-direction: column;
  }

  .about-answer-img {
    width: 100%;
    min-height: 220px;
    max-height: 280px;
  }

  .about-answer-content {
    padding: 32px;
  }

  .story-block,
  .story-block--reverse {
    flex-direction: column;
  }

  .story-img-wrap {
    flex: none;
    width: 100%;
  }

  .lesson-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .profile-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-points {
    justify-content: center;
  }

  .voice-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ===================================
   RESPONSIVE — Mobile
   =================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg);
    padding: 100px 32px 40px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
  }

  .hero {
    min-height: 500px;
    max-height: 700px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .hero-desc {
    font-size: 0.88rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .about-card {
    padding: 24px 16px;
  }

  .about-card-icon {
    font-size: 1.8rem;
  }

  .about-card-text {
    font-size: 0.82rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .about-answer-content {
    padding: 24px;
  }

  .about-answer-content h3 {
    font-size: 1.15rem;
  }

  /* #4: チェックリストの文字落ち防止 */
  .check-list li {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* #5,6: ストーリー見出しセンター寄せ */
  .story-heading {
    font-size: 1.15rem;
    text-align: center;
  }

  .lesson-formats {
    gap: 8px;
  }

  .format-tag {
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  .profile-img-wrap {
    flex: none;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
}

.nav-overlay.show {
  display: block;
}
