/* fukura刺繍研究所 デザインモック 共通CSS（P1）
   スマホ幅375pxを基準。PCは最大幅720pxで中央寄せ。 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Shippori+Mincho:wght@400;500;600&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --green: #1F3A2E;
  --green-deep: #15291F;
  --green-soft: #DCE4DD;
  --paper: #F3F1EA;
  --card: #FBFAF6;
  --ink: #1E221F;
  --muted: #6B6F68;
  --line: #D8D5CA;
  --peach: #F2D9C4;
  --peach-ink: #7A4A2C;
  --serif-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --serif-jp: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.page { max-width: 720px; margin: 0 auto; min-height: 100vh; background: var(--paper); }
main { padding: 0 16px 48px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; max-width: 720px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mono {
  width: 36px; height: 36px; border: 1.5px solid var(--green); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif-en); font-size: 22px; color: var(--green); line-height: 1;
}
.brand .name { font-family: var(--serif-en); font-size: 17px; letter-spacing: 0.14em; color: var(--green); line-height: 1.1; }
.brand .sub { font-family: var(--serif-en); font-size: 9px; letter-spacing: 0.16em; color: var(--muted); line-height: 1.2; }
.menu-btn {
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--green);
  display: grid; place-items: center;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 3px 0; }

/* ---------- ドロワー ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,30,25,.45); z-index: 30; display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 86vw); z-index: 31;
  background: var(--green); color: #F3F1EA; padding: 20px 20px 32px;
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { display: block; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.drawer-head .name { font-family: var(--serif-en); font-size: 20px; letter-spacing: .16em; }
.drawer-head .sub { font-family: var(--serif-en); font-size: 9px; letter-spacing: .16em; opacity: .8; }
.drawer-close { background: transparent; border: 0; color: inherit; font-size: 24px; line-height: 1; }
.drawer nav a {
  display: flex; align-items: center; gap: 14px; padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.drawer nav a .ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; flex: none; }
.drawer nav a .t { flex: 1; font-family: var(--serif-jp); font-size: 16px; letter-spacing: .08em; }
.drawer nav a .d { display: block; font-family: var(--sans); font-size: 11px; opacity: .75; letter-spacing: .04em; }
.drawer nav a .chev { opacity: .6; }
.drawer .divider { text-align: center; margin: 18px 0 10px; opacity: .6; font-size: 12px; }
.drawer .secondary a { border: 0; padding: 10px 4px; font-family: var(--sans); font-size: 14px; }
.drawer .who { margin-top: 28px; font-size: 12px; opacity: .75; }

/* ---------- 共通部品 ---------- */
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-family: var(--serif-jp); font-weight: 500; font-size: 18px; letter-spacing: .1em; }
.section-head .more { font-size: 12px; color: var(--muted); }
.ornament { text-align: center; color: var(--green); margin: 28px 0 0; font-size: 14px; }
.ornament::before, .ornament::after { content: ''; display: inline-block; width: 36%; height: 1px; background: var(--line); vertical-align: middle; margin: 0 10px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.card + .card { margin-top: 10px; }
.card.link { display: flex; align-items: center; gap: 12px; }
.card.link .chev { margin-left: auto; color: var(--muted); }
.card.dark { background: var(--green); color: #F3F1EA; border-color: var(--green); }

.badge { display: inline-block; font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 3px; letter-spacing: .06em; white-space: nowrap; }
.badge.important { background: var(--peach); color: var(--peach-ink); }
.badge.normal { background: #E8E6DD; color: var(--muted); }
.badge.director { background: var(--green); color: #fff; }
.badge.done { background: var(--green-soft); color: var(--green); }
.badge.wait { background: #F1E7C9; color: #6B5518; }
.badge.todo { background: #E8E6DD; color: var(--muted); }
.badge.returned { background: var(--peach); color: var(--peach-ink); }
.unread { position: relative; }
.unread::before { content: ''; position: absolute; left: -8px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--green); transform: translateY(-50%); }
.date { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.meta { font-size: 12px; color: var(--muted); }
.title { font-weight: 500; margin: 2px 0 0; }
.body { color: var(--ink); font-size: 14px; margin: 4px 0 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 4px; border: 1px solid var(--green);
  background: var(--green); color: #F3F1EA; font-weight: 500; letter-spacing: .06em; width: 100%;
}
.btn.ghost { background: transparent; color: var(--green); }
.btn.small { width: auto; padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; }
.tabs a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; background: var(--card); }
.tabs a[aria-current] { background: var(--green); color: #fff; border-color: var(--green); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li .ico { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.4; flex: none; }
.list li .chev { margin-left: auto; color: var(--muted); }

.form label { display: block; font-size: 13px; font-weight: 500; margin: 16px 0 6px; }
.form input[type=text], .form textarea, .form select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit;
}
.form textarea { min-height: 110px; }
.form .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.hero {
  background: var(--green); color: #F3F1EA; text-align: center; padding: 36px 20px 28px; margin: 0 -16px;
}
.hero .eyebrow { font-family: var(--serif-en); font-size: 11px; letter-spacing: .3em; opacity: .8; }
.hero h1 { font-family: var(--serif-en); font-weight: 400; font-size: 30px; letter-spacing: .2em; margin: 12px 0 4px; line-height: 1.25; }
.hero h1 small { display: block; font-size: 16px; letter-spacing: .24em; }
.hero .lead { font-family: var(--serif-jp); font-size: 15px; letter-spacing: .14em; margin: 18px 0 0; }
.hero .star { opacity: .8; margin-top: 14px; }
.hero .art { margin: 18px auto 0; width: 220px; opacity: .9; }

.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 12px 14px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.room .art { width: 64px; height: 64px; stroke: var(--green); fill: none; stroke-width: 1.2; }
.room .en { font-family: var(--serif-en); font-size: 12px; letter-spacing: .18em; color: var(--green); margin-top: 6px; }
.room .jp { font-family: var(--serif-jp); font-size: 15px; letter-spacing: .1em; }
.room .d { font-size: 11px; color: var(--muted); }

.cal { display: flex; gap: 14px; align-items: stretch; }
.cal .day { background: var(--green); color: #F3F1EA; border-radius: 4px; width: 64px; text-align: center; padding: 8px 4px; }
.cal .day .md { font-family: var(--serif-en); font-size: 22px; line-height: 1; }
.cal .day .w { font-size: 11px; margin-top: 6px; }
.cal .info .time { font-family: var(--serif-en); font-size: 18px; }
.cal .info .t { font-size: 13px; }

.footer { text-align: center; padding: 40px 16px 24px; color: var(--muted); }
.footer .en { font-family: var(--serif-en); font-size: 11px; letter-spacing: .2em; }
.footer .art { width: 56px; margin: 0 auto 12px; stroke: var(--green); fill: none; stroke-width: 1.2; opacity: .8; }

.help-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 12px; border-bottom: 1px solid var(--line); }

/* 観察台の4枠 */
.season { display: flex; align-items: center; gap: 14px; }
.season .n { font-family: var(--serif-en); font-size: 26px; color: var(--green); width: 36px; }
.season .name { font-family: var(--serif-jp); font-size: 16px; letter-spacing: .1em; }
.season .state { margin-left: auto; }

/* 進捗バー */
.progress { height: 4px; background: #E8E6DD; border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); }

/* 写真グリッド */
.photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.photos div { aspect-ratio: 1; background: #E8E6DD; border-radius: 3px; display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.photos div.add { border: 1px dashed var(--muted); background: transparent; }

/* 動画 */
.video { aspect-ratio: 16/9; background: var(--green-deep); border-radius: 6px; display: grid; place-items: center; color: #F3F1EA; }
.chapters li { justify-content: space-between; }
.chapters .ts { font-family: var(--serif-en); color: var(--green); font-size: 15px; }
.chapters li.me { background: var(--green-soft); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }

/* コメント */
.comment { padding: 12px 0; border-top: 1px solid var(--line); }
.comment.director { background: var(--green-soft); margin: 0 -16px; padding: 12px 16px; border-left: 3px solid var(--green); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: inline-grid; place-items: center; font-family: var(--serif-en); font-size: 15px; flex: none; }

/* 管理室 */
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi .card { text-align: center; padding: 12px 6px; }
.kpi .num { font-family: var(--serif-en); font-size: 30px; line-height: 1; color: var(--green); }
.kpi .lbl { font-size: 11px; color: var(--muted); margin-top: 6px; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
table.matrix th, table.matrix td { border-bottom: 1px solid var(--line); padding: 10px 4px; text-align: center; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--green); }
.dot.wait { background: #E9D98F; border-color: #B99A2E; }
.dot.done { background: var(--green); }
.dot.returned { background: var(--peach); border-color: var(--peach-ink); }

@media (min-width: 720px) {
  body { font-size: 16px; }
  .room-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 研究スタンプ帳（提案） ---------- */
.stampbook { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.stamp { aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: 1.5px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); font-family: var(--serif-jp); font-size: 18px; line-height: 1.1; position: relative; }
.stamp small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .04em; margin-top: 2px; }
.stamp.got { border: 2px solid var(--green); color: var(--green); background: var(--green-soft); transform: rotate(-8deg); }
.stamp.got::after { content: ''; position: absolute; inset: 4px; border: 1px solid var(--green); border-radius: 50%; opacity: .5; }
.stamp.reviewed::before { content: '✓'; position: absolute; right: -2px; top: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; display: grid; place-items: center; transform: rotate(8deg); }
.stamp.goal { border-style: solid; border-color: var(--line); font-size: 13px; }
.term { margin-top: 14px; }
.term .bar { position: relative; height: 6px; background: #E8E6DD; border-radius: 3px; }
.term .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 3px; }
.term .months { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 11px; color: var(--muted); margin-top: 4px; }
.term .months span { text-align: center; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.steps li:last-child { border-bottom: 0; }
.steps .box { width: 20px; height: 20px; border: 1.5px solid var(--green); border-radius: 4px; flex: none; display: grid; place-items: center; font-size: 12px; color: #fff; }
.steps li.done .box { background: var(--green); }
.steps li.done span:last-child { color: var(--muted); text-decoration: line-through; }

/* ---------- 管理室：タブ切替・会員詳細・視聴状況・目次づくり ---------- */
.panel[hidden] { display: none; }
.howto { font-size: 12px; color: var(--muted); background: #EEECE4; border-radius: 4px; padding: 8px 10px; margin: 0 0 12px; }
.tabs button { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; background: var(--card); color: inherit; }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.kpi button.card { font: inherit; color: inherit; cursor: pointer; }
.row-link { cursor: pointer; }
.row-link:hover td, li.row-link:hover { background: var(--green-soft); }
.watch { display: grid; grid-template-columns: 1fr 88px; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.watch:last-child { border-bottom: 0; }
.watch .t { min-width: 0; }
.watch .lv { font-size: 11px; text-align: right; color: var(--muted); }
.watch .lv.full { color: var(--green); font-weight: 500; }
.watch .progress { grid-column: 1 / -1; height: 5px; }
.mini-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mini-kpi div { background: #EEECE4; border-radius: 4px; padding: 8px; text-align: center; font-size: 11px; color: var(--muted); }
.mini-kpi b { display: block; font-family: var(--serif-en); font-size: 22px; color: var(--green); font-weight: 500; }
.chapter-row { display: grid; grid-template-columns: 1fr 78px auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.chapter-row input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--serif-en); font-size: 16px; text-align: center; background: #fff; }
.chapter-row .who { min-width: 0; }
.player { aspect-ratio: 16/9; max-width: 100%; background: var(--green-deep); border-radius: 6px; color: #F3F1EA; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.player .time { font-family: var(--serif-en); font-size: 22px; }

.stamp.pending { border: 1.5px dashed var(--green); color: var(--green); }
.stamp.pending small { font-size: 8px; }

/* ミナさんの素材（2026-10-16） */
.brand .logo-mark { height: 42px; width: auto; display: block; }
.room img.art { width: 72px; height: 72px; object-fit: contain; }
.hero img.hero-art { width: 100%; max-width: 420px; height: auto; display: block; margin: 18px auto 0; opacity: .95; }

/* 文字の大きさの切り替え（2026-10-16） */
.fs-box { margin: 4px 4px 14px; }
.fs-label { font-size: 12px; opacity: .8; margin-bottom: 6px; }
.fs-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fs-btns button { padding: 8px 4px; border-radius: 4px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; line-height: 1.2; }
.fs-btns button[aria-pressed="true"] { background: #F3F1EA; color: var(--green); border-color: #F3F1EA; }
.card .fs-btns button { border-color: var(--line); background: #fff; color: var(--ink); }
.card .fs-btns button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }

/* 2026-10-16：メニューの絵・一番下の印・三本線の間隔 */
.drawer nav a img.nav-img { width: 26px; height: 22px; object-fit: contain; flex: none; }
.footer .footer-mark { width: 40px; height: 40px; display: block; margin: 0 auto 12px; }
.menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { margin: 0; }

/* 各ページ上部の見出しカード（2026-10-16。高さを抑えた横長） */
.page-hero { margin-top: 20px; background: #E9E6DD; border-radius: 6px; padding: 14px 16px 14px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 104px; }
.page-hero .ph-en { font-family: var(--serif-en); font-size: 11px; letter-spacing: .22em; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.page-hero .ph-sub { font-family: var(--sans); letter-spacing: .04em; font-size: 11px; color: var(--green); border: 1px solid var(--green); border-radius: 3px; padding: 1px 6px; }
.page-hero .ph-title { font-family: var(--serif-jp); font-weight: 500; font-size: 21px; letter-spacing: .12em; margin: 4px 0 2px; color: var(--ink); line-height: 1.4; }
.page-hero .ph-desc { margin: 0; font-size: 12px; color: var(--muted); }
.page-hero .ph-art { width: 84px; height: 72px; object-fit: contain; }
.page-hero { margin-bottom: 14px; }

/* ロビー上部の動き（2026-10-16）。CSSだけ・読み込み時に一度だけ。星だけゆっくり明滅を続ける */
@keyframes fk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fk-draw { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: .95; transform: none; } }
@keyframes fk-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.85); } }
.hero .eyebrow { animation: fk-rise .9s ease-out .15s both; }
.hero h1 { animation: fk-rise 1s ease-out .35s both; }
.hero .star { display: inline-block; animation: fk-rise .9s ease-out .7s both, fk-twinkle 4.5s ease-in-out 2.2s infinite; }
.hero .lead { animation: fk-rise 1s ease-out .9s both; }
.hero img.hero-art { animation: fk-draw 1.8s cubic-bezier(.2,.7,.2,1) 1.1s both; }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .star, .hero .lead, .hero img.hero-art { animation: none; }
}

/* ログイン画面の動き（2026-10-16）。ロビーと同じ考え方。ボタンは約1秒で出す */
@keyframes fk-note { from { opacity: 0; transform: translateY(10px); } to { opacity: .75; transform: none; } }
.login-logo { animation: fk-draw 1.6s cubic-bezier(.2,.7,.2,1) .1s both; }
.login-lead { animation: fk-rise .9s ease-out .6s both; }
.login-btn { animation: fk-rise .8s ease-out .8s both; }
.login-note { animation: fk-note .8s ease-out 1s both; }
@media (prefers-reduced-motion: reduce) {
  .login-logo, .login-lead, .login-btn { animation: none; }
  .login-note { animation: none; opacity: .75; }
}
