@charset "UTF-8";
/* ==========================================================================
   muse.fun〈仮称〉 — Common Stylesheet
   姉妹サイト Muse Work と同系統「静謐な知性」／差し色：セージ〜深緑
   外部フォント・外部リソースなし（オフライン完結）
   --------------------------------------------------------------------------
   00 Tokens / 01 Base / 02 Typography / 03 Layout / 04 Header
   05 Page head / 06 Lists / 07 Buttons / 08 Cards / 09 Hero (product)
   10 Table / 11 Definition list (特商法) / 12 Code / 13 Footer
   14 Thanks page / 15 Responsive / 16 A11y・Motion・Print
   ========================================================================== */

/* 00. Tokens ============================================================== */
:root {
  /* Base (cream) — Muse Work と共通 */
  --c-bg:          #FAF9F5;
  --c-bg-sub:      #F5F3EC;
  --c-bg-deep:     #F0EEE6;
  --c-surface:     #FFFFFF;

  /* Text (warm charcoal) */
  --c-text:        #2E2A25;
  --c-text-sub:    #5C564E;
  --c-text-mute:   #7A7368;

  /* Accent (sage → forest green) */
  --c-accent:      #5E8268;  /* セージ：マーカー・罫線の差し色・ドット */
  --c-accent-deep: #4A6E55;  /* 主軸：ボタン・リンク文字 */
  --c-accent-dark: #3A5A45;  /* hover・強いコントラスト */
  --c-accent-line: #BCCDBE;  /* 緑みの罫線 */
  --c-accent-soft: #E3ECE2;  /* タグ・選択範囲・番号地 */
  --c-accent-wash: #F1F5EF;  /* 淡い面 */

  /* Line */
  --c-line:        #E3DFD4;
  --c-line-strong: #D3CDBF;

  /* Code block */
  --c-code-bg:     #1F2A23;
  --c-code-text:   #E6EDE3;

  /* Fonts */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
               Meiryo, "Yu Gothic UI", sans-serif;
  --font-display: "Hiragino Mincho ProN", "Yu Mincho", YuMincho,
                  "Noto Serif JP", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;

  --fs-display: clamp(1.85rem, 1.30rem + 2.4vw, 2.75rem);
  --fs-h1:      clamp(1.60rem, 1.25rem + 1.5vw, 2.25rem);
  --fs-h2:      clamp(1.30rem, 1.15rem + 0.7vw, 1.65rem);
  --fs-h3:      clamp(1.12rem, 1.05rem + 0.35vw, 1.30rem);
  --fs-lead:    clamp(1.00rem, 0.95rem + 0.3vw, 1.13rem);
  --fs-body:    1rem;
  --fs-sm:      .875rem;
  --fs-xs:      .8125rem;

  --lh-head: 1.5;
  --lh-body: 1.9;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(46, 42, 37, .04), 0 6px 20px rgba(46, 42, 37, .05);
  --shadow-2: 0 1px 0 rgba(46, 42, 37, .06), 0 8px 24px rgba(46, 42, 37, .07);

  --container: 1040px;
  --measure: 760px;          /* 読み物の行長 */
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .22s;
}

/* 01. Base ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "palt" 1;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  line-break: strict;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4, p, dl, dd, ul, ol, pre, figure { margin: 0; }

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--c-accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: rgba(74, 110, 85, .35);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--c-accent-dark); text-decoration-color: currentColor; }

strong { font-weight: 700; color: var(--c-text); }

::selection { background: var(--c-accent-soft); color: var(--c-text); }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* 02. Typography ========================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: .04em;
  color: var(--c-text);
}
h1 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h3); }

/* セクション見出し：罫線＋左端に緑の短い線 */
h2 {
  position: relative;
  font-size: var(--fs-h2);
  margin: var(--sp-8) 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 1px;
  background: var(--c-accent);
}

main p + p { margin-top: 1em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.95;
  color: var(--c-text-sub);
  max-width: var(--measure);
}

.note {
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--c-text-mute);
}
p.note { margin-top: var(--sp-3); }

/* 03. Layout ============================================================== */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main.wrap { padding-block: var(--sp-8) var(--sp-9); }

/* 本文の行長を抑える（カード・表・ヒーローは全幅） */
main > p,
main > ul,
main > ol,
main > dl,
main > pre { max-width: var(--measure); }

/* 04. Header ============================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, .9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {                  /* Fロゴ（ドット＝頭、F＝上半身） */
  height: 2.6em;
  width: auto;
  flex: 0 0 auto;
}
.brand:hover { color: var(--c-text); }
.brand small {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--c-text-mute);
  margin-left: -.3em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-4), 2.4vw, var(--sp-6));
}
.site-nav a {
  position: relative;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--c-accent-dark); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--c-accent-dark); }

/* 05. Page head =========================================================== */
main > h1:first-child { margin-bottom: var(--sp-5); }
main > h1:first-child + .lead {
  padding-bottom: var(--sp-7);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-line);
  max-width: none;
}
main > h1:first-child + .lead + h2 { margin-top: var(--sp-7); }

/* トップページ：見出しを一段大きく、上下に余白 */
.is-home main.wrap { padding-top: clamp(56px, 9vw, 120px); }
.is-home main > h1:first-child {
  font-size: var(--fs-display);
  line-height: 1.45;
  letter-spacing: .06em;
  margin-bottom: var(--sp-6);
}
.is-home main > h1:first-child + .lead { border-bottom: 0; padding-bottom: 0; max-width: var(--measure); }

/* 06. Lists =============================================================== */
main ul, main ol { padding: 0; list-style: none; }

main ul > li {
  position: relative;
  padding: var(--sp-3) 0 var(--sp-3) 1.6em;
  border-bottom: 1px solid var(--c-line);
}
main ul > li:first-child { border-top: 1px solid var(--c-line); }
main ul > li::before {
  content: "";
  position: absolute;
  left: .25em;
  top: calc(var(--sp-3) + .82em);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
main ul > li strong { color: var(--c-accent-dark); }

/* 番号付き：ステップ表現 */
main ol { counter-reset: step; }
main ol > li {
  counter-increment: step;
  position: relative;
  padding: var(--sp-4) 0 var(--sp-4) 3.2em;
  border-bottom: 1px solid var(--c-line);
}
main ol > li:first-child { border-top: 1px solid var(--c-line); }
main ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--sp-4);
  width: 2.1em;
  height: 2.6em;
  display: grid;
  place-items: center;
  margin-top: -.1em;
  border: 1px solid var(--c-accent-line);
  border-radius: 50%;
  background: var(--c-accent-wash);
  color: var(--c-accent-dark);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
}
main ol > li strong { color: var(--c-accent-dark); }

/* 07. Buttons ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding: .8em 1.7em;
  border: 1px solid var(--c-accent-deep);
  border-radius: var(--r-md);
  background: var(--c-accent-deep);
  color: #FFFFFF;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.3;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn::after {
  content: "→";
  font-family: var(--font-sans);
  transition: transform var(--dur) var(--ease);
}
.btn:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: #FFFFFF;
  box-shadow: var(--shadow-1);
}
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

/* カード内は控えめな線ボタン（1画面1 primary の原則） */
.card .btn {
  background: var(--c-accent-wash);
  border-color: var(--c-accent-line);
  color: var(--c-accent-dark);
}
.card .btn:hover {
  background: var(--c-accent-deep);
  border-color: var(--c-accent-deep);
  color: #FFFFFF;
}

/* 購入ボタンはひと回り大きく */
.btn--buy { padding: .95em 2.4em; font-size: 1.05rem; }
.btn--download::after { content: "↓"; }
.btn--download:hover::after { transform: translateY(2px); }

/* 08. Cards =============================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card::before {                 /* 上端の細い緑線 */
  content: "";
  position: absolute;
  top: -1px;
  left: var(--sp-5);
  width: 32px;
  height: 2px;
  background: var(--c-accent);
}
.card:hover {
  border-color: var(--c-accent-line);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { font-size: .95rem; color: var(--c-text-sub); line-height: 1.85; }
.card p + p { margin-top: var(--sp-3); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card > p:last-of-type { margin-bottom: var(--sp-5); }

/* 料金などの補足行 */
.card__meta {
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--c-line-strong);
  font-size: var(--fs-sm) !important;
  color: var(--c-accent-dark) !important;
  font-weight: 600;
}

.price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--c-text) !important;
  margin: var(--sp-4) 0 var(--sp-1);
  line-height: 1.4;
}
.price small {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--c-text-mute);
}

/* 09. Hero (product) ====================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(var(--sp-6), 5vw, var(--sp-8));
  align-items: start;
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--c-line);
}
.hero img {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
}
.hero-title {
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.hero-text > p:not(.price):not(.note) { color: var(--c-text-sub); }
.hero-text .price {
  padding-top: var(--sp-4);
  margin-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
.hero-text .btn + .note { margin-top: var(--sp-4); }

.back-link { margin-top: var(--sp-7) !important; font-size: var(--fs-sm); }

/* 10. Table =============================================================== */
table {
  width: 100%;
  margin: var(--sp-4) 0 var(--sp-5);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: .95rem;
}
th, td {
  padding: var(--sp-4) var(--sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}
tbody tr:last-child td { border-bottom: 0; }
th {
  background: var(--c-accent-wash);
  color: var(--c-accent-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .06em;
  border-bottom-color: var(--c-accent-line);
}
td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}
td + td { color: var(--c-text-sub); }
td:last-child { white-space: nowrap; font-weight: 600; color: var(--c-accent-dark); }

/* 11. Definition list (特商法) =========================================== */
dl {
  display: grid;
  grid-template-columns: minmax(10em, 15em) minmax(0, 1fr);
  margin-top: var(--sp-6);
  border-top: 1px solid var(--c-line-strong);
  max-width: none !important;
}
dt, dd {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-line);
}
dt {
  padding-right: var(--sp-5);
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-accent-dark);
  letter-spacing: .04em;
}
dd { color: var(--c-text); }
dd .note { display: inline-block; margin-top: var(--sp-1); }

/* 12. Code ================================================================ */
pre {
  margin: var(--sp-4) 0;
  padding: var(--sp-5);
  background: var(--c-code-bg);
  color: var(--c-code-text);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .875rem;
  line-height: 1.8;
  letter-spacing: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  tab-size: 2;
}
pre::selection { background: #3A5A45; color: #FFFFFF; }

/* 13. Footer ============================================================== */
footer {
  flex-shrink: 0;
  background: var(--c-bg-deep);
  border-top: 1px solid var(--c-line);
  padding: var(--sp-6) 0 var(--sp-7);
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
}
footer a { color: var(--c-text-sub); text-decoration-color: var(--c-line-strong); }
footer a:hover { color: var(--c-accent-dark); }

/* 14. Thanks page ========================================================= */
.thanks {
  width: calc(100% - 2 * var(--gutter));
  max-width: 680px;
  margin: clamp(48px, 10vw, 120px) auto var(--sp-9);
  padding: clamp(var(--sp-6), 6vw, var(--sp-8)) clamp(var(--sp-5), 5vw, var(--sp-7));
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  text-align: left;
}
main.thanks { padding-block: clamp(var(--sp-6), 6vw, var(--sp-8)); }
.thanks h1 { margin-bottom: var(--sp-4); }
.thanks h1::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-accent);
  margin-bottom: var(--sp-5);
}
.thanks .btn { margin-top: var(--sp-5); }
.thanks pre { max-width: none; }
.mt-section { margin-top: var(--sp-5) !important; }

/* 15. Responsive ========================================================== */
@media (max-width: 760px) {
  :root { --header-h: auto; }
  .site-header { position: static; }
  .site-header .wrap {
    padding-block: var(--sp-3);
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--c-line);
    overflow-x: auto;
  }
  .site-nav a {
    flex: 1 0 auto;
    text-align: center;
    padding: var(--sp-3) var(--sp-2);
  }
  .site-nav a + a { border-left: 1px solid var(--c-line); }
  .site-nav a::after { left: 20%; right: 20%; bottom: 6px; }

  main.wrap { padding-block: var(--sp-7) var(--sp-8); }
  h2 { margin-top: var(--sp-7); }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero img { max-width: 420px; }

  /* 表：行ごとのカードに縦積み（data-label で見出しを表示） */
  table, thead, tbody, tr, td { display: block; }
  table { border: 0; background: none; overflow: visible; }
  thead { display: none; }
  tbody tr {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    margin-bottom: var(--sp-4);
    overflow: hidden;
  }
  td {
    display: grid;
    grid-template-columns: 6.5em minmax(0, 1fr);
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    white-space: normal !important;
  }
  td::before {
    content: attr(data-label);
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--c-accent-dark);
    letter-spacing: .04em;
  }
  td:first-child { background: var(--c-accent-wash); }
  tbody tr td:last-child { border-bottom: 0; }

  dl { grid-template-columns: minmax(0, 1fr); }
  dt { padding-bottom: 0; border-bottom: 0; }
  dd { padding-top: var(--sp-1); }

  footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .card .btn { align-self: stretch; }
  pre { padding: var(--sp-4); font-size: .8125rem; }
}

/* 16. A11y / Motion / Print =============================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .card:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --c-line: #A9A396; --c-text-mute: #5C564E; }
  .btn::after { content: none; }
}

@media print {
  .site-header, footer, .btn { display: none !important; }
  body { background: #fff; color: #000; display: block; }
  a { color: #000; }
  .card, table, pre { box-shadow: none; break-inside: avoid; }
  pre { background: #fff; color: #000; border: 1px solid #000; }
}
