/* =========================================================
   シナリオ コーポレートサイト　デザイン試作
   色と書体は「メディア要件シート」の指定に従う
   ========================================================= */

:root {
  --white: #ffffff;
  --gray: #f1f4f9;        /* ベース：淡い青（ver2・2026-10-02 加藤さん決定。ver1は #f4f4f6 の薄いグレー） */
  --navy: #44618f;        /* 図形カラー：図の塗り・矢印・見出しまわり */
  --blue: #7c9ac4;        /* メインカラー：背景の帯・円のふち・TOP */
  --yellow: #f2c230;      /* 強調：1画面に1から2箇所だけ */
  --text: #111214;        /* 文字 */
  --sub: #5d616b;         /* 補助の文字 */
  --line: #d6d7dc;        /* 罫線 */

  /* 本文と見出しは明朝体（端末に入っている書体を使う）。英字のメニューや番号だけゴシック系 */
  --font: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", serif;
  --w-head: 500; /* 見出しの太さ */
  --font-num: "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;

  --gutter: 24px;
  --header-h: 64px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: anywhere;
}

body.is-menu-open { overflow: hidden; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--text);
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue); /* 淡い青の帯 */
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  margin-right: auto;
  font-size: 18px;
  font-weight: var(--w-head);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: var(--text); /* 見本どおり、黒の塗りで1つだけ目立たせる */
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.2s;
}
.header-contact:hover { background: var(--navy); }

.menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.gnav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  padding: 24px var(--gutter) 48px;
  background: var(--white);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
}
/* ボタンで開閉した時だけ動きを付ける（画面幅が変わった時にちらつかせない） */
.gnav.is-animated { transition: opacity 0.25s, visibility 0.25s; }
.gnav.is-open {
  visibility: visible;
  opacity: 1;
}

.gnav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gnav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.gnav__list a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--navy);
  border-right: 1.5px solid var(--navy);
  transform: rotate(45deg);
}

/* ---------- ヒーロー（実現すべきGoal） ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(calc(100svh - var(--header-h)), 680px);
  padding: 72px var(--gutter) 168px;
  overflow: hidden;
  background: var(--white);
  text-align: center;
}

/* 下の端を斜めに切って、次の薄いグレーの面へつなぐ */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 96px;
  background: var(--gray);
  clip-path: polygon(0 88%, 100% 0, 100% 100%, 0 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__label {
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.14em;
}
.hero__label span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text);
}

.hero__title {
  margin: 0;
  font-size: clamp(32px, 9.6vw, 40px);
  font-weight: var(--w-head);
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.hero__title .row { display: block; }
.hero__title .ph { display: inline-block; } /* 文節のかたまりで折り返す */
/* 2枚目・3枚目：1枚目の見出しより少し小さくする */
.hero__title--sub { font-size: clamp(26px, 7.9vw, 33px); }
/* 1行目（前置き）：2行目よりさらに少し小さく */
.hero__pre {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.7em;
  letter-spacing: 0.08em;
}

/* 切り替わる中身：同じ場所に重ねて、表示中の1枚だけ見せる */
.hero__slides {
  display: grid;
  align-items: center;
  min-height: 310px;
}
.js .hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}
.js .hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
html:not(.js) .hero__slide + .hero__slide,
html:not(.js) .hero__tabs { display: none; }

/* 下のバー */
.hero__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
  margin: 40px auto 0;
}
.hero__tab {
  position: relative;
  padding: 16px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #858993;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.3s;
}
.hero__tab::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 1px;
  background: var(--line);
}
.hero__tab:hover,
.hero__tab.is-active { color: var(--text); }

.hero__tab-num {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.hero__tab-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
}
.hero__tab.is-active .hero__tab-bar { animation: hero-bar 6s linear forwards; }
@keyframes hero-bar {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__slide { transition: none; transform: none; }
  .hero__tab.is-active .hero__tab-bar { animation: none; width: 100%; }
}

/* ---------- 共通ブロック ---------- */

.block {
  padding: 80px var(--gutter);
  background: var(--white);
}
.block--gray { background: var(--gray); }

.block__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.block__head { margin-bottom: 32px; }

.block__num {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
}
.block__num::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  margin-left: 12px;
  background: var(--navy);
  vertical-align: middle;
}

.block__title {
  margin: 0;
  font-size: 28px;
  font-weight: var(--w-head);
  line-height: 1.5;
  letter-spacing: 0.04em;
  word-break: keep-all;
}

.block__body p {
  margin: 0 0 1.6em;
  text-wrap: pretty;
}
.block__body p:last-child { margin-bottom: 0; }

.block__lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  word-break: auto-phrase; /* 文節の切れ目で改行する（対応ブラウザのみ） */
  text-wrap: balance;
}

.block__action { margin-top: 40px !important; }

/* ---------- ボタン・リンク ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 220px;
  padding: 16px 24px 14px 28px;
  border: 0;
  border-bottom: 4px solid var(--yellow);
  background: var(--text);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn:hover { background: var(--navy); }

.btn__arrow,
.case-link__arrow,
.text-link__arrow {
  position: relative;
  flex: none;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s;
}
.btn__arrow::after,
.case-link__arrow::after,
.text-link__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
a:hover > .btn__arrow,
button:hover > .btn__arrow,
a:hover > .case-link__arrow,
a:hover > .text-link__arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-decoration: none;
}

/* ---------- 協業事例へのリンク ---------- */

.case-links {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.case-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.2s;
}
.case-link:hover { background: var(--gray); }

.case-link__num {
  grid-column: 1;
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.case-link__title {
  grid-column: 1;
  font-size: 17px;
  font-weight: var(--w-head);
  line-height: 1.6;
}
.case-link__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--navy);
}

/* ---------- 記事コーナー ---------- */

.posts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.post {
  display: block;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post__date {
  display: block;
  color: var(--sub);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.post__title {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}
.post:hover .post__title { color: var(--navy); }

.proto-note {
  margin: 16px 0 0;
  padding: 8px 12px;
  border: 1px dashed #c9b25c;
  background: #fffaea;
  color: #6b5a20;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ---------- 問い合わせフォーム ---------- */

.block--contact { border-top: 1px solid var(--line); }

.form__row { margin-bottom: 24px; }

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.form__input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* iPhoneで入力時に拡大されない大きさ */
  line-height: 1.6;
  letter-spacing: 0.04em;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.form__input:focus {
  border-color: var(--navy);
  outline: 1px solid var(--navy);
  outline-offset: 0;
}
.form__input--area { resize: vertical; min-height: 160px; }
.form__input.is-error { border-color: #b3261e; }

.form__row--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.7;
}
.form__check {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.form__action { margin: 32px 0 0; }
.btn--submit { width: 100%; }

.form__status {
  min-height: 1.8em;
  margin: 16px 0 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.8;
}

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

.site-footer {
  padding: 56px var(--gutter) 32px;
  background: var(--text);
  color: var(--white);
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.site-footer__brand {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: var(--w-head);
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.company {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}
.company > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.company > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.company dt { color: rgba(255, 255, 255, 0.6); }
.company dd { margin: 0; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.6;
}
.site-footer__bottom a { text-underline-offset: 4px; }
.site-footer__bottom small {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- 表示の動き ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   タブレット以上
   ========================================================= */

@media (min-width: 768px) {
  :root { --gutter: 40px; }

  body { font-size: 16px; }

  .hero { padding: 96px var(--gutter) 220px; }
  .hero::after { height: 150px; }
  .hero__label { font-size: 17px; margin-bottom: 48px; }
  .hero__title { font-size: clamp(40px, 4.4vw, 56px); }
  .hero__title--sub { font-size: clamp(34px, 3.8vw, 48px); }
  .hero__slides { min-height: 300px; }
  .hero__tabs { margin-top: 56px; }
  .hero__tab { font-size: 14px; padding-top: 20px; }

  .block { padding: 112px var(--gutter); }
  .block__title { font-size: 32px; }
  .block__lead { font-size: 20px; }

  .btn--submit { width: auto; min-width: 280px; }

  .post {
    display: grid;
    grid-template-columns: 8em 1fr;
    align-items: baseline;
  }
  .post__title { margin-top: 0; }
}

/* =========================================================
   パソコン
   ========================================================= */

@media (min-width: 1000px) {
  :root {
    --gutter: 56px;
    --header-h: 80px;
  }

  .menu-button { display: none; }

  .brand { font-size: 20px; }

  .gnav {
    position: static;
    height: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
    visibility: visible;
    opacity: 1;
  }
  .gnav__list {
    display: flex;
    gap: 40px;
    margin-right: 28px;
  }
  .gnav__list a {
    position: relative;
    padding: 8px 0;
    border: 0;
    font-size: 13px;
  }
  .gnav__list a::after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    border: 0;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
  }
  .gnav__list a:hover::after { transform: scaleX(1); }

  .header-contact {
    height: 44px;
    padding: 0 28px;
  }

  .hero {
    min-height: min(calc(100svh - var(--header-h)), 800px);
    padding: 120px var(--gutter) 280px;
  }
  .hero::after { height: 200px; }
  .hero__label { font-size: 18px; margin-bottom: 56px; }

  .block { padding: 152px var(--gutter); }

  .block__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 72px;
    align-items: start;
  }
  .block__head {
    position: sticky;
    top: calc(var(--header-h) + 48px);
    margin-bottom: 0;
  }
  .block__title { font-size: 36px; }

  .case-link { padding: 28px 8px; }
  .case-link__title { font-size: 19px; }
}

/* =========================================================
   SERVICEページ
   ========================================================= */

/* 画面幅で図を出し分ける（他の表示指定より優先させる） */
.only-pc { display: none !important; }

.gnav__list a[aria-current="page"] { font-weight: 700; }
@media (min-width: 1000px) {
  .gnav__list a[aria-current="page"]::after { transform: scaleX(1); }
}

.placeholder {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border: 1px dashed #c9b25c;
  background: #fffaea;
  color: #6b5a20;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.placeholder--center {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.placeholder--navy {
  border-color: var(--blue);
  background: var(--white);
  color: var(--navy);
}

/* ---------- ページタイトル ---------- */

.page-head {
  padding: 64px var(--gutter) 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(124, 154, 196, 0) 0%, rgba(124, 154, 196, 0.22) 100%) right bottom / 72% 10px no-repeat,
    var(--white);
}
.page-head__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-head__label {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
}
.page-head__title {
  margin: 0 0 20px;
  font-size: 36px;
  font-weight: var(--w-head);
  line-height: 1.4;
  letter-spacing: 0.06em;
}

/* ---------- 図のセクション ---------- */

.figure-sec {
  padding: 80px var(--gutter);
  background: var(--white);
}
.figure-sec--gray { background: var(--gray); }

.figure-sec__inner {
  max-width: 960px;
  margin: 0 auto;
}

.figure-sec__title {
  margin: 0 0 28px;
  font-size: 26px;
  font-weight: var(--w-head);
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  word-break: keep-all;
}
.figure-sec__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin: 18px auto 0;
  background: var(--yellow);
}

.figure-sec__lead {
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 2;
  text-wrap: pretty;
}

.figure-sec .placeholder--center { margin-bottom: 32px; }

/* ---------- 図1：流れ ---------- */

.flow {
  padding: 24px 12px;
  border: 1px solid var(--line);
  background: var(--white);
}
.flow__svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  font-family: var(--font);
}
.flow__x { font-family: "Playfair Display", var(--font); }

/* ---------- 図2：領域 ---------- */

.panel {
  padding: 28px 16px 32px;
  border: 1px solid var(--line);
  background: var(--white);
}

.panel__tag {
  width: fit-content;
  min-width: 200px;
  margin: 0 auto 24px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
}
.panel__tag--todo {
  border-style: dashed;
  color: var(--sub);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.panel .placeholder--center { margin-bottom: 24px; }

.accent-box {
  padding: 24px 14px;
  border: 1px solid var(--navy);
  background: #f4f5f8;
}

/* 図2上段のロゴ（ver2：画像の代わりに淡い青＝ヘッダーと同じ色の英字） */
.panel__logo {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: "Playfair Display", var(--font);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
}
@media (min-width: 768px) {
  .panel__logo { font-size: 44px; margin-bottom: 24px; }
}

/* 確定した文言（テーマ v0.1.2 の wp.css と同じ指定） */
.panel__title {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-align: center;
  word-break: keep-all;
}
.accent-box__text {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.8;
  text-align: center;
  word-break: keep-all;
}

/* 上段（ver2）：外の枠をなくし、各列は紺の線＋Playfairの番号＋左寄せの見出し。
   項目は薄いグレーの面に左だけ紺の線 */
.accent-box--plain {
  padding: 0;
  border: none;
  background: none;
}
.accent-box--plain .domains { gap: 40px; }
.accent-box--plain .domain {
  padding: 12px 0 0;
  border-top: 2px solid var(--navy);
  background: none;
}
.domain__num {
  margin: 0 0 6px;
  color: var(--blue);
  font-family: "Playfair Display", var(--font);
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.accent-box--plain .domain__title {
  margin-bottom: 14px;
  font-size: 18px;
  text-align: left;
}
.accent-box--plain .domain__list li {
  margin: 0 0 12px;
  padding: 14px 10px 14px 16px;
  border: none;
  border-left: 3px solid var(--navy);
  background: #f4f5f8;
  font-size: 15px;
  text-align: left;
}

.domains {
  display: grid;
  gap: 14px;
}
.domain {
  padding: 22px 16px 14px;
  background: var(--white);
}
.domain__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: var(--w-head);
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
  word-break: keep-all;
}
.domain__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.domain__list li {
  margin-bottom: 8px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  word-break: keep-all;
}

/* 移植（ver2）：1枚の枠の中で、横の細い線の真ん中に紺の線の丸 */
.transfer-divider {
  position: relative;
  margin: 48px 0 36px;
  text-align: center;
}
.transfer-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: 1px;
  background: var(--line);
}
.transfer-divider__circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.transfer-divider__chevron {
  display: block;
  width: 12px;
  height: 12px;
  margin: 12px auto 0;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg);
}

.transfer {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.transfer__stem {
  width: 2px;
  height: 28px;
  background: var(--navy);
}
.transfer__chip {
  padding: 8px 32px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
}
.transfer__head {
  width: 0;
  height: 0;
  margin-bottom: 4px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--navy);
}

.donut {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 8px auto;
  font-family: var(--font);
}
/* 図2の円（ver2：動く軌道）。点線の輪は60秒、黄色い点は12秒で一周。動きを減らす設定の人には止める */
.donut .orbit-ring,
.donut .orbit-sat {
  transform-box: view-box;
  transform-origin: 0 0; /* viewBox の 0,0＝円の中心 */
  animation: orbit-spin 60s linear infinite;
}
.donut .orbit-sat { animation-duration: 12s; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .donut .orbit-ring,
  .donut .orbit-sat { animation: none; }
}
/* スマホ：図の文字を読める大きさにするため、枠の内側の余白に少しはみ出させる */
.donut.only-sp {
  width: calc(100% + 24px);
  max-width: none;
  margin: 8px -12px;
}

.panel__action {
  margin: 32px 0 0;
  text-align: center;
}

@media (min-width: 768px) {
  .only-sp { display: none !important; }
  .only-pc { display: block !important; }
  br.only-pc { display: inline !important; }

  .page-head { padding: 96px var(--gutter) 80px; }
  .page-head__title { font-size: 44px; }

  .figure-sec { padding: 112px var(--gutter); }
  .figure-sec__title { font-size: 32px; margin-bottom: 32px; }
  .figure-sec__lead { font-size: 17px; text-align: center; margin-bottom: 56px; }

  .flow { padding: 32px 28px; }
  .flow__svg { max-width: none; }

  .panel { padding: 40px 32px 44px; }
  .accent-box { padding: 28px 22px; }

  .domains {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .domain__list li { font-size: 13px; }
  .panel__title { font-size: 21px; }
  .accent-box__text { font-size: 20px; letter-spacing: 0.08em; margin-bottom: 32px; }
  .accent-box--plain .domains { gap: 32px; }
  .accent-box--plain .domain__title { min-height: 3.2em; font-size: 19px; }
  .accent-box--plain .domain__list li { font-size: 15px; }
  .domain__num { font-size: 32px; }

  .donut { max-width: 680px; }
  .transfer-divider { margin: 64px 0 48px; }
  .transfer-divider::before { top: 44px; }
  .transfer-divider__circle { width: 88px; height: 88px; font-size: 17px; }
}

/* =========================================================
   PROJECTページ（事例一覧）
   ========================================================= */

.cases {
  padding: 64px var(--gutter) 80px;
  background: var(--white);
}
.cases__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.case-group + .case-group { margin-top: 80px; }

.case-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 8px;
}
.case-group__label {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
}

.case-card {
  padding: 40px 0 48px;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.case-card__client {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.case-card__tags li {
  padding: 4px 12px;
  border: 1px solid var(--blue);
  color: var(--navy);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.case-card__tags li.is-todo {
  border: 1px dashed #c9b25c;
  background: #fffaea;
  color: #6b5a20;
}

.case-card__title {
  margin: 0 0 24px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.04em;
  text-wrap: pretty;
}

.case-card__text p {
  margin: 0 0 1.4em;
  text-wrap: pretty;
}
.case-card__text p:last-child { margin-bottom: 0; }

.case-card__figure {
  margin: 36px 0 0;
  padding: 20px 12px;
  border: 1px solid #eceef2;
  background: #fbfbfc;
}
.case-card__figure svg {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  font-family: var(--font);
}

.case-card__action { margin: 36px 0 0; }

@media (min-width: 768px) {
  .cases { padding: 96px var(--gutter) 112px; }
  .case-card { padding: 56px 0 64px; }
  .case-card__title { font-size: 24px; }
  .case-card__figure { padding: 28px 24px; }
  .case-card__figure svg { max-width: 760px; }
}

@media (min-width: 1000px) {
  .cases { padding: 120px var(--gutter) 152px; }
  /* 見出しは横いっぱいに置き、その下で「本文：図＝5：7」に分けて図を大きく見せる */
  .case-card__body {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 56px;
    align-items: start;
  }
  .case-card__figure {
    margin-top: 0;
    padding: 20px 16px;
  }
  .case-card__title {
    margin-bottom: 36px;
    font-size: 26px;
  }
}

/* =========================================================
   事例詳細ページ
   ========================================================= */

.case-head {
  padding: 48px var(--gutter) 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(124, 154, 196, 0) 0%, rgba(124, 154, 196, 0.22) 100%) right bottom / 72% 10px no-repeat,
    var(--white);
}
.case-head__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.case-head__back {
  margin: 0 0 32px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
}
.case-head__back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}
.case-head__back a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg);
}

.case-head__client {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.case-head .case-card__tags { margin-bottom: 32px; }

.case-head__title {
  max-width: 24em;
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-wrap: pretty;
}

/* 読み物として長く読めるよう、本文を少し大きく・行間を広めに */
.case-head ~ .block .block__body p {
  font-size: 16px;
  line-height: 2.1;
}

.case-detail__figure { margin: 8px 0 40px; }

@media (min-width: 768px) {
  .case-head { padding: 72px var(--gutter) 80px; }
  .case-head__title { font-size: 32px; }
  .case-head ~ .block .block__body p { font-size: 17px; }
}

@media (min-width: 1000px) {
  .case-head { padding: 88px var(--gutter) 96px; }
  .case-head__title { font-size: 38px; line-height: 1.65; }
  .case-detail__figure { padding: 24px 20px; }
}

/* =========================================================
   個人情報保護方針（文章だけのページ）
   ========================================================= */

.policy {
  padding: 56px var(--gutter) 96px;
  background: var(--white);
}
.policy__inner {
  max-width: 760px;
  margin: 0 auto;
}
.policy h2 {
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.policy p { margin: 0 0 1.2em; }
.policy ul {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.policy li { margin-bottom: 0.3em; }

.policy__list { margin: 0 0 1.2em; }
.policy__list > div {
  display: grid;
  grid-template-columns: 6em 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.policy__list dt { color: var(--sub); }
.policy__list dd { margin: 0; }

.policy .placeholder { margin-bottom: 12px; }
.policy__list .placeholder { margin-bottom: 0; }

.policy__date {
  margin-top: 56px !important;
  color: var(--sub);
  font-size: 14px;
  text-align: right;
}

@media (min-width: 768px) {
  .policy { padding: 80px var(--gutter) 136px; }
  .policy h2 { font-size: 20px; }
}

/* 図の下の注記（試作用） */
.case-card__figure-note { margin-top: 16px; }

/* =========================================================
   コラム（記事一覧・記事ページ）
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 画像の仮置き（本番ではアイキャッチ画像に置き換わる） */
.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--gray);
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.08em;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.6;
}
.post-meta time {
  font-family: var(--font-num);
  letter-spacing: 0.1em;
}
.cat {
  padding: 2px 10px;
  border: 1px solid var(--blue);
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- 記事一覧 ---------- */

.post-list { padding: 56px var(--gutter) 88px; }
.post-list__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.post-cards {
  display: grid;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-card a {
  display: grid;
  gap: 14px;
  text-decoration: none;
}
.post-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.post-card__excerpt {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.9;
}
.post-card .thumb { transition: opacity 0.2s; }
.post-card a:hover .post-card__title { color: var(--navy); }
.post-card a:hover .thumb { opacity: 0.8; }

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}
.pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.pager__item:hover { border-color: var(--text); }
.pager__item.is-current {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
}
.pager__next { font-family: var(--font); }

/* ---------- 記事ページ ---------- */

.article-head { padding: 48px var(--gutter) 40px; }
.article-head__inner {
  max-width: 760px;
  margin: 0 auto;
}
.article-head__title {
  margin: 16px 0 20px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-wrap: pretty;
}

.article-eyecatch {
  max-width: calc(960px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article { padding: 48px var(--gutter) 96px; }
.article__inner {
  max-width: 760px;
  margin: 0 auto;
}
.article__lead {
  margin: 0;
  font-size: 17px;
  line-height: 2.1;
}

.article-toc {
  margin: 40px 0 16px;
  padding: 24px 24px 20px;
  border-top: 2px solid var(--navy);
  background: var(--gray);
}
.article-toc__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.article-toc ol {
  margin: 0;
  padding-left: 1.4em;
  font-size: 15px;
  line-height: 1.8;
}
.article-toc li { margin-bottom: 6px; }
.article-toc a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.article-toc a:hover { color: var(--navy); border-color: var(--navy); }

/* 本文（WordPress の本文がそのまま入る部分。要素名で指定する） */
.article__body {
  font-size: 16px;
  line-height: 2.1;
}
.article__body > *:first-child { margin-top: 48px; }
.article__body h2 {
  margin: 72px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.article__body h3 {
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}
.article__body p { margin: 0 0 1.6em; }
.article__body strong { font-weight: 700; }
.article__body a {
  color: var(--navy);
  text-underline-offset: 3px;
}
.article__body ul,
.article__body ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}
.article__body li { margin-bottom: 0.4em; }
.article__body blockquote {
  margin: 0 0 1.6em;
  padding: 20px 24px;
  border-left: 3px solid var(--navy);
  background: var(--gray);
}
.article__body blockquote p:last-of-type { margin-bottom: 0; }
.article__body cite {
  display: block;
  margin-top: 10px;
  color: var(--sub);
  font-size: 13px;
  font-style: normal;
}
.article__body figure { margin: 0 0 1.6em; }
.article__body img {
  display: block;
  max-width: 100%;
  height: auto;
}
.article__body figcaption {
  margin-top: 8px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.7;
}
.article__body .wp-block-table { overflow-x: auto; }
.article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.8;
}
.article__body th,
.article__body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article__body th {
  background: var(--gray);
  font-weight: 700;
}
.article__body hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.author {
  display: flex;
  gap: 16px;
  margin-top: 64px;
  padding: 24px;
  border: 1px solid var(--line);
}
.author__photo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--sub);
  font-size: 11px;
}
.author__label {
  margin: 0 0 4px;
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.author__name {
  margin: 0 0 8px;
  font-weight: 700;
}
.author__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.9;
}

.article__back { margin: 56px 0 0; }

.related {
  padding: 72px var(--gutter) 88px;
  background: var(--gray);
}
.related__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.related__title {
  margin: 0 0 32px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.related .thumb { background: var(--white); }

@media (min-width: 768px) {
  .post-list { padding: 80px var(--gutter) 120px; }
  .post-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 40px;
  }
  .article-head { padding: 72px var(--gutter) 48px; }
  .article-head__title { font-size: 32px; }
  .article__body { font-size: 17px; }
  .article__body h2 { font-size: 24px; }
  .article__body h3 { font-size: 20px; }
}

@media (min-width: 1000px) {
  .post-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-head__title { font-size: 36px; line-height: 1.65; }
  .article { padding: 64px var(--gutter) 128px; }
}

/* =========================================================
   ver2（刀との類似を避けるための改訂）
   ========================================================= */

/* ---------- ヘッダーのロゴ ---------- */
.brand { display: block; line-height: 0; }
.brand__logo {
  display: block;
  width: auto;
  height: 24px;
  filter: brightness(0); /* 白いロゴを黒で表示 */
}
.site-footer__brand img { height: 28px; width: auto; }

/* ---------- 最初の画面：左に大きく、右に3つの一覧 ---------- */
.hero--v2 {
  justify-content: flex-start;
  align-items: center;
  min-height: auto;
  padding: 64px var(--gutter) 72px;
  text-align: left;
}
.hero--v2::after { content: none; }

.hero--v2 .hero__label { margin-bottom: 20px; }
.hero--v2 .hero__label span {
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.16em;
}
.hero--v2 .hero__slides { min-height: 230px; }

/* 一覧（時間の進みを、下線が左から伸びて見せる） */
.hero--v2 .hero__tabs {
  display: block;
  max-width: none;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.hero--v2 .hero__tab {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 14px 0 15px;
  color: #9aa0aa;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: left;
}
.hero--v2 .hero__tab::before {
  top: auto;
  bottom: 0;
}
.hero--v2 .hero__tab:hover,
.hero--v2 .hero__tab.is-active { color: var(--text); }
.hero--v2 .hero__tab-num {
  display: inline-block;
  flex: none;
  width: 7.5em;
  margin: 0;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.hero--v2 .hero__tab-bar {
  top: auto;
  bottom: 0;
  height: 2px;
  background: var(--navy);
}

@media (min-width: 768px) {
  .hero--v2 { padding: 88px var(--gutter) 96px; }
  .hero--v2 .hero__slides { min-height: 260px; }
  .hero--v2 .hero__tab { font-size: 15px; padding: 16px 0 17px; }
}

@media (min-width: 1000px) {
  .brand__logo { height: 28px; }
  .hero--v2 {
    min-height: min(calc(100svh - var(--header-h)), 640px);
    padding: 96px var(--gutter);
  }
  .hero--v2 .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 72px;
    align-items: center;
  }
  .hero--v2 .hero__slides { min-height: 300px; }
  .hero--v2 .hero__tabs { margin-top: 0; }
}

/* ---------- ver2：ロゴは白で表示（2026-10-02 加藤さん指示） ---------- */
.brand__logo { filter: none; }

/* ---------- ver2：最初の画面の切り替えを「番号の円」で見せる ---------- */
.hero--counter .hero__inner {
  display: grid;
  gap: 40px;
}

.hero-counter {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: start;
  width: 120px;
  height: 120px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.hero-counter__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-counter__track {
  fill: none;
  stroke: #e6e9ef;
  stroke-width: 2;
}
.hero-counter__ring {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
}
.hero-counter.is-running .hero-counter__ring { animation: hero-ring 6s linear forwards; }
@keyframes hero-ring {
  to { stroke-dashoffset: 0; }
}
.hero-counter__dot { fill: var(--yellow); }

.hero-counter__num {
  position: relative;
  font-family: "Playfair Display", var(--font);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.hero-counter__total {
  position: relative;
  margin-top: 8px;
  color: var(--sub);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
  .hero-counter__ring { stroke-dashoffset: 0; }
}

@media (min-width: 768px) {
  .hero-counter { width: 150px; height: 150px; }
  .hero-counter__num { font-size: 38px; }
  .hero-counter__total { font-size: 11px; }
}

@media (min-width: 1000px) {
  .hero--counter .hero__inner {
    grid-template-columns: minmax(0, 1fr) 220px;
    column-gap: 56px;
    align-items: center;
  }
  .hero-counter {
    justify-self: center;
    width: 200px;
    height: 200px;
  }
  .hero-counter__num { font-size: 50px; }
  .hero-counter__total { margin-top: 12px; font-size: 12px; }
}

/* ---------- ver2：最初の画面「案①」（2026-10-02 加藤さん決定）
   中央の見出しは残し、刀に固有の3点（ラベルの下線・1本の長いバー・斜めの床）を変える ---------- */
.hero--seg {
  padding-bottom: 88px;
  border-bottom: 1px solid #c9d7e9;
}
.hero--seg::after { content: none; }

.hero--seg .hero__label span {
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--navy);
  letter-spacing: 0.16em;
}

/* 線を3本に区切る（列の間にすき間） */
.hero--seg .hero__tabs { column-gap: 14px; }
.hero--seg .hero__tab {
  padding-top: 14px;
  color: #9aa0aa;
  text-align: left;
}
.hero--seg .hero__tab:hover,
.hero--seg .hero__tab.is-active { color: var(--text); }
.hero--seg .hero__tab::before { background: #e3e6ec; }
.hero--seg .hero__tab-bar { height: 2px; }
.hero--seg .hero__tab.is-done .hero__tab-bar {
  width: 100%;
  background: #c9d7e9;
}

/* 名前の上の番号はロゴに近い書体で */
.hero--seg .hero__tab-num {
  margin-bottom: 4px;
  color: #c9d7e9;
  font-family: "Playfair Display", var(--font-num);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  transition: color 0.3s;
}
.hero--seg .hero__tab.is-active .hero__tab-num { color: var(--navy); }

@media (min-width: 768px) {
  .hero--seg { padding-bottom: 120px; }
  .hero--seg .hero__tabs { column-gap: 20px; }
  .hero--seg .hero__tab-num { font-size: 17px; }
}

@media (min-width: 1000px) {
  .hero--seg { padding-bottom: 140px; }
  .hero--seg .hero__tabs { column-gap: 24px; }
}

/* ---------- ver2：最初の画面の位置をヘッダーに近づける（2026-10-02 加藤さん指示・刀の配置に合わせる） ---------- */
.hero--seg {
  align-items: flex-start;
  min-height: 0;
  padding-top: 56px;
}
.hero--seg .hero__slides { align-items: start; }

@media (min-width: 768px) {
  .hero--seg { padding-top: 80px; }
}

@media (min-width: 1000px) {
  .hero--seg {
    min-height: 0;
    padding-top: 88px;
  }
  .hero--seg .hero__slides { min-height: 0; }
  .hero--seg .hero__tabs { margin-top: 84px; }
}
/* 3枚は同じ場所に重ねているので、高さは一番長い1枚に自動で合う。最低の高さは要らない */
.hero--seg .hero__slides { min-height: 0; }

/* ---------- ver2：最初の画面の見出しを太字に（2026-10-02 加藤さん指示） ---------- */
.hero--seg .hero__title { font-weight: 700; }

/* ---------- ver2：最初の画面「案③」（2026-10-02 加藤さん決定）
   言葉を四隅のかぎ線で囲み、下の名前は横並び。今の名前の上で小さな円が一周すると次へ ---------- */
.hero--frame .hero__slides {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px;
  --k: #44618f;
  background:
    linear-gradient(var(--k), var(--k)) left top / 18px 1.5px no-repeat,
    linear-gradient(var(--k), var(--k)) left top / 1.5px 18px no-repeat,
    linear-gradient(var(--k), var(--k)) right top / 18px 1.5px no-repeat,
    linear-gradient(var(--k), var(--k)) right top / 1.5px 18px no-repeat,
    linear-gradient(var(--k), var(--k)) left bottom / 18px 1.5px no-repeat,
    linear-gradient(var(--k), var(--k)) left bottom / 1.5px 18px no-repeat,
    linear-gradient(var(--k), var(--k)) right bottom / 18px 1.5px no-repeat,
    linear-gradient(var(--k), var(--k)) right bottom / 1.5px 18px no-repeat;
}

/* 下の名前：線をやめて、名前の上に小さな円 */
.hero--frame .hero__tabs {
  max-width: 720px;
  margin-top: 40px;
}
.hero--frame .hero__tab {
  padding-top: 30px;
  text-align: center;
}
.hero--frame .hero__tab::before { content: none; }
.hero--frame .hero__tab-bar { opacity: 0; } /* 切り替えの時間を数えるためだけに残す */
.hero--frame .hero__tab-num {
  display: inline;
  margin: 0 8px 0 0;
  color: #9aa0aa;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
}
.hero--frame .hero__tab.is-active .hero__tab-num { color: var(--text); }

.hero__tab-ring {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  overflow: visible;
}
.hero__tab-ring-track { fill: none; stroke: transparent; stroke-width: 1.5; }
.hero__tab-ring-run {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.hero__tab-ring-dot { fill: #d6d7dc; transition: fill 0.3s; }
.hero__tab.is-active .hero__tab-ring-dot { fill: var(--yellow); }
.hero__tab.is-active .hero__tab-ring-run { animation: hero-ring-run 6s linear forwards; }
@keyframes hero-ring-run {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__tab.is-active .hero__tab-ring-run { animation: none; stroke-dashoffset: 0; }
}

@media (min-width: 768px) {
  .hero--frame .hero__slides { padding: 44px 40px; }
  .hero--frame .hero__tabs { margin-top: 48px; }
  .hero--frame .hero__tab-num { font-size: 11px; }
}

@media (min-width: 1000px) {
  .hero--frame .hero__slides { padding: 52px 56px; }
  .hero--frame .hero__tabs { margin-top: 56px; }
  /* 「市場シェア率・売上・ブランド好意度」はパソコンでは1行 */
  .hero--frame .row--one { white-space: nowrap; }
}

/* ---------- ver2：01 シナリオについて「案1」英字の透かし（2026-10-02 加藤さん決定） ---------- */
.block--ghost {
  position: relative;
  overflow: hidden;
}
.block--ghost .block__inner {
  position: relative;
  z-index: 1;
}
.ghost-word {
  position: absolute;
  right: -0.04em;
  bottom: -0.24em;
  color: #e1e8f3;
  font-family: "Playfair Display", var(--font);
  font-size: clamp(96px, 17vw, 240px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

/* スマホ：名前は番号の下に置き、2枚目・3枚目の大きい行を少しだけ小さく（3枚目を2行に収める） */
@media (max-width: 767px) {
  .hero--frame .hero__tab-num {
    display: block;
    margin: 0 0 2px;
  }
  .hero--frame .hero__title--sub { font-size: clamp(24px, 7.2vw, 30px); }
}

/* ---------- ver2：最初の画面の下端を斜めに切り、01 の薄いグレーへつなぐ（2026-10-02 加藤さん指示） ---------- */
.hero--frame {
  border-bottom: 0;
  padding-bottom: 112px;
}
.hero--frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: var(--gray);
  clip-path: polygon(0 88%, 100% 0, 100% 100%, 0 100%);
}

@media (min-width: 768px) {
  .hero--frame { padding-bottom: 160px; }
  .hero--frame::after { height: 110px; }
}

@media (min-width: 1000px) {
  .hero--frame { padding-bottom: 190px; }
  .hero--frame::after { height: 140px; }
}

/* 白地のセクションでは透かしを少しだけ薄く（グレー地と見え方をそろえる） */
.block--ghost:not(.block--gray) .ghost-word { color: #edf1f7; }
.ghost-word { white-space: nowrap; } /* 長い英字（Approach）がスマホで2行に折れないように */

/* ---------- ver2：最初の画面の2枚目・3枚目の見出しを1枚目と同じ大きさに（2026-10-02 加藤さん指示） ---------- */
.hero--frame .hero__title.hero__title--sub { font-size: clamp(32px, 9.6vw, 40px); }
@media (min-width: 768px) {
  .hero--frame .hero__title.hero__title--sub { font-size: clamp(40px, 4.4vw, 56px); }
}
/* 大きくすると「市場シェア率・売上・ブランド好意度」は1行に入らないので、文節で折り返す */
.hero--frame .hero__title--sub .row--one { white-space: normal; }
/* 幅の狭いスマホ（320px など）：3枚とも同じ大きさのまま、言葉が途中で折れない大きさに */
@media (max-width: 359px) {
  .hero--frame .hero__title,
  .hero--frame .hero__title.hero__title--sub { font-size: 27px; }
}

/* 2枚目「企業のブランド価値を高める」は「戦略と実行」と同じ大きさ（2026-10-02 加藤さん指示）。3枚目の「クライアントの」は小さいまま */
#hero-slide-2 .hero__pre { font-size: 1em; letter-spacing: inherit; margin-bottom: 0; }
