/* Mosaic 公式サイト
   紙: クリーム / 文字: 濃紺 / 差し色: アイコンの青・黄・橙 */

:root {
  --paper: #fffdf6;
  --paper-tint: #f7f0dc;
  --white: #ffffff;
  --ink: #142b60;
  --ink-soft: #3e4a70;
  --blue: #1a3db0;
  --yellow: #ffe53d;
  --orange: #f4a24c;
  --cream: #fbf3de;
  --line: #ddd5bf;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --pad: clamp(16px, 5vw, 56px);

  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: .02em;
  line-break: strict;
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  word-break: auto-phrase;
  text-wrap: balance;
  font-feature-settings: "palt";
}

p { text-wrap: pretty; hanging-punctuation: allow-end; }

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

figure { margin: 0; }

a { color: var(--blue); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* 見出しの改行位置を文節でそろえる */
.w { display: inline-block; }

.wrap { width: min(100% - var(--pad) * 2, 1200px); margin-inline: auto; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: 6px;
}
.skip:focus { top: 12px; color: var(--white); }

/* アイコンのモザイクを小さく再現した印 */
.label::before,
.qa h3::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: conic-gradient(var(--blue) 25%, var(--orange) 0 50%, var(--blue) 0 75%, var(--yellow) 0);
}

/* ---------- ヘッダー ---------- */

.masthead { background: var(--paper); }
.masthead::after {
  content: "";
  display: block;
  height: 10px;
  background:
    repeating-linear-gradient(90deg, var(--blue) 0 10px, var(--cream) 10px 20px, var(--orange) 20px 30px, var(--yellow) 30px 40px) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--cream) 0 10px, var(--orange) 10px 20px, var(--yellow) 20px 30px, var(--blue) 30px 40px) bottom / 100% 5px no-repeat;
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand img { border-radius: 10px; }

nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }

.masthead nav a {
  display: inline-block;
  padding-block: 10px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover { border-bottom-color: var(--orange); }

/* ---------- 冒頭 ---------- */

.hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "label label"
    "title lead"
    "photo photo";
  gap: 0 clamp(32px, 5vw, 72px);
  align-items: end;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .9375rem;
  font-weight: 700;
}
.hero-label { grid-area: label; }

.hero h1 {
  grid-area: title;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 1.2rem + 3.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: .01em;
}

.hero-lead { grid-area: lead; padding-bottom: .4em; }
.hero-lead p { margin: 0 0 1.1em; max-width: 30em; }
.hero-lead .hero-actions { margin-bottom: .9em; }

.status { color: var(--ink-soft); font-size: .875rem; }
.status a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 48px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: var(--white); }

.hero-photo { grid-area: photo; margin-top: clamp(28px, 4vw, 52px); }
.hero-photo img { width: 100%; }

figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.75;
}
.hero-photo figcaption { display: flex; align-items: baseline; gap: 12px; max-width: 46em; }

.tag {
  flex: none;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
}

/* ---------- 本文の章 ---------- */

.section { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.section-tinted { background: var(--paper-tint); border-top: 0; }

.section h2,
.release h2 {
  margin: 0 0 .7em;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.4;
}

.intro { max-width: 34em; margin: 0; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.split-reverse { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.split-reverse .shot { order: -1; }

.shot { position: sticky; top: 24px; }
.shot img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px -26px rgba(20, 43, 96, .5);
}
.shot figcaption { text-align: center; }

/* 手順 */
.steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 40em; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--yellow);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}
.steps h3 { margin: 0; padding-top: 7px; font-size: 1.125rem; line-height: 1.5; }
.steps p { margin: .4em 0 0; }

/* 動画の仕様 */
.specs { max-width: 40em; margin: 36px 0 0; border-top: 2px solid var(--ink); }
.specs div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 2px 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }
.specs strong { font-size: 1.25em; }

/* よくある疑問 */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.qa {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.qa-wide { grid-row: span 2; }
.qa h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 .6em;
  font-size: 1.125rem;
  line-height: 1.55;
}
.qa h3::before { transform: translateY(1px); }
.qa p { margin: 0 0 .8em; }
.qa p:last-child { margin-bottom: 0; }

.data { margin: 22px 0 0; padding: 6px 18px; border-radius: 4px; background: var(--paper-tint); }
.data div {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 0 14px;
  padding-block: 10px;
}
.data div + div { border-top: 1px solid var(--line); }
.data dt { font-size: .875rem; font-weight: 700; }
.data dd { margin: 0; }

/* 公開について */
.release { padding-block: clamp(48px, 6vw, 80px); background: var(--yellow); }
.release-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
}
.release h2 { margin-bottom: .45em; }
.release p { max-width: 36em; margin: 0; }
.button-ink { background: var(--ink); }
.button-ink:hover { background: var(--blue); }

/* ---------- フッター ---------- */

.site-footer { padding-block: 28px; font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer a { display: inline-block; padding-block: 8px; color: var(--ink); }

/* ---------- 画面幅ごとの調整 ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "title" "photo" "lead";
  }
  .hero-photo { margin-block: 24px 28px; }
  .hero-lead { padding-bottom: 0; }
}

@media (max-width: 760px) {
  .split,
  .split-reverse { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .shot { order: 0; }
  .shot { position: static; width: min(72%, 280px); margin-inline: auto; }
  .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .qa-wide { grid-row: auto; }
  .release-inner { grid-template-columns: minmax(0, 1fr); }
  .release .button { justify-self: start; }
}

@media (max-width: 600px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; padding-block: 12px 4px; }
  nav ul { gap: 0 18px; }
  .masthead nav a { font-size: .875rem; }

  /* 冒頭の写真は画面の端まで広げる */
  .hero-photo { margin-inline: calc(var(--pad) * -1); }
  .hero-photo figcaption { padding-inline: var(--pad); }

  .specs div,
  .data div { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
