/* tadatanni：e&ma見本から430pxの枠・左右の配置・メニュー・波・見出しを移植 */
/* 色・文字・余白：全体の調整はここから */
:root {
  --color-ink: #284b37;          /* 紺（文字） */
  --color-muted: #60705a;
  --color-accent: #365d36;       /* 青（予約ボタン・印） */
  --color-accent-hover: #254727;
  --color-accent-soft: #eff5dc;
  --color-paper: #fff;
  --color-backdrop: #eff5dc;     /* カードの外 */
  --color-soft: #eff5dc;         /* うすい青（交互のセクション） */
  --color-line: #d3dfb5;
  --color-dot: #91ae43;          /* 見出しの点 */
  --font-body: "Noto Sans JP", sans-serif;
  --font-serif: "Yusei Magic", sans-serif;
  --font-logo: Georgia, "Times New Roman", serif;
  --text-body: 16px;
  --text-heading: 26px;
  --text-subheading: 19px;
  --text-hero: clamp(20px, 5.8vw, 25px);
  --text-brand: 23px;
  --text-large-brand: 34px;
  --line-height: 1.95;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 64px;
  --page-gutter: 24px;
  --card-width: 430px;
  --side-width: 236px;
  --header-height: 68px;
  --button-height: 54px;
  --cta-space: 94px;
  --radius: 6px;
}

/* 共通と中央のスマホ型の枠 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-backdrop); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-body); line-height: var(--line-height); word-break: normal; overflow-wrap: anywhere; line-break: strict; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-card { width: 100%; max-width: var(--card-width); margin: var(--space-md) auto; background: var(--color-paper); border-radius: 24px; overflow: clip; box-shadow: 0 0 0 1px #284b3708, 0 18px 60px #284b370d; }
section[id], div[id] { scroll-margin-top: calc(var(--header-height) + var(--space-md)); }
.section { padding: var(--space-xl) var(--page-gutter); }
.soft { background: var(--color-soft); }
/* 見出し：明朝1種類の太さ。各行は span で改行 */
.section-title { font-family: var(--font-serif); font-size: var(--text-heading); font-weight: 500; letter-spacing: .02em; line-height: 1.6; margin-bottom: var(--space-lg); }
.section-title > span, .consult-text > span, h1 > span { display: block; }
/* 見出しの上の線と点3つ（てのひらWebの青線・オレンジ点を、緑と木の茶に） */
.section-title::before { content: ""; display: block; width: 62px; height: 6px; margin-bottom: var(--space-md); background: linear-gradient(var(--color-accent) 0 0) left center / 28px 2px no-repeat, radial-gradient(circle, var(--color-dot) 2.5px, transparent 3px) 36px center / 6px 6px no-repeat, radial-gradient(circle, var(--color-dot) 2.5px, transparent 3px) 46px center / 6px 6px no-repeat, radial-gradient(circle, var(--color-dot) 2.5px, transparent 3px) 56px center / 6px 6px no-repeat; }
/* 英字の小見出し（今のサイトの CONCEPT・WORRIES など） */
.kicker { font-family: var(--font-logo); margin-bottom: var(--space-xs); color: var(--color-muted); font-size: 20px; letter-spacing: .18em; line-height: 1.5; }
.section-intro { margin-top: calc(-1 * var(--space-sm)); margin-bottom: var(--space-lg); color: var(--color-muted); }
h3 { font-size: var(--text-subheading); font-weight: 700; line-height: 1.7; }
.paragraph-gap { margin-top: var(--space-sm); }

/* 上に残るヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) var(--page-gutter); background: #ffffffF5; border-bottom: 1px solid var(--color-line); }
.brand { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; line-height: 1.4; }
.brand-name { font-family: var(--font-logo); font-size: var(--text-brand); font-weight: 400; letter-spacing: .08em; white-space: nowrap; }
.icon-button { width: 44px; height: 44px; padding: 0; flex-shrink: 0; display: grid; place-items: center; background: transparent; border: 1px solid var(--color-line); border-radius: 50%; color: var(--color-ink); font-size: 26px; line-height: 1; }
.icon-button:hover { background: var(--color-soft); }
.menu-toggle { border: 0; }
.hamburger, .hamburger::before, .hamburger::after { width: 22px; height: 2px; display: block; background: currentColor; }
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* 画面下にふわっと出る予約ボタン。JSなしでは初めから表示 */
.fixed-cta { position: fixed; z-index: 15; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); align-items: center; width: min(100%, var(--card-width)); padding: var(--space-sm) var(--page-gutter) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)); background: #fffffff5; border-top: 1px solid var(--color-line); }
.fixed-cta .line-button { min-height: 60px; padding-inline: 4px; }
.js .fixed-cta { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.js .fixed-cta.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }

/* トップに戻るボタン：カードの右下、画面下の固定ボタンの上に */
.to-top { position: fixed; z-index: 16; right: max(12px, calc(50% - var(--card-width) / 2 + 12px)); bottom: calc(100px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--color-accent); border: 2px solid var(--color-accent); box-shadow: 0 4px 12px #284b372e; text-decoration: none; line-height: 1; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.to-top span { font-size: 22px; font-weight: 900; }
.js .to-top { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }
.js .to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }

/* メニュー（枠の中で開く） */
dialog { border: 0; padding: 0; color: var(--color-ink); background: var(--color-paper); font: inherit; }
dialog::backdrop { background: #284b3766; }
.menu-dialog { inset: 0; width: min(100%, var(--card-width)); max-width: none; height: 100dvh; max-height: none; margin: 0 auto; overscroll-behavior: contain; }
.menu-panel { padding: var(--space-sm) var(--page-gutter) var(--space-lg); }
.menu-close { margin: 0 0 var(--space-lg) auto; }
.section-links { display: grid; }
.section-links a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-sm) 0; min-height: 52px; border-bottom: 1px solid var(--color-line); font-size: 16px; font-weight: 500; text-decoration: none; }
.section-links a span { color: var(--color-muted); }
.section-links a:hover, .section-links a:hover span { color: var(--color-accent); }
.site-footer .footer-links { display: flex; }
.site-footer .footer-links a { border: 0; padding: 0; min-height: 44px; }
body.modal-open { position: fixed; top: var(--modal-scroll-top); left: 0; width: 100%; overflow: hidden; }

/* セクションの境目：次のセクションの色で、波とゆるい斜めを交互に */
.section:not(.soft) + .soft, .soft + .section:not(.soft), .consult-band { position: relative; }
.section:not(.soft) + .soft::before, .soft + .section:not(.soft)::before, .consult-band::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 29px; pointer-events: none; -webkit-mask: var(--edge-shape) center / 100% 100% no-repeat; mask: var(--edge-shape) center / 100% 100% no-repeat; }
.section:not(.soft) + .soft::before, .consult-band::before { --edge-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V16C70 0 130 0 200 16S330 32 400 14V32Z'/%3E%3C/svg%3E"); }
.soft + .section:not(.soft)::before { --edge-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V22L400 4V32Z'/%3E%3C/svg%3E"); }
.section:not(.soft) + .soft::before { background: var(--color-soft); }
.soft + .section:not(.soft)::before { background: var(--color-paper); }
.consult-band::before { background: var(--color-ink); }

/* うすい水玉と丸（お悩み） */
.dots { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='72'%3E%3Cg fill='%233a3229' fill-opacity='.12'%3E%3Ccircle cx='6' cy='6' r='2.5'/%3E%3Ccircle cx='30' cy='6' r='2.5'/%3E%3Ccircle cx='54' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='30' r='2.5'/%3E%3Ccircle cx='42' cy='30' r='2.5'/%3E%3Ccircle cx='66' cy='30' r='2.5'/%3E%3Ccircle cx='90' cy='30' r='2.5'/%3E%3Ccircle cx='54' cy='54' r='2.5'/%3E%3Ccircle cx='78' cy='54' r='2.5'/%3E%3Ccircle cx='102' cy='54' r='2.5'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(circle at 100% 0, #ffffff66 0 110px, transparent 111px); background-repeat: no-repeat; background-position: right 12px top 20px, 0 0; background-size: 120px 72px, auto; }

/* 最初の画面を順番に出すまでの目隠し */


/* 1100px以上で左右に固定表示（左にロゴ・右にメニュー）。中央は同じ並びのまま */
.desktop-menu, .desktop-logo, .pc-bg { display: none; }
@media (min-width: 1100px) {
  .desktop-menu, .desktop-logo { display: block; position: fixed; top: 50%; width: var(--side-width); max-height: calc(100dvh - 64px); overflow-y: auto; transform: translateY(-50%); padding: 16px 8px; background: radial-gradient(closest-side, #ffffffcc 55%, #fff0 100%); }
  .desktop-logo { right: calc(50% + var(--card-width) / 2 + 48px); text-align: center; overflow: visible; }
  .desktop-menu { left: calc(50% + var(--card-width) / 2 + 48px); }
  .desktop-logo .brand { display: flex; justify-content: center; }
  .desktop-logo .brand-name { font-size: var(--text-large-brand); white-space: normal; line-height: 1.3; }
  /* 背景写真3枚：画面に固定し、白いもやで薄くします。is-active の1枚だけ見せ、ふわっと切り替えます */
  .pc-bg { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .pc-bg span { position: absolute; inset: -12px; background: center / cover no-repeat; filter: blur(3px); opacity: 0; transition: opacity .7s ease; }
  .pc-bg span.is-active { opacity: 1; }
  .pc-bg span:nth-child(1) { background-image: url("images/talk.webp"); }
  .pc-bg::after { content: ""; position: absolute; inset: 0; background: #ffffffc2; }
}

/* スマホでは画面いっぱいに */
@media (max-width: 430px) {
  .site-card { margin: 0 auto; border-radius: 0; box-shadow: none; }
}
@media (max-width: 350px) {
  :root { --page-gutter: 18px; --text-hero: 19px; --text-brand: 20px; }
  
}

/* 動きを減らす端末設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fixed-cta, .to-top, .js .to-top, .button, .text-link { transition: none; }
  .button:active, .button.primary:active, .button.consult-button:active { transform: none; }
  .hero-actions .button.is-shine::after { display: none; }
  .pc-bg span { transition: none; }
}


/* ひとあしキャリア：若草色、手書きコピー、紙のふきだしを残す */
body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
p { text-wrap: pretty; }
h1,h2,h3,summary { text-wrap: balance; }
.phrase,.section-title > .phrase { display: inline-block; max-width: 100%; vertical-align: baseline; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; width: 100%; height: auto; }
figure { min-width: 0; }
figcaption,.tile-image-note { margin-top: 8px; font-size: 14px; color: var(--color-muted); line-height: 1.7; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.header-brand { font-family: "Yusei Magic",sans-serif; font-size: 20px; letter-spacing: -.02em; }
.footmark { display: inline-block; width: 18px; height: 26px; flex-shrink: 0; border-radius: 60% 40% 50% 50%; background: #a6c449; transform: rotate(28deg); box-shadow: 8px -5px 0 -4px var(--color-accent); }
.menu-toggle,.menu-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; color: var(--color-ink); font-size: 28px; }
.menu-close { border: 1px solid var(--color-line); }
.hero { padding: 24px 24px 56px; background: #d7eb96; position: relative; }
.hero-clouds { display: grid; gap: 12px; margin-bottom: 24px; }
.worry-bubble { position: relative; padding: 16px 20px; background: #fff; border: 1px solid var(--color-line); border-radius: 24px 24px 24px 4px; line-height: 1.8; }
.hero-clouds .worry-bubble { width: fit-content; max-width: 100%; padding: 10px 16px; font-family: "Yusei Magic",sans-serif; font-size: 16px; }
.hero-clouds .worry-bubble:last-child { justify-self: end; border-radius: 24px 24px 4px 24px; }
.hero-service { font-size: 16px; margin-bottom: 8px; }
h1 { font-family: "Yusei Magic",sans-serif; font-size: 32px; line-height: 1.65; font-weight: 400; letter-spacing: -.03em; }
.catch-line { display: block; }
.highlight { width: fit-content; background: linear-gradient(transparent 69%,#fff9 69%,#fff9 92%,transparent 92%); }
.hero-photo { margin: 20px -12px 16px; }
.hero-booking { display: grid; gap: 16px; }
.free-badge { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 4px; width: 100%; padding: 8px 16px; border-radius: 999px; border: 1px dashed var(--color-accent); background: #ffffffab; writing-mode: horizontal-tb; }
.free-badge strong { font-size: 26px; }
.hero-action > p { text-align: center; margin-bottom: 12px; }
.line-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 60px; padding: 12px; border: 0; border-radius: 999px; background: var(--color-accent); color: white; font-size: 16px; font-weight: 700; line-height: 1.6; box-shadow: 0 4px 0 var(--color-accent-hover); }
.line-button:hover { background: var(--color-accent-hover); }
.line-button:active { transform: translateY(2px); }
.line-button > span[aria-hidden]:last-child { margin-left: auto; }
.chat-icon { width: 25px; height: 22px; flex: 0 0 25px; border-radius: 50%; background: #fff; position: relative; }
.chat-icon::after { content: ''; position: absolute; bottom: -2px; left: 4px; width: 8px; height: 8px; background: #fff; transform: skewY(-35deg); }
.worry-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.worry-list li:nth-child(even) { border-radius: 24px 24px 4px 24px; background: var(--color-soft); }
.worry-note,.flow-note { margin-top: 24px; }
.reason { margin-bottom: 32px; }
.art-tile { overflow: hidden; border-radius: 70px 12px 70px 12px; }
.art-tile img { aspect-ratio: 4 / 3; object-fit: cover; }
.text-tile { padding: 20px 0 0; }
.text-tile h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.7; }
.tile-number,.step-number { display: block; margin-bottom: 8px; font-family: Georgia,serif; font-size: 24px; color: var(--color-accent); }
.consultation-steps { padding: 0; margin: 0; list-style: none; display: grid; gap: 32px; }
.step-heading { display: block; white-space: nowrap; font-size: 22px; }
.flow figure { margin-top: 24px; }
.flow figure img { border-radius: 16px; }
.price-cards { display: grid; gap: 16px; }
.price-card { padding: 24px 20px; border: 1px solid var(--color-line); border-radius: 16px; background: #fff; }
.first-consultation { border: 2px solid var(--color-accent); }
.price { font-family: "Yusei Magic",sans-serif; font-size: 36px; margin: 8px 0; }
.heading-note { display: block; font-family: var(--font-body); font-size: 14px; margin-top: 8px; }
.menu-notes { padding-left: 20px; margin-top: 24px; margin-bottom: 0; }
.coach .image-square { max-width: 280px; margin-inline: auto; }
.coach img { border-radius: 44% 44% 16px 16px; }
.coach figure { margin-bottom: 24px; }
.coach-message { font-family: "Yusei Magic",sans-serif; font-size: 22px; margin: 16px 0 24px; }
.coach-story { display: grid; gap: 16px; }
.coach-story p,.text-tile p,details p { text-align: left; }
details { border-top: 1px solid var(--color-line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--color-line); }
summary { position: relative; list-style: none; padding-right: 28px; font-weight: 700; cursor: pointer; line-height: 1.8; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 24px; }
details[open] summary::after { content: '−'; }
details p { margin-top: 16px; }
.demo-notice { padding: 32px 24px calc(116px + env(safe-area-inset-bottom,0px)); background: var(--color-soft); color: var(--color-muted); font-size: 14px; }
.section-links a { gap: 12px; justify-content: flex-start; }
.section-links .nav-number { font-family: Georgia,serif; min-width: 32px; }
.line-icon-button { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; min-height: 48px; margin-top: 24px; border: 0; border-radius: 999px; background: var(--color-accent); color: #fff; }
.desktop-logo .brand { gap: 16px; font-family: "Yusei Magic",sans-serif; font-size: 34px; text-align: left; }
.desktop-logo p { margin-top: 24px; font-family: "Yusei Magic",sans-serif; font-size: 18px; }
#demo-dialog { width: min(calc(100% - 32px),390px); max-height: calc(100dvh - 32px); border-radius: 20px; }
.dialog-content { padding: 28px 24px; }
.dialog-content p + p { margin-top: 16px; }
.close-button { display: block; margin: 24px auto 0; padding: 10px 24px; min-height: 44px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-soft); color: var(--color-ink); }
.hero + .section,.demo-notice { position: relative; }
.hero + .section::before,.demo-notice::before { content: ''; position: absolute; bottom: calc(100% - 1px); left: 0; right: 0; height: 24px; background: #fff; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V16C70 0 130 0 200 16S330 32 400 14V32Z'/%3E%3C/svg%3E") center / 100% 100%; }
.demo-notice::before { background: var(--color-soft); }
.soft + .section:not(.soft)::before { --edge-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V16C70 0 130 0 200 16S330 32 400 14V32Z'/%3E%3C/svg%3E"); }
@media (max-width:350px) { h1 { font-size: 28px; } .header-brand { font-size: 18px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
/* FAQの若草色の次は白。最下部も同じ背景を続けません。 */
.demo-notice,.demo-notice::before { background: var(--color-paper); }
/* 型の見出しルールによる block 指定は、小見出しの補足だけに使います。 */
.section-title > .phrase { display: inline-block; }
.section-title > .step-heading { display: block; }
