/* てのひらWebの最新見本の枠・ヘッダー・線と点・波を、水色と黄色に置き換えています。 */
:root {
  --color-main: #087f9e; --color-sky: #eaf7fb; --color-background: #e4f3f8;
  --color-accent: #ffe173; --color-text: #213c4c; --color-muted: #526a78;
  --color-white: #fff; --color-line: #087f46; --color-border: #cde5ed;
  --font-body: "Noto Sans JP", sans-serif;
  --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;
  --radius-sm: 12px; --cta-space: 100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-background); color: var(--color-text); font: 16px/1.95 var(--font-body); word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
p,h1,h2,h3,figure { margin: 0; }
p,li,th,td,summary,figcaption { text-wrap: pretty; }
h1,h2,h3 { text-wrap: balance; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
button,a,summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid var(--color-main); outline-offset: 4px; }
.site-card { width: 100%; max-width: var(--card-width); margin: var(--space-md) auto; background: white; border-radius: 24px; overflow: clip; box-shadow: 0 0 0 1px #213c4c08,0 18px 60px #213c4c0d; }
section[id] { scroll-margin-top: calc(var(--header-height) + var(--space-md)); }
.section { position: relative; padding: var(--space-xl) var(--page-gutter); background: white; }
.soft { background: var(--color-sky); }
.section-title { margin-bottom: var(--space-lg); font-size: 26px; font-weight: 800; line-height: 1.6; letter-spacing: -.025em; }
.section-title::before { content: ""; display: block; width: 62px; height: 6px; margin-bottom: var(--space-md); background: linear-gradient(var(--color-main) 0 0) left center/28px 2px no-repeat,radial-gradient(circle,#bd8d00 2.5px,transparent 3px) 36px center/6px 6px no-repeat,radial-gradient(circle,#bd8d00 2.5px,transparent 3px) 46px center/6px 6px no-repeat,radial-gradient(circle,#bd8d00 2.5px,transparent 3px) 56px center/6px 6px no-repeat; }
.kicker { margin-bottom: var(--space-xs); color: var(--color-main); font-size: 16px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; }
h3 { font-size: 18px; font-weight: 800; line-height: 1.7; }
/* ロゴはヘッダーに集約。ヒーローはすべての幅で同じ構成。 */
.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: #eaf7fbf5; border-bottom: 1px solid var(--color-border); }
.header-brand { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-main); font-size: 23px; font-weight: 900; line-height: 1.4; }
.sparkle { color: #b58a00; font-size: 28px; }
.menu-toggle,.menu-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--color-sky); color: var(--color-text); font-size: 28px; line-height: 1; }
.hamburger,.hamburger::before,.hamburger::after { display: block; width: 22px; height: 2px; background: currentColor; }
.hamburger { position: relative; }
.hamburger::before,.hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; } .hamburger::after { top: 7px; }
.hero { padding: var(--space-lg) var(--page-gutter) var(--space-xl); background: white; }
.hero-kicker { margin-bottom: var(--space-sm); color: var(--color-main); font-weight: 700; }
h1 { font-size: 27px; font-weight: 900; line-height: 1.75; letter-spacing: -.045em; }
.highlight { background: linear-gradient(transparent 65%,var(--color-accent) 65%,var(--color-accent) 94%,transparent 94%); }
.hero-subcopy { margin: var(--space-md) 0; font-weight: 500; }
.hero-subcopy > span { display: block; }
.image-frame { position: relative; overflow: hidden; background: var(--color-sky); border-radius: var(--radius-sm); }
.image-landscape { aspect-ratio: 4/3; }
.image-square { aspect-ratio: 1; }
.image-portrait { aspect-ratio: 3/4; width: 100%; margin-top: var(--space-lg); }
.image-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
figcaption { margin: var(--space-xs) 0 var(--space-md); color: var(--color-muted); font-size: 14px; line-height: 1.8; text-align: left; }
/* 主役のLINEボタン：参考サイトと同じ丸型、白い矢印。 */
.line-button { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; min-height: 60px; padding: 10px 12px; border: 0; border-radius: 999px; background: var(--color-line); color: white; font-weight: 800; font-size: 16px; line-height: 1.5; box-shadow: 0 5px 0 #056333,0 10px 18px #087f4626; transition: transform .12s ease,background-color .15s ease; }
.line-button:hover { background: #066e3c; }
.line-button:active { transform: translateY(4px); box-shadow: 0 1px 0 #056333; }
.line-button > span:last-child { display: grid; place-items: center; flex: 0 0 28px; height: 28px; margin-left: auto; border-radius: 50%; color: var(--color-line); background: white; }
.chat-icon { position: relative; flex: 0 0 22px; width: 22px; height: 18px; border: 2px solid currentColor; border-radius: 7px; }
.chat-icon::after { content: ""; position: absolute; bottom: -5px; left: 3px; width: 6px; height: 6px; border-left: 2px solid currentColor; transform: skewY(-35deg); background: var(--color-line); }
.fixed-cta { position: fixed; z-index: 25; left: 50%; bottom: 0; transform: translateX(-50%); 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-border); }
/* 全幅を使う料金カード。商品名と料金を別の行にして細い列を作りません。 */
.heading-note { display: block; margin-top: var(--space-xs); color: var(--color-muted); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.price-cards { display: grid; gap: var(--space-sm); }
.price-card { min-width: 0; padding: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: white; }
.menu-scope { display: block; margin-top: 4px; font-size: 16px; font-weight: 500; }
.menu-description { margin-top: var(--space-xs); color: var(--color-muted); }
.price { margin-top: var(--space-sm); color: var(--color-main); font-size: 26px; font-weight: 900; line-height: 1.4; white-space: nowrap; }
.set-menu { background: #fff9e5; border-color: #e5ca69; }
.menu-notes { margin: var(--space-md) 0 0; padding-left: var(--space-md); }
.menu-notes li + li { margin-top: var(--space-xs); }
.menu-images { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-top: var(--space-lg); }
.menu-images figcaption { margin-bottom: 0; }
/* 数字と「ステップ」を切り離さない。 */
.step-heading { display: block; color: var(--color-main); font-size: 30px; white-space: nowrap; }
#reasons-title > span { display: block; }
.estimate-steps { margin: 0; padding: 0; list-style: none; }
.estimate-steps li { display: flex; align-items: flex-start; gap: var(--space-sm); padding-block: var(--space-md); border-top: 1px solid var(--color-border); }
.estimate-steps li > div { min-width: 0; flex: 1; }
.step-number { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--color-accent); color: var(--color-text); font-size: 24px; font-weight: 900; line-height: 1; }
.estimate-steps h3,.work-steps h3 { margin-bottom: var(--space-xs); }
.estimate-note { margin-top: var(--space-md); font-weight: 700; }
.reason + .reason { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }
.reason h3 { margin-bottom: var(--space-sm); }
.reason h3 span { display: block; margin-bottom: var(--space-xs); color: var(--color-main); font-size: 24px; }
.work-steps { margin: 0; padding: 0; counter-reset: work; list-style: none; }
.work-steps li { position: relative; padding: 0 0 var(--space-lg) 44px; counter-increment: work; }
.work-steps li::before { content: counter(work); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent); color: var(--color-text); font-weight: 800; z-index: 1; }
.work-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--color-border); }
.work-steps li:last-child { padding-bottom: 0; }
.faq details { border-top: 1px solid var(--color-border); }
.faq details:last-child { border-bottom: 1px solid var(--color-border); }
.faq summary { position: relative; min-height: 48px; padding: var(--space-md) 26px var(--space-md) 0; list-style: none; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: var(--space-md); right: 0; color: var(--color-main); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--space-md); color: var(--color-muted); }
/* 白と水色を交互に。境目は参考サイトの波を使います。 */
main > .section::before, footer.demo-notice::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 29px; pointer-events: none; background: white; --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"); -webkit-mask: var(--edge-shape) center/100% 100% no-repeat; mask: var(--edge-shape) center/100% 100% no-repeat; }
main > .soft::before { background: var(--color-sky); }
.demo-notice { position: relative; padding: var(--space-lg) var(--page-gutter) calc(var(--cta-space) + var(--space-lg) + env(safe-area-inset-bottom,0px)); background: white; color: var(--color-muted); font-size: 14px; line-height: 1.8; }
.to-top { position: fixed; z-index: 26; right: max(12px,calc(50% - var(--card-width) / 2 + 12px)); bottom: calc(var(--cta-space) + env(safe-area-inset-bottom,0px)); display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--color-main); border-radius: 50%; background: white; color: var(--color-main); font-size: 22px; font-weight: 900; text-decoration: none; line-height: 1; transition: opacity .3s,transform .3s,visibility .3s; }
.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: none; }
/* ダイアログとメニュー。背景を固定して閉じると元の位置に戻す。 */
dialog { width: min(calc(100% - 32px),390px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: white; color: var(--color-text); font: inherit; box-shadow: 0 16px 60px #15394e33; }
dialog::backdrop { background: #18364480; }
.dialog-content { padding: var(--space-lg) var(--page-gutter); }
#dialog-title { margin-bottom: var(--space-md); font-weight: 800; }
.close-button { width: 100%; min-height: 48px; margin-top: var(--space-lg); padding: var(--space-sm); border: 0; border-radius: var(--radius-sm); color: var(--color-text); background: var(--color-accent); font-weight: 700; }
.menu-dialog { inset: 0; width: min(100%,var(--card-width)); max-width: none; height: 100dvh; max-height: none; margin: 0 auto; border-radius: 0; 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; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 52px; padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); font-size: 16px; font-weight: 500; text-decoration: none; }
.section-links a:hover { color: var(--color-main); }
.nav-arrow { color: var(--color-main); }
.line-icon-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 72px; height: 72px; margin-top: var(--space-lg); padding: var(--space-xs); border: 0; border-radius: 50%; background: var(--color-line); color: white; font-weight: 800; line-height: 1.2; }
.line-icon-button .chat-icon { flex: 0 0 18px; }
body.modal-open { position: fixed; top: var(--modal-scroll-top); left: 0; width: 100%; overflow: hidden; }
/* PCは左ロゴ・右メニュー・写真と白いもや。中央の内容はスマホと共通。 */
.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; }
  .desktop-menu { left: calc(50% + var(--card-width) / 2 + 48px); }
  .desktop-logo > .sparkle { display: block; font-size: 64px; line-height: 1.3; }
  .brand-name { color: var(--color-main); font-size: 34px; font-weight: 900; line-height: 1.4; }
  .brand-category { margin-top: var(--space-sm); font-size: 16px; }
  .desktop-image-note { margin-top: var(--space-md); font-size: 14px; line-height: 1.8; }
  .pc-bg { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .pc-bg span { position: absolute; inset: -12px; background: url("images/staff.webp") center 50%/cover no-repeat; filter: blur(3px); }
  .pc-bg::after { content: ""; position: absolute; inset: 0; background: #ffffffd4; }
}
@media (max-width: 430px) { .site-card { margin: 0 auto; border-radius: 0; box-shadow: none; } }
@media (max-width: 350px) { :root { --page-gutter: 18px; } h1 { font-size: 25px; } .section-title { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }

/* 最初の画面のLINEボタンと重ならないよう、ヒーローを過ぎてから出す */
.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; }
@media (prefers-reduced-motion: reduce) { .js .fixed-cta { transition: none; } }
