/* Macorn の LP。色はブランド（Branding/README.md）に合わせる */
:root {
  --navy: #24324a;
  --navy-deep: #1a2538;
  --cream: #f6ebd9;
  --cream-soft: #fbf5ea;
  --orange: #c9773a;
  --orange-dark: #b5652b;
  --orange-light: #e09a55;
  --brown: #5a3418;
  --ink: #2a211b;
  --ink-soft: #5e5248;
  --line: rgba(42, 33, 27, 0.1);
  --radius: 14px;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-latin: "Outfit", "Zen Kaku Gothic New", sans-serif;

  /* 余白の段階（画面の幅に合わせて伸び縮みする） */
  --space-section: clamp(88px, 11vw, 144px); /* セクションの上下 */
  --space-head: clamp(40px, 5vw, 64px); /* 見出しから中身まで */
  --space-block: clamp(72px, 9vw, 128px); /* 機能の行どうし */
  --gutter: clamp(20px, 4vw, 32px); /* 左右の余白 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream-soft);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

/* 日本語の折り返し：文節の切れ目で折り返し、見出しは行の長さをそろえる */
h1, h2, h3, p { word-break: auto-phrase; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: rgba(201, 119, 58, 0.14);
  color: var(--brown);
}
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }
.pc { display: none; }
@media (min-width: 760px) { .pc { display: inline; } }
.phrase { display: inline-block; }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.7em;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201, 119, 58, 0.3); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn--large { min-height: 56px; padding: 0 2.2em; font-size: 1.1rem; }
.btn--small { min-height: 36px; padding: 0 1.1em; font-size: 0.9rem; }

/* ヘッダー */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 37, 56, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--font-latin); font-weight: 600; font-size: 1.25rem; }
.nav__logo img { border-radius: 8px; }
.nav__links { display: none; gap: 28px; margin-left: auto; }
.nav__links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.92rem; transition: color 0.15s; }
.nav__links a:hover { color: #fff; }
.nav .btn { margin-left: auto; }
@media (min-width: 760px) {
  .nav__links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* ヒーロー */
.hero {
  background: radial-gradient(120% 80% at 50% 0%, #34476a 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding-top: clamp(64px, 9vw, 112px);
  overflow: hidden;
}
.hero__inner { text-align: center; }
.badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(224, 154, 85, 0.14);
  border: 1px solid rgba(224, 154, 85, 0.3);
  color: var(--orange-light);
  font-size: 0.85rem;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.6vw, 3.8rem);
  line-height: 1.32;
  letter-spacing: 0.03em;
}
.lead { margin: 28px auto 0; max-width: 44em; color: rgba(255, 255, 255, 0.8); font-size: clamp(1rem, 1.5vw, 1.1rem); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
/* .shot（下で margin: 0）より強くして、ボタンとの間を空ける */
.shot.shot--hero { margin: clamp(56px, 7vw, 88px) auto 0; max-width: 1040px; }
.shot--hero img { border-radius: 16px 16px 0 0; box-shadow: 0 -12px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* 画面写真 */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: var(--radius); box-shadow: 0 28px 64px rgba(26, 37, 56, 0.26), 0 0 0 1px rgba(26, 37, 56, 0.08); }

/* ヒーローの図：実際のフォルダ（パス）と、整理の次元（タグ・セクション）。site/dims.js が描き、ドラッグで回せる */
.dims-figure { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 980px; padding-bottom: clamp(48px, 6vw, 80px); }
.dims { width: 100%; height: auto; overflow: visible; font-family: var(--font); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.dims.is-dragging { cursor: grabbing; }
.dims:focus-visible { outline: 2px solid rgba(224, 154, 85, 0.6); outline-offset: 8px; border-radius: 12px; }
.dims-hint { margin-top: 4px; color: var(--orange-light); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.85; }
.dims-figure figcaption { max-width: 40em; margin: 8px auto 0; color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; }
.dims-floor { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; }
.dims-floor-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.dims-sky { fill: rgba(201, 119, 58, 0.1); stroke: rgba(224, 154, 85, 0.65); stroke-width: 1.4; }
.dims-sky-grid { stroke: rgba(224, 154, 85, 0.12); stroke-width: 1; }
.dims-tree { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.6; stroke-linejoin: round; }
.dims-tree--faint { stroke: rgba(255, 255, 255, 0.18); }
.dims-home { fill: #fff; }
.dims-home-ring { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; }
/* 実際の場所の印：平面に寝かせた輪と芯。整理の次元とつながるものは波紋を広げる */
.dims-ring { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.3; }
.dims-ring--faint { fill: none; stroke: rgba(255, 255, 255, 0.28); }
.dims-ring--plain { stroke: rgba(255, 255, 255, 0.55); }
/* フォルダの木の節：小さな輪と、立てたフォルダ／ファイルの印・名前 */
.dims-ring--node { fill: rgba(255, 255, 255, 0.12); stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }
.dims-node-icon { stroke-width: 1.1; stroke-linejoin: round; }
.dims-node-icon--folder { fill: rgba(126, 177, 232, 0.28); stroke: #9cc3ee; }
.dims-node-icon--file { fill: rgba(255, 255, 255, 0.12); stroke: rgba(255, 255, 255, 0.85); }
.dims-node-name { fill: rgba(255, 255, 255, 0.82); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; paint-order: stroke; stroke: rgba(26, 37, 56, 0.85); stroke-width: 3px; stroke-linejoin: round; }
.dims-node-name--home { font-size: 14px; fill: #fff; }
/* これから足せる次元（点線の平面） */
.dims-ghost { fill: rgba(224, 154, 85, 0.03); stroke: rgba(224, 154, 85, 0.55); stroke-width: 1.3; stroke-dasharray: 6 6; animation: dims-ghost 3s ease-in-out infinite; }
.dims-ghost-label { fill: var(--orange-light); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.9; }
@keyframes dims-ghost { 0%, 100% { stroke-opacity: 0.35; } 50% { stroke-opacity: 0.85; } }
.dims-core { fill: #fff; }
.dims-pulse { fill: none; stroke: var(--orange-light); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: dims-pulse 2.4s ease-out infinite; animation-delay: calc(var(--i) * 0.6s); }
@keyframes dims-pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
.dims-path { fill: rgba(255, 255, 255, 0.78); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.dims-path--faint { fill: rgba(255, 255, 255, 0.32); }
.dims-link-top { stop-color: var(--orange-light); stop-opacity: 0.95; }
.dims-link-bottom { stop-color: #fff; stop-opacity: 0.45; }
.dims-link { stroke-width: 1.4; stroke-dasharray: 3 6; stroke-linecap: round; animation: dims-flow 1.6s linear infinite; animation-delay: calc(var(--i) * -0.4s); }
.dims-section { fill: rgba(201, 119, 58, 0.22); stroke: var(--orange-light); stroke-width: 1.6; }
.dims-label { fill: var(--orange-light); font-size: 13px; font-weight: 700; }
/* 整理の次元の項目：平面のピンから線を立て、名札を浮かべる */
.dims-anchor { fill: var(--orange); stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.2; }
.dims-stem { stroke: var(--orange-light); stroke-width: 1.2; opacity: 0.75; }
.dims-chip-bg { fill: rgba(26, 37, 56, 0.94); stroke: rgba(224, 154, 85, 0.85); stroke-width: 1.2; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.dims-chip-icon { fill: rgba(224, 154, 85, 0.18); stroke: var(--orange-light); stroke-width: 1.1; stroke-linejoin: round; }
.dims-chip-text { fill: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; }
.dims-plane { font-size: 14px; font-weight: 700; }
.dims-plane--floor { fill: rgba(255, 255, 255, 0.7); }
.dims-plane--sky { fill: var(--orange-light); }
@keyframes dims-flow { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) {
  .dims-link, .dims-pulse, .dims-ghost { animation: none; }
  .dims-pulse { opacity: 0; }
}
/* スマホの幅では、細かいパスの文字を省いて図を読みやすくする */
@media (max-width: 600px) {
  .dims-path, .dims-label, #dims .dims-node-name { display: none; }
  .dims-chip-text { font-size: 22px; }
  .dims-ghost-label { font-size: 24px; }
  .dims-label { font-size: 24px; }
  .dims-plane { font-size: 26px; }
  .dims-figure { margin-inline: calc(var(--gutter) * -0.6); }
}
/* タッチの画面では、横になぞって回す（縦はページのスクロール） */
.dims-hint--touch { display: none; }
@media (hover: none) {
  .dims-hint--mouse { display: none; }
  .dims-hint--touch { display: inline; }
}

/* コンセプト：2つの次元 */
.concept { padding: var(--space-section) 0; }
/* 次元が増えていく3つの段階（.dims-step は site/dims.js が描く）。床（フォルダの平面）の高さを3枚でそろえ、上に積み上がって見せる */
.steps { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: var(--navy-deep); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(26, 37, 56, 0.18);
}
.step--goal { border-color: rgba(224, 154, 85, 0.45); box-shadow: 0 18px 44px rgba(201, 119, 58, 0.22); }
.step__visual {
  position: relative; padding: 14px 14px 0;
  background:
    radial-gradient(70% 55% at 50% 72%, rgba(224, 154, 85, 0.12), transparent 70%),
    linear-gradient(180deg, #24324a 0%, #1d2a40 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.step__count {
  position: absolute; top: 14px; left: 16px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.step__count b { margin-left: 4px; color: var(--orange-light); font-family: var(--font-latin); font-size: 0.85rem; }
.dims-step { display: block; width: 100%; height: auto; }
.dims-step .dims-plane { font-size: 13px; }
.dims-step .dims-ghost-label { font-size: 18px; }
.dims-step .dims-node-name { font-size: 10px; stroke-width: 2.5px; }
.dims-step .dims-node-name--home { font-size: 12px; }
.step__body { padding: 20px 24px 26px; }
.step__no { color: var(--orange-light); font-family: var(--font-latin); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.18em; }
.step h3 { margin: 4px 0 8px; font-size: 1.2rem; line-height: 1.5; }
.step__body p:last-child { color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; }
.concept__grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .concept__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.dimension { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.dimension--org { background: linear-gradient(160deg, #fff7ee 0%, #fbeedd 100%); border-color: rgba(201, 119, 58, 0.35); }
.dimension__axis { font-family: var(--font-latin); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.dimension--org .dimension__axis { color: var(--orange); }
.dimension h3 { margin: 8px 0 12px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; }
.dimension p { color: var(--ink-soft); }
.dimension code { white-space: nowrap; }
.dimension ul { margin: 16px 0 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 0.95rem; }
.dimension li + li { margin-top: 4px; }
/* タグとセクションの使い分け */
.compare { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.compare__title { margin: 0 0 8px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; }
.compare__lead { color: var(--ink-soft); }
.compare__lead strong { color: var(--ink); }
.compare__table { margin-top: 20px; border-top: 1px solid var(--line); }
.compare__row { display: grid; grid-template-columns: 6.5em 1fr 1fr; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.compare__row [role="rowheader"] { color: var(--ink); font-weight: 700; }
.compare__row--head { font-weight: 700; color: var(--ink); }
.compare__row--head span:nth-child(2) { color: var(--orange); }
.compare__row--head span:nth-child(3) { color: var(--navy); }
.compare__row code { white-space: nowrap; }
.compare__note { margin-top: 16px; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 600px) {
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__row [role="rowheader"] { grid-column: 1 / -1; }
  .compare__row--head span:first-child { display: none; }
}
.concept__shot { margin-top: clamp(40px, 5vw, 64px); }

/* 3つの軸（ヒーローの続き） */
.pillars { background: var(--navy-deep); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.pillars__grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pillar { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
@media (min-width: 760px) { .pillar { padding: 32px 28px; } }
.pillar h2 { margin: 16px 0 8px; font-size: 1.25rem; line-height: 1.5; }
.pillar p { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.key { display: inline-block; padding: 3px 12px; letter-spacing: 0.02em; border-radius: 8px; background: var(--orange); color: #fff; font-family: var(--font-latin); font-weight: 600; font-size: 1rem; }

/* セクションの見出し（ラベル・見出し・説明） */
.section-head { max-width: 720px; margin: 0 auto var(--space-head); text-align: center; }
.section-label {
  margin-bottom: 12px;
  color: var(--orange);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-title { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.45; letter-spacing: 0.02em; }
.section-lead { margin-top: 16px; color: var(--ink-soft); }

/* 動画 */
.video { padding: var(--space-section) 0; background: var(--cream); }
.video__frame { border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); box-shadow: 0 28px 64px rgba(26, 37, 56, 0.26); }
.video__frame video { width: 100%; aspect-ratio: 16 / 9; }

/* 機能 */
.features { padding: var(--space-section) 0; }
.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: var(--space-block); }
.feature__text { max-width: 30em; }
.feature h3 { margin: 10px 0 14px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.45; }
.feature p { color: var(--ink-soft); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--orange); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; }
.eyebrow__no { font-family: var(--font-latin); font-weight: 600; color: var(--orange-light); }
.eyebrow__no::after { content: ""; display: inline-block; width: 24px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 80px); }
  .feature--flip { grid-template-columns: 7fr 5fr; }
  .feature--flip .feature__text { order: 2; }
}
.more { list-style: none; padding: 0; margin: var(--space-block) 0 0; display: grid; gap: 16px; }
@media (min-width: 520px) { .more { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .more { grid-template-columns: repeat(3, 1fr); } }
.more li { padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }
.more strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.05rem; }

/* ショートカット */
.shortcuts { padding: var(--space-section) 0; background: var(--cream); }
.table { max-width: 760px; margin: 0 auto; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 12px 32px rgba(26, 37, 56, 0.06); }
.table dl { margin: 0; }
.table dl > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.table dl > div:first-child { border-top: 0; }
.table dt { font-weight: 500; }
.table dd { margin: 0; display: flex; align-items: center; gap: 4px; color: var(--ink-soft); }
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid rgba(42, 33, 27, 0.16);
  border-bottom-width: 2px;
  background: var(--cream-soft);
  font-family: var(--font-latin);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  color: var(--ink);
}

/* 入手 */
.get { padding: var(--space-section) 0; background: var(--navy); color: #fff; text-align: center; }
.get__inner img { margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.get h2 { margin: 0 0 20px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.45; }
.get p { max-width: 42em; margin-inline: auto; color: rgba(255, 255, 255, 0.76); }
.get p + p { margin-top: 4px; }
.get .btn { margin-bottom: 16px; }
.get__meta { font-size: 0.9rem; }
.get__steps { display: inline-flex; flex-direction: column; gap: 6px; margin: 32px auto 28px; padding: 20px 28px 20px 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.86); text-align: left; }
.get__steps code { padding: 0.1em 0.4em; border-radius: 6px; background: rgba(255, 255, 255, 0.12); font-size: 0.9em; }

/* フッター */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px 0; }
