/* fonts.css */
/* Inter — 可変フォント 1 本で 100〜900 をまかなう。和文は端末のフォント（tokens.css の --font-sans） */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/webfonts/inter-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/webfonts/inter-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* tokens.css */
/* 色・字・余白の決めごと。rh labo 自前のデザイン（docs/設計.md「見た目」）。元サイトの寸法は使わない */
:root {
  --color-ink: #242528;
  --color-ink-2: #5b5c60;
  --color-line: #e2e2e0;
  --color-bg: #ffffff;
  --color-soft: #f5f5f3;
  --color-accent: #e1631b;
  /* 橙の地に白い字を置くときは一段濃くする（コントラスト 4.5:1 以上） */
  --color-accent-strong: #c4520f;
  --color-accent-stronger: #a94609;
  --color-on-dark: #ffffff;
  --color-on-dark-2: rgba(255, 255, 255, 0.72);
  --color-on-dark-line: rgba(255, 255, 255, 0.18);

  /* 欧文と数字は Inter、和文は端末のフォント */
  --font-sans: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;

  /* 中身の最大幅と、画面の端との間 */
  --container: 1200px;
  --gutter: 40px;
  --header-h: 72px;
  --radius: 4px;
  /* 節の上下の余白 */
  --section-y: 128px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 899px) {
  :root {
    --gutter: 20px;
    --header-h: 60px;
    --section-y: 72px;
  }
}

/* base.css */
/* 土台。要素の初期化、本文の字、中身の枠 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* ヘッダーが上に貼り付くので、ページ内リンクの飛び先をその分下げる */
  scroll-padding-top: var(--header-h);
}

html.nav-open {
  overflow: hidden;
}

/* 中身が短いページでもフッターを画面の下端に付ける */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
  /* 和文の約物を詰める */
  font-feature-settings: 'palt';
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

iframe {
  border: 0;
  max-width: 100%;
}

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

/* 中身の枠。最大 1200px、画面の端との間は --gutter */
main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--color-ink);
  color: var(--color-on-dark);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* layout.css */
/* ヘッダーとフッター（docs/設計.md「見た目」の「部品」） */

/* ヘッダー: 白地で画面の上に貼り付く。左にロゴ、右にメニューとお問い合わせ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

/* ロゴのリンクは上下に余白を足し、押せる範囲を広げる */
.site-header__logo {
  flex: none;
  display: block;
  padding: 12px 0;
}

.site-header__logo img {
  width: auto;
  height: 22px;
}

.site-header__toggle {
  display: none;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* 項目はヘッダーの高さいっぱい。プルダウンへカーソルを動かしても途切れない */
.global-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.global-nav__item--sp-only {
  display: none;
}

.global-nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* 下線。ホバーと、いるページの区分で出る */
.global-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.global-nav__link:hover::after,
.global-nav__item.is-current > .global-nav__link::after {
  transform: scaleX(1);
}

/* サービスのプルダウンを開くボタン（山の印）。PC はホバーでも開く */
.global-nav__more {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  border-radius: var(--radius);
}

.global-nav__more .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.global-nav__item.is-open .global-nav__more .icon {
  transform: rotate(180deg);
}

.global-nav__panel {
  position: absolute;
  top: 100%;
  left: -24px;
  min-width: 300px;
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 40px rgba(36, 37, 40, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s;
}

.global-nav__item--has-panel:hover .global-nav__panel,
.global-nav__item--has-panel:focus-within .global-nav__panel,
.global-nav__item--has-panel.is-open .global-nav__panel {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.global-nav__group + .global-nav__group {
  margin-top: 20px;
}

.global-nav__group-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--color-ink-2);
}

.global-nav__group ul {
  margin-top: 4px;
}

.global-nav__group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.global-nav__group a .icon {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.global-nav__group a:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.global-nav__group a:hover .icon {
  transform: translateX(3px);
}

.site-header__contact {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* フッター: 上段にロゴと主なリンク、罫線を挟んで下段に規約類とコピーライト */
.site-footer {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 0 48px;
}

.site-footer__logo {
  display: block;
  padding: 8px 0;
}

.site-footer__logo img {
  width: auto;
  height: 24px;
}

/* フッターのリンクは上下に余白を足し、押せる範囲を広げる（見た目の字の大きさは変えない） */
.site-footer__nav a,
.site-footer__legal a {
  display: inline-block;
  padding: 6px 0;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--color-on-dark-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-on-dark-2);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.site-footer__copyright {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.site-footer a:hover {
  color: var(--color-on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* スマホ: 三本線で全画面の板を開く */
@media (max-width: 899px) {
  .site-header__logo img {
    height: 18px;
  }

  .site-header__toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 -10px 0 auto;
  }

  .site-header__toggle .icon--close,
  .is-open .site-header__toggle .icon--menu {
    display: none;
  }

  .is-open .site-header__toggle .icon--close {
    display: block;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: block;
    margin: 0;
    padding: 8px var(--gutter) 48px;
    background: var(--color-bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s;
  }

  .is-open .global-nav {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .global-nav__list {
    display: block;
  }

  .global-nav__item {
    display: block;
    height: auto;
    border-bottom: 1px solid var(--color-line);
  }

  .global-nav__item--sp-only {
    display: block;
  }

  .global-nav__link {
    display: block;
    padding: 18px 0;
    font-size: 17px;
  }

  .global-nav__link::after,
  .global-nav__more {
    display: none;
  }

  .global-nav__panel {
    position: static;
    min-width: 0;
    padding: 0 0 16px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .global-nav__group + .global-nav__group {
    margin-top: 12px;
  }

  .global-nav__group a {
    padding: 10px 0;
    font-size: 15px;
  }

  .site-header__contact {
    display: flex;
    width: 100%;
    min-height: 52px;
    margin-top: 32px;
    font-size: 16px;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 0 40px;
  }

  .site-footer__logo img {
    height: 20px;
  }

  .site-footer__nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0 32px;
  }
}

/* components.css */
/* ページをまたいで使う部品（docs/設計.md「見た目」の「部品」）。ページ固有のものは pages/ に書く */

/* 下層ページの上部: パンくず・h1・添え文を縦に積む */
.page-head {
  padding: 88px 0 56px;
}

.page-head__title {
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.page-head__lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--color-ink-2);
}

.page-head__lead a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  word-break: break-all;
}

/* パンくず。h1 の上 */
.breadcrumbs {
  margin-bottom: 16px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink-2);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs .icon {
  width: 12px;
  height: 12px;
}

.breadcrumbs a {
  display: inline-block;
  padding: 6px 0;
}

.breadcrumbs a:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 上部の下に置く写真。中身の幅に収める */
.page-visual__image {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 節の見出し: 英字を小さく上に、その下に和文 */
.section-heading__sub {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.section-heading__sub::before {
  content: '';
  flex: none;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.section-heading__title {
  font-size: 28px;
  line-height: 1.5;
}

/* ボタン。四角（角丸 4px） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--dark {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.btn--dark:hover {
  background: #3b3c40;
}

.btn--accent {
  background: var(--color-accent-strong);
  color: var(--color-on-dark);
}

.btn--accent:hover {
  background: var(--color-accent-stronger);
}

/* 外へ出る矢印は斜め上に動かす */
.btn:hover .icon--arrowUpRight {
  transform: translate(2px, -2px);
}

/* 文字リンク「ラベル →」 */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.arrow-link .icon {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.arrow-link:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.arrow-link:hover .icon {
  transform: translateX(3px);
}

/* 下線付きの文字リンク。先頭の記号（▶︎）は小さく添える */
.text-link {
  display: inline-block;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.text-link .glyph {
  display: inline-block;
  margin-right: 2px;
  font-size: 0.7em;
  vertical-align: 0.15em;
}

/* カード: 写真の下に左寄せの題と矢印、その下に罫線 */
.card {
  display: block;
}

.card__media {
  overflow: hidden;
  background: var(--color-soft);
  border-radius: var(--radius);
}

.card__media img {
  width: 100%;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.03);
}

.card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 16px;
  line-height: 1.5;
}

.card__title .icon {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.card:hover .card__title span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card:hover .card__title .icon {
  transform: translateX(3px);
}

/* 左右 2 列の節: 左に節の見出し（4/12）、右に中身（8/12） */
.split {
  padding-top: var(--section-y);
}

.split:last-child {
  padding-bottom: var(--section-y);
}

.split__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
}

/* PC では見出しが画面に追従する */
.split__head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

/* 表: 上に墨色の線、行の間に罫線、左に項目名 */
.data-table {
  border-top: 1px solid var(--color-ink);
}

.data-table__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 15px;
  line-height: 1.9;
}

.data-table__row dt {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 表の値のリンク（所在地 → Google マップ）。外へ出る矢印を添える */
.data-table__link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.data-table__link:hover {
  text-decoration-thickness: 2px;
}

.data-table__link .icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  vertical-align: -2px;
}

/* 薄い面の箱 */
.note-box {
  padding: 32px;
  background: var(--color-soft);
  border-radius: var(--radius);
}

/* スクロールで要素がふっと現れる。JS が動くときだけ隠し、動きを減らす設定なら最初から見せる */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transition: opacity 0.9s var(--ease);
  }

  .reveal.is-visible {
    opacity: 1;
  }
}

@media (max-width: 899px) {
  .page-head {
    padding: 48px 0 32px;
  }

  .page-head__title {
    font-size: 28px;
  }

  .page-head__lead {
    margin-top: 16px;
    font-size: 15px;
  }

  .page-visual__image {
    aspect-ratio: 16 / 9;
  }

  .section-heading__title {
    font-size: 22px;
  }

  .split__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .split__head {
    position: static;
  }

  .data-table__row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    font-size: 14px;
  }

  .note-box {
    padding: 24px 20px;
  }
}

/* pages/about.css */
/* わたしたちについて（type: about、/company-1）。見出しを上に、写真と文章を 6:6 で左右交互 */
.about-page__section {
  padding-top: var(--section-y);
}

.about-page__section:last-child {
  padding-bottom: var(--section-y);
}

.about-page .section-heading {
  margin-bottom: 48px;
}

.about-page__row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}

.about-page__section:nth-child(even) .about-page__media {
  order: 2;
}

.about-page__image {
  width: 100%;
  border-radius: var(--radius);
}

.about-page__text {
  font-size: 15px;
  line-height: 2;
}

@media (max-width: 899px) {
  .about-page .section-heading {
    margin-bottom: 32px;
  }

  .about-page__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .about-page__section:nth-child(even) .about-page__media {
    order: 0;
  }

  .about-page__text {
    font-size: 14px;
  }
}

/* pages/company.css */
/* 会社概要（type: company）。節の組み方は components.css の .split、表は .data-table。地図は埋め込まず、所在地を Google マップへのリンクにする */

/* 代表紹介。写真と経歴を横に並べる */
.president {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.president__photo {
  width: 100%;
  border-radius: var(--radius);
}

.president__role {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--color-ink-2);
}

.president__name {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.president__bio {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
  line-height: 2;
}

@media (max-width: 899px) {
  .president {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .president__name {
    font-size: 22px;
  }
}

/* pages/contact.css */
/* お問い合わせ（type: contact）。差し色の橙は電話番号とボタンだけ */
.contact {
  padding-bottom: var(--section-y);
}

.contact__inner {
  display: grid;
  gap: 32px;
  max-width: 720px;
}

.contact__notice {
  font-size: 15px;
  color: var(--color-ink-2);
}

.contact__call-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* 大きな字なので明るい橙のままで読める（コントラスト 3:1 以上） */
.contact__call-tel {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.contact__button {
  width: 100%;
  max-width: 400px;
  min-height: 60px;
  font-size: 16px;
}

@media (max-width: 899px) {
  .contact__call-tel {
    font-size: 26px;
  }

  .contact__button {
    max-width: none;
  }
}

/* pages/home.css */
/* トップ（type: home） */

/* 英字の見出しと、その下の写真（中身の幅、固定しない） */
.home-hero {
  padding-top: 96px;
}

.home-hero__title {
  max-width: 1000px;
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-feature-settings: normal;
}

.home-hero__visual {
  margin-top: 64px;
}

.home-hero__image {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* サービス 3 つ。横 3 列で、それぞれの上に墨色の線 */
.home-services {
  padding: var(--section-y) 0;
}

.home-services__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.home-services__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--color-ink);
}

.home-services__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.home-services__title {
  margin-top: 8px;
  font-size: 22px;
}

.home-services__text {
  flex: 1;
  font-size: 15px;
  color: var(--color-ink-2);
}

.home-services__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 8px;
}

/* サービスの特徴。写真と文章を左右交互に */
.home-features {
  padding-bottom: var(--section-y);
}

.home-features .section-heading {
  margin-bottom: 64px;
}

.home-features__list {
  display: grid;
  gap: 96px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}

.feature:nth-child(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.feature:nth-child(even) .feature__media {
  order: 2;
}

.feature__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.feature__eyebrow {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--color-ink-2);
}

.feature__title {
  margin-top: 12px;
  font-size: 24px;
}

.feature__text {
  margin-top: 20px;
  font-size: 15px;
  color: var(--color-ink-2);
}

/* わたしたちについて。薄い面の帯に、文章を左、写真を右 */
.home-about {
  padding: var(--section-y) 0;
  background: var(--color-soft);
}

.home-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}

.home-about .section-heading {
  margin-bottom: 32px;
}

.home-about__text {
  font-size: 15px;
  color: var(--color-ink-2);
}

.home-about__more {
  margin-top: 32px;
}

.home-about__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 899px) {
  .home-hero {
    padding-top: 48px;
  }

  .home-hero__title {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.15;
  }

  .home-hero__visual {
    margin-top: 40px;
  }

  .home-hero__image {
    aspect-ratio: 4 / 3;
  }

  .home-services__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .home-services__item {
    gap: 12px;
    padding-top: 24px;
  }

  .home-services__title {
    font-size: 20px;
  }

  .home-services__text {
    font-size: 14px;
  }

  .home-features .section-heading {
    margin-bottom: 40px;
  }

  .home-features__list {
    gap: 56px;
  }

  .feature,
  .feature:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .feature:nth-child(even) .feature__media {
    order: 0;
  }

  .feature__title {
    font-size: 20px;
  }

  .feature__text {
    margin-top: 12px;
    font-size: 14px;
  }

  .home-about__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .home-about__media {
    order: -1;
  }

  .home-about__text {
    font-size: 14px;
  }
}

/* pages/legal.css */
/* 規約・ポリシー（type: legal）。上部は components.css の .page-head、本文は最大 800px */
.legal__body {
  max-width: 800px;
  padding-bottom: var(--section-y);
  font-size: 15px;
  line-height: 2;
}

.legal__body h2 {
  margin: 48px 0 12px;
  font-size: 19px;
  line-height: 1.6;
}

.legal__body > h2:first-child {
  margin-top: 0;
}

.legal__body h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 1.7;
}

/* 条文の間の空の段落は 1 行ぶんの隙間 */
.legal__body p:empty {
  height: 1.25em;
}

.legal__body ol {
  margin: 8px 0 8px 1.5em;
  list-style: decimal outside;
}

.legal__body ul {
  margin: 8px 0 8px 1.5em;
  list-style: disc outside;
}

.legal__body li {
  margin: 6px 0;
}

.legal__body a {
  text-decoration: underline;
  text-underline-offset: 4px;
  word-break: break-all;
}

/* 囲み。プライバシーポリシーの問い合わせ窓口と、開示等の請求手続（左に墨色の線） */
.legal__box {
  margin: 24px 0;
  padding: 24px 28px;
  background: var(--color-soft);
  border-radius: var(--radius);
}

.legal__box--blue {
  padding: 32px;
  border-left: 3px solid var(--color-ink);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal__box--blue h2 {
  margin-top: 0;
}

/* 申請書の PDF へのボタン */
.legal__body a.legal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 24px;
  background: var(--color-ink);
  color: var(--color-on-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal__body a.legal__button:hover {
  background: #3b3c40;
}

/* 表。上に墨色の線、行の間に罫線、見出しマスは薄い面 */
.legal__body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  border-top: 1px solid var(--color-ink);
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.8;
}

.legal__body th,
.legal__body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  /* 長い英字の名前だけ必要なところで折り返す */
  overflow-wrap: anywhere;
}

.legal__body th {
  background: var(--color-soft);
  font-weight: 600;
}

/* 3 列の表（Cookie 一覧）は 目的 の列を広く */
.legal__body tr > :nth-child(3):last-child {
  width: 45%;
}

/* ライセンスの全文（ライセンス情報の Credits）。等幅で、行は画面の幅で折り返す */
.legal__body pre {
  margin: 8px 0 0;
  padding: 16px 20px;
  background: var(--color-soft);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 899px) {
  .legal__body {
    font-size: 14px;
    line-height: 1.9;
  }

  .legal__body h2 {
    margin-top: 40px;
    font-size: 17px;
  }

  .legal__body h3 {
    font-size: 15px;
  }

  .legal__box,
  .legal__box--blue {
    padding: 20px;
  }

  .legal__body th,
  .legal__body td {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* pages/manual.css */
/* 製品サポートの下のページ（residence-kit から移したもの）。取扱説明書（type: manual）、
   アプリの中で開く一覧（type: support-app）、施工者向け（type: support-construction）、ライセンス情報（type: support-license） */

/* ---- 取扱説明書の上部: 左にパンくず・「取扱説明書」・製品名と型番、右に製品の写真 ---- */
.manual-head {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--color-line);
}

.manual-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px;
  align-items: center;
}

.manual-head__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--color-ink-2);
}

.manual-head__title {
  margin-top: 8px;
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.manual-head__model {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-ink-2);
}

/* 製品の写真は薄い面の正方形に収める。白い背景の写真は乗算で面になじませる */
.manual-head__cover {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  background: var(--color-soft);
  border-radius: var(--radius);
  isolation: isolate;
}

.manual-head__cover img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ---- 目次と本文: PC は左に目次（4/12、画面に追従）、右に本文（8/12、最大 760px） ---- */
.manual {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  padding-top: 64px;
  padding-bottom: var(--section-y);
}

.manual-toc--sp {
  display: none;
}

.manual-toc--pc {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 64px);
  overflow-y: auto;
}

.page--app .manual-toc--pc {
  top: 32px;
  max-height: calc(100vh - 64px);
}

.manual-toc__title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--color-ink-2);
}

.manual-toc > ol {
  border-top: 1px solid var(--color-ink);
}

.manual-toc > ol > li {
  border-bottom: 1px solid var(--color-line);
}

.manual-toc a,
.manual-toc span {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.manual-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 子の項目を持つ見出し（押せない） */
.manual-toc span {
  font-weight: 600;
}

.manual-toc ol ol {
  padding: 0 0 8px 16px;
}

.manual-toc ol ol a {
  padding: 5px 0;
  font-size: 13px;
  color: var(--color-ink-2);
}

.manual__body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.9;
}

/* 章。章の間に罫線。ページ内リンクの飛び先は、上に貼り付くヘッダーの分だけ下げる（html の scroll-padding-top） */
.manual__section + .manual__section {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--color-line);
}

.manual__section > * + * {
  margin-top: 16px;
}

.manual__heading {
  font-size: 24px;
  line-height: 1.5;
}

.manual__section > .manual__heading:not(:first-child) {
  margin-top: 48px;
}

/* 小見出し。左に墨色の線 */
.manual__subtitle {
  padding-left: 14px;
  border-left: 3px solid var(--color-ink);
  font-size: 17px;
  line-height: 1.6;
}

.manual__section > * + .manual__subtitle {
  margin-top: 32px;
}

.manual__body a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.manual__body strong {
  font-weight: 600;
}

.manual__underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ● の並び */
.manual__list > li {
  position: relative;
  padding-left: 1.2em;
}

.manual__list > li::before {
  content: '';
  position: absolute;
  top: 0.78em;
  left: 0.2em;
  width: 0.4em;
  height: 0.4em;
  background: currentColor;
  border-radius: 50%;
}

.manual__list > li + li {
  margin-top: 8px;
}

.manual__list li > p + p {
  margin-top: 8px;
}

/* 並びの中の並び（元の ul・ol） */
.manual__plain-list {
  margin-top: 4px;
  padding-left: 1.4em;
}

ul.manual__plain-list {
  list-style: disc outside;
}

ol.manual__plain-list {
  list-style: decimal outside;
}

/* ※ の注記 */
.manual__notes > li {
  position: relative;
  padding-left: 1.4em;
  font-size: 14px;
  color: var(--color-ink-2);
}

.manual__notes > li::before {
  content: '※';
  position: absolute;
  left: 0;
}

/* 番号や記号の付いた行（①・※1:・A: など）。記号の幅に合わせて本文をそろえる */
.manual__marked {
  display: flex;
  gap: 0.5em;
}

.manual__mark {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.manual__marked-text {
  flex: 1;
  min-width: 0;
}

.manual__marked-text > * + * {
  margin-top: 8px;
}

/* 図。元のサイトと同じく、本文の幅の半分（normal）・4 分の 1（half）・広め（wide）・いっぱい（big） */
.manual__figure {
  max-width: 380px;
}

.manual__figure--half {
  max-width: 200px;
}

.manual__figure--wide {
  max-width: 600px;
}

.manual__figure--big {
  max-width: none;
}

.manual__figure img {
  width: 100%;
}

.manual__figure img + img {
  margin-top: 8px;
}

.manual__figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-ink-2);
  text-align: center;
}

/* 図を横に並べる */
.manual__figures {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.manual__figures > .manual__figure {
  flex: 0 1 200px;
}

/* 文の中の小さな画像（ボタンの絵など） */
.manual__inline-img {
  display: inline-block;
  width: auto;
  height: 1.6em;
  vertical-align: middle;
}

/* 囲みの注意書き（お使いになる前に必ずお読みください。など） */
.manual__box {
  padding: 12px 16px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius);
  font-weight: 600;
}

/* 警告・注意・指示。三角の注意の印を添える */
.manual__caution,
.manual__notice-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
}

.manual__caution::before,
.manual__notice-label::before {
  content: '';
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 1.5 21h21z' fill='%23242528'/%3E%3Cpath d='M12 9v6' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='18' r='1.3' fill='%23fff'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.manual__section > * + .manual__caution {
  margin-top: 32px;
}

.manual__notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.manual__notice > p + p {
  margin-top: 2px;
}

/* してはいけないこと・必ず行う（守る）こと。左に印 */
.manual__rule {
  position: relative;
  padding-left: 44px;
}

.manual__rule::before,
.manual__rule-label::before {
  content: '';
  flex: none;
  background: center / contain no-repeat;
}

.manual__rule::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 28px;
  height: 28px;
}

.manual__rule-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.manual__rule-label::before {
  width: 24px;
  height: 24px;
}

.manual__rule--prohibit::before,
.manual__rule-label--prohibit::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23242528' stroke-width='2.5'/%3E%3Cpath d='m5.5 5.5 13 13' stroke='%23242528' stroke-width='2.5'/%3E%3C/svg%3E");
}

.manual__rule--mandatory::before,
.manual__rule-label--mandatory::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23242528'/%3E%3Cpath d='M12 6v8' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.6' r='1.5' fill='%23fff'/%3E%3C/svg%3E");
}

.manual__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

/* 枠で囲んだ説明（LED が点滅していないときは、など） */
.manual__point {
  padding: 24px;
  background: var(--color-soft);
  border-radius: var(--radius);
}

.manual__point > * + * {
  margin-top: 12px;
}

/* 図の上の小さな見出し（本体上部、など） */
.manual__tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-ink);
  color: var(--color-on-dark);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}

.manual__attention {
  font-weight: 600;
}

.manual__spec-note {
  font-size: 14px;
  color: var(--color-ink-2);
}

/* 表。上に墨色の線、行の間に罫線。横にはみ出す表は、その中だけ横に送る */
.manual__table-wrap {
  overflow-x: auto;
}

.manual__table,
.manual__spec {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-ink);
  font-size: 14px;
  line-height: 1.7;
}

.manual__table th,
.manual__table td,
.manual__spec th,
.manual__spec td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.manual__table thead th,
.manual__spec th {
  background: var(--color-soft);
  font-weight: 600;
}

.manual__spec th {
  width: 30%;
}

.manual__spec td.manual__spec-sub {
  width: 26%;
  color: var(--color-ink-2);
}

/* 動画。自前のサムネイルから YouTube を別タブで開く（ページを開いただけでは YouTube に通信しない） */
.manual__videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.manual__video {
  display: block;
  text-decoration: none !important;
}

.manual__video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-soft);
  border-radius: var(--radius);
}

.manual__video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manual__video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  margin: auto;
  background: rgb(36 37 40 / 0.82)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23fff'/%3E%3C/svg%3E")
    center / 24px no-repeat;
  border-radius: 50%;
}

.manual__video-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.manual__video-title::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M9 7h8v8' fill='none' stroke='%23242528' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.manual__video:hover .manual__video-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- 取扱説明書の下: 製品の並び（薄い面の帯） ---- */
.manual-products {
  padding: 72px 0;
  background: var(--color-soft);
}

.manual-products__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 32px;
  border-top: 1px solid var(--color-ink);
}

.manual-products__list li {
  border-bottom: 1px solid var(--color-line);
}

.manual-products__list a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.manual-products__list a:hover .manual-products__name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.manual-products__list a[aria-current='page'] {
  color: var(--color-ink-2);
}

.manual-products__name {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.manual-products__model {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-ink-2);
}

.manual-products__top {
  margin-top: 32px;
}

/* ---- アプリの中で開く一覧。ヘッダーがないので上の余白を小さく ---- */
.support-app {
  padding: 48px 0 72px;
}

.support-app .product-support {
  padding-top: 0;
  border-top: 0;
}

/* ---- 施工者向け取扱説明書: 利用条件（薄い面の箱）と同意のボタン、PDF の表 ---- */
.construction {
  max-width: 800px;
  padding-bottom: var(--section-y);
}

.construction__title {
  font-size: 24px;
}

.construction__intro {
  margin-top: 16px;
}

.construction__terms {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--color-soft);
  border-radius: var(--radius);
}

.construction__terms-label {
  font-weight: 600;
}

.construction__terms-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
}

.construction__terms-body h2 {
  margin-top: 24px;
  font-size: 15px;
}

.construction__terms-body ul {
  margin-top: 8px;
  padding-left: 1.4em;
  list-style: disc outside;
}

.construction__terms-body li + li {
  margin-top: 6px;
}

.construction__terms-body p + p,
.construction__terms-body h2 + p {
  margin-top: 8px;
}

.construction__action {
  margin-top: 32px;
}

.construction__table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-ink);
}

.construction__table th,
.construction__table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}

.construction__table th {
  font-size: 14px;
  color: var(--color-ink-2);
}

.construction__table td:last-child {
  text-align: right;
}

.construction__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.construction__download .icon {
  width: 18px;
  height: 18px;
}

.construction__download:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- ライセンス情報 ---- */
.license-list {
  max-width: 800px;
  padding-bottom: var(--section-y);
}

.license-list__item {
  padding: 24px 0;
  border-top: 1px solid var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}

.license-list__title {
  font-size: 18px;
}

.license-list__models {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-ink-2);
}

.license-list__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 12px;
}

@media (max-width: 899px) {
  .manual-head {
    padding: 40px 0 32px;
  }

  .manual-head__inner {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px;
  }

  .manual-head__title {
    font-size: 26px;
  }

  .manual-head__model {
    font-size: 16px;
  }

  .manual {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 24px;
  }

  .manual-toc--pc {
    display: none;
  }

  /* スマホの目次は本文の上で開け閉めする */
  .manual-toc--sp {
    display: block;
    margin-bottom: 40px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
  }

  .manual-toc--sp summary {
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .manual-toc--sp > ol {
    margin: 0 16px 8px;
  }

  .manual__body {
    grid-column: 1;
    grid-row: auto;
    font-size: 15px;
  }

  .manual__section + .manual__section {
    margin-top: 48px;
    padding-top: 40px;
  }

  .manual__heading {
    font-size: 21px;
  }

  .manual__subtitle {
    font-size: 16px;
  }

  .manual__figure {
    max-width: 100%;
  }

  .manual__figure--half {
    max-width: 50%;
  }

  .manual__figures > .manual__figure {
    flex-basis: calc(50% - 12px);
  }

  .manual__notice {
    flex-direction: column;
    gap: 8px;
  }

  .manual__table th,
  .manual__table td,
  .manual__spec th,
  .manual__spec td {
    padding: 8px;
    font-size: 13px;
  }

  .manual__videos {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-products {
    padding: 56px 0;
  }

  .manual-products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .support-app {
    padding: 32px 0 56px;
  }

  .construction__terms {
    padding: 20px;
  }

  .construction__table td:last-child {
    white-space: nowrap;
    padding-left: 16px;
  }
}

/* pages/notfound.css */
/* 404（type: notfound）。下層ページの上部と同じ組み方 */
.notfound {
  padding: 88px 0 var(--section-y);
}

.notfound__code {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--color-ink-2);
}

.notfound__title {
  margin-top: 12px;
  font-size: 40px;
  line-height: 1.4;
}

.notfound__text {
  max-width: 640px;
  margin-top: 24px;
  color: var(--color-ink-2);
}

.notfound__link {
  margin-top: 40px;
}

@media (max-width: 899px) {
  .notfound {
    padding: 48px 0 var(--section-y);
  }

  .notfound__title {
    font-size: 28px;
  }
}

/* pages/service.css */
/* サービス一覧（type: service-index）と詳細（type: service-detail） */

/* 一覧: 墨色の線で区切った行ごとに、左に番号・題・区分（4/12）、右に説明とカード（8/12） */
.service-index {
  padding-block: var(--section-y);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  padding: 40px 0 80px;
  border-top: 1px solid var(--color-ink);
}

.service-row:last-child {
  padding-bottom: 0;
}

.service-row__no {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--color-ink-2);
  font-variant-numeric: tabular-nums;
}

.service-row__title {
  margin-top: 12px;
  font-size: 26px;
}

.service-row__category {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-ink-2);
}

.service-row__text {
  max-width: 640px;
}

.service-row__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

/* 詳細 */
.service-detail {
  padding-bottom: var(--section-y);
}

.service-detail__image {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.service-detail__body {
  max-width: 760px;
  padding-top: 48px;
}

.service-detail__text {
  font-size: 17px;
  line-height: 2;
}

.service-detail__note {
  font-size: 15px;
  line-height: 2;
}

.service-detail__note a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 製品サポート: 上に墨色の線、節の見出し、製品のカードを PC 4 列・スマホ 2 列 */
.product-support {
  padding-top: 48px;
  border-top: 1px solid var(--color-ink);
}

.product-support__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
  margin-top: 40px;
}

/* カードを行の高さに伸ばし、題の下の罫線の位置をそろえる */
.product-support__list > li {
  display: flex;
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-card .card__title {
  flex: 1;
  align-items: flex-start;
}

/* 薄い面の正方形に製品の写真を収める。白い背景の写真は乗算で面になじませる */
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

.product-card__media img {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card__name,
.product-card__model {
  display: block;
}

/* 製品名は語の途中で改行しない。収まらないときだけ折り返す */
.product-card__name {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.product-card__model {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-ink-2);
}

.product-support__construction {
  margin-top: 48px;
}

@media (max-width: 899px) {
  .service-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 28px 0 56px;
  }

  .service-row__title {
    margin-top: 8px;
    font-size: 22px;
  }

  .service-row__text {
    font-size: 15px;
  }

  .service-row__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
  }

  .service-detail__body {
    padding-top: 32px;
  }

  .service-detail__text {
    font-size: 15px;
  }

  .service-detail__note {
    font-size: 14px;
  }

  .product-support {
    padding-top: 32px;
  }

  .product-support__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
    margin-top: 28px;
  }

  .product-card .card__title {
    gap: 8px;
    padding: 12px 0;
    font-size: 14px;
  }

  .product-card__model {
    font-size: 12px;
  }

  .product-support__construction {
    margin-top: 32px;
  }
}

/* pages/terms.css */
/* 規約一覧（type: terms-index）。3 つの区分を横 3 列 */
.terms-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-block: var(--section-y);
}

.terms-index__heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-ink);
  font-size: 16px;
}

.terms-index__group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 15px;
  line-height: 1.6;
}

.terms-index__group a .icon {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.terms-index__group a:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.terms-index__group a:hover .icon {
  transform: translateX(3px);
}

@media (max-width: 899px) {
  .terms-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
