/* ============================================================
   NURUMEの法則  —  design system
   ============================================================ */
:root{
  /* palette */
  --cream:      #FBF8F2;
  --cream-2:    #F5F0E6;
  --paper:      #FFFFFF;
  --ink:        #2E3B35;
  --ink-soft:   #55635C;
  --muted:      #8A958E;
  --line:       #ECE5D8;
  --line-soft:  #F1ECE1;

  --green:      #5C9E7E;
  --green-d:    #4A8468;
  --green-tint: #EDF4EE;
  --green-tint2:#E2EEE4;

  --motive:     #E5843C;   /* 動機力 */
  --motive-t:   #FBEEE1;
  --keep:       #4E9E7E;   /* 継続管理力 */
  --keep-t:     #E6F1EA;
  --info:       #5B87BB;   /* 情報活用力 */
  --info-t:     #E7EEF6;

  --shadow-sm:  0 2px 10px rgba(60,72,66,.06);
  --shadow:     0 12px 40px rgba(60,72,66,.10);
  --shadow-lg:  0 26px 70px rgba(60,72,66,.16);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --maxw: 1120px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--font);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--cream);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
/* inline icon default (svgs with explicit width/height attributes are excluded) */
svg{ vertical-align:middle; }
svg:not([width]){ width:1.15em; height:1.15em; flex-shrink:0; }
.brand .logo svg{ width:100%; height:100%; }
.pillar .p-ico svg{ width:46px; height:46px; }
.force-card .f-ico svg{ width:28px; height:28px; }
.assure-item .a-ico svg{ width:26px; height:26px; }
.cm-bot svg{ width:22px; height:22px; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
::selection{ background:var(--green-tint2); }

.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.eyebrow{
  font-size:.78rem; letter-spacing:.22em; font-weight:700; color:var(--green-d);
  text-transform:uppercase;
}
.leaf-mark{ color:var(--green); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:.95em 1.9em; border-radius:var(--r-pill);
  font-weight:700; font-size:1rem; line-height:1;
  transition:transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space:nowrap;
}
.btn svg{ width:1.05em; height:1.05em; }
.btn-primary{
  background:linear-gradient(135deg,#67ac8b,#4e8f70);
  color:#fff; box-shadow:0 10px 24px rgba(78,143,112,.32);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 32px rgba(78,143,112,.40); }
.btn-ghost{
  background:var(--paper); color:var(--ink); border:1.5px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.btn-ghost:hover{ transform:translateY(-2px); border-color:var(--green); color:var(--green-d); }
.btn-lg{ padding:1.15em 2.4em; font-size:1.08rem; }
.btn-block{ width:100%; }
.btn-sm{ padding:.7em 1.3em; font-size:.9rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(251,248,242,.82);
  backdrop-filter:saturate(1.2) blur(14px);
  border-bottom:1px solid rgba(236,229,216,.7);
}
.site-nav .container{ display:flex; align-items:center; height:74px; gap:24px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--display); font-weight:700; }
.brand .logo{ width:34px; height:34px; }
.brand .brand-text{ font-size:1.24rem; letter-spacing:.02em; color:var(--ink); }
.brand .brand-text small{ display:block; font-size:.6rem; letter-spacing:.18em; color:var(--muted); font-weight:500; }
.nav-links{ margin-left:auto; display:flex; align-items:center; gap:28px; }
.nav-links a.navlink{ font-size:.94rem; font-weight:500; color:var(--ink-soft); position:relative; padding:4px 0; }
.nav-links a.navlink:hover{ color:var(--green-d); }
.nav-links a.navlink::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--green); border-radius:2px; transition:width .22s ease;
}
.nav-links a.navlink:hover::after{ width:100%; }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.nav-toggle{ display:none; margin-left:auto; width:44px; height:44px; border-radius:12px; align-items:center; justify-content:center; color:var(--ink); }
.nav-toggle svg{ width:24px; height:24px; }
.nav-avatar{ display:flex; align-items:center; gap:10px; }
.avatar-chip{
  width:38px; height:38px; border-radius:50%; background:var(--green-tint2);
  color:var(--green-d); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot{ background:#2E3B35; color:#cfd8d2; margin-top:90px; }
.site-foot .container{ padding-top:56px; padding-bottom:36px; }
.foot-top{ display:flex; flex-wrap:wrap; gap:40px; justify-content:space-between; }
.foot-brand{ max-width:320px; }
.foot-brand .brand-text{ color:#fff; }
.foot-brand p{ margin-top:14px; font-size:.9rem; color:#a9b4ad; line-height:1.9; }
.foot-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.foot-col h4{ font-size:.8rem; letter-spacing:.12em; color:#8a978f; margin-bottom:14px; font-weight:700; }
.foot-col a{ display:block; font-size:.9rem; color:#cfd8d2; padding:5px 0; }
.foot-col a:hover{ color:#fff; }
.foot-bottom{ margin-top:44px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.8rem; color:#8a978f; }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position:relative; padding:56px 0 34px; overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(60% 55% at 12% 8%, #f2f7f0 0%, transparent 60%),
    radial-gradient(50% 50% at 96% 100%, #fbeee1 0%, transparent 55%);
  z-index:-1;
}
.hero-grid{ display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
.hero-eyebrow{ display:inline-flex; align-items:center; gap:8px; margin-bottom:20px; }
.hero h1{
  font-family:var(--display); font-weight:700; color:var(--ink);
  font-size:clamp(2.1rem, 4.2vw, 3.35rem); line-height:1.32; letter-spacing:.01em;
}
.hero h1 .accent{ color:var(--green-d); }
.hero h1 .mini{ display:inline-block; font-size:.62em; color:var(--motive); font-family:var(--font); font-weight:700; }
.hero-sub{ margin-top:22px; font-size:1.02rem; color:var(--ink-soft); max-width:30em; }
.hero-underline{ height:10px; width:190px; margin:12px 0 0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='10'%3E%3Cpath d='M2 6 C50 1 140 1 188 5' stroke='%235C9E7E' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }

.pillars{ display:flex; align-items:flex-start; gap:8px; margin:30px 0 32px; }
.pillar{ text-align:center; flex:1; }
.pillar .p-ico{ width:52px; height:52px; margin:0 auto 8px; }
.pillar .p-name{ font-family:var(--display); font-weight:700; font-size:1.06rem; }
.pillar .p-desc{ font-size:.76rem; color:var(--muted); margin-top:2px; }
.pillar.motive .p-name{ color:var(--motive); }
.pillar.keep .p-name{ color:var(--keep); }
.pillar.info .p-name{ color:var(--info); }
.pillar-x{ align-self:center; color:var(--muted); font-size:1.1rem; padding-top:14px; font-weight:300; }

.hero-actions{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.hero-note{ margin-top:14px; font-size:.82rem; color:var(--muted); display:flex; align-items:center; gap:6px; }

.hero-visual{ position:relative; }
.hero-visual .photo{
  border-radius:28px; overflow:hidden; box-shadow:var(--shadow-lg);
  background:#e9e4d8; aspect-ratio: 612 / 650;
}
.hero-visual .photo img{ width:100%; height:100%; object-fit:cover; }
.hero-badge{
  position:absolute; left:-22px; bottom:34px; background:var(--paper);
  border-radius:16px; padding:14px 18px; box-shadow:var(--shadow);
  display:flex; align-items:center; gap:12px; border:1px solid var(--line-soft);
}
.hero-badge .b-ico{ width:38px; height:38px; border-radius:12px; background:var(--green-tint); display:flex; align-items:center; justify-content:center; color:var(--green-d); }
.hero-badge .b-ico svg{ width:22px; height:22px; }
.hero-badge b{ font-size:1.15rem; font-family:var(--display); }
.hero-badge span{ display:block; font-size:.72rem; color:var(--muted); }

.sticky-note{
  position:absolute; top:24px; right:-16px; width:118px; z-index:2;
  background:#fff3a3; color:#5b4a12; font-family:var(--display); font-weight:700;
  font-size:.92rem; line-height:1.5; text-align:center;
  padding:20px 10px 14px; box-shadow:var(--shadow); transform:rotate(6deg);
  border-radius:1px 1px 8px 1px;
}
.sticky-note::after{
  content:""; position:absolute; right:0; bottom:0; width:0; height:0;
  border-style:solid; border-width:0 0 12px 12px; border-color:transparent transparent rgba(0,0,0,.14) transparent;
}
.sn-pin{ position:absolute; top:-15px; left:50%; transform:translateX(-50%) rotate(-6deg); color:#d94c3d; }
.sn-pin svg{ width:22px; height:22px; filter:drop-shadow(0 3px 3px rgba(0,0,0,.25)); }

/* ============================================================
   SECTION scaffolding
   ============================================================ */
.section{ padding:78px 0; }
.section-head{ text-align:center; max-width:660px; margin:0 auto 46px; }
.section-head .eyebrow{ display:inline-flex; gap:10px; align-items:center; margin-bottom:14px; }
.section-head h2{ font-family:var(--display); font-weight:700; font-size:clamp(1.6rem,3vw,2.2rem); color:var(--ink); line-height:1.4; }
.section-head p{ margin-top:14px; color:var(--ink-soft); }
.deco-line{ width:44px; height:2px; background:var(--green); border-radius:2px; opacity:.6; }

/* three-force intro cards */
.force-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.force-card{
  background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--r-lg);
  padding:34px 30px; box-shadow:var(--shadow-sm); transition:transform .25s ease, box-shadow .25s ease;
  position:relative; overflow:hidden;
}
.force-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.force-card .num{ font-family:var(--display); font-size:1.5rem; font-weight:700; opacity:.9; }
.force-card .f-ico{ width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.force-card h3{ font-family:var(--display); font-size:1.3rem; margin:6px 0 10px; }
.force-card p{ color:var(--ink-soft); font-size:.95rem; }
.force-card.motive{ --c:var(--motive); }
.force-card.keep{ --c:var(--keep); }
.force-card.info{ --c:var(--info); }
.force-card .f-ico{ background:color-mix(in srgb, var(--c) 12%, #fff); color:var(--c); }
.force-card .num{ color:var(--c); }
.force-card::after{ content:""; position:absolute; left:0; top:0; width:100%; height:4px; background:var(--c); opacity:.85; }

/* ============================================================
   MOTIVE section (video cards)
   ============================================================ */
.band{ background:linear-gradient(180deg,#fff 0%, #fbf6ee 100%); }
.band-motive{ background:linear-gradient(180deg,#fdf3ea 0%, #fbf8f2 100%); }
.band-keep{ background:linear-gradient(180deg,#eef5f0 0%, #fbf8f2 100%); }
.band-info{ background:linear-gradient(180deg,#eef3f9 0%, #fbf8f2 100%); }

.sec-tag{ display:inline-flex; align-items:center; gap:12px; margin-bottom:12px; }
.sec-tag .snum{ font-family:var(--display); font-weight:700; font-size:1.6rem; }
.sec-tag .sname{ font-family:var(--display); font-weight:700; font-size:1.5rem; }
.split{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:center; }
.split .lead h2{ font-family:var(--display); font-size:1.9rem; line-height:1.5; margin:6px 0 16px; }
.split .lead p{ color:var(--ink-soft); }
.tag-motive{ color:var(--motive); }
.tag-keep{ color:var(--keep); }
.tag-info{ color:var(--info); }

.video-week-badge{
  display:inline-flex; align-items:center; gap:8px; margin-bottom:16px;
  padding:8px 16px; border-radius:999px; background:var(--motive-t); color:var(--motive);
  font-size:.82rem; font-weight:700; letter-spacing:.02em;
}
.video-week-badge svg{ width:16px; height:16px; flex:none; }
.video-week-badge .vwb-sub{
  font-weight:600; font-size:.72rem; color:var(--ink-soft); background:var(--paper);
  border-radius:999px; padding:2px 10px; letter-spacing:.04em;
}
.video-scroll{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.vcard{
  background:var(--paper); border-radius:var(--r); overflow:hidden; box-shadow:var(--shadow-sm);
  border:1px solid var(--line-soft); transition:transform .22s ease, box-shadow .22s ease;
}
.vcard:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
.vthumb{ position:relative; aspect-ratio:16/10; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#efe6d8,#e5d9c6); }
.vthumb.g1{ background:linear-gradient(135deg,#f3d9bd,#e7b98c); }
.vthumb.g2{ background:linear-gradient(135deg,#d7ead9,#a9d2b6); }
.vthumb.g3{ background:linear-gradient(135deg,#cfe0ef,#a7c3e0); }
.vthumb.g4{ background:linear-gradient(135deg,#efd3c9,#e0a99a); }
.vthumb.g5{ background:linear-gradient(135deg,#e6ddc4,#cbbf95); }
.vplay{ width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); }
.vplay svg{ width:20px; height:20px; color:var(--ink); margin-left:2px; }
.vcard:hover .vplay{ transform:scale(1.08); transition:transform .2s; }
.vmeta{ padding:16px 18px 18px; }
.vmeta .vtag{ font-size:.68rem; font-weight:700; letter-spacing:.08em; color:var(--motive); text-transform:uppercase; }
.vmeta h4{ font-size:1rem; margin:6px 0 4px; line-height:1.5; }
.vmeta .vtime{ font-size:.78rem; color:var(--muted); }
.vcard[data-video]{ cursor:pointer; }
.vthumb-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.vthumb .vplay{ position:relative; z-index:1; }

/* video lightbox */
.vlb{ position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; padding:20px; }
.vlb.open{ display:flex; }
.vlb-backdrop{ position:absolute; inset:0; background:rgba(20,16,10,.72); }
.vlb-box{ position:relative; width:min(920px,100%); }
.vlb-frame{ position:relative; width:100%; aspect-ratio:16/9; border-radius:12px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.4); background:#000; }
.vlb-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.vlb-close{ position:absolute; top:-46px; right:0; width:38px; height:38px; border:0; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--ink); font-size:1.5rem; line-height:1; cursor:pointer; box-shadow:var(--shadow-sm); }
.vlb-close:hover{ transform:scale(1.06); }
.vlb-yt{ display:inline-block; margin-top:12px; color:#fff; font-size:.85rem; text-decoration:none; opacity:.9; }
.vlb-yt:hover{ text-decoration:underline; opacity:1; }

/* keep section preview (calendar + concept) */
.keep-card{ background:var(--paper); border-radius:var(--r-lg); box-shadow:var(--shadow); border:1px solid var(--line-soft); padding:28px; }
.concept-15{ display:flex; align-items:center; gap:18px; padding:20px 22px; border-radius:var(--r); background:var(--keep-t); margin:22px 0; }
.concept-15 .big{ font-family:var(--display); font-size:2.6rem; font-weight:700; color:var(--keep); line-height:1; }
.concept-15 .big small{ font-size:1rem; }
.concept-15 p{ font-size:.92rem; color:var(--ink-soft); }
.mini-cal{ }
.mini-cal .mc-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.mini-cal .mc-head b{ font-family:var(--display); font-size:1.05rem; }
.mc-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.mc-grid .dow{ text-align:center; font-size:.7rem; color:var(--muted); padding:4px 0; }
.mc-cell{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; font-size:.8rem; border-radius:10px; color:var(--ink-soft); }
.mc-cell.done{ background:var(--keep); color:#fff; font-weight:700; box-shadow:0 4px 10px rgba(78,158,126,.28); }
.mc-cell.today{ outline:2px solid var(--keep); }
.mc-cell.muted{ color:#cbd3cd; }

/* info section (AI chat teaser) */
.chat-mock{ background:var(--paper); border-radius:var(--r-lg); box-shadow:var(--shadow); border:1px solid var(--line-soft); padding:24px; }
.chat-mock .cm-head{ display:flex; align-items:center; gap:10px; padding-bottom:16px; border-bottom:1px solid var(--line-soft); margin-bottom:18px; }
.cm-bot{ width:38px; height:38px; border-radius:12px; background:var(--info-t); display:flex; align-items:center; justify-content:center; color:var(--info); }
.cm-head b{ font-family:var(--display); }
.cm-head span{ font-size:.72rem; color:var(--green); display:flex; align-items:center; gap:5px; }
.dot-online{ width:7px; height:7px; border-radius:50%; background:var(--green); display:inline-block; }
.bubble{ max-width:80%; padding:12px 16px; border-radius:16px; font-size:.92rem; margin-bottom:12px; line-height:1.7; }
.bubble.user{ margin-left:auto; background:var(--info); color:#fff; border-bottom-right-radius:4px; }
.bubble.bot{ background:#f2f4f8; color:var(--ink); border-bottom-left-radius:4px; }
.bubble.bot ul{ margin:8px 0 0 18px; }
.chat-note{ font-size:.72rem; color:var(--muted); margin-top:6px; }

/* ============================================================
   CTA / recommend
   ============================================================ */
.cta-final{ position:relative; }
.cta-box{
  background:linear-gradient(135deg,#eaf3ec,#f6efe4);
  border-radius:32px; padding:56px; display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center;
  border:1px solid var(--line-soft); box-shadow:var(--shadow-sm);
}
.cta-box h2{ font-family:var(--display); font-size:clamp(1.7rem,3vw,2.4rem); line-height:1.4; }
.cta-box p{ color:var(--ink-soft); margin:14px 0 24px; }
.reco-list{ display:grid; gap:12px; }
.reco-item{ display:flex; align-items:center; gap:12px; background:var(--paper); padding:14px 18px; border-radius:14px; box-shadow:var(--shadow-sm); font-size:.95rem; }
.reco-item .rk{ width:24px; height:24px; border-radius:50%; background:var(--green-tint2); color:var(--green-d); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.reco-item .rk svg{ width:14px; height:14px; }

.assure{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:64px; }
.assure-item{ text-align:center; padding:0 12px; }
.assure-item .a-ico{ width:52px; height:52px; margin:0 auto 14px; border-radius:16px; background:var(--green-tint); color:var(--green-d); display:flex; align-items:center; justify-content:center; }
.assure-item h4{ font-family:var(--display); font-size:1.05rem; margin-bottom:6px; }
.assure-item p{ font-size:.86rem; color:var(--ink-soft); }

/* ============================================================
   APP PAGES (auth / dashboard / timer / records / ai)
   ============================================================ */
.page{ padding:52px 0 40px; min-height:60vh; }
.page-narrow{ max-width:560px; margin:0 auto; }
.page-head{ margin-bottom:28px; }
.page-head h1{ font-family:var(--display); font-size:1.8rem; }
.page-head p{ color:var(--ink-soft); margin-top:6px; }
.card{ background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:30px; }
.card + .card{ margin-top:22px; }

/* forms */
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:.9rem; font-weight:700; margin-bottom:8px; color:var(--ink); }
.field label .opt{ font-weight:500; color:var(--muted); font-size:.8rem; margin-left:6px; }
.field input, .field select, .field textarea{
  width:100%; padding:.85em 1em; border:1.5px solid var(--line); border-radius:12px;
  font-family:inherit; font-size:1rem; color:var(--ink); background:#fdfcf9; transition:border .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--green); box-shadow:0 0 0 4px var(--green-tint);
}
.field .hint{ font-size:.78rem; color:var(--muted); margin-top:6px; }
.chip-group{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ padding:.6em 1.1em; border-radius:var(--r-pill); border:1.5px solid var(--line); font-size:.9rem; color:var(--ink-soft); background:#fdfcf9; transition:.16s; }
.chip:hover{ border-color:var(--green); }
.chip.active{ background:var(--green); color:#fff; border-color:var(--green); box-shadow:0 6px 14px rgba(92,158,126,.3); }
.form-foot{ margin-top:8px; }
.auth-alt{ text-align:center; margin-top:18px; font-size:.9rem; color:var(--ink-soft); }
.auth-alt a{ color:var(--green-d); font-weight:700; }

/* dashboard */
.dash-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:24px; align-items:start; }
.hello{ font-family:var(--display); font-size:1.5rem; margin-bottom:4px; }
.hello .wave{ }
.dash-hero{ background:linear-gradient(135deg,#f0f7f2,#eef4f6); border:1px solid var(--line-soft); border-radius:var(--r-lg); padding:30px; }
.today-min{ display:flex; align-items:baseline; gap:10px; margin:8px 0 4px; }
.today-min .num{ font-family:var(--display); font-size:3.2rem; font-weight:700; color:var(--green-d); line-height:1; }
.today-min .unit{ font-size:1.1rem; color:var(--ink-soft); }
.ach-badge{ display:inline-flex; align-items:center; gap:7px; padding:.4em 1em; border-radius:var(--r-pill); font-size:.82rem; font-weight:700; }
.ach-badge.done{ background:var(--keep-t); color:var(--keep); }
.ach-badge.todo{ background:var(--motive-t); color:var(--motive); }
.stat-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }
.stat-box{ background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--r); padding:18px; }
.stat-box .k{ font-size:.78rem; color:var(--muted); }
.stat-box .v{ font-family:var(--display); font-size:1.5rem; margin-top:2px; }
.stat-box .v small{ font-size:.85rem; color:var(--ink-soft); font-weight:400; }
.progress{ height:9px; background:var(--line-soft); border-radius:999px; overflow:hidden; margin-top:10px; }
.progress > span{ display:block; height:100%; background:linear-gradient(90deg,#67ac8b,#4e8f70); border-radius:999px; }
.goal-line{ display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px dashed var(--line); font-size:.94rem; }
.goal-line:last-child{ border-bottom:none; }
.goal-line .k{ color:var(--muted); }
.goal-line .v{ font-weight:700; }
.quick-actions{ display:grid; gap:12px; }

/* timer */
.timer-wrap{ text-align:center; max-width:520px; margin:0 auto; }
.ring{ position:relative; width:280px; height:280px; margin:10px auto 8px; }
.ring svg{ transform:rotate(-90deg); }
.ring .track{ fill:none; stroke:var(--line-soft); stroke-width:14; }
.ring .bar{ fill:none; stroke:url(#tgrad); stroke-width:14; stroke-linecap:round; transition:stroke-dashoffset .4s linear; }
.ring .time{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.ring .time .t{ font-family:var(--display); font-size:3.2rem; font-weight:700; letter-spacing:.02em; }
.ring .time .s{ font-size:.82rem; color:var(--muted); }
.ring.achieved .time .t{ color:var(--keep); }
.timer-status{ font-size:.9rem; color:var(--ink-soft); margin:6px 0 22px; min-height:1.6em; }
.timer-controls{ display:flex; gap:12px; justify-content:center; margin-bottom:20px; }
.timer-note{ font-size:.82rem; color:var(--muted); }

/* ===== フローティング学習タイマー（ページをまたいで常駐） ===== */
.study-fab{ position:fixed; right:18px; bottom:18px; z-index:80;
  display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.study-fab.hidden{ display:none; }
.study-fab .sf-toggle{ position:relative; width:52px; height:52px; padding:0; border:none;
  background:transparent; cursor:pointer; align-self:flex-end;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.20)); }
.study-fab .sf-ringsvg{ transform:rotate(-90deg); display:block; }
.study-fab .sf-track{ fill:var(--paper); stroke:var(--line-soft); stroke-width:5; }
.study-fab .sf-bar{ fill:none; stroke:var(--keep); stroke-width:5; stroke-linecap:round;
  transition:stroke-dashoffset .5s linear; }
.study-fab .sf-mini-time{ position:absolute; inset:0; display:flex; align-items:center;
  justify-content:center; font-size:.6rem; font-weight:700; color:var(--ink); }
.study-fab .sf-body{ order:-1; width:232px; background:var(--paper);
  border:1px solid var(--line-soft); border-radius:14px; padding:13px;
  box-shadow:0 10px 28px rgba(0,0,0,.16); }
.study-fab.collapsed .sf-body{ display:none; }
.study-fab .sf-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:9px; }
.study-fab .sf-time{ font-family:var(--display); font-size:1.55rem; font-weight:700; color:var(--ink); }
.study-fab .sf-state{ font-size:.72rem; color:var(--muted); }
.study-fab.is-achieved .sf-state{ color:var(--keep); font-weight:700; }
.study-fab .sf-content{ width:100%; padding:7px 9px; border:1px solid var(--line-soft);
  border-radius:8px; font-size:.8rem; margin-bottom:9px; background:#fff; color:var(--ink); }
.study-fab .sf-actions{ display:flex; gap:6px; }
.study-fab .sf-actions .btn{ flex:1; padding:8px 6px; font-size:.78rem; text-align:center;
  display:inline-flex; align-items:center; justify-content:center; }
@media (max-width:520px){
  .study-fab{ right:10px; bottom:10px; }
  .study-fab .sf-body{ width:min(74vw,232px); }
}

/* records */
.rec-summary{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; }
.rec-stat{ background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--r); padding:20px; text-align:center; box-shadow:var(--shadow-sm); }
.rec-stat .v{ font-family:var(--display); font-size:1.9rem; color:var(--green-d); }
.rec-stat .k{ font-size:.8rem; color:var(--muted); }
.rec-list{ display:grid; gap:12px; }
.rec-item{ display:flex; align-items:center; gap:16px; background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--r); padding:16px 20px; box-shadow:var(--shadow-sm); }
.rec-date{ text-align:center; min-width:52px; }
.rec-date .d{ font-family:var(--display); font-size:1.4rem; line-height:1; }
.rec-date .m{ font-size:.7rem; color:var(--muted); }
.rec-body{ flex:1; }
.rec-body .c{ font-weight:700; font-size:.95rem; }
.rec-body .mm{ font-size:.82rem; color:var(--muted); }
.rec-badge{ font-size:.72rem; font-weight:700; padding:.3em .8em; border-radius:999px; }
.rec-badge.done{ background:var(--keep-t); color:var(--keep); }
.empty{ text-align:center; padding:48px 20px; color:var(--muted); }
.empty svg{ width:56px; height:56px; opacity:.4; margin:0 auto 12px; }

/* ai chat page */
.chat-window{ background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); overflow:hidden; display:flex; flex-direction:column; height:64vh; min-height:440px; }
.chat-head{ display:flex; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line-soft); background:#fbfaf6; }
.chat-body{ flex:1; overflow-y:auto; padding:22px; display:flex; flex-direction:column; gap:12px; background:linear-gradient(180deg,#fcfbf7,#f8f4ec); }
.chat-foot{ display:flex; gap:10px; padding:14px; border-top:1px solid var(--line-soft); }
.chat-foot input{ flex:1; padding:.85em 1.1em; border:1.5px solid var(--line); border-radius:var(--r-pill); font-family:inherit; font-size:.96rem; }
.chat-foot input:focus{ outline:none; border-color:var(--green); }
.chat-foot button{ width:48px; height:48px; border-radius:50%; background:var(--green); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.suggest-row{ display:flex; gap:8px; flex-wrap:wrap; padding:0 14px 12px; }
.suggest{ font-size:.82rem; padding:.5em 1em; border-radius:999px; border:1.5px solid var(--line); color:var(--ink-soft); background:#fff; }
.suggest:hover{ border-color:var(--info); color:var(--info); }
.ai-disclaim{ font-size:.75rem; color:var(--muted); text-align:center; margin-top:12px; }

/* toast */
.toast{
  position:fixed; left:50%; bottom:30px; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:#fff; padding:.9em 1.5em; border-radius:var(--r-pill);
  font-size:.9rem; font-weight:500; box-shadow:var(--shadow); opacity:0; pointer-events:none;
  transition:opacity .3s ease, transform .3s ease; z-index:100; max-width:90vw;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* misc */
.fade-in{ animation:fadeUp .5s ease both; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:none; } }
.center{ text-align:center; }
.mt-s{ margin-top:12px; } .mt{ margin-top:22px; } .mt-l{ margin-top:40px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; gap:34px; }
  .hero-visual{ max-width:460px; margin:0 auto; }
  .split{ grid-template-columns:1fr; gap:34px; }
  .cta-box{ grid-template-columns:1fr; padding:40px 30px; }
  .dash-grid{ grid-template-columns:1fr; }
}
@media (max-width: 760px){
  .nav-links{
    position:fixed; inset:74px 0 auto 0; flex-direction:column; align-items:stretch;
    background:var(--cream); padding:18px 24px 26px; gap:6px; border-bottom:1px solid var(--line);
    box-shadow:var(--shadow); transform:translateY(-140%); transition:transform .3s ease; margin-left:0;
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-links a.navlink{ padding:12px 4px; border-bottom:1px solid var(--line-soft); }
  .nav-links .nav-cta{ margin-top:12px; flex-direction:column; }
  .nav-links .nav-cta .btn{ width:100%; }
  .nav-toggle{ display:flex; }
  .force-grid{ grid-template-columns:1fr; }
  .assure{ grid-template-columns:1fr; gap:34px; }
  .rec-summary{ grid-template-columns:1fr; }
  .stat-row{ grid-template-columns:1fr; }
  .pillars{ gap:2px; }
  .pillar .p-desc{ font-size:.68rem; }
  .section{ padding:56px 0; }
  .hero-badge{ left:8px; }
  .sticky-note{ right:8px; }
}
@media (max-width: 420px){
  .container{ padding:0 18px; }
  .pillar .p-name{ font-size:.92rem; }
  .card{ padding:22px; }
  .ring{ width:230px; height:230px; }
}

/* ===== 会員機能：チェックボックス行・みんなページ ===== */
.check-line{
  display:flex; align-items:flex-start; gap:10px;
  font-weight:500; font-size:.92rem; color:var(--ink-soft); cursor:pointer;
  margin-bottom:0;
}
.check-line input[type="checkbox"]{
  width:20px; height:20px; flex:0 0 auto; margin-top:1px; accent-color:var(--green);
}
.check-line span{ line-height:1.5; }

.members-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:14px; margin-top:8px;
}
.member-chip{
  display:flex; align-items:center; gap:12px;
  background:var(--paper); border:1px solid var(--line-soft); border-radius:16px;
  padding:14px 16px; box-shadow:var(--shadow-sm);
}
.member-chip.active{ border-color:var(--green); background:var(--green-tint); }
.member-avatar{
  width:42px; height:42px; flex:0 0 auto; border-radius:50%;
  background:var(--green-tint2); color:var(--green-d);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.05rem;
}
.member-name{ font-weight:700; color:var(--ink); font-size:.98rem; }
.member-meta{ font-size:.78rem; color:var(--muted); margin-top:2px; }
