/* Bellearc
   余白を広く・見出しを大きく・本物のアプリの画面を見せる、という考え方だけを参考にした。
   色・書体・部品の形は Bellearc のロゴの色から決めた独自のもの。よそのサイトの画像・文・コードは使っていない。
   ロゴは元の画像をそのまま使う。 */
:root {
  --lavender: #b9c5eb;          /* ロゴの背景と同じ色 */
  --bg: #fcfcfe;
  --bg-alt: #eef0f9;            /* ロゴの色を薄めた地 */
  --tile: #f1f2f9;
  --text: #17182a;              /* 少し青みのある黒 */
  --muted: #5d6075;
  --line: #d9dcec;
  --link: #3d4b9c;              /* ロゴの色を濃くした青紫 */
  --btn: #17182a;
  --btn-hover: #2c2e4a;
  --btn-text: #ffffff;
  --nav-bg: rgba(252, 252, 254, .82);
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --ease: cubic-bezier(.28, .11, .32, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d16;
    --bg-alt: #131527;
    --tile: #171a2e;
    --text: #eceefa;
    --muted: #a3a7c2;
    --line: #2d3150;
    --link: #b9c5eb;
    --btn: #b9c5eb;
    --btn-hover: #cad3f2;
    --btn-text: #17182a;
    --nav-bg: rgba(12, 13, 22, .82);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.6; letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.wrap.wide { max-width: 1180px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); color: var(--text); padding: 6px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- 上の帯 ---------- */
.globalnav {
  position: sticky; top: 0; z-index: 50; height: 52px;
  background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.globalnav.scrolled { border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent); }
.globalnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: 1024px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
/* アイコン：元の画像をそのまま、角だけ丸める（角は背景の色だけなので、ロゴは欠けない） */
.brand-badge { width: 32px; flex: none; border-radius: 8px; overflow: hidden; }
.brand-badge img { width: 100%; }
.nav { display: flex; gap: 30px; font-size: 13px; }
.nav a { color: var(--text); opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a.active { opacity: 1; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--text); cursor: pointer; position: relative; }
.menu-btn::before, .menu-btn::after { content: ""; position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn::before { top: 18px; } .menu-btn::after { top: 25px; }
.menu-open .menu-btn::before { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn::after { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 833px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: 52px; left: 0; right: 0; height: calc(100vh - 52px); background: var(--bg);
    flex-direction: column; gap: 0; padding: 18px 44px; font-size: 26px; font-weight: 600;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav a { padding: 8px 0; opacity: 1; }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; }
  .menu-open { overflow: hidden; }
}

/* ---------- ボタンと文字のリンク ---------- */
.ctas { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }
.btn { display: inline-block; background: var(--btn); color: var(--btn-text); font-size: 16px; font-weight: 600; padding: 12px 26px; border-radius: 10px; transition: background .2s; }
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.more { font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover { text-decoration: none; }
.more:hover::after { transform: translateX(4px); }

/* ---------- 見出しの大きさ ---------- */
.eyebrow { font-size: 21px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.headline { font-size: clamp(40px, 7vw, 80px); line-height: 1.08; font-weight: 700; letter-spacing: -.005em; margin: 0; }
.headline.md { font-size: clamp(32px, 5vw, 56px); line-height: 1.12; }
.subhead { font-size: clamp(19px, 2.4vw, 28px); line-height: 1.4; font-weight: 500; margin: 12px 0 0; }
.subtle { color: var(--muted); }
.center { text-align: center; }

/* ---------- ヒーロー（会社） ---------- */
.hero { padding: 64px 0 0; text-align: center; overflow: hidden; }
.hero .logo-stage { width: min(300px, 60vw); margin: 0 auto 36px; }
.hero .logo-stage img { width: 100%; border-radius: 28px; }
.hero .subhead { max-width: 30em; margin-left: auto; margin-right: auto; }

/* ---------- 製品のブロック（全幅） ---------- */
.product-block { margin-top: 88px; background: var(--bg-alt); padding: 72px 0 0; text-align: center; overflow: hidden; }
.product-block .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--link); background: var(--bg); border: 1px solid var(--line); padding: 3px 12px; border-radius: 6px; letter-spacing: .06em; margin-bottom: 14px; }
.product-name { font-size: clamp(44px, 8vw, 96px); font-weight: 700; letter-spacing: .02em; line-height: 1.05; margin: 0; }

/* 状態の札（文字で組む。アプリの「状態は色＋絵＋文字」に合わせる） */
.status-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 56px 22px 72px; max-width: 900px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 10px; background: var(--bg); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip .arrow { color: var(--muted); font-weight: 400; }
.chip-sep { color: var(--muted); align-self: center; }

/* ---------- スクロールで進む流れ ---------- */
.flow { background: var(--bg); }
.flow-track { height: 360vh; position: relative; }
.flow-sticky { position: sticky; top: 52px; height: calc(100vh - 52px); display: flex; flex-direction: column; justify-content: center; }
.flow-head { text-align: center; margin-bottom: 48px; }
.flow-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 980px; }
.flow-steps li { padding: 26px 22px 28px; border-radius: 18px; background: var(--tile); opacity: .35; transform: scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.flow-steps li.on { opacity: 1; transform: none; }
.flow-steps .n { font-size: 14px; color: var(--muted); font-weight: 600; }
.flow-steps h3 { font-size: 28px; margin: 6px 0 8px; font-weight: 700; }
.flow-steps p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.flow-bar { max-width: 980px; margin: 28px auto 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.flow-bar span { display: block; height: 100%; width: 100%; background: var(--btn); transform: scaleX(0); transform-origin: left; }
@media (max-width: 833px) {
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow-steps h3 { font-size: 22px; }
  .flow-head { margin-bottom: 28px; }
}
/* 動きを止める設定・JS なし・低い画面では、ふつうに並べる */
.no-sticky .flow-track { height: auto; }
.no-sticky .flow-sticky { position: static; height: auto; padding: 88px 22px; }
.no-sticky .flow-steps li { opacity: 1; transform: none; }
.no-sticky .flow-bar { display: none; }

/* ---------- タイル ---------- */
.tiles-section { padding: 12px 0 88px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 0 12px; }
.tile { background: var(--tile); border-radius: 24px; padding: 52px 32px; text-align: center; min-height: 340px; display: flex; flex-direction: column; align-items: center; }
.tile h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0; font-weight: 700; }
.tile p { margin: 10px 0 0; font-size: 19px; }
.tile .ctas { margin-top: 16px; }
.tile .big { margin-top: auto; padding-top: 32px; font-size: clamp(44px, 6vw, 64px); font-weight: 700; line-height: 1; color: var(--text); }
.tile .big small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 10px; }
@media (max-width: 734px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; padding: 44px 24px; } }

/* ---------- 文章のセクション ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.lead-text { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.6; font-weight: 500; max-width: 760px; margin: 24px auto 0; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.cols h3 { font-size: 21px; margin: 0 0 6px; }
.cols p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 734px) { .cols { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; } }

/* 会社概要の表 */
.profile { width: 100%; max-width: 760px; margin: 40px auto 0; border-collapse: collapse; font-size: 16px; }
.profile th, .profile td { text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.profile th { width: 180px; color: var(--muted); padding-right: 20px; }
.profile td { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .profile, .profile tbody, .profile tr, .profile th, .profile td { display: block; width: auto; }
  .profile th { border: 0; padding: 16px 0 0; font-size: 14px; }
  .profile td { padding: 2px 0 16px; }
}

/* ---------- フッター ---------- */
.footer { background: var(--bg-alt); color: var(--muted); font-size: 14px; padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer .wrap { max-width: 1024px; }
.footer a { color: var(--text); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { margin: 0; line-height: 1.7; }
.footer h4 { color: var(--text); font-size: 13px; font-weight: 700; margin: 4px 0 12px; letter-spacing: .04em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-note { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; }
@media (max-width: 734px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 下のページ（サポート・ポリシーなど） ---------- */
.page-title { padding: 72px 0 40px; text-align: center; }
.page-title .headline { font-size: clamp(36px, 5.6vw, 56px); }
.doc { padding: 24px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 24px; margin: 56px 0 12px; line-height: 1.3; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 1.2em; } .doc li { margin: .35em 0; }
.doc dl { margin: 0; }
.doc dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc dt { color: var(--muted); } .doc dd { margin: 0; overflow-wrap: anywhere; }
.notice { background: var(--tile); border-radius: 16px; padding: 22px 26px; margin: 28px 0; font-size: 15px; color: var(--muted); }
.help-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 48px; }
.help-tile { background: var(--tile); border-radius: 24px; padding: 30px 28px; }
.help-tile h2 { font-size: 21px; margin: 0 0 8px; }
.help-tile p { margin: 0; font-size: 16px; color: var(--muted); }
@media (max-width: 734px) { .help-tiles { grid-template-columns: 1fr; } .doc dl > div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 読み進めると現れる ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.2s; }
.js .hero .reveal:nth-child(2) { transition-delay: .1s; }
.js .hero .reveal:nth-child(3) { transition-delay: .2s; }
.js .hero .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 本物のアプリの画面（架空のデータ）を iPhone の枠に入れて見せる ---------- */
.phone { width: 290px; flex: none; padding: 9px; border-radius: 52px; background: #1d1d1f; box-shadow: 0 0 0 1.5px #3a3a3c inset, 0 30px 60px -20px rgba(0, 0, 0, .35); }
.phone img { width: 100%; border-radius: 44px; }
.stage { display: flex; justify-content: center; align-items: flex-end; gap: 28px; padding: 56px 22px 0; height: 560px; overflow: hidden; }
.stage .phone:nth-child(1), .stage .phone:nth-child(3) { transform: translateY(70px); }
.js .stage .phone { transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
.js .stage:not(.in) .phone { opacity: 0; transform: translateY(160px); }
.js .stage.in .phone:nth-child(2) { transition-delay: .1s; }
.js .stage.in .phone:nth-child(3) { transition-delay: .2s; }
@media (max-width: 833px) {
  .stage { height: 440px; gap: 16px; }
  .phone { width: 230px; padding: 7px; border-radius: 42px; }
  .phone img { border-radius: 36px; }
}
@media (max-width: 600px) {
  .stage .phone:nth-child(1), .stage .phone:nth-child(3) { display: none; }
}
.tile.shot { padding-bottom: 0; overflow: hidden; }
.tile.shot .phone { margin-top: auto; width: 270px; transform: translateY(40px); margin-bottom: -40px; }
.tile.shot .phone-clip { margin-top: auto; padding-top: 36px; height: 396px; overflow: hidden; }
.caption { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 22px 28px; margin: 0; }

/* 日本語の見出しを、言葉の切れ目で折り返す */
.headline, .subhead, .product-name, .tile h3, .lead-text, .flow-steps p { word-break: auto-phrase; text-wrap: balance; }
