@charset "UTF-8";
/* ==========================================================================
   関西ウィンドウ株式会社 コーポレートサイト
   落ち着いた和モダン。生成りの紙の色に、藍と真鍮色。見出しは明朝体、トップは縦書き。
   （2026年11月、デザイン比較のB案に決定。A案の骨組みの上に、B案の見た目を重ねた作りになっている）

   このファイルの読み方:
     前半 … 骨組み（配置・余白・動き）。もとのA案の書き方が残っている。
     後半 …「和モダンの見た目」。前半を上書きしている。同じ名前の指定が両方にあるときは、後半が使われる。
   見た目を直すときは、まず後半を探し、なければ前半を直す。
   スマホ優先で書き、広い画面は @media (min-width) で上書きする。
   書体の定義は fonts.css（tools/build_fonts.py が作る）。
   ========================================================================== */

:root {
  --paper: #f7f4ee;
  --navy: #1f3350;
  --ink: #1a2433;
  --deep: #162134;
  --blue: #86683a;   /* 差し色（真鍮色） */
  --gold: #c9ad7c;   /* 濃い背景の上で使う、明るい真鍮色 */
  --logo-blue: #2563d8;   /* ロゴの青（ロゴの中だけで使う） */
  --tint: #efeae0;
  --sky: #e5dfd2;
  --text: #353c47;
  --muted: #736d62;
  --line: #d9d2c3;
  --white: #fff;
  --error: #c0392b;
  --container: 1200px;
  --header-h: 64px;
  --font-sys: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-min: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --font-en: "Cormorant Garamond", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-inout: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
img { display: block; }
a { color: var(--blue); }
a:hover { text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.55; font-weight: 700; letter-spacing: .06em; word-break: auto-phrase; }
h1, h2, h3, h4, .worry__text, .tile__title, .greet__catch, .spec dd, .gnav__jp, .worry__note { font-feature-settings: "palt" 1; }
strong { font-weight: 700; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid #7fa6ea; outline-offset: 2px; }
.icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nowrap { display: inline-block; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 8px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 880px; }
.section { padding-block: 72px; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #c5cfe0; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* 見出し：大きな英字＋小さな日本語 */
.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; }
.sec-head__en {
  font-family: var(--font-en); font-weight: 600; text-transform: uppercase;
  font-size: clamp(52px, 13vw, 112px); line-height: .92; letter-spacing: .01em; color: var(--navy);
}
.sec-head__jp { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 16px; letter-spacing: .14em; line-height: 1.7; text-align: left; }
.sec-head__jp::before { content: ""; flex: 0 0 auto; width: 32px; height: 1px; background: currentColor; }
.sec-head__lead { margin-top: 22px; max-width: 38em; }
.sec-head--center .sec-head__lead { margin-inline: auto; text-align: left; }
.section--dark .sec-head__en, .section--dark .sec-head__jp { color: #fff; }
.head-row { display: grid; gap: 20px; margin-bottom: 40px; }
.head-row .sec-head { margin-bottom: 0; }

/* ボタン */
.btn {
  position: relative; z-index: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  min-width: min(100%, 280px); min-height: 62px; padding: 10px 24px 10px 28px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .12em; line-height: 1.5;
  text-decoration: none; cursor: pointer; transition: color .35s, border-color .35s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-inout); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { border-color: var(--blue); }
.btn .icon { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
.btn:hover .icon { transform: translateX(5px); }
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { color: #fff; border-color: var(--navy); }
.btn--sm { min-width: 0; min-height: 44px; padding: 6px 16px 6px 20px; font-size: 14px; gap: 12px; }
.btn--sm .icon { width: 17px; height: 17px; }
.btn--block { display: flex; width: 100%; }

/* 丸い矢印つきのリンク */
.link-arrow { display: inline-flex; align-items: center; gap: 16px; font-weight: 700; letter-spacing: .1em; color: var(--ink); text-decoration: none; }
.link-arrow .icon { width: 46px; height: 46px; padding: 13px; border: 1px solid currentColor; border-radius: 50%; transition: background .3s, color .3s, transform .35s var(--ease-out); }
.link-arrow:hover .icon { background: var(--ink); color: #fff; transform: translateX(4px); }
.link-arrow--white { color: #fff; }
.link-arrow--white:hover .icon { background: #fff; color: var(--ink); }

.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #fff; background: var(--blue); padding: 3px 12px; line-height: 1.7; }
.notice { background: #fff8e6; border: 1px solid #f0d58a; padding: 14px 18px; font-size: 15px; color: #6b5200; line-height: 1.8; }
.tbd { color: #8a6d1a; background: #fff8e6; padding: 1px 8px; font-size: 14px; }

/* ---------- ヘッダー ---------- */
.header {
  --fg: var(--ink); --bg: #fff; --bd: var(--line);
  position: sticky; top: 0; z-index: 100;
  color: var(--fg); background: var(--bg); border-bottom: 1px solid var(--bd);
  transition: background .35s, color .35s, border-color .35s;
}
/* トップページは写真の上に透明で重ね、スクロールしたら白くする */
.page-home .header { position: fixed; left: 0; right: 0; }
.page-home .header:not(.is-scrolled) { --fg: #fff; --bg: transparent; --bd: transparent; }
body.is-menu-open .header { --fg: #fff; --bg: var(--ink); --bd: rgba(255, 255, 255, .16); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: 18px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; flex: 0 0 auto; }
/* ロゴ：lm-a は文字と同じ色、lm-b はロゴの青（濃い背景の上では明るい青） */
.logo .lm-a { fill: currentColor; transition: fill .35s; }
.logo .lm-b { fill: var(--logo-accent, var(--logo-blue)); transition: fill .35s; }
.footer { --logo-accent: #8fb4f5; }
.logo__en { display: block; align-self: flex-start; width: auto; max-width: none; height: 8px; margin-top: 5px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.3; font-weight: 700; font-size: 16px; letter-spacing: .1em; white-space: nowrap; }
.logo__text small { font-size: 10px; font-weight: 500; letter-spacing: .2em; opacity: .75; }
.progress-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; }

.menu-btn { width: 48px; height: 48px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.menu-btn span { display: block; width: 28px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-out), opacity .3s; }
.menu-btn span:nth-child(3) { display: none; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.75px) rotate(30deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.75px) rotate(-30deg); }

/* スマホ用メニュー（紺の全画面） */
.gnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 12px 24px 40px; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s;
}
.gnav.is-open { visibility: visible; opacity: 1; }
.gnav__list li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.gnav__list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 2px; color: #fff; text-decoration: none; }
.gnav__jp { font-size: 19px; font-weight: 700; letter-spacing: .12em; }
.gnav__en { font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .2em; color: #8fa3c7; }
.gnav__list a[aria-current="page"] .gnav__jp { color: #9dbcf0; }
.gnav__cta { margin-top: 32px; display: flex; }
.gnav .gnav__cta { background: #fff; border-color: #fff; color: var(--ink); min-height: 60px; font-size: 15px; }
.gnav .gnav__cta:hover { color: #fff; }
.gnav__list li, .gnav__cta { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.gnav.is-open .gnav__list li, .gnav.is-open .gnav__cta { opacity: 1; transform: none; transition-delay: calc(.05s * var(--n, 0) + .1s); }
body.is-menu-open { overflow: hidden; }

/* ---------- トップ：メインビジュアル ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; color: #fff; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(7, 15, 32, .88) 0%, rgba(7, 15, 32, .45) 42%, rgba(7, 15, 32, .12) 75%, rgba(7, 15, 32, .3) 100%),
    linear-gradient(to right, rgba(7, 15, 32, .4), rgba(7, 15, 32, 0) 65%);
}
.hero__inner { width: 100%; padding-block: calc(var(--header-h) + 48px) 44px; }
.hero__en { display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: .3em; line-height: 1.4; }
.hero__en::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero__title { margin-top: 18px; color: #fff; font-weight: 900; font-size: clamp(21px, 6.9vw, 38px); line-height: 1.45; letter-spacing: .05em; word-break: normal; }
.hero__lead { margin-top: 20px; max-width: 33em; font-size: 15px; line-height: 2; color: #e2e8f2; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.hero__area { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 13px; letter-spacing: .14em; color: #d5deec; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hero__area b { font-family: var(--font-en); font-weight: 500; letter-spacing: .24em; color: #fff; }
.hero__side, .scroll-sign { display: none; }

/* ---------- 下層ページの見出し帯 ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); padding-block: 52px 44px; }
.page-hero::after { content: ""; position: absolute; right: -8%; top: -40%; width: 60%; height: 180%; background: linear-gradient(115deg, rgba(37, 99, 216, 0) 30%, rgba(37, 99, 216, .22) 100%); transform: skewX(-18deg); pointer-events: none; }
.page-hero__en { font-family: var(--font-en); font-weight: 600; text-transform: uppercase; font-size: clamp(56px, 15vw, 150px); line-height: .92; letter-spacing: .01em; }
.page-hero__title { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: #fff; font-size: 16px; letter-spacing: .16em; }
.page-hero__title::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.page-hero__lead { position: relative; z-index: 1; margin-top: 12px; color: #c5cfe0; font-size: 15px; }
.breadcrumb { padding-block: 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: #b3bccb; }
.breadcrumb a { color: var(--muted); }

/* ---------- トップ：お悩み（線で区切った一覧） ---------- */
.worry { display: grid; gap: 36px; }
.worry__note { margin-top: 22px; font-size: 17px; font-weight: 700; line-height: 1.9; color: var(--navy); }
.worry__list { border-top: 1px solid var(--ink); }
.worry__list li { border-bottom: 1px solid var(--line); }
.worry__list a {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; column-gap: 12px;
  padding: 20px 6px; color: var(--ink); text-decoration: none; transition: color .35s, padding .45s var(--ease-out);
}
.worry__list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-inout); }
.worry__no { grid-row: 1 / span 2; font-family: var(--font-en); font-weight: 500; font-size: 18px; letter-spacing: .08em; color: var(--blue); transition: color .35s; }
.worry__text { font-size: 19px; font-weight: 700; line-height: 1.6; letter-spacing: .06em; word-break: auto-phrase; }
.worry__to { grid-column: 2; font-size: 13px; color: var(--muted); line-height: 1.7; transition: color .35s; }
.worry__list .icon { grid-column: 3; grid-row: 1 / span 2; width: 22px; height: 22px; transition: transform .45s var(--ease-out); }
.worry__list a:hover { color: #fff; padding-inline: 18px 14px; }
.worry__list a:hover::before { transform: scaleY(1); }
.worry__list a:hover .worry__no { color: #9dbcf0; }
.worry__list a:hover .worry__to { color: #b4c1d8; }
.worry__list a:hover .icon { transform: translateX(4px); }

/* ---------- トップ：事業内容（写真のタイル） ---------- */
.bento { display: grid; gap: 12px; }
.tile { position: relative; isolation: isolate; overflow: hidden; display: block; aspect-ratio: 16 / 11; color: #fff; text-decoration: none; background: var(--ink); }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 15, 32, .9) 0%, rgba(7, 15, 32, .35) 45%, rgba(7, 15, 32, .05) 75%); }
.tile__no { position: absolute; left: 20px; top: 16px; font-family: var(--font-en); font-weight: 500; font-size: 16px; letter-spacing: .14em; text-shadow: 0 0 12px rgba(7, 15, 32, .6); }
.tile .badge { position: absolute; right: 0; top: 0; }
.tile__body { position: absolute; left: 20px; right: 78px; bottom: 18px; }
.tile__title { display: block; font-size: 20px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.tile__text { display: block; margin-top: 4px; font-size: 13px; line-height: 1.75; color: #d9e1ee; }
.tile > .icon { position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; padding: 13px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; transition: background .3s, color .3s, transform .35s var(--ease-out); }
.tile:hover img { transform: scale(1.07); }
.tile:hover > .icon { background: #fff; color: var(--ink); transform: translateX(4px); }

/* ---------- トップ：選ばれる理由 ---------- */
.reason { display: grid; gap: 36px; }
.reason__list li { display: grid; grid-template-columns: 62px 1fr; column-gap: 18px; padding-block: 30px; border-top: 1px solid rgba(255, 255, 255, .2); }
.reason__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.reason__no { font-family: var(--font-en); font-weight: 600; font-size: 52px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .75); }
.reason__title { font-size: 20px; }
.reason__text { margin-top: 10px; font-size: 15px; }

/* ---------- 施工事例 ---------- */
.works-grid { display: grid; gap: 40px 24px; }
.work__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work:hover .work__img img { transform: scale(1.05); }
.work__meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--blue); line-height: 1.6; }
.work__meta span { font-weight: 500; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); padding: 1px 8px; }
.work__title { margin-top: 6px; font-size: 18px; }
.work__text { margin-top: 6px; font-size: 14px; line-height: 1.9; }

/* ---------- ご依頼の流れ ---------- */
.flow { display: grid; gap: 0; }
.flow__item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding-block: 22px; border-top: 1px solid var(--line); }
.flow__item:last-child { border-bottom: 1px solid var(--line); }
.flow__num { font-family: var(--font-en); font-weight: 500; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 22px; letter-spacing: .04em; }
.flow__title { font-size: 18px; }
.flow__text { margin-top: 2px; font-size: 15px; line-height: 1.85; }

/* ---------- 対応エリア・取扱メーカー（行で見せる） ---------- */
.spec { border-top: 1px solid var(--ink); }
.spec__row { display: grid; gap: 8px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.spec dt { display: flex; flex-direction: column; font-weight: 700; color: var(--ink); line-height: 1.6; }
.spec__en { font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: .24em; color: var(--blue); }
.spec dd { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.8; letter-spacing: .08em; word-break: keep-all; }
.spec dd i { font-style: normal; font-weight: 500; color: #b3bdcc; margin-inline: .45em; }
.spec dd small { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--muted); word-break: normal; }

/* ---------- トップ：代表あいさつ ---------- */
.greet { display: grid; gap: 36px; }
.greet__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky); }
.greet__img img { width: 100%; height: 100%; object-fit: cover; }
.greet__catch { font-size: 22px; font-weight: 700; line-height: 1.8; letter-spacing: .08em; color: var(--ink); word-break: auto-phrase; }
.greet__text { margin-top: 18px; }
.greet__sign { margin-block: 22px 28px; font-size: 20px; font-weight: 700; letter-spacing: .2em; color: var(--ink); line-height: 1.6; }
.greet__sign small { display: block; font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--muted); }

/* ---------- 法人向けの帯 ---------- */
.biz { background: var(--tint); border-block: 1px solid var(--line); padding-block: 56px; }
.biz__inner { display: grid; gap: 26px; align-items: center; }
.biz__en { font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: .26em; color: var(--blue); line-height: 1.4; }
.biz__title { margin-top: 6px; font-size: 24px; }
.biz__text { margin-top: 12px; max-width: 44em; }

/* ---------- お問い合わせへの誘導 ---------- */
.cta { overflow: hidden; background: var(--navy); color: #cfd9e9; padding-bottom: 64px; }
.cta__inner { display: grid; gap: 30px; }
.cta__en { font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: .26em; color: #9dbcf0; line-height: 1.4; }
.cta__title { margin-top: 10px; color: #fff; font-size: 24px; line-height: 1.7; }
.cta__text { margin-top: 12px; }
.cta__side .btn { min-height: 72px; font-size: 16px; }
.cta__hours { margin-top: 16px; font-size: 13px; line-height: 1.9; color: #a8b6cf; }

/* 流れる英字 */
.marquee { overflow: hidden; white-space: nowrap; user-select: none; pointer-events: none; padding-block: 28px 20px; }
.marquee__track { display: inline-flex; animation: marquee 44s linear infinite; }
.marquee__track span { font-family: var(--font-en); font-weight: 600; font-size: 84px; line-height: 1; letter-spacing: .02em; padding-right: .4em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 下層：共通 ---------- */
.lead-text { font-size: 17px; line-height: 2.1; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: 21px; margin-top: 2.6em; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ul li + li { margin-top: .4em; }
.sub-title { font-size: 20px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }

/* 事業内容ページ */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.anchor-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.anchor-nav a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.anchor-nav a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.svc { display: grid; gap: 26px; padding-block: 52px; border-bottom: 1px solid var(--line); }
.svc:first-of-type { padding-top: 0; }
.svc:last-of-type { border-bottom: 0; padding-bottom: 0; }
.svc__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__en { font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: .24em; color: var(--blue); line-height: 1.4; }
.svc__title { margin-block: 6px 16px; font-size: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.svc__cols { display: grid; gap: 22px; margin-top: 26px; }
.svc__box { border-top: 1px solid var(--ink); padding-top: 14px; }
.svc__box h4 { font-size: 14px; letter-spacing: .14em; margin-bottom: 8px; }
.check-list li { position: relative; padding-left: 1.5em; font-size: 15px; line-height: 1.9; }
.check-list li::before { content: ""; position: absolute; left: .1em; top: .72em; width: .7em; height: .38em; border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(-45deg); }
.svc--wide .svc__head .svc__img { margin-top: 22px; }
.ext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 14px; margin-top: 28px; }
.ext-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky); }
.ext-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ext-card:hover .ext-card__img img { transform: scale(1.05); }
.ext-card__title { margin-top: 12px; font-size: 17px; }
.ext-card__text { margin-top: 2px; font-size: 14px; line-height: 1.85; }
.price-note { margin-top: 36px; padding: 22px 0 0; border-top: 1px solid var(--ink); }
.price-note strong { display: block; color: var(--ink); letter-spacing: .1em; margin-bottom: 4px; }

/* よくある質問 */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group__title { font-size: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 22px 4px; font-weight: 700; color: var(--ink); line-height: 1.8; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq__q, .faq__a-mark { font-family: var(--font-en); font-weight: 600; font-size: 26px; line-height: 1.15; color: var(--blue); }
.faq__a-mark { color: var(--navy); }
.faq__toggle { position: relative; width: 18px; height: 18px; margin-top: 6px; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out); }
.faq__toggle::after { transform: rotate(90deg); }
.faq[open] .faq__toggle::after { transform: rotate(0); }
.faq__a { overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 0 4px 24px; }
.faq__a p + p { margin-top: .8em; }

/* 表 */
.table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.table th, .table td { display: block; text-align: left; padding: 0 4px; }
.table th { padding-top: 18px; color: var(--ink); font-size: 14px; letter-spacing: .12em; font-weight: 700; }
.table td { padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.map { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--sky); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 代表あいさつページ */
.message { display: grid; gap: 36px; }
.message__photo { max-width: 360px; margin-inline: auto; width: 100%; }
.message__photo-img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--sky); }
.message__photo-img img { width: 100%; height: 100%; object-fit: cover; }
.message__photo figcaption { margin-top: 14px; font-size: 18px; font-weight: 700; letter-spacing: .2em; color: var(--ink); line-height: 1.6; }
.message__photo figcaption small { display: block; font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.message__body p + p { margin-top: 1.8em; }
.message__body strong { color: var(--navy); }
.message__sign { margin-top: 2.6em; text-align: right; font-weight: 700; color: var(--ink); line-height: 1.9; }
.message__sign span { font-size: 24px; letter-spacing: .2em; margin-left: .6em; }

/* 採用情報 */
.split { display: grid; gap: 32px; align-items: center; }
.split__img { overflow: hidden; aspect-ratio: 3 / 2; background: var(--sky); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__catch { font-size: 24px; line-height: 1.7; margin-bottom: 18px; }
.point-grid { display: grid; gap: 0; counter-reset: point; }
.point { counter-increment: point; padding-block: 26px; border-top: 1px solid var(--ink); }
.point::before { content: "0" counter(point); display: block; font-family: var(--font-en); font-weight: 600; font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--navy); }
.point .icon { display: none; }
.point__title { margin-block: 14px 6px; font-size: 19px; }
.point__text { font-size: 15px; }

/* ---------- お問い合わせフォーム ---------- */
.form-card { background: #fff; border: 1px solid var(--line); padding: 24px 18px; }
.field { margin-bottom: 28px; }
.field__label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.7; }
.field__hint { font-size: 14px; color: var(--muted); margin-bottom: 8px; line-height: 1.8; }
.req, .opt { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 0 8px; margin-left: 10px; line-height: 1.8; vertical-align: 1px; }
.req { background: var(--error); color: #fff; }
.opt { background: var(--sky); color: var(--muted); }
/* 入力欄は端末の書体にする（入力された文字のために、重い書体ファイルを読み込ませないため） */
.input, .textarea, .confirm-list dd { font-family: var(--font-sys); letter-spacing: .02em; }
.input, .textarea { width: 100%; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #b9c3d2; border-radius: 0; padding: 12px 14px; min-height: 54px; line-height: 1.6; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 190px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(37, 99, 216, .2); }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid #b9c3d2; background: #fff; cursor: pointer; line-height: 1.6; color: var(--ink); transition: border-color .15s, background .15s; user-select: none; -webkit-tap-highlight-color: transparent; }
.choice > span::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; border: 1.5px solid #8d99ac; background: #fff; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--navy); background: var(--tint); font-weight: 700; color: var(--navy); }
.choice input:checked + span::before { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { outline: 3px solid #7fa6ea; outline-offset: 2px; }
.field__error { display: none; margin-top: 6px; color: var(--error); font-size: 14px; font-weight: 700; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input, .field.is-invalid .textarea { border-color: var(--error); }
.agree { background: var(--tint); padding: 16px; }
.form-actions { margin-top: 30px; display: grid; gap: 12px; }
.confirm-list { border-top: 1px solid var(--ink); }
.confirm-list dt { padding-top: 16px; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--navy); }
.confirm-list dd { padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: pre-wrap; }
.done { text-align: center; padding-block: 16px; }
.done > .icon { width: 56px; height: 56px; color: var(--blue); }
.done__title { font-size: 22px; margin-block: 12px; }

/* ---------- フッター ---------- */
.footer { background: var(--deep); color: #b9c5d9; padding-block: 56px 28px; font-size: 14px; }
.footer a { color: #e6ecf6; text-decoration: none; }
.footer__grid { display: grid; gap: 36px; }
.footer .logo { color: #fff; }
.footer__info { margin-top: 18px; line-height: 2; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.footer__nav a { position: relative; display: inline-flex; align-items: center; min-height: 42px; font-weight: 700; letter-spacing: .1em; }
.footer__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-inout); }
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12px; letter-spacing: .1em; color: #8695b0; }

/* スマホ下部の固定ボタン */
.sp-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease-out); }
.sp-cta.is-show { transform: none; }
.sp-cta .btn { min-height: 52px; }
body.has-sp-cta { padding-bottom: 68px; }

/* ==========================================================================
   アニメーション
   ========================================================================== */
/* 画面に入ったら現れる（--d は main.js が順番にずらして入れる） */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* 写真：かぶせた幕が引いていき、中の写真は少し引いていく
   （写真そのものを隠すと、遅れて読み込む仕組みが働かないので、幕をかぶせる方式にしている） */
.js .reveal--clip { position: relative; opacity: 1; transform: none; }
.js .reveal--clip::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform-origin: right; transition: transform 1.2s var(--ease-inout) var(--d, 0s); }
.js .reveal--clip.is-in::after { transform: scaleX(0); }
.js .reveal--clip img { transform: scale(1.22); transition: transform 1.8s var(--ease-out) var(--d, 0s); }
.js .reveal--clip.is-in img { transform: none; }
.js .section--dark .reveal--clip::after { background: #1a2b50; }
/* 見出しの大きな英字：下からせり上がる */
.js .sec-head.reveal { opacity: 1; transform: none; }
.js .sec-head.reveal .sec-head__en { clip-path: inset(0 0 100% 0); transform: translateY(45%); transition: clip-path 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.js .sec-head.reveal .sec-head__jp, .js .sec-head.reveal .sec-head__lead { opacity: 0; transition: opacity 1s var(--ease-out) calc(var(--d, 0s) + .3s); }
.js .sec-head.reveal.is-in .sec-head__en { clip-path: inset(-10% 0 -10% 0); transform: none; }
.js .sec-head.reveal.is-in .sec-head__jp, .js .sec-head.reveal.is-in .sec-head__lead { opacity: 1; }
/* 1行ずつ下からせり上がる文字 */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }
.js .line > span { transform: translateY(118%); animation: line-up 1.1s var(--ease-out) forwards; animation-delay: calc(.15s + var(--i, 0) * .13s); }
@keyframes line-up { to { transform: none; } }
.js .fade-in { opacity: 0; transform: translateY(18px); animation: fade-in 1s var(--ease-out) forwards; animation-delay: calc(.15s + var(--i, 0) * .13s); }
@keyframes fade-in { to { opacity: 1; transform: none; } }
/* メインビジュアル：窓が開くように写真が広がる */
.js .hero__bg { clip-path: inset(24% 30% 24% 30%); animation: hero-open 1.5s var(--ease-inout) .1s forwards; }
@keyframes hero-open { to { clip-path: inset(0 0 0 0); } }
.js .hero__bg img { transform: scale(1.28); animation: hero-zoom 2.6s var(--ease-out) .1s forwards; }
@keyframes hero-zoom { to { transform: scale(1.02); } }
/* ご依頼の流れ：番号が順にふくらむ */
.js .flow__item.reveal .flow__num { transform: scale(.6); transition: transform .7s var(--ease-out) calc(var(--d, 0s) + .1s); }
.js .flow__item.reveal.is-in .flow__num { transform: none; }

/* 動きを減らす設定の人には、動かさずに最初から表示する */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal--clip img, .js .line > span, .js .fade-in, .js .hero__bg, .js .hero__bg img, .js .flow__item.reveal .flow__num,
  .js .sec-head.reveal .sec-head__en, .js .sec-head.reveal .sec-head__jp, .js .sec-head.reveal .sec-head__lead { opacity: 1; transform: none; clip-path: none; animation: none; transition: none; }
  .js .reveal--clip::after { display: none; }
  .marquee__track { animation: none; }
  .gnav__list li, .gnav__cta { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================================
   タブレット以上
   ========================================================================== */
@media (min-width: 600px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .choices--2 { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 40px 36px; }
  .form-actions { grid-template-columns: 1fr 1fr; }
  .form-actions--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
  .table th, .table td { display: table-cell; padding: 20px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .table th { width: 11em; font-size: 15px; }
  .map { aspect-ratio: 16 / 9; }
  .ext-grid { gap: 28px 20px; }
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .container { padding-inline: 40px; }
  .section { padding-block: 128px; }
  .sec-head { margin-bottom: 64px; }
  .sec-head__jp { font-size: 18px; margin-top: 20px; }
  .head-row { grid-template-columns: 1fr auto; align-items: end; gap: 48px; margin-bottom: 64px; }
  .head-row__lead { max-width: 30em; }
  .header__inner { padding-inline: 40px; }
  .logo__mark { width: 44px; height: 44px; }
  .logo__text { font-size: 18px; }
  .logo__text small { font-size: 11px; }

  .hero__inner { padding-block: calc(var(--header-h) + 64px) 72px; }
  .hero__en { font-size: 17px; }
  .hero__title { margin-top: 22px; font-size: clamp(38px, 4.5vw, 66px); line-height: 1.34; letter-spacing: .06em; }
  .hero__lead { margin-top: 28px; font-size: 17px; }
  .hero__actions { margin-top: 40px; }
  .hero__area { margin-top: 56px; font-size: 14px; max-width: 760px; }
  .hero__side { display: block; position: absolute; right: 38px; top: 42%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: .34em; color: rgba(255, 255, 255, .85); }
  .scroll-sign { display: flex; flex-direction: row; align-items: center; gap: 12px; position: absolute; right: 38px; bottom: 0; writing-mode: vertical-rl; font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: .3em; color: #fff; }
  .scroll-sign::after { content: ""; width: 1px; height: 84px; background: rgba(255, 255, 255, .9); animation: scroll-sign 2.4s var(--ease-inout) infinite; }
  @keyframes scroll-sign { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
  .sp-only { display: none; }

  .page-hero { padding-block: 88px 64px; }
  .page-hero__title { font-size: 19px; margin-top: 24px; }

  .worry { grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; }
  .worry__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .worry__head .sec-head { margin-bottom: 0; }
  .worry__note { margin-top: 32px; font-size: 19px; }
  .worry__list a { grid-template-columns: 64px 1fr auto; padding: 30px 10px; }
  .worry__list a:hover { padding-inline: 28px 20px; }
  .worry__no { font-size: 22px; }
  .worry__text { font-size: 25px; }
  .worry__to { font-size: 14px; }

  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 360px; gap: 16px; }
  .tile { aspect-ratio: auto; }
  .tile--7 { grid-column: span 7; } .tile--5 { grid-column: span 5; } .tile--4 { grid-column: span 4; } .tile--8 { grid-column: span 8; } .tile--6 { grid-column: span 6; }
  .tile__no { left: 28px; top: 22px; font-size: 18px; }
  .tile__body { left: 28px; bottom: 26px; right: 96px; }
  .tile__title { font-size: 25px; }
  .tile__text { font-size: 14px; }
  .tile > .icon { right: 26px; bottom: 26px; width: 54px; height: 54px; padding: 16px; }

  .reason { grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; }
  .reason__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .reason__head .sec-head { margin-bottom: 0; }
  .reason__list li { grid-template-columns: 124px 1fr; padding-block: 44px; }
  .reason__no { font-size: 88px; }
  .reason__title { font-size: 25px; }
  .reason__text { font-size: 16px; margin-top: 12px; }

  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
  .work__title { font-size: 20px; }

  .flow { grid-template-columns: repeat(5, 1fr); }
  .flow__item { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; gap: 0; border: 0 !important; padding: 0 14px; }
  .flow__item:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: calc(50% + 52px); right: calc(-50% + 52px); height: 1px; background: #aab6c9; }
  .js .flow__item.reveal:not(:last-child)::after { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-inout) calc(var(--d, 0s) + .35s); }
  .js .flow__item.reveal.is-in:not(:last-child)::after { transform: scaleX(1); }
  .flow__num { width: 76px; height: 76px; font-size: 28px; }
  .flow__title { margin-top: 20px; font-size: 19px; }
  .flow__text { margin-top: 8px; font-size: 14px; }

  .spec__row { grid-template-columns: 300px 1fr; align-items: baseline; padding-block: 44px; }
  .spec dd { font-size: 27px; }

  .greet { grid-template-columns: 5fr 6fr; gap: 88px; align-items: center; }
  .greet__img { aspect-ratio: 4 / 5; }
  .greet__catch { font-size: 30px; }
  .greet .sec-head { margin-bottom: 40px; }

  .biz { padding-block: 88px; }
  .biz__inner { grid-template-columns: 1fr auto; gap: 64px; }
  .biz__title { font-size: 32px; }

  .cta { padding-bottom: 104px; }
  .cta__inner { grid-template-columns: 1fr auto; align-items: end; gap: 72px; }
  .cta__title { font-size: 36px; }
  .cta__side .btn { min-width: 340px; }
  .marquee { padding-block: 44px 36px; }
  .marquee__track span { font-size: 168px; }

  .lead-text { font-size: 18px; }
  .svc { grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 88px; align-items: start; }
  .svc--reverse .svc__img { order: 2; }
  .svc--wide { grid-template-columns: 1fr; }
  .svc--wide .svc__head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .svc--wide .svc__head .svc__img { margin-top: 0; }
  .svc__title { font-size: 32px; }
  .svc__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ext-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
  .message { grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
  .message__photo { position: sticky; top: calc(var(--header-h) + 32px); }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split__catch { font-size: 30px; }
  .point-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .point { padding-block: 30px 0; }
  .point::before { font-size: 56px; }
  .footer { padding-block: 88px 32px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr; gap: 72px; }
  .sp-cta { display: none; }
  body.has-sp-cta { padding-bottom: 0; }
}

/* PC用メニュー */
@media (min-width: 1140px) {
  .menu-btn { display: none; }
  .gnav { position: static; inset: auto; visibility: visible; opacity: 1; padding: 0; overflow: visible; background: none; color: inherit; display: flex; align-items: center; gap: 34px; }
  .gnav__list { display: flex; gap: 30px; }
  .gnav__list li { border: 0; opacity: 1; transform: none; }
  .gnav__home, .gnav__en { display: none; }
  .gnav__list a { position: relative; padding: 0; min-height: var(--header-h); align-items: center; color: inherit; }
  .gnav__jp { font-size: 15px; letter-spacing: .12em; }
  .gnav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-inout); }
  .gnav__list a:hover::after, .gnav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .gnav__list a[aria-current="page"] .gnav__jp { color: inherit; }
  .gnav__cta { margin-top: 0; opacity: 1; transform: none; }
  .gnav .gnav__cta { background: var(--navy); border-color: var(--navy); color: #fff; min-height: 46px; font-size: 14px; }
  .page-home .header:not(.is-scrolled) .gnav__cta { background: #fff; border-color: #fff; color: var(--ink); }
  .page-home .header:not(.is-scrolled) .gnav__cta:hover { color: #fff; }
}

/* ==========================================================================
   ここから後半：和モダンの見た目（もとのB案）。前半の指定を上書きする。
   ========================================================================== */
/* ---------- 基本 ---------- */
body { background: var(--paper); line-height: 2.1; letter-spacing: .06em; }
a { color: var(--navy); }
h1, h2, h3, h4,
.logo__text, .gnav__jp, .worry__text, .worry__note, .tile__title, .greet__catch, .greet__sign,
.spec dd, .message__sign, .message__photo figcaption, .split__catch, .faq summary, .footer__nav a {
  font-family: var(--font-min);
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: .1em; }
.section--dark { background: var(--navy); color: #cdd3dc; }

/* 見出し：小さな英字＋大きな明朝体 */
.sec-head__en {
  font-weight: 500; text-transform: uppercase; font-size: 15px; line-height: 1.4; letter-spacing: .34em; color: var(--blue);
}
.sec-head__jp { display: block; margin-top: 12px; font-weight: 500; font-size: clamp(25px, 6.4vw, 34px); line-height: 1.65; letter-spacing: .16em; text-align: inherit; text-wrap: balance; }
.sec-head__jp::before { display: none; }
.sec-head__jp::after { content: ""; display: block; width: 40px; height: 1px; margin-top: 22px; background: currentColor; opacity: .7; }
.sec-head--center .sec-head__jp::after { margin-inline: auto; }
.section--dark .sec-head__en { color: var(--gold); }
.js .sec-head.reveal .sec-head__en { transform: translateY(100%); }

/* ボタン */
.btn { letter-spacing: .18em; }
.link-arrow { font-family: var(--font-min); letter-spacing: .14em; }
.badge { letter-spacing: .14em; }

/* ---------- ヘッダー（いつも紙の色） ---------- */
.header { --bg: var(--paper); }
.page-home .header:not(.is-scrolled),
body.is-menu-open .header { --fg: var(--ink); --bg: var(--paper); --bd: var(--line); }
.page-home .header:not(.is-scrolled) { --bd: transparent; }
.logo__text { font-weight: 700; letter-spacing: .14em; }
.logo__text small { font-family: var(--font-jp); letter-spacing: .24em; }
.gnav { background: var(--navy); }
.gnav__jp { font-weight: 500; letter-spacing: .16em; }
.gnav__en { font-size: 15px; letter-spacing: .26em; color: var(--gold); }
.gnav__list a[aria-current="page"] .gnav__jp { color: var(--gold); }

/* ---------- トップ：メインビジュアル（写真の上に縦書き） ---------- */
.hero { display: block; min-height: 0; padding-top: var(--header-h); color: var(--text); background: var(--paper); --photo-h: 64svh; }
.hero__bg { inset: var(--header-h) 0 auto 0; height: var(--photo-h); transform: none !important; }
.hero::after {
  inset: var(--header-h) 0 auto 0; height: var(--photo-h);
  background: linear-gradient(to left, rgba(12, 18, 30, .66) 0%, rgba(12, 18, 30, .3) 36%, rgba(12, 18, 30, 0) 62%);
}
.hero__inner { padding-block: calc(var(--photo-h) + 30px) 48px; }
.hero__title {
  position: absolute; top: calc(var(--header-h) + 30px); right: 22px; margin: 0;
  writing-mode: vertical-rl; font-feature-settings: normal;
  color: #fff; font-weight: 500; font-size: clamp(22px, 6.4vw, 30px); line-height: 2; letter-spacing: .24em;
  text-shadow: 0 0 18px rgba(12, 18, 30, .35);
}
.hero__title .line { padding: 0 0 0 .1em; margin: 0; }
.hero__title .sp-only { display: inline; }
.hero__en { font-size: 14px; letter-spacing: .22em; white-space: nowrap; color: var(--blue); }
.hero__en::before { flex: 0 0 auto; width: 28px; }
.hero__lead { color: var(--text); font-size: 15px; line-height: 2.1; }
.hero .btn--white { background: var(--navy); border-color: var(--navy); color: #fff; }
.hero .link-arrow--white { color: var(--ink); }
.hero .link-arrow--white:hover .icon { background: var(--ink); color: #fff; }
.hero__area { border-top-color: var(--line); color: var(--muted); }
.hero__area b { color: var(--ink); font-size: 15px; }
/* 写真は、右から幕が引くように現れる */
.js .hero__bg { clip-path: inset(0 0 0 100%); animation: hero-open-b 1.5s var(--ease-inout) .1s forwards; }
@keyframes hero-open-b { to { clip-path: inset(0 0 0 0); } }

/* ---------- 下層ページの見出し帯 ---------- */
.page-hero { color: var(--ink); background: var(--tint); padding-block: 46px 40px; border-bottom: 1px solid var(--line); }
.page-hero::after { display: none; }
.page-hero__en { font-weight: 500; font-size: 15px; line-height: 1.4; letter-spacing: .34em; color: var(--blue); }
.page-hero__title { display: block; margin-top: 10px; color: var(--ink); font-weight: 500; font-size: clamp(28px, 7.4vw, 44px); line-height: 1.5; letter-spacing: .18em; }
.page-hero__title::before { display: none; }
.page-hero__lead { margin-top: 16px; color: var(--text); }
.breadcrumb li + li::before { color: #b9b1a1; }

/* ---------- トップ：お悩み ---------- */
.worry__note { font-weight: 500; }
.worry__no { font-style: italic; font-size: 22px; letter-spacing: .04em; }
.worry__text { font-weight: 500; letter-spacing: .1em; }
.worry__list a::before { background: var(--tint); }
.worry__list a:hover { color: var(--ink); }
.worry__list a:hover .worry__no { color: var(--blue); }
.worry__list a:hover .worry__to { color: var(--muted); }

/* ---------- トップ：事業内容（写真の下に文字。2列を互い違いに） ---------- */
.bento { gap: 44px; }
.tile {
  overflow: visible; aspect-ratio: auto; background: none; color: var(--ink);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 16px; align-items: start;
}
.tile::after { display: none; }
.tile img { position: static; z-index: 0; grid-column: 1 / -1; grid-row: 1; height: auto; aspect-ratio: 3 / 2; margin-bottom: 16px; transition: opacity .5s; }
.tile:hover img { transform: none; opacity: .82; }
.tile__no { position: static; grid-column: 1; grid-row: 2; font-style: italic; font-size: 20px; letter-spacing: .06em; line-height: 1.3; color: var(--blue); text-shadow: none; }
.tile__body { position: static; grid-column: 1; grid-row: 3; }
.tile__title { font-weight: 500; font-size: 22px; letter-spacing: .12em; }
.tile__text { margin-top: 6px; font-size: 14px; line-height: 1.9; color: var(--text); }
.tile > .icon { position: static; grid-column: 2; grid-row: 2 / span 2; align-self: center; border-color: #b8ae9a; }
.tile:hover > .icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile .badge { left: 0; right: auto; }

/* ---------- トップ：選ばれる理由 ---------- */
.reason__no { font-weight: 500; font-style: italic; color: var(--gold); -webkit-text-stroke: 0; }
.reason__title { font-weight: 500; letter-spacing: .12em; }

/* ---------- 施工事例・流れ・エリア・あいさつ ---------- */
.work__title { font-weight: 500; }
.flow__num { background: transparent; border: 1px solid var(--navy); color: var(--navy); font-style: italic; font-size: 24px; }
.spec__en, .svc__en, .biz__en, .cta__en { font-weight: 500; letter-spacing: .32em; }
.spec dd { font-weight: 500; letter-spacing: .12em; }
.spec dd i { color: #c2b9a6; }
.greet__catch { font-weight: 500; letter-spacing: .12em; }
.greet__sign { font-weight: 500; }
.greet__sign small, .message__photo figcaption small { font-family: var(--font-jp); }
.biz__title { font-weight: 500; }

/* ---------- お問い合わせへの誘導（流れる英字は出さない） ---------- */
.cta { padding-top: 64px; }
.marquee { display: none; }
.cta__en { color: var(--gold); }
.cta__title { font-weight: 500; letter-spacing: .12em; }

/* ---------- 下層ページ ---------- */
.anchor-nav a { background: transparent; border-radius: 0; font-family: var(--font-jp); }
.svc__title { font-weight: 500; }
.point::before { font-weight: 500; font-style: italic; color: var(--blue); -webkit-text-stroke: 0; }
.faq summary { font-weight: 500; font-size: 17px; letter-spacing: .08em; }
.faq summary:hover { color: var(--navy); }
.faq__q, .faq__a-mark { font-weight: 500; font-style: italic; font-size: 28px; }
.message__sign { font-weight: 500; }
.split__catch { font-weight: 500; }
.footer__nav a { font-weight: 500; }
.sp-cta { background: rgba(247, 244, 238, .96); }
.js .section--dark .reveal--clip::after { background: #2b4265; }

/* ==========================================================================
   タブレット以上
   ========================================================================== */
@media (min-width: 600px) {
  .hero { --photo-h: 66svh; }
  .hero__title { right: 40px; font-size: 32px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 48px 28px; }
}

@media (min-width: 900px) {
  .sec-head__en { font-size: 16px; }
  .sec-head__jp { font-size: 36px; margin-top: 14px; }
  .sec-head__jp::after { margin-top: 28px; }
  .hero__title { top: calc(var(--header-h) + 44px); right: 64px; font-size: 38px; }
  .hero__inner { padding-block: calc(var(--photo-h) + 44px) 72px; }
  .hero__lead { font-size: 16px; }
  .page-hero { padding-block: 76px 60px; }
  .page-hero__en { font-size: 17px; }
  .page-hero__title { margin-top: 12px; }
  .worry__no { font-size: 26px; }
  .worry__list a:hover { padding-inline: 10px; }

  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 72px 80px; padding-bottom: 96px; }
  .tile { aspect-ratio: auto; }
  .tile--7, .tile--5, .tile--4, .tile--8, .tile--6 { grid-column: auto; }
  .tile:nth-child(even) { position: relative; top: 96px; }
  .tile img { margin-bottom: 22px; }
  .tile__no { left: auto; top: auto; font-size: 22px; }
  .tile__body { left: auto; right: auto; bottom: auto; }
  .tile__title { font-size: 26px; }
  .tile__text { font-size: 15px; }
  .tile > .icon { right: auto; bottom: auto; }

  .reason__no { font-size: 80px; }
  .flow__num { font-size: 30px; }
  .cta { padding-top: 104px; }
  .faq summary { font-size: 18px; }
}

/* PC：左に文字と縦書きの見出し、右に写真 */
@media (min-width: 1140px) {
  .hero { display: flex; align-items: stretch; min-height: max(100svh, 760px); }
  .hero__bg { inset: var(--header-h) 0 0 50%; height: auto; }
  .hero::after { display: none; }
  .hero__inner {
    width: 50%; max-width: none; margin: 0; display: flex; flex-direction: column; justify-content: flex-end;
    --ht: clamp(36px, 3vw, 46px);
    /* 左端は、広い画面ではほかの段と同じ位置に近づけ、狭い画面では文章の幅（300px）を優先する */
    padding: 56px 0 72px max(40px, min(calc((100vw - 1200px) / 2 + 40px), calc(50vw - 436px - 5.4 * var(--ht))));
  }
  /* 左の文章は、縦書きの見出し（3行ぶん）にかからない幅までにする */
  .hero__inner > :not(.hero__title) { max-width: min(400px, calc(50vw - 136px - 5.4 * var(--ht))); }
  .hero__title {
    top: calc(var(--header-h) + 60px); right: calc(50% + 52px);
    color: var(--ink); font-size: clamp(36px, 3vw, 46px); line-height: 1.8; text-shadow: none;
  }
  .hero__en { margin-bottom: auto; font-size: 14px; letter-spacing: clamp(1px, (100vw - 1100px) * .012, 3px); }
  .hero .btn { min-width: 0; width: 100%; max-width: 280px; padding-inline: 22px 18px; letter-spacing: .12em; white-space: nowrap; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__area { margin-top: 40px; flex-direction: column; }
  .hero__side { display: none; }
  .scroll-sign { color: #fff; }

  .gnav { background: none; gap: 30px; }
  .gnav__list { gap: 26px; }
  .gnav__jp { font-size: 15px; letter-spacing: .14em; }
  .gnav .gnav__cta,
  .page-home .header:not(.is-scrolled) .gnav__cta { background: var(--navy); border-color: var(--navy); color: #fff; }
}

/* ==========================================================================
   電話番号・Instagram・会社の写真（2026年11月、河端さんの返事を受けて追加）
   ========================================================================== */
/* 電話番号の数字は、高さのそろった形にする（この書体のふつうの数字は、3や5が下に出る形で、番号としては読みにくいため） */
.gnav__tel-num, .hero__tel a, .cta__tel-num, .tel-box__num { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* メニューの中の電話番号（スマホでは一覧の下、広いPCではボタンの左） */
.gnav__tel { display: block; margin-top: 28px; color: #fff; text-decoration: none; line-height: 1.5; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.gnav.is-open .gnav__tel { opacity: 1; transform: none; transition-delay: calc(.05s * var(--n, 0) + .1s); }
.gnav__tel-label { display: block; font-size: 13px; letter-spacing: .14em; color: var(--gold); }
.gnav__tel-num { display: block; font-family: var(--font-en); font-weight: 500; font-size: 38px; line-height: 1.2; letter-spacing: .05em; }
.gnav__tel-note { display: block; font-size: 12px; letter-spacing: .06em; color: #b9c5d9; }
.gnav__cta { margin-top: 24px; }

/* トップ：メインビジュアルの電話番号 */
.hero__tel { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; line-height: 1.3; }
.hero__tel b { font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: .24em; color: var(--ink); }
.hero__tel a { font-family: var(--font-en); font-weight: 500; font-size: 36px; letter-spacing: .05em; color: var(--ink); text-decoration: none; }
.hero__tel small { flex-basis: 100%; margin-top: 2px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.hero__area { margin-top: 26px; }

/* お問い合わせへの誘導の中の電話番号 */
.cta__tel { display: block; margin-top: 24px; color: #fff; text-decoration: none; }
.cta__tel-label { display: block; font-size: 13px; letter-spacing: .14em; line-height: 1.6; color: var(--gold); }
.cta__tel-num { display: block; font-family: var(--font-en); font-weight: 500; font-size: 46px; line-height: 1.15; letter-spacing: .05em; }
.cta__hours { margin-top: 10px; }

/* お問い合わせページの電話番号 */
.tel-box { margin-top: 36px; padding: 30px 16px 26px; background: var(--tint); text-align: center; }
.tel-box__label { font-family: var(--font-min); font-size: 16px; letter-spacing: .16em; color: var(--ink); line-height: 1.6; }
.tel-box__num { display: inline-block; margin-block: 4px 2px; font-family: var(--font-en); font-weight: 500; font-size: clamp(42px, 13vw, 62px); line-height: 1.2; letter-spacing: .05em; color: var(--navy); text-decoration: none; }
.tel-box__note { font-size: 13px; letter-spacing: .04em; color: var(--muted); line-height: 1.8; }
.tel-link { color: inherit; }

/* スマホ下部の固定ボタン：電話とフォームを並べる（900px以上では、前半の指定どおり出さない） */
@media (max-width: 899.98px) {
  .sp-cta { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
}
.sp-cta .btn { min-width: 0; padding-inline: 16px 14px; gap: 10px; font-size: 14px; letter-spacing: .08em; white-space: nowrap; }
.sp-cta__tel { justify-content: center; gap: 6px; background: var(--paper); }
.sp-cta__tel .icon { width: 18px; height: 18px; }
.sp-cta__tel:hover .icon { transform: none; }

/* フッター */
.footer__sns { margin-top: 12px; }
.footer__sns a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; letter-spacing: .1em; }
.footer__sns .icon { width: 22px; height: 22px; }

/* トップ：代表あいさつの写真（河端さん）。顔が切れないよう、スマホでも縦長のまま、少し小さめに出す */
.greet__img { aspect-ratio: 4 / 5; max-width: 280px; }

/* 会社概要：社屋と作業車の写真 */
.photo-pair { display: grid; gap: 22px; margin-block: 40px 56px; }
.photo-pair__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky); }
.photo-pair__img img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .1em; color: var(--muted); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .gnav__tel { opacity: 1; transform: none; }
}
@media (min-width: 600px) {
  .photo-pair { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tel-box { padding: 40px 24px 34px; }
}
@media (min-width: 900px) {
  .greet__img { max-width: none; }
  .logo__en { height: 10px; margin-top: 6px; }
  .hero__tel a { font-size: 40px; }
  .cta__tel-num { font-size: 54px; }
  .photo-pair { margin-block: 56px 72px; }
}
@media (min-width: 1140px) {
  .gnav__tel { display: none; margin: 0; opacity: 1; transform: none; color: inherit; text-align: right; line-height: 1.2; }
  .gnav__tel-label { font-size: 10px; letter-spacing: .16em; color: var(--blue); }
  .gnav__tel-num { font-size: 25px; line-height: 1.1; }
  .gnav__tel-note { display: none; }
  .gnav__cta { margin-top: 0; }
  .hero__tel { margin-top: 28px; }
}
/* 幅に余裕のあるPCでは、ヘッダーにも電話番号を出す */
@media (min-width: 1340px) {
  .gnav__tel { display: block; }
}
