/* こめるラボ LP。旧サイト（ここから発酵ラボ）のテーマに倣う: クリームの地、ティールのアクセント、黄色の申し込み、波形の区切り。 */
:root {
  --cream: #fffceb;
  --cream-deep: #fbf3d0;
  --white: #ffffff;
  --teal: #1bab9b;
  --teal-deep: #138a7d;
  --yellow: #fff440;
  --text: #444444;
  --text-muted: #666666;
  --line: #e8e2c8;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 固定したヘッダーの下に見出しが隠れないようにする。 */
section[id] { scroll-margin-top: 64px; }

.nowrap { display: inline-block; white-space: nowrap; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Lato, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-deep); }
img { max-width: 100%; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 252, 235, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); }
.brand-name { font-size: 1.35rem; font-weight: 700; color: var(--teal-deep); letter-spacing: 0.08em; }
.site-nav { display: flex; gap: 20px; margin-left: auto; font-size: 0.85rem; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.header-actions { display: flex; gap: 8px; }

.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none; letter-spacing: 0.06em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-yellow { background: var(--yellow); color: #333; }
.btn-outline { border: 1.5px solid var(--teal); color: var(--teal-deep); background: var(--white); }
.btn-small { padding: 6px 16px; font-size: 0.8rem; }
.btn-large { padding: 16px 40px; font-size: 1rem; }

/* ファーストビュー: 旧サイトのスライドの写真を順に切り替える。文字は左の白い帯に載せる。 */
.hero { position: relative; overflow: hidden; padding: 112px 0 128px; background: var(--cream-deep); }
.hero-slides, .hero-slides picture, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; object-position: 70% center; }
.hero-slides picture { opacity: 0; animation: hero-fade 18s infinite; }
.hero-slides picture:nth-child(2) { animation-delay: 6s; }
.hero-slides picture:nth-child(3) { animation-delay: 12s; }
@keyframes hero-fade { 0% { opacity: 0; } 5% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 252, 235, 0.95) 0%, rgba(255, 252, 235, 0.85) 42%, rgba(255, 252, 235, 0) 68%);
}
.hero-inner { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .hero-slides picture { animation: none; }
  .hero-slides picture:first-child { opacity: 1; }
}
.hero-eyebrow { color: var(--teal-deep); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.2em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.5; margin: 0 0 24px; letter-spacing: 0.08em; }
.hero h1 .marker { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero-lead { max-width: 640px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* セクション */
section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-title { text-align: center; margin: 0 0 12px; font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: 0.1em; }
.section-title .accent { color: var(--teal); }
.section-en { display: block; text-align: center; color: var(--teal); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3em; }
.section-lead { text-align: center; max-width: 720px; margin: 0 auto 48px; color: var(--text-muted); }

/* とは: 3つの柱 */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--white); border-radius: var(--radius); padding: 32px 24px; text-align: center; border: 1px solid var(--line); }
.pillar-illust { display: block; width: 160px; height: 120px; margin: 0 auto 12px; object-fit: contain; }
.pillar h3 { margin: 0 0 8px; font-size: 1.15rem; }
.pillar h3 .accent { color: var(--teal); }
.pillar p { margin: 0; font-size: 0.9rem; text-align: left; }

/* 波形の区切り（旧サイトの画像）。上の節の地の色の上に、次の節の色の波を重ねる。 */
.wave { height: 4.4vw; min-height: 24px; background-repeat: no-repeat; background-position: bottom; background-size: 100% 100%; }
.wave-to-white { background-color: var(--cream); background-image: url(assets/bg_bottom_white.png); }
.wave-to-cream { background-color: var(--white); background-image: url(assets/bg_bottom_cream.png); }

/* 5つの特徴 */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.point { position: relative; padding-top: 28px; }
.point-photo { display: block; width: 180px; height: 180px; margin: 0 auto -48px; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; border: 6px solid var(--white); }
.point-photo + .point-badge { top: 140px; left: 8px; z-index: 2; background: var(--white); border-radius: 12px; padding: 4px 8px; }
.point-photo ~ .point-body { padding-top: 64px; }
.point-badge {
  position: absolute; top: 0; left: 0;
  font-weight: 800; color: var(--teal); line-height: 1;
}
.point-badge small { display: block; font-size: 0.7rem; letter-spacing: 0.2em; }
.point-badge span { font-size: 2.4rem; }
.point { display: flex; flex-direction: column; }
.point-body { background: var(--cream); border-radius: var(--radius); padding: 40px 24px 24px; margin-top: 12px; flex: 1; }
.section-white .point-body { background: var(--cream); }
.point h3 { margin: 0 0 8px; font-size: 1.05rem; }
.point p { margin: 0; font-size: 0.88rem; }
.point .note { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--text-muted); }

/* 醸布のバナー */
.kamofu-banner { display: block; margin-top: 48px; border-radius: var(--radius); overflow: hidden; }
.kamofu-banner img { display: block; width: 100%; transition: transform 0.3s; }
.kamofu-banner:hover img { transform: scale(1.02); }

/* 発酵から豊かになる */
.photo-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.photo-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo-card img { display: block; width: 100%; aspect-ratio: 600 / 370; object-fit: cover; }
.photo-card > div { padding: 20px 24px 24px; }
.photo-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--teal-deep); }
.photo-card p { margin: 0; font-size: 0.88rem; }
.note { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--text-muted); }

/* 会員サイトでできること */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { display: flex; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--teal); color: var(--white); display: grid; place-items: center; }
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 0.88rem; }

/* 基礎講座 */
.course { background: var(--white); border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 0.88rem; }
.course-meta li::before { content: '●'; color: var(--teal); font-size: 0.6rem; margin-right: 6px; vertical-align: middle; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: grid; grid-template-columns: 72px 200px 1fr; gap: 20px; align-items: center; padding: 20px; border-radius: 16px; background: var(--cream); }
.step-photo { width: 100%; aspect-ratio: 600 / 370; object-fit: cover; border-radius: 12px; }
.step-no { text-align: center; color: var(--teal); font-weight: 800; line-height: 1.2; }
.step-no small { display: block; font-size: 0.7rem; letter-spacing: 0.2em; }
.step-no span { font-size: 2rem; }
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.88rem; }
.course-others { margin-top: 32px; font-size: 0.9rem; }
.course-others dt { font-weight: 700; color: var(--teal-deep); }
.course-others dd { margin: 0 0 12px; }


/* 代表 */
.profile { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.profile-card { background: var(--cream); border-radius: var(--radius); padding: 28px; text-align: center; }
.profile-photo { display: block; width: 160px; height: 160px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 6px solid var(--white); }
.profile-sub-photo { display: block; width: 100%; max-width: 480px; border-radius: var(--radius); }
.kamofu { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 56px; background: var(--cream); border-radius: var(--radius); padding: 32px; }
.kamofu img { display: block; width: 100%; border-radius: 16px; }
.kamofu h3 { margin: 0 0 12px; color: var(--teal-deep); font-size: 1.15rem; }
.kamofu p { margin: 0 0 12px; font-size: 0.92rem; }
.profile-name { margin: 0; font-size: 1.2rem; font-weight: 700; }
.profile-name small { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0.1em; }
.profile-titles { margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }
.profile-body h3 { margin: 0 0 8px; color: var(--teal-deep); font-size: 1.15rem; }
.profile-body p { margin: 0 0 16px; font-size: 0.92rem; }
.catch { font-size: 1.2rem; font-weight: 700; margin: 0 0 20px; }

/* よくあるご質問 */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 16px; border: 1px solid var(--line); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1; }
.faq summary::before { content: 'Q'; color: var(--teal); font-weight: 800; }
.faq details[open] summary { border-bottom: 1px dashed var(--line); }
.faq .answer { padding: 16px 0 20px; font-size: 0.9rem; display: flex; gap: 12px; }
.faq .answer::before { content: 'A'; color: #d4a017; font-weight: 800; }
.faq .answer p { margin: 0 0 8px; }

/* 申し込み */
.cta {
  color: var(--white); text-align: center;
  background: linear-gradient(rgba(19, 138, 125, 0.82), rgba(19, 138, 125, 0.82)), url(assets/bg_top_cta.webp) center / cover;
}
.cta h2 { margin: 0 0 12px; font-size: clamp(1.3rem, 3.4vw, 1.8rem); letter-spacing: 0.1em; }
.cta p { margin: 0 auto 32px; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn-outline { background: transparent; color: var(--white); border-color: var(--white); }

/* 下層のページ（プライバシーポリシー・特定商取引法・お問い合わせ） */
.page-header {
  padding: 72px 0 56px; text-align: center;
  background: linear-gradient(rgba(255, 252, 235, 0.86), rgba(255, 252, 235, 0.86)), url(assets/bg_header_ttl_01.webp) center / cover;
}
.page-header h1 { margin: 0 0 8px; font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: 0.1em; }
.page-header p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.doc { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 40px; max-width: 880px; margin: 0 auto; }
.doc h2 { font-size: 1.1rem; color: var(--teal-deep); margin: 32px 0 8px; padding-left: 12px; border-left: 4px solid var(--teal); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 0.92rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
.doc th { width: 30%; color: var(--teal-deep); white-space: nowrap; }
.doc .updated { text-align: right; color: var(--text-muted); font-size: 0.85rem; margin-top: 32px; }
.contact-topics { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* お問い合わせのフォーム */
.contact-form { display: flex; flex-direction: column; gap: 20px; margin: 24px 0 8px; }
.contact-form label, .contact-form legend { font-weight: 700; font-size: 0.92rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400;
  border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
}
.contact-form fieldset { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.contact-form legend { width: 100%; margin-bottom: 6px; }
.contact-form .choice { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.contact-form .required { font-size: 0.7rem; color: var(--white); background: #e06b4f; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.contact-form .optional { font-size: 0.7rem; color: var(--text-muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin-left: 6px; }
.contact-form .form-note { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.contact-form button { align-self: center; border: none; cursor: pointer; }
.contact-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-result { margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 0.9rem; }
.form-result-success { background: #e3f5f1; color: var(--teal-deep); }
.form-result-error { background: #fdece7; color: #b5452b; }

/* フッター */
.site-footer { background: #3b3a35; color: #ddd; padding: 48px 0 24px; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer a { color: #ddd; }
.site-footer dl { margin: 0; display: grid; grid-template-columns: 9em 1fr; gap: 4px 12px; }
.site-footer dt { color: #aaa; }
.site-footer dd { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.copyright { text-align: center; margin-top: 40px; color: #999; font-size: 0.75rem; }

/* スマートフォン */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header .container { gap: 8px; height: 56px; }
  .brand-name { font-size: 1.15rem; white-space: nowrap; }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-actions .btn-small { padding: 6px 12px; font-size: 0.75rem; }
  section[id] { scroll-margin-top: 56px; }
  .pillars, .points, .features, .profile, .footer-grid, .photo-cards, .kamofu { grid-template-columns: 1fr; }
  .kamofu { padding: 20px; }
  .doc { padding: 24px 16px; }
  .doc th { width: auto; white-space: normal; display: block; border-bottom: none; padding-bottom: 0; }
  .doc td { display: block; padding-top: 4px; }
  .hero-slides::after { background: linear-gradient(180deg, rgba(255, 252, 235, 0.92) 0%, rgba(255, 252, 235, 0.85) 60%, rgba(255, 252, 235, 0.5) 100%); }
  .hero { padding: 64px 0 96px; }
    .hero h1 { font-size: 1.7rem; }
  .hero-actions .btn-large { width: 100%; }
  section { padding: 64px 0; }
  .course { padding: 24px 16px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step-no { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .step-no span { font-size: 1.4rem; }
  .site-footer dl { grid-template-columns: 1fr; }
  .site-footer dt { margin-top: 6px; }
}

/* 幅の狭いスマートフォン（320px 前後） */
@media (max-width: 360px) {
  .brand-name { font-size: 1rem; letter-spacing: 0.02em; }
  .header-actions .btn-small { padding: 5px 9px; letter-spacing: 0; }
}
