/* pip site — shared foundation (LP, privacy, support)
   No external requests: fonts are bundled and subset to the characters used on the site. */

@font-face { font-family: "LINE Seed JP"; src: url("fonts/LINESeedJP-Regular.subset.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LINE Seed JP"; src: url("fonts/LINESeedJP-Bold.subset.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/Unbounded.subset.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.subset.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #493B35;
  --sub: #665C56;
  --muted: #756B65;
  --page: #FFFFFF;
  --milk: #FFFCF9;
  --panel: #F9F7F6;
  --selected: #EDE2DA;
  --line: #E8E1DB;
  --m-blue: #B9D3F5; --m-peri: #C9CEF5; --m-lav: #D9C9EF; --m-pink: #EEC3D6; --m-peach: #EEC8AF;
  --jp: "LINE Seed JP", -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Unbounded", var(--jp);
  --wide: 1200px;
  --gutter: 120px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.br-sp { display: none; }
.nw { white-space: nowrap; }
a { color: inherit; }
.wrap { max-width: calc(var(--wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; line-height: 20px;
  text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pill.ghost { background: var(--selected); color: var(--ink); }
.pill.lg { height: 60px; padding: 0 36px; font-size: 17px; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(73,59,53,.18); }
.pill[aria-disabled="true"] { cursor: default; }
.pill[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.pill.ghost:hover { box-shadow: 0 8px 18px rgba(73,59,53,.10); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: 72px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; border: 1px solid transparent; border-radius: 99px; transition: max-width .45s var(--ease), padding .45s var(--ease), height .45s var(--ease), transform .45s var(--ease), background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
/* after scrolling: floating glass bar (Figma 状態 / スクロール後のヘッダー) */
.site-head.is-scrolled { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.site-head.is-scrolled .wrap { pointer-events: auto; max-width: 1232px; height: 64px; padding: 0 16px 0 28px; transform: translateY(16px); background: rgba(255,255,255,.56); border-color: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(112,83,71,.08); }
.site-head .logo img { width: 46px; height: auto; }
.site-head .wrap { position: relative; }
.site-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 40px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.site-nav a { text-decoration: none; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-panel { display: none; }

/* ---------- section headings (shared with the LP) ---------- */
.en { font-family: var(--en); font-weight: 500; color: #F28B8A; font-size: 15px; line-height: 22px; letter-spacing: .02em; }
.h2 { font-size: 44px; line-height: 64px; font-weight: 400; margin: 0; }
.sec-head { text-align: center; }
.sec-head .en { display: block; margin-bottom: 14px; }
.sec-head .lead { margin: 16px auto 0; color: var(--sub); font-size: 16px; line-height: 28px; letter-spacing: .04em; }

/* ---------- FAQ (Figma pip / FAQ / v1) ---------- */
.faq { padding-top: 120px; padding-bottom: 160px; }
.faq .sec-head .en { margin-bottom: 18px; }
.qa-list { max-width: 760px; margin: 72px auto 0; border-bottom: 1px solid var(--line); }
.qa { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.q-mark { flex: none; font: 500 18px/30px var(--en); color: var(--muted); }
.qa dt { font-size: 18px; line-height: 30px; font-weight: 700; text-wrap: balance; }
.qa dd { margin: 8px 0 0; font-size: 15px; line-height: 28px; color: var(--sub); }
.faq-contact { max-width: 760px; margin: 32px auto 0; font-size: 15px; line-height: 28px; color: var(--sub); }
.faq-contact a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-foot { position: relative; background: var(--panel); padding: 56px 0 120px; overflow: hidden; }
/* Figma Footer (PC 618:627 v35 / SP 636:735 v34) */
.foot { position: relative; display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 250px) minmax(max-content, 1fr) auto; column-gap: 0; grid-template-areas: "brand sup pol dl"; align-items: start; }
.foot-title { display: none; margin: 0; font-size: 22px; line-height: 32px; font-weight: 700; }
.foot-dl { grid-area: dl; }
.foot-brand { grid-area: brand; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-icon { width: 90px; height: 90px; border-radius: 13px; box-shadow: 0 6px 16px rgba(112,83,71,.12); }
.foot-logo { width: 56px; }
.foot-lead { margin: 0; font-size: 14px; line-height: 1.4; color: var(--sub); }
.foot-sup { grid-area: sup; } .foot-pol { grid-area: pol; }
.foot-col h2 { margin: 0 0 12px; font-size: 13px; line-height: 20px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--sub); line-height: 22px; }
.foot-col li + li { margin-top: 6px; }
.foot-col a { text-decoration: none; white-space: nowrap; }
.foot-col a:hover { text-decoration: underline; }
.foot-copy { position: absolute; right: var(--gutter); bottom: 0; font-size: 12px; line-height: 18px; color: var(--muted); }

/* ---------- document pages (privacy / support): simple single column ---------- */
.doc { max-width: 680px; margin: 0 auto; padding: 72px 20px 120px; }
.doc h1 { font-size: 28px; line-height: 1.5; font-weight: 400; margin: 0 0 12px; }
.doc h2 { font-size: 18px; line-height: 1.6; font-weight: 700; margin: 40px 0 8px; text-wrap: balance; }
.doc p, .doc li { margin: 0 0 12px; }
.doc .lead { color: var(--sub); margin-bottom: 32px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 40px; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc .card { background: var(--panel); border-radius: 18px; padding: 20px 22px; margin: 16px 0; }
.doc .qa dt { font-weight: 700; margin-top: 24px; text-wrap: balance; }
.doc .qa dd { margin: 4px 0 0; color: var(--ink); }
.doc .button { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .br-sp { display: inline; }
  .site-head { height: 60px; border-bottom: 0; }
  .site-head .wrap { height: 60px; padding: 0 16px 0 20px; }
  .site-head.is-scrolled .wrap { max-width: calc(100% - 24px); height: 52px; padding: 0 4px 0 16px; transform: translateY(10px); }
  .head-actions { gap: 4px; }
  .site-head .logo img { width: 40px; }
  .site-nav, .head-actions .ghost { display: none; }
  /* before scrolling: logo left, menu right (Figma SP Header); the download button joins after scrolling */
  .menu-btn { display: inline-flex; }
  .site-head:not(.is-scrolled) .head-actions .pill { display: none; }
  /* Figma 状態 / SPメニューを開いたとき */
  .menu-panel { position: fixed; top: 70px; left: 12px; right: 12px; pointer-events: auto; padding: 8px 20px; border-radius: 24px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(112,83,71,.10); }
  .menu-panel.open { display: block; }
  .menu-panel a { display: block; padding: 14px 0; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 22px; color: var(--ink); }
  .menu-panel a + a { border-top: 1px solid var(--line); }
  .site-foot { padding: 48px 0 56px; }
  /* Figma Footer SP (636:735 v35): brand -> links -> download -> copyright */
  .foot { grid-template-columns: auto auto; justify-content: start; column-gap: 48px; grid-template-areas: "brand brand" "sup pol" "dl dl" "copy copy"; }
  .foot-brand { gap: 12px; margin-bottom: 32px; }
  .foot-icon { width: 64px; height: 64px; border-radius: 14px; }
  .foot-lead { font-size: 13px; line-height: 22px; }
  .foot-col h2 { margin-bottom: 10px; }
  .foot-col ul { line-height: 20px; }
  .foot-col li + li { margin-top: 10px; }
  .foot-dl { justify-self: start; margin-top: 32px; }
  .foot-copy { position: static; grid-area: copy; margin-top: 32px; font-size: 11px; }
  .en { font-size: 12px; line-height: 18px; }
  .h2 { font-size: 26px; line-height: 38px; }
  .sec-head .en { margin-bottom: 8px; }
  .sec-head .lead { font-size: 14px; line-height: 24px; margin-top: 12px; }
  .faq { padding-top: 64px; padding-bottom: 96px; }
  .faq .sec-head .en { margin-bottom: 8px; }
  .qa-list { margin-top: 32px; }
  .qa { gap: 12px; padding: 22px 0; }
  .q-mark { font-size: 15px; line-height: 26px; }
  .qa dt { font-size: 16px; line-height: 26px; }
  .qa dd { font-size: 14px; line-height: 24px; }
  .faq-contact { margin-top: 24px; font-size: 14px; line-height: 24px; }
  .doc { padding-top: 48px; }
  .doc h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
