/* PETAL 公式サイト 共通スタイル
   色を変えるときは :root の値だけ変更してください。 */
:root {
  --bg: #fff9f8;
  --surface: #ffffff;
  --pink: #f6dde0;
  --pink-soft: #fbeced;
  --rose: #d9a4ac;
  --rose-deep: #a8505f;
  --rose-darker: #8c4150;
  --text: #4a3f3f;
  --text-soft: #6f6161;
  --line: #eed9dc;
  --todo: #fff3c9;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --wrap: 1080px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--rose-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.6; margin: 0; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }
.center { text-align: center; }

/* 公開前の表示 */
.preview-bar {
  background: var(--todo);
  color: #5c4a1c;
  font-size: 13px;
  line-height: 1.6;
  padding: 6px 16px;
  text-align: center;
}
.todo {
  background: var(--todo);
  border-bottom: 1px dashed #bfa04b;
  border-radius: 3px;
  padding: 0 .25em;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 248, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-block; line-height: 0; }
.brand img { display: block; width: auto; height: 46px; }
.nav ul { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--rose-deep); border-bottom-color: var(--rose); }
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: currentColor; margin: auto; position: relative; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 30px;
  border: 1px solid var(--rose-deep);
  border-radius: 999px;
  background: var(--rose-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--rose-darker); transform: translateY(-1px); }
.btn-small { min-height: 42px; padding: 7px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--rose-deep); }
.btn-ghost:hover { background: var(--pink-soft); }
.text-link { display: inline-block; margin-top: 20px; font-weight: 500; }

/* セクション */
.section { padding: 96px 0; }
.section-tint { background: var(--pink-soft); }
.eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 18px;
  font-style: italic;
  letter-spacing: .1em;
  color: var(--rose-deep);
  margin-bottom: 6px;
}
.section-title { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 40px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .section-title { margin-bottom: 0; }
.lead { font-size: 17px; }
.sub-title { font-size: 20px; margin-bottom: 14px; }
.note { font-size: 14px; color: var(--text-soft); line-height: 1.8; }

/* ヒーロー */
.hero {
  position: relative;
  overflow: hidden;
  background: #fbf5ef;
}
/* 右側の水彩の花。左と上下を背景の色になじませる */
.hero-art {
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0;
  width: min(62vw, 1000px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%), linear-gradient(to bottom, transparent 0, #000 6%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 24%), linear-gradient(to bottom, transparent 0, #000 6%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 640px;
  padding: 72px 0;
}
.hero-text { max-width: 740px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.6; letter-spacing: .07em; margin-bottom: 26px; color: #3d3935; }
.hero h1 .ac { color: var(--rose-deep); }
.hero p { font-size: 17px; letter-spacing: .1em; margin-bottom: 38px; color: #5a524d; }

/* 舞う花びら */
.petal-defs { position: absolute; }
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.petal { position: absolute; top: -8%; left: var(--x); width: var(--s); height: var(--s); animation: fall var(--d) linear var(--dl) infinite; will-change: transform, opacity; }
.petal svg { display: block; width: 100%; height: 100%; animation: flutter var(--r) ease-in-out var(--dl) infinite alternate; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: .9; }
  88% { opacity: .8; }
  100% { transform: translate3d(var(--dx), 118vh, 0); opacity: 0; }
}
@keyframes flutter {
  from { transform: rotate(var(--a0)) rotateX(10deg) rotateY(0deg); }
  to { transform: rotate(var(--a1)) rotateX(55deg) rotateY(35deg); }
}

/* 下層ページ見出し */
.page-head { background: linear-gradient(135deg, #fffaf9, var(--pink)); padding: 72px 0 64px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
.page-head p { max-width: 680px; }

/* 共感リスト */
.worries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; }
.worries li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }

/* 特徴 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.feature { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 34px 28px; }
.feature-no { font-family: var(--font-en); font-size: 32px; font-style: italic; color: var(--rose); line-height: 1; display: block; margin-bottom: 12px; }
.feature h3 { font-size: 19px; margin-bottom: 12px; }
.ibj-award { max-width: 720px; margin: 52px auto 0; }
.ibj-award a { display: block; width: 200px; margin: 0 auto 18px; }
.ibj-award img { display: block; }
.ibj-block { margin-top: 48px; }
.ibj-logo-box { display: block; max-width: 400px; margin-bottom: 20px; padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ibj-logo-box img, .ibj-banner img { display: block; max-width: 100%; height: auto; }
.ibj-banner { display: block; max-width: 240px; margin-bottom: 20px; }
.ibj-banner-wide { max-width: 400px; }
.app-samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin-bottom: 12px; }
.app-samples img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* コース */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; text-align: center; display: flex; flex-direction: column; }
.course-icon { width: 60px; height: 60px; margin: 0 auto 10px; color: var(--rose-deep); }
.course-name { font-family: var(--font-en); font-size: 32px; font-weight: 600; letter-spacing: .08em; line-height: 1.2; }
.course-ja { font-size: 13px; color: var(--text-soft); margin-bottom: 14px; display: block; }
.course-price { font-family: var(--font-head); font-size: 26px; color: var(--rose-deep); margin: auto 0 0; padding-top: 16px; }
.course-price small { font-size: 13px; color: var(--text-soft); font-family: var(--font-body); }
.common-fee {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  text-align: center;
}

/* 表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
caption { text-align: left; padding: 16px 20px 0; font-size: 14px; color: var(--text-soft); }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--pink-soft); font-family: var(--font-en); font-size: 21px; letter-spacing: .06em; }
thead th:first-child { font-family: var(--font-body); font-size: 14px; }
tbody th { font-weight: 500; white-space: nowrap; }
.num { text-align: right; }
.table-total th, .table-total td { background: var(--pink-soft); font-weight: 500; }

/* 代表 */
.rep { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.rep-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--pink-soft), var(--pink));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: var(--rose-deep);
  text-align: center;
  font-size: 13px;
  padding: 16px;
}
.rep-photo svg { width: 88px; }
.rep-photo.has-img { padding: 0; overflow: hidden; background: #fff; }
.rep-photo.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rep-name { font-size: 26px; margin-bottom: 4px; }
.rep-titles { list-style: none; color: var(--text-soft); margin-bottom: 20px; }

/* 読み物 */
.story p { line-height: 2.1; }
blockquote { margin: 0; padding: 28px 32px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); font-family: var(--font-head); font-size: 18px; }

/* 価値観 */
.values { display: grid; gap: 18px; list-style: none; }
.values li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.values h3 { font-size: 18px; margin-bottom: 8px; }

/* 定義リスト */
.info { display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--line); margin: 0; }
.info dt, .info dd { padding: 16px 8px; border-bottom: 1px solid var(--line); margin: 0; }
.info dt { font-weight: 500; }

/* 流れ */
.steps { list-style: none; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.step::before { content: ""; position: absolute; left: 37px; top: 60px; bottom: 6px; width: 1px; background: var(--rose); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-no {
  width: 60px; height: 60px; margin: 0 auto;
  border-radius: 50% 50% 50% 8px;
  background: var(--pink);
  color: var(--rose-deep);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 19px; margin: 12px 0 6px; }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; counter-reset: mini; }
.mini-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; counter-increment: mini; }
.mini-steps li::before { content: counter(mini); display: block; font-family: var(--font-en); font-size: 26px; font-style: italic; color: var(--rose-deep); line-height: 1.3; }

/* FAQ */
.faq-group { margin-bottom: 48px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { font-size: 21px; margin-bottom: 16px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 500;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--rose-deep); font-size: 22px; }
details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 20px; }

/* LINE案内 */
.line-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.check-list { list-style: none; display: grid; gap: 8px; max-width: 420px; margin: 0 auto 28px; text-align: left; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .85em; width: 9px; height: 9px; border-radius: 50% 50% 50% 2px; background: var(--rose); }
.line-qr { display: none; width: 180px; height: 180px; margin: 24px auto 0; }
.cta-band { background: linear-gradient(135deg, var(--pink-soft), var(--pink)); padding: 76px 0; text-align: center; }
.cta-band h2 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 14px; }
.cta-band p { margin-bottom: 26px; }

/* お知らせ */
.news { list-style: none; border-top: 1px solid var(--line); }
.news li { padding: 16px 4px; border-bottom: 1px solid var(--line); }

/* フォーム */
[hidden] { display: none !important; }
.form { display: grid; gap: 22px; }
.field label, .field .label { display: block; font-weight: 500; margin-bottom: 6px; }
.req { color: var(--rose-deep); font-size: 13px; margin-left: 6px; }
.opt { color: var(--text-soft); font-size: 13px; margin-left: 6px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--rose);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.agree { display: flex; align-items: flex-start; gap: 10px; }
.agree input { width: 20px; height: 20px; margin-top: 6px; accent-color: var(--rose-deep); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; color: var(--rose-darker); font-weight: 500; }

/* プライバシーポリシー */
.policy h2 { font-size: 20px; margin: 38px 0 10px; }
.policy ul { padding-left: 1.4em; margin-bottom: 1em; }

/* フッター */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 54px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.footer-nav a { color: var(--text); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--rose-deep); text-decoration: underline; }
.ibj-logo { display: inline-block; margin-top: 18px; line-height: 0; }
.ibj-logo img { width: 170px; }
.copyright { text-align: center; font-size: 12px; color: var(--text-soft); margin: 32px 0 0; }

/* スマホ固定ボタン */
.sticky-cta { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 24px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) { display: block; font-size: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { width: 100%; margin-top: 16px; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .wrap, .narrow { width: min(100% - 32px, var(--wrap)); }
  .hero-inner { align-items: start; min-height: 760px; padding: 56px 0 56px; }
  .hero-art { top: auto; height: 54%; width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%); }
  .hero-art img { object-position: 35% top; }
  .hero p { font-size: 15px; letter-spacing: .06em; margin-bottom: 30px; }
  .petal:nth-child(n+8) { display: none; }
  .brand img { height: 38px; }
  .hero h1 { font-size: clamp(24px, 7.6vw, 30px); letter-spacing: .03em; }
  .hero .btn { width: 100%; }
  .worries, .features, .courses { grid-template-columns: 1fr; }
  .app-samples { grid-template-columns: repeat(2, 1fr); }
  .mini-steps { grid-template-columns: repeat(2, 1fr); }
  .rep { grid-template-columns: 1fr; gap: 26px; }
  .rep-photo { width: min(100%, 240px); margin-inline: auto; }
  .info { grid-template-columns: 1fr; }
  .info dt { border-bottom: 0; padding-bottom: 0; }
  .info dd { padding-top: 2px; }
  .step { grid-template-columns: 62px 1fr; gap: 12px; }
  .step::before { left: 30px; }
  .step-no { width: 52px; height: 52px; font-size: 21px; }
  .step h3 { margin-top: 8px; }
  blockquote { padding: 22px; font-size: 17px; }
  .btn-wide-sp { width: 100%; }
  table { min-width: 0; }
  table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, tbody th, td { display: block; }
  tbody th { background: var(--pink-soft); padding: 11px 18px; border-bottom: 0; white-space: normal; }
  td { padding: 10px 18px; }
  td[data-label] { display: grid; grid-template-columns: 62px 1fr; gap: 10px; }
  td[data-label]::before { content: attr(data-label); font-family: var(--font-en); font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--rose-deep); }
  tr:last-child td { border-bottom: 1px solid var(--line); }
  tr:last-child td:last-child { border-bottom: 0; }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 249, 248, .96);
    border-top: 1px solid var(--line);
    transition: transform .3s ease, visibility .3s;
  }
  /* ページ内の他のLINEボタンが見えている間は隠す（site.js が切り替える） */
  .sticky-cta.is-hidden { transform: translateY(110%); visibility: hidden; }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 78px; }
}

@media (min-width: 761px) {
  .line-qr { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petal, .petal svg { animation-play-state: paused; }
  .btn { transition: none; }
}
