/* Skipwork のサイトの見た目。
   色はネイビーとイエロー。文字は、見出しも本文も角ゴシック（Zen Kaku Gothic New。見出しはいちばん太い 900）。
   箱やボタンの角は小さく、きっちりと。丸いのは、ロゴと「黄色い丸」だけ。
   黄色い丸は、ロゴの i の点、見出しの句点、リンクの頭、読み進めると横でスキップする丸、が全部それ。 */

/* ---------- 決まった値 ---------- */
:root {
  --navy: #0e1e46;
  --navy-deep: #081433;
  --navy-up: #1a2d62;
  --navy-line: rgba(255, 255, 255, 0.2);
  --sun: #ffd21f;
  --sun-deep: #edb100;
  --paper: #ffffff;
  --mist: #eef2f9;
  --line: #d3dbea;
  --ink: #0e1e46;
  --ink-soft: #46536f;
  --on-navy-soft: #cbd5ec;

  --font-d: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", Meiryo, sans-serif;
  --font-b: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", Meiryo, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5.2vw, 72px);
  --sec: clamp(80px, 11vw, 168px);
  --header: 72px;
  --r-box: 8px;
  --r-btn: 6px;
  --r-tag: 4px;
  --foot-soft: #9aa8c9;
}

/* ---------- 土台 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-break: strict;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}
.t-sun :focus-visible,
main > section:not(.t-navy) :focus-visible {
  outline-color: var(--navy);
}
[data-bx] {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--sun);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.sec {
  padding-block: var(--sec);
}
.t-navy {
  background: var(--navy);
  color: #fff;
}
.t-mist {
  background: var(--mist);
}
.t-sun {
  background: var(--sun);
}

/* ---------- 文字 ---------- */
.d2,
.h2,
.h3 {
  font-family: var(--font-d);
  letter-spacing: 0.02em;
}
.d2 {
  font-weight: 900;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  line-height: 1.2;
}
.d2-long {
  font-size: clamp(1.6rem, 5.2vw, 4.5rem);
}
.h2 {
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.36;
}
.h3 {
  font-weight: 700;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.5;
}
.lead {
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  font-weight: 500;
  line-height: 2;
}
.body p + p,
.body p + ul,
.body ul + p {
  margin-top: 1.25em;
}
.body {
  font-size: 1.0625rem;
}
.note-s {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.t-navy .note-s {
  color: var(--on-navy-soft);
}

/* 黄色い丸（このサイトの句点） */
.pd {
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--sun);
  vertical-align: baseline;
}
main > section:not(.t-navy) .pd {
  box-shadow: 0 0 0 0.035em var(--navy);
}

/* ---------- 頭（メニュー） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: #fff;
}
.bar {
  height: var(--header);
  width: min(100% - var(--gutter) * 2, 1320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
}
.logo-svg {
  height: 26px;
  width: auto;
  overflow: visible;
}
.logo:hover .logo-dot {
  animation: hop 0.55s cubic-bezier(0.3, 0, 0.3, 1);
}
.gnav ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 22px);
}
.gnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.gnav a:not(.gnav-cta) {
  padding-inline: 7px;
}
.gnav a:not(.gnav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(6px) scale(0);
  transition: transform 0.28s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.gnav a:not(.gnav-cta):hover::after,
.gnav a:not(.gnav-cta)[aria-current="page"]::after {
  transform: none;
}
.gnav-cta {
  margin-left: 8px;
  padding: 0 22px;
  min-height: 42px;
  border-radius: var(--r-btn);
  background: var(--sun);
  color: var(--navy);
  transition: background 0.2s;
}
.gnav-cta:hover {
  background: #fff;
}
.menu-btn {
  display: none;
}

/* ---------- ボタンとリンク ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 30px;
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-sun {
  background: var(--sun);
  color: var(--navy);
}
.btn-sun:hover {
  background: #fff;
}
.btn-line {
  border-color: currentColor;
}
.t-navy .btn-line:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-deep);
}
.btn-ext {
  width: 18px;
  height: 18px;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  text-decoration: none;
}
.more-dot {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 2px var(--navy);
}
.t-navy .more-dot {
  box-shadow: none;
}
.more-t {
  padding-bottom: 1px;
  border-bottom: 2px solid currentColor;
}
.more-ext {
  width: 18px;
  height: 18px;
}
.more:hover .more-dot,
.row:hover .row-go i {
  animation: hop 0.55s cubic-bezier(0.3, 0, 0.3, 1);
}
@keyframes hop {
  0% {
    transform: none;
  }
  18% {
    transform: translateY(1px) scale(1.18, 0.8);
  }
  50% {
    transform: translateY(-11px) scale(0.94, 1.08);
  }
  82% {
    transform: translateY(1px) scale(1.14, 0.84);
  }
  100% {
    transform: none;
  }
}

/* ---------- トップ：最初の画面 ---------- */
/* 大きな見出しを2行で。その下に線を引いて、左に説明、右にボタンと時刻。 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 7vw, 104px);
}
.hero-h {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.75rem, 10.2vw, 9.25rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
}
.hero-h .ln {
  display: block;
}
.hero-h .ln:last-child {
  white-space: nowrap;
}
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(36px, 5vw, 72px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--navy-line);
}
.hero-txt {
  max-width: 41rem;
}
.hero-act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}
/* いまの時刻と一言 */
.hero-clock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--navy-line);
  border-radius: var(--r-box);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--on-navy-soft);
}
.hero-clock[hidden] {
  display: none;
}
.hero-clock-t {
  flex: none;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}
.hero-lead {
  color: #fff;
}
.hero-en {
  margin-top: 14px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--sun);
}

/* 丸がスキップしてきた跡（JSが描く） */
.arrive {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.arrive-p {
  fill: none;
  stroke: var(--sun);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.1 15;
  opacity: 0.6;
}
.arrive-m {
  fill: none;
  stroke: #fff;
  stroke-width: 14;
}
.arrive-d {
  fill: var(--sun);
}

/* 最初に一度だけ：見出しが上がってきて、丸がスキップして句点におさまる */
.js-arrive [data-skip-origin] {
  opacity: 0;
  animation: show-late 0s linear 4s forwards;
}
@keyframes show-late {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-h .ln,
  .js .page-hero .d2 {
    animation: rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .js .hero-h .ln:nth-child(2) {
    animation-delay: 0.08s;
  }
  .js .hero-h .ln:nth-child(3) {
    animation-delay: 0.16s;
  }
  .pd.landed {
    animation: land 0.5s cubic-bezier(0.3, 0, 0.3, 1);
  }
  @media (max-width: 999px) {
    .js [data-skip-origin] {
      animation: drop 0.95s 0.45s cubic-bezier(0.3, 0, 0.3, 1) both;
    }
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.22em);
  }
}
@keyframes land {
  0% {
    transform: scale(1.3, 0.72);
  }
  55% {
    transform: scale(0.92, 1.1);
  }
  100% {
    transform: none;
  }
}
@keyframes drop {
  0% {
    opacity: 0;
    transform: translateY(-1.6em);
  }
  38% {
    opacity: 1;
    transform: translateY(0) scale(1.25, 0.75);
  }
  60% {
    transform: translateY(-0.5em) scale(0.95, 1.06);
  }
  82% {
    transform: translateY(0) scale(1.12, 0.88);
  }
  100% {
    transform: none;
  }
}

/* ---------- トップ：宣言 ---------- */
.mission-h {
  max-width: 14.5em;
  font-size: clamp(2rem, 5.1vw, 4.25rem);
  line-height: 1.34;
}
.mission-body {
  max-width: 39rem;
}
/* 宣言の下に、左に文とボタン、右に写真（11/15。写真に網をかけて重ねる形は、暗く見えるのでやめた） */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5.5vw, 88px);
  align-items: center;
  margin-top: clamp(40px, 5.5vw, 72px);
}
.phs {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-btn);
  background: #e9edf4;
}
.phs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phs.ph-city img {
  object-position: 62% 100%;
}
.txt-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-family: var(--font-d);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.txt-link:hover {
  text-decoration-color: var(--sun);
}
@media (max-width: 899px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}
.mission-body .more {
  margin-top: 36px;
}

/* ---------- トップ：2つの一日 ---------- */
.sec-head {
  margin-bottom: clamp(40px, 6vw, 80px);
}
.sec-head .lead {
  max-width: 44rem;
}
.nb {
  display: inline-block;
}
.sec-head .lead {
  margin-top: clamp(18px, 2vw, 28px);
}
.days-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.day {
  border-radius: var(--r-box);
  padding: clamp(26px, 3.6vw, 48px);
}
.day-wait {
  border: 2px dashed #b5c0d8;
  color: var(--ink-soft);
}
.day-kiki {
  background: var(--navy);
  color: #fff;
}
.day-h {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.4;
}
.day-sub {
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.day-kiki .day-sub {
  color: var(--sun);
}
.day-list {
  margin-top: clamp(20px, 2.6vw, 32px);
}
.day-list li {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid #c9d2e4;
  line-height: 1.7;
}
.day-kiki .day-list li {
  border-top-color: var(--navy-line);
}
.day-t {
  font-family: var(--font-d);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.day-end .day-t {
  color: var(--sun);
}
.day-end .day-d {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.25em;
  line-height: 1.5;
}
.days-note {
  margin-top: 20px;
}

/* ---------- トップ：事業の行 ---------- */
.rows {
  border-bottom: 1px solid var(--navy-line);
}
.row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 56px;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--navy-line);
  text-decoration: none;
}
.row-h {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.3vw, 1.875rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.row-line {
  text-wrap: balance;
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--sun);
}
.tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 12px;
  border: 1.5px solid var(--sun);
  border-radius: var(--r-tag);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--sun);
}
.row-d {
  color: var(--on-navy-soft);
}
.row-go {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--navy-line);
  border-radius: 50%;
  transition: border-color 0.2s;
}
.row-go i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sun);
}
.row:hover .row-go {
  border-color: var(--sun);
}

/* ---------- 本（トップの紹介） ---------- */
.book-t-in {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.cover {
  position: relative;
  margin: 0 18px 18px 0;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border-radius: 2px;
  background: var(--sun);
}
.cover img {
  position: relative;
  width: 100%;
  border-radius: 2px;
  border: 1px solid rgba(14, 30, 70, 0.12);
}
.book-st {
  display: inline-block;
  margin-bottom: 18px;
  padding: 3px 14px;
  border-radius: var(--r-tag);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.7;
}
.t-navy .book-st {
  background: var(--sun);
  color: var(--navy);
}
.book-sub {
  margin-top: 10px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.0625rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}
.book-by {
  margin-top: 6px;
  color: var(--ink-soft);
}
.t-navy .book-by {
  color: var(--on-navy-soft);
}
.book-t-txt .body {
  margin-top: 26px;
}
.book-t-txt .more {
  margin-top: 30px;
}

/* ---------- 開発レポート（1週分） ---------- */
.reps {
  border-bottom: 1px solid var(--line);
}
.rep {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(24px, 5vw, 80px);
  padding: clamp(28px, 4vw, 56px) 0;
  border-top: 2px solid var(--navy);
}
.rep-when {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.rep-items li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.rep-items li:first-child {
  padding-top: 0;
  border-top: 0;
}
.rep-items li:last-child {
  padding-bottom: 0;
}
.rep-t {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.rep-items p {
  margin-top: 6px;
}
.ic {
  flex: none;
}
.sec-foot {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
}

/* ---------- お知らせ ---------- */
.news-in,
.two {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.news-list {
  border-top: 2px solid var(--navy);
}
.news-list li {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
}
.news-list time,
.news-list .when {
  font-family: var(--font-d);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 締め（黄色い帯） ---------- */
.closing {
  padding-block: clamp(72px, 10vw, 144px);
  color: var(--navy);
}
.closing-h {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2rem, 5.6vw, 4.5rem);
  line-height: 1.3;
}
.closing-d {
  margin-top: 18px;
  font-weight: 500;
}
.closing .btn {
  margin-top: 30px;
}

/* ---------- 足 ---------- */
/* 左上に小さなロゴ。その下に、行き先を列で並べる（小さい英語の見出し → 太い行き先 → 中の項目）。右に、線で区切ってお問い合わせ。 */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding-top: clamp(48px, 6vw, 80px);
}
.foot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}
.foot-logo-a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
}
.foot-logo {
  height: 32px;
  width: auto;
  overflow: visible;
}
.foot-tag {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--on-navy-soft);
}
.foot-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(32px, 4.4vw, 56px);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 32px clamp(20px, 3vw, 48px);
}
.foot-grp + .foot-grp {
  margin-top: 26px;
}
.foot-cat {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--foot-soft);
}
.foot-main-a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
}
.foot-col ul a,
.foot-side ul a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--on-navy-soft);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--sun);
}
.foot-side {
  min-width: 210px;
  padding-left: clamp(28px, 4vw, 64px);
  border-left: 1px solid var(--navy-line);
}
.foot-ext {
  width: 14px;
  height: 14px;
}
.foot-btm {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 28px;
  margin-top: clamp(36px, 5vw, 64px);
  padding: 20px 0 32px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--on-navy-soft);
}
.copy {
  margin-left: auto;
}

/* ---------- 下の階層のページ：いちばん上 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 136px) clamp(56px, 8vw, 112px);
}
.page-en {
  margin-bottom: 8px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.5;
  color: var(--sun);
}
.page-lead {
  max-width: 39rem;
  margin-top: clamp(20px, 2.6vw, 32px);
  color: var(--on-navy-soft);
}

/* ---------- 左に見出し、右に中身 ---------- */
.two-h {
  position: sticky;
  top: calc(var(--header) + 32px);
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
}
.stmt {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.55rem, 3.1vw, 2.5rem);
  line-height: 1.55;
}
.stmt + .body {
  margin-top: clamp(24px, 3vw, 40px);
}
.sec-tight {
  padding-top: 0;
}

/* ---------- 考え：名前のこと ---------- */
.name-eq {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.16em;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(3.2rem, 9.4vw, 7.75rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
}
.name-eq .plus {
  font-size: 0.5em;
  color: var(--sun);
  transform: translateY(-0.28em);
}
.name-eq .sk {
  position: relative;
  z-index: 0;
}
.name-eq .sk::after {
  content: "";
  position: absolute;
  left: -0.03em;
  right: -0.03em;
  bottom: 0.1em;
  height: 0.2em;
  background: var(--sun);
  z-index: -1;
}
.name-mean {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(28px, 4vw, 48px);
}
.name-mean li {
  padding-top: 18px;
  border-top: 2px solid #fff;
}
.name-mean b {
  display: block;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.5;
}
.name-mean span {
  display: block;
  margin-top: 6px;
  color: var(--on-navy-soft);
}
.name-body {
  margin-top: clamp(32px, 4.4vw, 56px);
  max-width: 40rem;
  color: #fff;
}

/* スキップするもの／しないもの */
.sk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.sk-box {
  border-radius: var(--r-box);
  padding: clamp(26px, 3.6vw, 48px);
}
.sk-skip {
  border: 2px dashed #b5c0d8;
}
.sk-keep {
  background: var(--sun);
}
.sk-box .h3 {
  font-weight: 900;
}
.sk-box .sk-sub {
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.sk-keep .sk-sub {
  color: var(--navy);
}
.sk-box ul {
  margin-top: 20px;
}
.sk-box li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-top: 1px solid #c9d2e4;
  font-weight: 500;
  line-height: 1.7;
}
.sk-keep li {
  border-top-color: rgba(14, 30, 70, 0.28);
}
.sk-box li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.45em;
}
.sk-skip li::before {
  width: 20px;
  height: 10px;
  margin-top: -4px;
  border: 2.5px dotted var(--navy);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}
.sk-keep li::before {
  width: 12px;
  height: 12px;
  margin-top: -3px;
  left: 6px;
  border-radius: 50%;
  background: var(--navy);
}

/* 大切にしていること */
.vals {
  border-bottom: 1px solid var(--line);
}
.vals li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}
.vals li:first-child {
  border-top: 2px solid var(--navy);
}
.vals .h3 {
  font-weight: 900;
}

/* 代表の言葉 */
.msg {
  max-width: 41rem;
}
.sign {
  margin-top: 40px;
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.6;
}
.sign b {
  display: block;
  font-weight: 900;
  font-size: 1.5rem;
}

/* 次のページへ */
.nexts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: var(--r-box);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.next b {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.4;
}
.next small {
  display: block;
  font-size: 0.875rem;
  color: var(--on-navy-soft);
  line-height: 1.6;
}
.next .row-go {
  flex: none;
}
.next:hover .row-go {
  border-color: var(--sun);
}
.next:hover .row-go i {
  animation: hop 0.55s cubic-bezier(0.3, 0, 0.3, 1);
}

/* ---------- 事業 ---------- */
.ai-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.ai-intro .stmt {
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  line-height: 1.36;
}
.chat {
  max-width: 400px;
  margin-inline: auto;
}
.chat-box {
  padding: 18px 18px 20px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: #fff;
}
.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 14px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
}
.chat-top span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chat-top span:first-child::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 2px var(--navy);
}
.chat-top time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.bub {
  padding: 14px 16px;
  border-radius: 2px 10px 10px 10px;
  background: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.bub + .bub {
  margin-top: 8px;
}
.bub-me {
  margin-left: auto;
  width: fit-content;
  border-radius: 10px 2px 10px 10px;
  background: var(--navy);
  color: #fff;
}
.chat-acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.chat-acts span {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 2px solid var(--navy);
  border-radius: var(--r-btn);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
}
.chat-acts span:first-child {
  background: var(--sun);
}
.chat figcaption {
  margin-top: 12px;
  text-align: center;
}

.steps li {
  display: grid;
  grid-template-columns: 60px minmax(0, 3fr) minmax(0, 7fr);
  gap: 8px clamp(16px, 2.6vw, 36px);
  align-items: start;
  padding: clamp(22px, 2.8vw, 34px) 0;
  border-top: 1px solid var(--line);
}
.steps li:first-child {
  border-top: 2px solid var(--navy);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.step-n {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-btn);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1;
}
.steps li:nth-child(4) .step-n {
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.steps .h3 {
  font-weight: 900;
  padding-top: 8px;
}
.steps p {
  padding-top: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chips li {
  padding: 4px 14px;
  border: 2px solid var(--navy);
  border-radius: var(--r-tag);
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.7;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.trio li {
  padding-top: 22px;
  border-top: 4px solid var(--navy);
}
.trio .h3 {
  font-weight: 900;
}
.trio p {
  margin-top: 10px;
}

.status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-box);
  background: var(--navy);
  color: #fff;
}
.status .tag {
  margin-top: 6px;
  justify-self: start;
}
.status .h3 {
  font-weight: 900;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}
.status p {
  margin-top: 10px;
  color: var(--on-navy-soft);
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.duo-box {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.6vw, 48px);
  border-radius: var(--r-box);
  background: #fff;
}
.duo-box .h3 {
  font-weight: 900;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}
.duo-box p {
  margin-top: 12px;
}
.duo-box .more {
  margin-top: auto;
  padding-top: 24px;
}

/* ---------- 本のページ ---------- */
.book-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 7vw, 104px);
  align-items: center;
}
.book-hero .d2 {
  font-size: clamp(2.3rem, 5.6vw, 4.75rem);
}
.book-hero .d2 span {
  display: inline-block;
}
.book-hero .book-sub {
  margin-top: 18px;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
}
.book-hero .cover {
  max-width: 340px;
  margin-inline: auto;
}
.book-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 26px;
  color: var(--on-navy-soft);
  font-size: 0.9375rem;
}
.quote {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.5;
}
.quote + .body {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 41rem;
}
.dots li {
  position: relative;
  padding: 18px 0 18px 36px;
  border-top: 1px solid var(--line);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.dots li:first-child {
  border-top: 2px solid var(--navy);
}
.dots li:last-child {
  border-bottom: 1px solid var(--line);
}
.dots li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(18px + 0.9em - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 2px var(--navy);
}
.parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.parts li {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-box);
  background: #fff;
}
.parts .h3 {
  font-weight: 900;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}
.parts p {
  margin-top: 12px;
}
.reader {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.reader li {
  padding-top: 22px;
  border-top: 2px solid #fff;
}
.reader .h3 {
  font-weight: 900;
}
.reader p {
  margin-top: 10px;
  color: var(--on-navy-soft);
}
.reader-lead {
  max-width: 41rem;
  margin-bottom: clamp(32px, 5vw, 64px);
  color: var(--on-navy-soft);
}

/* ---------- 会社情報 ---------- */
.kv {
  border-top: 2px solid var(--navy);
}
.kv > div {
  display: grid;
  grid-template-columns: 10.5em minmax(0, 1fr);
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.kv dt {
  font-family: var(--font-d);
  font-weight: 700;
}
.kv dd ul li {
  position: relative;
  padding-left: 1.2em;
}
.kv dd ul li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.kv a,
.body a,
.doc a {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.prof-name {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.3;
}
.prof-name small {
  margin-left: 14px;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-soft);
}
.prof-role {
  margin-top: 4px;
  font-weight: 500;
  color: var(--ink-soft);
}
.prof .body {
  margin-top: 28px;
}
.prof .sec-foot {
  margin-top: 28px;
}
.hist {
  border-top: 2px solid var(--navy);
}
.hist li {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
}
.hist .when {
  font-family: var(--font-d);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hist .soon .when {
  color: var(--ink-soft);
}
.hist .soon .when::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border: 2px solid var(--navy);
  border-radius: 50%;
}

/* ---------- お問い合わせ ---------- */
.ch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.ch-box {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.6vw, 48px);
  border-radius: var(--r-box);
}
.ch-on {
  background: var(--navy);
  color: #fff;
}
.ch-on p {
  color: var(--on-navy-soft);
}
.ch-off {
  border: 2px dashed #b5c0d8;
  color: var(--ink-soft);
}
.ch-box .h3 {
  font-weight: 900;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
}
.ch-box p {
  margin-top: 10px;
}
.ch-box .btn {
  align-self: flex-start;
  margin-top: 26px;
}

/* ---------- 文書（プライバシーポリシー） ---------- */
.doc {
  max-width: 45rem;
}
.doc h2 {
  margin-top: 2.6em;
  margin-bottom: 0.6em;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1.5;
}
.doc p + p,
.doc ul + p,
.doc p + ul {
  margin-top: 1em;
}
.doc ul li {
  position: relative;
  padding-left: 1.3em;
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

/* ---------- 見つからないページ ---------- */
.nf {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding-block: 64px;
}
.nf-n {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(5rem, 20vw, 13rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--sun);
}
.nf .h2 {
  margin-top: 12px;
  font-size: clamp(1.25rem, 6.2vw, 3.25rem);
}
.nf .btns {
  margin-top: 32px;
}

/* ---------- 下書きだけ：確認してほしい所 ---------- */
html[data-draft] [data-kari] {
  outline: 2px dashed #e4570a;
  outline-offset: 6px;
}
html[data-draft].kari-off [data-kari] {
  outline: 0;
}
.kari-ui {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 90;
  font-family: var(--font-b);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #1c1c1c;
}
.kari-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid #e4570a;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.kari-btn b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e4570a;
  color: #fff;
}
.kari-panel {
  position: absolute;
  left: 0;
  bottom: 54px;
  width: min(400px, calc(100vw - 28px));
  max-height: min(64vh, 560px);
  overflow: auto;
  padding: 16px;
  border: 2px solid #e4570a;
  border-radius: 16px;
  background: #fff;
}
.kari-panel[hidden] {
  display: none;
}
.kari-panel p {
  margin-bottom: 10px;
}
.kari-panel li + li {
  margin-top: 8px;
}
.kari-panel button {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fafafa;
  text-align: left;
  cursor: pointer;
}
.kari-panel button:hover {
  border-color: #e4570a;
}
.kari-panel small {
  display: block;
  color: #666;
}
.kari-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* ---------- 小さな札 ---------- */
.tag-dark {
  display: inline-block;
  margin-bottom: 18px;
  padding: 3px 14px;
  border-radius: var(--r-tag);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- 事業内容のページ ---------- */
.sec-index {
  padding-block: clamp(48px, 6vw, 88px);
}
.biz-index {
  border-top: 2px solid var(--navy);
}
.biz-index li {
  border-bottom: 1px solid var(--line);
}
.biz-index a {
  display: grid;
  grid-template-columns: 56px minmax(0, 4fr) minmax(0, 8fr);
  gap: 4px clamp(20px, 3vw, 40px);
  align-items: center;
  padding: 16px 0;
  text-decoration: none;
}
.biz-index .art-biz {
  width: 56px;
  height: 56px;
}
.biz-index a:hover .a-s {
  animation: hop 0.55s cubic-bezier(0.3, 0, 0.3, 1);
  transform-box: fill-box;
}
/* 事業ごとの見出しの上に置く絵 */
.biz-ic {
  display: block;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}
.biz-ic .art-biz {
  width: clamp(64px, 7vw, 88px);
  height: clamp(64px, 7vw, 88px);
}
.biz-index b {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.biz-index span {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.biz-h .h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  line-height: 1.45;
}
.biz-line {
  margin-top: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-soft);
}
.biz-lead + .svc {
  margin-top: clamp(24px, 3vw, 40px);
}
.svc .h3 {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}
.t-mist .vals,
.t-mist .vals li {
  border-color: #c5cfe2;
}
.t-mist .vals li:first-child {
  border-top-color: var(--navy);
}
.works .sec-head .lead {
  color: var(--on-navy-soft);
}
.status {
  margin-top: clamp(40px, 6vw, 80px);
}

/* ---------- 絵（四角・黄色い丸・点線の弧） ---------- */
/* 形は src/art.mjs。色はここで、置かれた場所（明るい地／紺の地）に合わせる。
   四角＝作業、黄色い丸＝人が集中するもの、点線の弧＝スキップ。写真や外の素材は使わない。 */
.art {
  display: block;
  overflow: visible;
  --a-ink: var(--navy);
  --a-soft: #b5c0d8;
  --a-fill: #c3cee4;
  --a-skip: var(--navy);
  --a-ring: var(--navy);
}
.t-navy .art,
.day-kiki .art {
  --a-ink: var(--on-navy-soft);
  --a-soft: rgba(255, 255, 255, 0.28);
  --a-fill: #2e4589;
  --a-skip: var(--sun);
  --a-ring: none;
}
.day-wait .art {
  --a-ink: #7785a3;
  --a-fill: #b5c0d8;
  --a-skip: #8b98b5;
}
.art .a-l,
.art .a-o,
.art .a-v,
.art .a-g,
.art .a-k,
.art .a-me {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art .a-l,
.art .a-o,
.art .a-v,
.art .a-me {
  stroke: var(--a-ink);
  stroke-width: 2;
}
.art .a-g {
  stroke: var(--a-soft);
  stroke-width: 1.5;
}
.art .a-f {
  fill: var(--a-fill);
}
.art .a-n {
  fill: var(--navy);
}
.art .a-s {
  fill: var(--sun);
  stroke: var(--a-ring);
  stroke-width: 2;
}
.art .a-k {
  stroke: var(--a-skip);
  stroke-width: 2.5;
  stroke-dasharray: 0.1 6.5;
}
.art-biz {
  width: 80px;
  height: 80px;
}
.art-day {
  width: 100%;
  height: auto;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.day .art-day + .day-list {
  margin-top: clamp(10px, 1.4vw, 16px);
}
/* 5つの段階の流れ */
.flow {
  max-width: 760px;
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.art-steps {
  width: 100%;
  height: auto;
}
.flow-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.flow-key span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.flow-key i {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--navy);
}
.flow-key .k-me {
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 2px var(--navy);
}
.flow-key .k-loop {
  width: 24px;
  height: 0;
  border-radius: 0;
  background: none;
  border-top: 3px dotted var(--navy);
}

/* ---------- 幅の狭い画面 ---------- */
@media (max-width: 899px) {
  :root {
    --header: 62px;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 4px 0 12px;
    border: 0;
    background: none;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
  }
  .menu-ic {
    position: relative;
    width: 26px;
    height: 16px;
  }
  .menu-ic::before,
  .menu-ic::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #fff;
    transition: transform 0.25s, top 0.25s, bottom 0.25s;
  }
  .menu-ic::before {
    top: 1px;
  }
  .menu-ic::after {
    bottom: 1px;
    background: var(--sun);
  }
  .nav-open .menu-ic::before {
    top: 6.5px;
    transform: rotate(45deg);
  }
  .nav-open .menu-ic::after {
    bottom: 6.5px;
    transform: rotate(-45deg);
  }
  .menu-btn {
    order: 3;
  }
  .gnav {
    position: fixed;
    inset: var(--header) 0 0 0;
    z-index: 59;
    overflow: auto;
    background: var(--navy);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .nav-open .gnav {
    visibility: visible;
    opacity: 1;
  }
  .nav-open body {
    overflow: hidden;
  }
  .gnav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 48px;
  }
  .gnav li {
    border-bottom: 1px solid var(--navy-line);
  }
  .gnav li:last-child {
    border: 0;
    margin-top: 28px;
  }
  .gnav a {
    display: flex;
    min-height: 64px;
    font-size: 1.375rem;
  }
  .gnav a:not(.gnav-cta) {
    padding-inline: 0;
  }
  .gnav a:not(.gnav-cta)::after {
    left: auto;
    right: 6px;
    bottom: 50%;
    width: 10px;
    height: 10px;
    margin: 0 0 -5px;
  }
  .gnav-cta {
    justify-content: center;
    min-height: 58px;
    margin-left: 0;
  }
}

@media (max-width: 859px) {
  .hero {
    padding-block: 40px 56px;
  }
  /* 見出しは3行にして、大きく見せる */
  .hero-h {
    font-size: clamp(3rem, 16vw, 7rem);
  }
  .hero-foot,
  .book-t-in,
  .rep,
  .news-in,
  .two,
  .ai-intro,
  .book-hero-in,
  .foot-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-act {
    align-items: stretch;
  }
  .biz-index a {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 2px 16px;
  }
  .biz-index .art-biz {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
  }
  .hero-clock {
    align-self: flex-start;
  }
  /* 右の列を広めに（「デジタルマーケティング事業」が1行に入る幅） */
  .foot-cols {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    justify-content: stretch;
  }
  .foot-side {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--navy-line);
  }
  .copy {
    margin-left: 0;
    flex-basis: 100%;
  }
  .mission-body {
    margin-left: 0;
  }
  .days-grid,
  .sk-grid,
  .nexts,
  .duo,
  .ch,
  .reader,
  .name-mean {
    grid-template-columns: minmax(0, 1fr);
  }
  .row {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    gap: 12px 16px;
  }
  .row .art-biz {
    width: 52px;
    height: 52px;
    align-self: start;
  }
  .row > div {
    grid-column: 2 / -1;
  }
  .row-d {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .row-go {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    width: 44px;
    height: 44px;
  }
  .book-t-in .cover {
    max-width: 260px;
  }
  .book-hero .cover {
    max-width: 240px;
    margin-inline: 0 auto;
    order: -1;
  }
  .two-h {
    position: static;
  }
  .vals li,
  .steps li {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps li {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .steps p {
    grid-column: 2;
    padding-top: 0;
  }
  .trio,
  .parts {
    grid-template-columns: minmax(0, 1fr);
  }
  .status {
    grid-template-columns: minmax(0, 1fr);
  }
  .kv > div,
  .hist li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .news-list li {
    grid-template-columns: 5.5em minmax(0, 1fr);
  }
}

@media (max-width: 419px) {
  .btns .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 359px) {
  .d2 {
    font-size: 2.125rem;
  }
  /* いちばん幅の狭いスマホ：絵を小さくして、事業の名前が1行に入る幅をとる */
  .row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 12px;
  }
  .row .art-biz {
    width: 44px;
    height: 44px;
  }
  .row-h {
    font-size: 1.2rem;
  }
  .biz-index a {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 12px;
  }
  .biz-index .art-biz {
    width: 40px;
    height: 40px;
  }
  .biz-index b {
    font-size: 1rem;
  }
  .d2-long {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 写真（サイトのところどころに置く。色は変えず、そのまま。画面の端から端まで） ---------- */
.ph {
  width: 100%;
  aspect-ratio: 21 / 8;
  max-height: 560px;
  overflow: hidden;
  background: #e9edf4;
}
.ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 写真ごとの、切り取る位置 */
.ph-city img {
  object-position: 50% 100%;
}
.ph-desk img {
  object-position: 50% 62%;
}
.ph-cafe img {
  object-position: 50% 92%;
}
.ph-notes img {
  object-position: 50% 50%;
}
.ph-buildings img {
  object-position: 50% 40%;
}
@media (max-width: 859px) {
  .ph {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- 写真を敷いた区切り：写真の上に半透明の色をかぶせて、文字とボタンを読みやすくする ---------- */
.has-ph {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.has-ph > .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.has-ph > .bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 半透明の黒 */
.has-ph > .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
/* 紺（下ほど濃い）：最初の画面 */
.has-ph > .bg-navy::after {
  background: linear-gradient(180deg, rgba(14, 30, 70, 0.62) 0%, rgba(14, 30, 70, 0.74) 48%, rgba(14, 30, 70, 0.97) 100%);
}
/* ぼかして紺：本の紹介 */
.has-ph > .bg-blur img {
  filter: blur(6px);
  transform: scale(1.06);
}
.has-ph > .bg-blur::after {
  background: linear-gradient(90deg, rgba(14, 30, 70, 0.76) 0%, rgba(14, 30, 70, 0.93) 46%);
}
.has-ph > .ph-shibuya img {
  object-position: 50% 70%;
}
/* 写真の上のボタンとリンク */
.ph-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(28px, 3.6vw, 44px);
}
.ph-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.ph-link:hover {
  color: var(--sun);
}
/* 下の階層のページの見出し：文字のある左を、より濃くする */
.page-hero.has-ph > .bg::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.38) 100%);
}
@media (max-width: 859px) {
  .page-hero.has-ph > .bg::after {
    background: rgba(0, 0, 0, 0.66);
  }
}
/* 下の階層のページの見出し：写真を敷くときは、少し背を高くする */
.page-hero.has-ph {
  padding-block: clamp(96px, 13vw, 190px) clamp(72px, 10vw, 150px);
}

