/* ===== ブラウザ標準の余白・装飾を揃える（旧：Tailwind CDN の初期化と同じ内容をここに直書き）
   CDN 版はページを開くたびにブラウザ内で CSS を組み立てて画面が固まるため外した ===== */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: currentColor; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; }
button, [type="button"], [type="submit"] { background-color: transparent; background-image: none; cursor: pointer; }
:disabled { cursor: default; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
textarea { resize: vertical; }
img, svg, video, canvas, iframe { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
dialog { padding: 0; }
[hidden] { display: none; }

/* ===== 色・書体の定義（ここを変えるとサイト全体の色が変わる） =====
   紺＝誠実・実直、アンバー＝明るさ・親しみ、セージ＝作業着の色に合わせた和やかさ */
:root {
  --navy: #1a2e50;
  --navy-deep: #101d35;
  --ink: #1f2430;
  --muted: #5b6372;
  --paper: #faf8f4;
  --sand: #f1ece3;
  --sage: #e6ebe4;
  --amber: #f0a040;
  --amber-deep: #d9852a;
  --white: #ffffff;
  --line: rgba(26, 46, 80, .12);
  --radius-l: 24px;
  --radius-m: 16px;
  --shadow: 0 18px 40px -18px rgba(16, 29, 53, .28);
  --head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --en: "Outfit", sans-serif;
  --section-y: clamp(4.5rem, 10vw, 8rem);
}

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}
/* 日本語の改行位置を文節で揃える（対応ブラウザのみ有効） */
h1, h2, h3, p, li, dd { word-break: auto-phrase; }

.wrap { width: min(90%, 74rem); margin-inline: auto; }
.section { padding-block: var(--section-y); }

/* ===== 共通パーツ ===== */
.label {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--en); font-weight: 600; font-size: .8rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--navy);
}
.label::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--amber); }
.section-title {
  font-family: var(--head); font-weight: 700; color: var(--navy-deep);
  font-size: clamp(1.6rem, 1.05rem + 2vw, 2.6rem); line-height: 1.5; letter-spacing: .04em;
  margin-top: .6rem;
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; }
.text-muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1em 2em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-accent { background: var(--amber); color: var(--navy-deep); }
.btn-accent:hover { background: var(--amber-deep); }
.btn-ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn .fa-arrow-right { transition: transform .25s ease; }
.btn:hover .fa-arrow-right { transform: translateX(.25em); }

.text-link {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--navy);
  border-bottom: 1px solid currentColor; padding-bottom: .15em;
}
.text-link:hover { color: var(--amber-deep); }

/* スクロールで下からふわっと出す。main.js が最後まで動いた時（.js-ready）だけ隠すので、JS が止まる端末でも中身は見える */
.js-ready .reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity .9s ease, transform .9s ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .reveal { transform: none; transition: opacity .3s ease; }
}

/* ===== ヘッダー ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-block: 1.1rem; transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease; }
.site-header.is-scrolled { background: rgba(250, 248, 244, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-block: .7rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo img { height: 1.9rem; width: auto; }
.global-nav ul { display: flex; gap: clamp(1.2rem, 2vw, 2.2rem); font-weight: 500; font-size: .95rem; }
.global-nav a { position: relative; color: var(--navy-deep); }
.global-nav a::after { content: ""; position: absolute; left: 0; bottom: -.3em; width: 100%; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.global-nav a:hover::after, .global-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 1.4rem; }
.header-tel { text-align: right; line-height: 1.25; color: var(--navy); }
.header-tel strong { font-family: var(--en); font-size: 1.2rem; letter-spacing: .06em; }
.header-tel small { display: block; font-size: .7rem; color: var(--muted); }
.header-cta { padding: .8em 1.5em; font-size: .9rem; }
.menu-toggle { display: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--navy); color: var(--white); }
/* 動画の上にいる間（スクロール前）は文字とロゴを白にする */
.site-header:not(.is-scrolled) .logo img { filter: brightness(0) invert(1); }
.site-header:not(.is-scrolled) .global-nav a,
.site-header:not(.is-scrolled) .header-tel { color: var(--white); }
.site-header:not(.is-scrolled) .header-tel small { color: rgba(255, 255, 255, .75); }
.site-header:not(.is-scrolled) .menu-toggle { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--navy-deep); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; gap: 2.2rem; padding: 10% 8%;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { display: grid; gap: 1.3rem; font-family: var(--head); font-size: 1.4rem; font-weight: 700; }
.mobile-menu ul a span { display: block; font-family: var(--en); font-size: .7rem; letter-spacing: .24em; color: var(--amber); font-weight: 600; }
.mobile-menu .menu-close { position: absolute; top: 1.2rem; right: 5%; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }

@media (max-width: 68rem) {
  .global-nav, .header-tel { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 30rem) { .header-cta { display: none; } }

/* ===== ヒーロー：全面に施工の動画を流し、左に紺のグラデーションを敷いて白い文字を読ませる ===== */
.hero {
  position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center;
  padding: clamp(7rem, 12vw, 9rem) 0 clamp(6rem, 10vw, 8rem); background: var(--navy-deep); color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 29, 53, .85) 0%, rgba(16, 29, 53, .6) 42%, rgba(16, 29, 53, .12) 78%),
    linear-gradient(0deg, rgba(16, 29, 53, .55) 0%, transparent 38%);
}
.hero-inner { position: relative; z-index: 1; width: min(90%, 74rem); margin-inline: auto; }
.hero-copy { max-width: 40rem; }
.hero .label { color: var(--white); }
.hero h1 {
  font-family: var(--head); font-weight: 900; color: var(--white);
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3.3rem); line-height: 1.42; letter-spacing: .02em; margin-top: 1.2rem;
  text-shadow: 0 2px 18px rgba(16, 29, 53, .35);
}
/* マーカー：ページが開いたら左から右へ引かれる */
.hl { background: linear-gradient(rgba(240, 160, 64, .6), rgba(240, 160, 64, .6)) no-repeat 0 88% / 100% 34%; }
.js .hl { background-size: 0% 34%; transition: background-size .8s cubic-bezier(.65, 0, .35, 1) .9s; }
.js.is-ready .hl { background-size: 100% 34%; }
.hero .lead { margin-top: 1.6rem; font-size: clamp(.98rem, .9rem + .3vw, 1.1rem); color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px);
  font-size: .85rem; font-weight: 500; color: var(--white);
}
.hero-badges i { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero .btn-primary { background: var(--amber); color: var(--navy-deep); }
.hero .btn-primary:hover { background: var(--amber-deep); }
.hero .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* 右下の角：「話せる施工人」と BGM のオン・オフ */
.hero-corner { position: absolute; right: 5%; bottom: 6%; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.float-card {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.3rem; border-radius: var(--radius-m); background: var(--white); box-shadow: var(--shadow);
  font-family: var(--head); font-weight: 700; color: var(--navy-deep); line-height: 1.5;
}
.float-card .icon { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--navy-deep); font-size: 1.1rem; }
.float-card small { display: block; font-family: "Noto Sans JP", sans-serif; font-weight: 500; font-size: .75rem; color: var(--muted); }
.sound-toggle {
  display: inline-flex; align-items: center; gap: .55em; padding: .6em 1.1em; border-radius: 999px;
  background: rgba(16, 29, 53, .55); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px);
  color: var(--white); font-size: .85rem; font-weight: 700; transition: background-color .25s ease, color .25s ease;
}
.sound-toggle:hover { background: rgba(16, 29, 53, .8); }
.sound-toggle[aria-pressed="true"] { background: var(--amber); color: var(--navy-deep); border-color: var(--amber); }

@media (max-width: 48rem) {
  .hero-media::after {
    background: linear-gradient(0deg, rgba(16, 29, 53, .9) 0%, rgba(16, 29, 53, .55) 55%, rgba(16, 29, 53, .25) 100%);
  }
  .hero { align-items: flex-end; padding-bottom: 8.5rem; }
  .float-card { display: none; }
  /* 下の固定ボタン（電話・お問い合わせ）に隠れないよう持ち上げる */
  .hero-corner { bottom: 4.6rem; }
}

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-l); }
/* 写真の後ろにずらした色面を敷いて、硬すぎない柔らかさを出す */
.about-photo::before { content: ""; position: absolute; inset: 8% -5% -7% 6%; z-index: 0; border-radius: var(--radius-l); background: var(--sage); }
.about-photo img { position: relative; z-index: 1; }
.about-body p { margin-top: 1.4rem; }
.about-body .quote { font-family: var(--head); font-weight: 700; font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); color: var(--navy); }
@media (max-width: 56rem) { .about-grid { grid-template-columns: 1fr; } }

/* ===== 強み ===== */
.strength-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.strength-card { background: var(--white); border-radius: var(--radius-l); padding: 2rem 1.7rem; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.strength-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.strength-card .num { font-family: var(--en); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--amber); }
.strength-card .icon { float: right; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--navy); }
.strength-card h3 { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--navy-deep); margin-top: 1.4rem; line-height: 1.5; }
.strength-card p { margin-top: .8rem; font-size: .92rem; color: var(--muted); line-height: 1.85; }
@media (max-width: 64rem) { .strength-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .strength-list { grid-template-columns: 1fr; } }

/* ===== サービス ===== */
.service { background: var(--white); }
.service-list { display: grid; gap: clamp(4rem, 8vw, 6.5rem); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.service-row:nth-child(even) .service-media { order: 2; }
.service-media { position: relative; }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
.service-media .num {
  position: absolute; top: -1.2rem; left: 1.4rem; padding: .3em .9em; border-radius: 999px;
  background: var(--navy); color: var(--white); font-family: var(--en); font-weight: 600; letter-spacing: .12em; font-size: .85rem;
}
.service-body .en { font-family: var(--en); font-weight: 600; letter-spacing: .24em; font-size: .78rem; color: var(--amber-deep); }
.service-body h3 { font-family: var(--head); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); color: var(--navy-deep); margin-top: .3rem; }
.service-body p { margin-top: 1.2rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.service-tags li { padding: .35em .95em; border-radius: 999px; background: var(--sand); font-size: .82rem; font-weight: 500; color: var(--navy); }
.service-body .text-link { margin-top: 1.8rem; }
@media (max-width: 56rem) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-media { order: 0; }
}

/* ===== 施工実績 ===== */
.works { background: var(--sand); }
.works-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.works-tab { padding: .6em 1.4em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 500; font-size: .9rem; color: var(--navy); transition: background-color .25s ease, color .25s ease; }
.works-tab[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.works-item { position: relative; overflow: hidden; border-radius: var(--radius-m); cursor: zoom-in; }
.works-item[hidden] { display: none; }
.works-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.works-item:hover img { transform: scale(1.05); }
.works-item .cat {
  position: absolute; left: .8rem; bottom: .8rem; padding: .25em .8em; border-radius: 999px;
  background: rgba(255, 255, 255, .92); font-size: .75rem; font-weight: 700; color: var(--navy);
}
@media (max-width: 48rem) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; } }

/* ===== 代表メッセージ（会社案内ページ） ===== */
.message { background: var(--white); position: relative; overflow: hidden; }
.message-grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(2.5rem, 6vw, 6rem); }
.message h2 { font-family: var(--head); font-weight: 700; color: var(--navy-deep); font-size: clamp(1.6rem, 1.05rem + 2vw, 2.6rem); margin-top: .6rem; }
.message-body { position: relative; }
.message-body::before { content: "\201C"; position: absolute; top: -3.2rem; left: -1rem; font-family: Georgia, serif; font-size: 8rem; line-height: 1; color: var(--amber); opacity: .9; }
.message-body h3 { font-family: var(--head); font-weight: 700; color: var(--navy-deep); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.6; }
.message-body p { margin-top: 1.4rem; }
.signature { margin-top: 2.6rem; display: flex; align-items: baseline; gap: 1.2rem; justify-content: flex-end; color: var(--navy-deep); }
.signature span { font-size: .85rem; color: var(--muted); }
.signature strong { font-family: var(--head); font-size: 1.6rem; font-weight: 700; letter-spacing: .2em; }
@media (max-width: 56rem) {
  .message-grid { grid-template-columns: 1fr; }
  .message-body { padding-top: 2.2rem; }
  .message-body::before { top: -1.2rem; left: -.3rem; font-size: 5rem; }
}

/* ===== 会社概要 ===== */
.company { background: var(--paper); }
.company-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.company-table { border-top: 1px solid var(--line); }
.company-table div { display: grid; grid-template-columns: 9em 1fr; gap: 1rem; padding: 1.25rem .2rem; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; color: var(--navy); }
.company-table ol { display: grid; gap: .2rem; }
.map { overflow: hidden; border-radius: var(--radius-l); aspect-ratio: 1 / 1; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 56rem) {
  .company-grid { grid-template-columns: 1fr; }
  .company-table div { grid-template-columns: 1fr; gap: .2rem; }
  .map { aspect-ratio: 4 / 3; }
}

/* ===== 採用情報 ===== */
.recruit { background: var(--sage); }
.recruit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.recruit-photo { position: relative; }
.recruit-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.recruit-sticker {
  position: absolute; right: -4%; top: -9%; width: 7.5rem; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--amber); color: var(--navy-deep);
  font-family: var(--head); font-weight: 900; font-size: 1.05rem; line-height: 1.35; transform: rotate(-8deg); box-shadow: var(--shadow);
}
.recruit-body .sub { font-size: .85rem; font-weight: 700; color: var(--navy); margin-top: 1rem; }
.recruit-body h3 { font-family: var(--head); font-weight: 900; font-size: clamp(1.5rem, 1.05rem + 1.8vw, 2.3rem); color: var(--navy-deep); line-height: 1.5; margin-top: .3rem; }
.recruit-body p { margin-top: 1.3rem; }
.recruit-points { display: grid; gap: .6rem; margin-top: 1.6rem; }
.recruit-points li { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--navy); }
.recruit-points i { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--amber-deep); font-size: .8rem; }
.recruit-body .btn { margin-top: 2.2rem; }
@media (max-width: 56rem) {
  .recruit-grid { grid-template-columns: 1fr; }
  .recruit-sticker { right: 3%; width: 6rem; font-size: .9rem; }
  .recruit-body .btn { width: 100%; padding-inline: 1.2em; font-size: .9rem; }
}

/* ===== お知らせ ===== */
.news { background: var(--white); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.news-grid { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; }
.news-list { border-top: 1px solid var(--line); }
.news-list details { border-bottom: 1px solid var(--line); }
.news-list summary { list-style: none; display: flex; gap: 1.6rem; align-items: center; padding: 1.3rem .2rem; cursor: pointer; }
.news-list summary::-webkit-details-marker { display: none; }
.news-list time { font-family: var(--en); font-weight: 600; color: var(--muted); letter-spacing: .08em; flex: none; }
.news-list summary span { flex: 1; font-weight: 500; }
.news-list summary i { color: var(--navy); transition: transform .25s ease; }
.news-list details[open] summary i { transform: rotate(45deg); }
.news-list .news-body { padding: 0 .2rem 1.5rem; color: var(--muted); font-size: .94rem; }
@media (max-width: 48rem) {
  .news-grid { grid-template-columns: 1fr; }
  .news-list summary { flex-wrap: wrap; gap: .3rem 1rem; }
  .news-list time { flex-basis: 100%; }
}

/* ===== お問い合わせ ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-intro p { margin-top: 1.2rem; font-size: .94rem; color: var(--muted); }
.tel-card { margin-top: 2rem; padding: 1.8rem; border-radius: var(--radius-l); background: var(--navy); color: var(--white); }
.tel-card small { font-size: .8rem; color: rgba(255, 255, 255, .75); }
.tel-card a { display: flex; align-items: center; gap: .6rem; font-family: var(--en); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: .05em; margin-top: .3rem; }
.tel-card a i { font-size: .7em; color: var(--amber); }
.form-card { background: var(--white); border-radius: var(--radius-l); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow); }
.field + .field { margin-top: 1.4rem; }
.field label { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .92rem; color: var(--navy-deep); }
.req { padding: .1em .6em; border-radius: 999px; background: var(--amber); color: var(--navy-deep); font-size: .7rem; font-weight: 700; }
.opt { padding: .1em .6em; border-radius: 999px; background: var(--sand); color: var(--muted); font-size: .7rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%; margin-top: .5rem; padding: .9em 1em; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 46, 80, .15); background: var(--white); }
.field .error { display: none; margin-top: .4rem; font-size: .82rem; color: #c0392b; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.field.is-invalid .error { display: block; }
/* ボット避けの見えない欄（send.php が中身を見る） */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 1.6rem; font-size: .82rem; color: var(--muted); line-height: 1.8; }
.form-submit { width: 100%; margin-top: 1.8rem; }
.form-status { margin-top: 1rem; font-size: .9rem; font-weight: 500; text-align: center; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: #2e7d4f; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== フッター ===== */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
/* ロゴは黒文字の透過PNGなので、紺地の上では白に反転させて使う */
.site-footer .logo img { filter: brightness(0) invert(1); height: 1.8rem; }
.footer-info { margin-top: 1.4rem; line-height: 2; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); justify-content: end; gap: .8rem 3rem; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--amber); }
.copyright { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); font-family: var(--en); font-size: .78rem; letter-spacing: .08em; text-align: center; color: rgba(255, 255, 255, .55); }
@media (max-width: 48rem) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav ul { justify-content: start; }
}

/* ===== スマホ下部の固定CTA ===== */
.mobile-cta { position: fixed; inset: auto 0 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; box-shadow: 0 -6px 20px -10px rgba(16, 29, 53, .4); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1.05rem 0; font-weight: 700; font-size: .95rem; }
.mobile-cta .tel { background: var(--navy); color: var(--white); }
.mobile-cta .mail { background: var(--amber); color: var(--navy-deep); }
@media (max-width: 48rem) {
  .mobile-cta { display: grid; }
  body { padding-bottom: 3.6rem; }
}

/* ===== 写真の拡大ダイアログ ===== */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(16, 29, 53, .86); backdrop-filter: blur(4px); }
.lightbox { width: min(92vw, 70rem); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius-m); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; color: var(--white); }
.icon-btn { width: 2.9rem; height: 2.9rem; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--white); transition: background-color .2s ease; }
.icon-btn:hover { background: rgba(255, 255, 255, .28); }
/* ===== プライバシーポリシー（ページ） ===== */
.privacy-body { max-width: 48rem; margin-inline: auto; font-size: .95rem; }
.privacy-body h2 { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--navy-deep); margin-top: 2.6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body h3 { font-weight: 700; color: var(--navy); margin-top: 1.4rem; }
.privacy-body p, .privacy-body ul { margin-top: .8rem; color: var(--muted); }

/* ===== ページ切り替え：ケーブルを運ぶモグラ =====
   リンクを押すと（is-leaving）、砂色の面が左から画面を覆い、ケーブルを担いだモグラが走り込んで真ん中で足踏みする。
   次のページは覆われた状態（is-entering）から始まり、モグラが右へ走り抜けるのに引かれて面が右へ抜ける（is-entered）。 */
.page-transition { position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; visibility: hidden; }
.transition-panel {
  position: absolute; inset: 0; transform: translateX(-100%);
  background-color: var(--sand);
  /* 図面の方眼。施工会社らしさを薄く残す */
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3rem 3rem;
}
.transition-logo { position: absolute; left: 50%; top: 38%; width: clamp(9rem, 18vw, 14rem); transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s ease; }
.transition-mole { position: absolute; left: 0; bottom: 18%; width: clamp(12rem, 26vw, 22rem); transform: translateX(-100%); }
.transition-mole img { width: 100%; }

.is-leaving .page-transition, .is-entering .page-transition { visibility: visible; pointer-events: auto; }
.is-leaving .transition-panel { transform: translateX(0); transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.is-leaving .transition-mole { transform: translateX(calc(50vw - 50%)); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.is-leaving .transition-logo { opacity: 1; transition-delay: .25s; }
.is-entering .transition-panel { transform: translateX(0); }
.is-entering .transition-mole { transform: translateX(calc(50vw - 50%)); }
.is-entering .transition-logo { opacity: 1; }
.is-entering.is-entered .transition-mole { transform: translateX(100vw); transition: transform .6s cubic-bezier(.55, 0, .45, 1) .05s; }
.is-entering.is-entered .transition-panel { transform: translateX(100%); transition: transform .6s cubic-bezier(.65, 0, .35, 1) .15s; }
.is-entering.is-entered .transition-logo { opacity: 0; transition-delay: 0s; }
@media (max-width: 48rem) {
  .transition-mole { width: 52vw; bottom: 26%; }
  .transition-logo { top: 34%; }
}

/* 切り替えが終わったあと、見出しを順に浮かび上がらせる（--d で出る順をずらす） */
.js .intro { opacity: 0; transform: translateY(1.4rem); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.js.is-ready .intro { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
  .js .intro { transform: none; transition: opacity .3s ease; }
  .js .hl { background-size: 100% 34%; transition: none; }
}

/* ===== 下層ページの見出し帯 ===== */
.page-head { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(22rem, 52svh, 34rem); padding: 8rem 0 clamp(3rem, 6vw, 4.5rem); background: var(--navy-deep); color: var(--white); }
.page-head-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 2.4s cubic-bezier(.22, 1, .36, 1); }
.is-ready .page-head-bg { transform: scale(1); }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 29, 53, .88) 0%, rgba(16, 29, 53, .55) 55%, rgba(16, 29, 53, .2) 100%), linear-gradient(0deg, rgba(16, 29, 53, .6), transparent 50%); }
.page-head-inner { position: relative; z-index: 1; }
.page-head .label { color: var(--white); }
.page-title { font-family: var(--head); font-weight: 900; font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1.3; letter-spacing: .06em; margin-top: .5rem; }
.page-lead { margin-top: 1rem; max-width: 36em; color: rgba(255, 255, 255, .85); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; font-size: .8rem; color: rgba(255, 255, 255, .75); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--amber); }
.breadcrumb a:hover { color: var(--white); }

/* ===== HOME：サービスの3枚カード ===== */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card figure { overflow: hidden; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.service-card:hover img { transform: scale(1.05); }
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.8rem; }
.service-card .en { font-family: var(--en); font-weight: 600; letter-spacing: .24em; font-size: .75rem; color: var(--amber-deep); }
.service-card h3 { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--navy-deep); margin-top: .2rem; }
.service-card p { margin-top: .8rem; font-size: .92rem; color: var(--muted); flex: 1; }
.service-card .text-link { margin-top: 1.2rem; align-self: flex-start; }
@media (max-width: 56rem) { .service-cards { grid-template-columns: 1fr; } }


/* ===== マスコット（下層ページの隅に小さく顔を出す。写真や動画の主役は邪魔しない） ===== */
.mascot { pointer-events: none; user-select: none; }
/* お問い合わせ：電話の箱の後ろから、両手を広げて顔を出す */
/* モグラの高さ（幅7.5rem×縦横比1.1）から箱に隠れる1.6remを引いた分＋1rem を上に空け、本文と重ならないようにする */
.tel-wrap { position: relative; margin-top: 7.6rem; }
.tel-wrap .tel-card { position: relative; z-index: 1; margin-top: 0; }
.tel-wrap .mascot { position: absolute; z-index: 0; right: 1.2rem; bottom: calc(100% - 1.6rem); width: 7.5rem; }

/* ===== 保険：古い端末などで JS が途中で止まっても、画面が覆われたまま・見出しが消えたままにならないようにする ===== */
.is-entering .page-transition { animation: failsafe-hide 0s linear 3.5s forwards; }
@keyframes failsafe-hide { to { visibility: hidden; } }
.js .intro { animation: failsafe-show 0s linear 3.5s forwards; }
@keyframes failsafe-show { to { opacity: 1; transform: none; } }
.js .hl { animation: failsafe-marker 0s linear 3.5s forwards; }
@keyframes failsafe-marker { to { background-size: 100% 34%; } }
