@charset "UTF-8";

/* ============================================
   有限会社伸栄製作所 - 黒基調・職人のこだわり
============================================ */
:root {
  --bg: #f6f5f1;
  --bg-2: #ecebe4;
  --bg-3: #e1dfd6;
  --line: rgba(38, 40, 67, .16);
  --line-strong: rgba(38, 40, 67, .34);
  --text: #272b41;
  --text-sub: #686d83;
  --amber: #d94f28;
  --amber-deep: #b03d1d;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Oswald", sans-serif;
  --header-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .06em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* 「です。」の「す。」だけが次の行に落ちるような改行を避ける。
     語句の切れ目で折り返す word-break と、行末の孤立を嫌う text-wrap を併用する。
     どちらも未対応ブラウザでは無視され、従来どおりの改行位置になる */
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* 住所の番地など、途中で切ってはいけない語をまとめる */
.no-break {
  white-space: nowrap;
}

/* 見出しと短いリード文は行の長さを揃える */
h1, h2, h3, h4,
.page-sub,
.sec-title,
.lead-text,
.card-title {
  text-wrap: balance;
}

img {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   共通パーツ
============================================ */
.sec {
  padding: 130px 0;
  position: relative;
}

.sec-head {
  text-align: center;
  margin-bottom: 70px;
}

.sec-head.left {
  text-align: left;
}

.sec-en {
  font-family: var(--en);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .45em;
  color: var(--amber);
  margin-bottom: 14px;
}

.sec-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: .14em;
  line-height: 1.4;
}

.sec-more {
  margin-top: 70px;
  text-align: center;
}

/* 交互の背景色 */
.sec.alt {
  background: var(--bg-2);
}

.sec-desc {
  text-align: center;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 2.3;
  margin: -30px 0 60px;
}

.sp-only {
  display: none;
}

/* 罫線ボタン */
.btn-line {
  display: inline-block;
  position: relative;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 17px 72px 17px 44px;
  transition: color .35s, border-color .35s, background .35s;
}

.btn-line::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: width .35s;
}

.btn-line::before {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  transform: rotate(38deg);
  transform-origin: right bottom;
}

.btn-line:hover {
  color: #0e0e0e;
  background: var(--amber);
  border-color: var(--amber);
}

/* 外部サイトへのテキストリンク。a は色も下線も持たない指定のため、
   本文や表の中では押せることが分からない。色と下線で区別する。 */
.link-ext {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: .25em;
  overflow-wrap: anywhere;
  transition: opacity .3s;
}

.link-ext:hover {
  opacity: .65;
}

/* 本文ブロックの中に置くボタン。直前のリストや段落との間隔をとる。 */
.media-text .btn-line {
  margin-top: 30px;
}

.btn-fill {
  display: inline-block;
  background: var(--amber);
  color: #0e0e0e;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .18em;
  padding: 18px 56px;
  transition: background .3s, transform .3s;
}

.btn-fill:hover {
  background: #e9bb62;
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-block;
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--amber);
  position: relative;
  padding-right: 44px;
}

.link-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--amber);
  transition: width .3s;
}

/* ============================================
   ヘッダー
============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(rgba(250, 249, 246, .96), rgba(250, 249, 246, .9));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

/* 左右の余白は画面幅に追従させる。広い画面では端まで使ってナビに幅を渡し、
   狭い画面では本文（.wrap）と同じ24pxまで詰めて縦のラインをそろえる。 */
.header-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(24px, 2.6vw, 48px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.2vw, 40px);
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-en {
  font-family: var(--en);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .5em;
  color: var(--text-sub);
}

.logo-jp {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .12em;
  color: var(--text);
}

.logo-jp small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  margin-right: 8px;
  letter-spacing: .1em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--header-h);
  padding: 0 16px;
  line-height: 1.4;
}

.nav-en {
  font-family: var(--en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--text);
  transition: color .3s;
}

.nav-jp {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--text-sub);
}

.nav-list > li > a:hover .nav-en {
  color: var(--amber);
}

/* ドロップダウンの目印 */
.has-drop > a .nav-en::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  transform: rotate(45deg) translateY(-2px);
  margin-left: 9px;
  vertical-align: 3px;
  transition: transform .3s;
}

.has-drop:hover > a .nav-en::after {
  transform: rotate(225deg) translateY(-1px);
}

/* ドロップダウンメニュー */
.drop {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 264px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-top: 1px solid var(--amber);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity .35s, transform .35s, visibility .35s;
  z-index: 60;
}

.has-drop:hover .drop,
.has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.drop li + li {
  border-top: 1px solid rgba(38, 40, 67, .08);
}

.drop a {
  display: block;
  padding: 13px 26px;
  font-size: 13.5px;
  letter-spacing: .1em;
  color: var(--text-sub);
  line-height: 1.6;
  transition: color .25s, background .25s, padding-left .25s;
}

.drop a::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--line-strong);
  vertical-align: middle;
  margin-right: 12px;
  transition: background .25s, width .25s;
}

.drop a:hover {
  color: var(--text);
  background: rgba(38, 40, 67, .04);
  padding-left: 30px;
}

.drop a:hover::before {
  background: var(--amber);
  width: 18px;
}

/* お問い合わせボタン */
.nav-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.4;
  border: 1px solid var(--amber);
  padding: 9px 26px;
  /* 最後のナビ項目と接近して見えるため、画面幅に応じて離す。 */
  margin-left: clamp(14px, 1.6vw, 30px);
  transition: background .3s;
}

.nav-contact .nav-en {
  color: var(--amber);
  transition: color .3s;
}

.nav-contact .nav-jp {
  color: var(--amber-deep);
  transition: color .3s;
}

.nav-contact:hover {
  background: var(--amber);
}

.nav-contact:hover .nav-en,
.nav-contact:hover .nav-jp {
  color: #0e0e0e;
}

.nav-toggle-check,
.nav-toggle {
  display: none;
}

/* ============================================
   ヒーロー
============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(1.02) saturate(.85) contrast(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 245, 241, .96) 0%, rgba(246, 245, 241, .62) 46%, rgba(246, 245, 241, .08) 100%),
    linear-gradient(rgba(246, 245, 241, .1) 55%, rgba(246, 245, 241, 1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--header-h) 40px 0;
}

.hero-vertical {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .5em;
  color: rgba(232, 229, 223, .85);
  border-right: 1px solid var(--line-strong);
  padding-right: 22px;
  height: 340px;
}

.hero-lead {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.5;
  letter-spacing: .12em;
  margin-bottom: 38px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}

.hero-sub {
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: .12em;
  color: rgba(232, 229, 223, .92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

.hero-en {
  margin-top: 56px;
  font-family: var(--en);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .5em;
  color: var(--text-sub);
}

.hero-en span {
  display: inline-block;
  margin-left: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
  color: var(--amber);
}

.scroll-line {
  position: absolute;
  left: 40px;
  bottom: 0;
  z-index: 2;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--text-sub);
}

.scroll-line span {
  display: block;
  writing-mode: vertical-rl;
  margin-bottom: 12px;
}

.scroll-line::after {
  content: "";
  display: block;
  width: 1px;
  height: 72px;
  margin: 0 auto;
  background: linear-gradient(var(--text-sub), transparent);
  animation: scrolldown 2.2s ease-in-out infinite;
}

@keyframes scrolldown {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   こだわり
============================================ */
.craft {
  background: var(--bg);
}

.craft-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 90px;
}

.craft-statement {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 2.1;
  letter-spacing: .12em;
  position: relative;
  padding-left: 28px;
}

.craft-statement::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--amber);
}

.craft-text {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 2.3;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.craft-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 36px 48px;
  position: relative;
  transition: background .4s;
}

.craft-item:hover {
  background: rgba(255, 255, 255, .06);
}

.craft-num {
  display: block;
  font-family: var(--en);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .3em;
  color: var(--amber);
  margin-bottom: 22px;
}

.craft-num::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--line-strong);
  margin-top: 14px;
}

.craft-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .12em;
  margin-bottom: 16px;
}

.craft-item p {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 2.1;
}

/* 数字バー */
.fact-bar {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 54px;
  gap: 20px;
}

.fact-num {
  display: block;
  font-family: var(--en);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.2;
  color: var(--text);
}

.fact-num small {
  font-size: .45em;
  color: var(--amber);
  margin-left: 4px;
}

.fact-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--text-sub);
}

/* ============================================
   箱物板金（専門分野）
============================================ */
.hako-note {
  text-align: center;
  font-size: 14px;
  line-height: 2.1;
  color: var(--amber);
  border: 1px solid rgba(217, 164, 65, .35);
  background: rgba(217, 164, 65, .06);
  padding: 18px 28px;
  max-width: 860px;
  margin: 0 auto 60px;
}

.hako-grid {
  display: grid;
  /* カード数はページによって4〜5枚と違う。列数を固定すると5枚目だけが次の行に
     取り残され、狭い画面では列が縮まずに横へはみ出すため、幅で列数を決める。 */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 26px;
}

/* 5項目の設備カテゴリ用。5列に詰めると見出しが語中で折り返すため、3列で2行に送る。 */
.hako-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.hako-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .35s, transform .35s;
}

.hako-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
}

.hako-card figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hako-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.97);
  transition: transform .7s cubic-bezier(.22, .61, .36, 1), filter .5s;
}

.hako-card:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

.hako-body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hako-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: .08em;
  line-height: 1.6;
  margin-bottom: 12px;
  text-wrap: balance;
}

.hako-body p {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 2;
  flex: 1;
  margin-bottom: 18px;
}

.hako-body .link-arrow {
  align-self: flex-end;
  font-size: 11.5px;
  padding-right: 36px;
}

.hako-card:hover .link-arrow::after {
  width: 30px;
}

/* ============================================
   加工サービス
============================================ */
.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: center;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
  transition: background .4s;
}

.service-row:hover {
  background: rgba(38, 40, 67, .03);
}

.service-row:nth-child(even) {
  grid-template-columns: 1fr 420px;
}

.service-row:nth-child(even) .service-photo {
  order: 2;
}

.service-photo {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.03) brightness(.98);
  transition: transform .8s cubic-bezier(.22, .61, .36, 1), filter .5s;
}

.service-row:hover .service-photo img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.05) brightness(1);
}

.service-num {
  display: block;
  font-family: var(--en);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .3em;
  color: var(--amber);
  margin-bottom: 18px;
}

.service-text h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 2.2vw, 27px);
  letter-spacing: .12em;
  margin-bottom: 18px;
  line-height: 1.6;
}

.service-en {
  display: block;
  font-family: var(--en);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--text-sub);
  margin-top: 8px;
}

.service-text p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 2.2;
  margin-bottom: 26px;
  max-width: 34em;
}

.service-row:hover .link-arrow::after {
  width: 48px;
}

/* かねよしグループ帯 */
.group-strip {
  margin-top: 70px;
  border: 1px solid var(--line-strong);
  padding: 44px 48px;
  text-align: center;
  position: relative;
}

.group-strip::before {
  content: "GROUP SYNERGY";
  /* 枠の上にのせるラベルなので、狭い画面でも2行に割らない */
  white-space: nowrap;
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 18px;
  font-family: var(--en);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--amber);
}

.group-strip-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .12em;
  margin-bottom: 16px;
}

.group-strip > p:not(.group-strip-title) {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 2.2;
  max-width: 46em;
  margin: 0 auto 30px;
}

/* ============================================
   製品事例
============================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.works-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}

.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) brightness(.96);
  transition: transform .8s cubic-bezier(.22, .61, .36, 1), filter .5s;
}

.works-item:hover img {
  transform: scale(1.07);
  filter: saturate(1) brightness(1);
}

.works-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(14, 14, 16, .82) 100%);
}

.works-caption {
  position: absolute;
  left: 22px;
  bottom: 16px;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
}

.works-caption::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 10px;
}

/* ============================================
   設備紹介
============================================ */
.facility-wrap {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 80px;
  align-items: center;
}

.facility-photo {
  position: relative;
}

.facility-photo::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 1px solid var(--line-strong);
  z-index: 0;
}

.facility-photo img {
  position: relative;
  z-index: 1;
  filter: saturate(.92) brightness(1);
}

.facility-text .sec-head {
  margin-bottom: 34px;
}

.facility-text > p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 2.3;
  margin-bottom: 34px;
}

.facility-digest {
  border-top: 1px solid var(--line);
  margin-bottom: 44px;
}

.facility-digest > div {
  display: flex;
  gap: 24px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.facility-digest dt {
  width: 10em;
  flex-shrink: 0;
  color: var(--amber);
  letter-spacing: .1em;
}

.facility-digest dd {
  color: var(--text);
}

/* ============================================
   会社情報
============================================ */
/* 概要と地図を横並びにする幅を確保するため、見出しは上段に置く */
.company-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}

.company-wrap .sec-head {
  margin-bottom: 0;
}

.company-copy {
  font-size: 16px;
  line-height: 2.2;
  margin-bottom: 40px;
}

.company-info {
  border-top: 1px solid var(--line);
  margin-bottom: 44px;
}

.company-info > div {
  display: flex;
  gap: 28px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

/* 先頭のspanだけが項目名。本文側で改行制御のspanを使えるようにする */
.company-info > div > span:first-child {
  width: 8em;
  flex-shrink: 0;
  color: var(--text-sub);
  letter-spacing: .12em;
}

/* ============================================
   お知らせ
============================================ */
.news-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

/* メインビジュアル直下に置く帯。主役の内容が下がりすぎないよう上下を詰める。 */
.news-top {
  padding: 74px 0;
}

.news-wrap .sec-head {
  margin-bottom: 0;
}

.news-list {
  border-top: 1px solid var(--line);
}

/* 公開記事がないときの表示。一覧の1行と同じ高さ・罫線に合わせる */
.news-empty {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
  font-size: 14px;
  color: var(--text-sub);
}

.news-list a {
  display: flex;
  align-items: baseline;
  gap: 36px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}

.news-list a:hover {
  background: rgba(255, 255, 255, .03);
}

.news-list time {
  font-family: var(--en);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--amber);
  flex-shrink: 0;
}

.news-title {
  font-size: 15px;
  letter-spacing: .08em;
}

/* ============================================
   お問い合わせCTA
============================================ */
.cta {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.98) saturate(.72);
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 19, .74);
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: 0 40px;
}

.cta-lead {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 42px);
  letter-spacing: .14em;
  margin-bottom: 20px;
  text-wrap: balance;
}

/* 広い幅では1行に収まるので改行しない */
.cta-lead br {
  display: none;
}

.cta-text {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 54px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.cta-tel {
  font-family: var(--en);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: .06em;
  line-height: 1.3;
}

.cta-tel small {
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--amber);
  margin-right: 14px;
  vertical-align: 6px;
}

.cta-tel span {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--text-sub);
  margin-top: 6px;
}

/* ============================================
   フッター
============================================ */
.site-footer {
  background: #161619;
  border-top: 1px solid var(--line);
  padding-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 70px;
}

.footer-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .14em;
}

.footer-logo small {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: .2em;
  margin-bottom: 4px;
}

.footer-en {
  font-family: var(--en);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--text-sub);
  margin: 10px 0 26px;
}

.footer-brand address {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2.2;
}

/* フッターサイトマップ */
.footer-nav {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.fnav-head {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--text);
  margin-bottom: 10px;
}

.fnav-head + .fnav-head {
  margin-top: 22px;
}

.fnav-col ul + .fnav-head {
  margin-top: 26px;
}

.fnav-head a {
  transition: color .3s;
}

.fnav-head a:hover {
  color: var(--amber);
}

.fnav-col ul li a {
  display: block;
  position: relative;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text-sub);
  padding: 5px 0 5px 18px;
  transition: color .3s;
}

.fnav-col ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--line-strong);
  transition: background .3s;
}

.fnav-col ul li a:hover {
  color: var(--amber);
}

.fnav-col ul li a:hover::before {
  background: var(--amber);
}

.copyright {
  text-align: center;
  font-family: var(--en);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .3em;
  color: #78746a;
  border-top: 1px solid var(--line);
  padding: 22px 20px;
}

/* ============================================
   レスポンシブ：ナビゲーション（〜1220px）
============================================ */
@media (max-width: 1220px) {
  /* backdrop-filterはfixedの包含ブロックを作り
     全画面メニューがヘッダー内に閉じ込められるため無効化 */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 249, 246, .97);
  }

  /* ハンバーガー */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    width: 46px;
    height: 46px;
    padding: 10px;
    cursor: pointer;
    z-index: 120;
    position: relative;
  }

  .nav-toggle span {
    display: block;
    height: 1px;
    background: var(--text);
    transition: transform .35s, background .35s;
  }

  .nav-toggle-check:checked ~ .nav-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(24deg);
  }

  .nav-toggle-check:checked ~ .nav-toggle span:nth-child(2) {
    transform: translateY(-5px) rotate(-24deg);
  }

  /* 全画面オーバーレイ */
  .global-nav {
    position: fixed;
    inset: 0;
    background: #f5f4ef;
    display: block;
    padding: 110px 8vw 70px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    /* 閉じている間はタップを一切受けない（背面のページを操作できるようにする） */
    pointer-events: none;
    transition: opacity .4s, visibility .4s;
  }

  .nav-toggle-check:checked ~ .global-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
  }

  .nav-list > li > a {
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 16px;
    height: auto;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list .nav-en {
    font-size: 17px;
  }

  .nav-list .nav-jp {
    font-size: 12px;
  }

  .has-drop > a .nav-en::after {
    display: none;
  }

  /* ドロップダウンは展開表示。visibilityはメニュー本体から継承させ、
     閉じているときに子だけが当たり判定を持つ状態を作らない */
  .drop {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: inherit;
    transform: none;
    transition: none;
    background: transparent;
    border: none;
    padding: 4px 0 14px 20px;
  }

  /* PC用の中央寄せ（translate(-50%)）を打ち消す。
     タップすると hover/focus が付き、サブメニューが幅の半分だけ左へ動いてしまう */
  .has-drop:hover .drop,
  .has-drop:focus-within .drop {
    transform: none;
  }

  .drop li + li {
    border: none;
  }

  .drop a {
    padding: 8px 4px;
    font-size: 13.5px;
  }

  .drop a:hover {
    background: transparent;
    padding-left: 8px;
  }

  .nav-contact {
    display: flex;
    width: fit-content;
    margin: 36px auto 0;
    padding: 13px 56px;
  }
}

/* ============================================
   レスポンシブ：レイアウト
============================================ */
@media (max-width: 1080px) {
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-row:nth-child(even) .service-photo {
    order: 0;
  }

  .company-wrap,
  .news-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .wrap {
    padding: 0 24px;
  }

  .sec {
    padding: 90px 0;
  }

  /* 100vh固定＋上下中央では、内容が画面より高くなったときに上下へ均等にはみ出し、
     キャッチコピーがヘッダーの裏に隠れる。内容に応じて伸びる高さにする */
  .hero {
    height: auto;
    min-height: 100vh;
  }

  .hero-vertical {
    display: none;
  }

  .hero-sub br {
    display: none;
  }

  /* 狭い画面ではリード文が改行を外して縦に伸びる。中央寄せのままだと
     左下の SCROLL 表示に重なるため、行間を詰めて下余白を確保する。 */
  .hero-sub {
    line-height: 2.1;
  }

  /* ヘッダーの高さ＋余白を必ず確保する */
  .hero-inner {
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 150px;
  }

  .hero-en {
    font-size: 11px;
    letter-spacing: .3em;
  }

  .hero-en span {
    display: block;
    margin: 10px 0 0;
    padding: 0;
    border: none;
  }

  /* SCROLL表示は右下へ */
  .scroll-line {
    left: auto;
    right: 24px;
  }

  .craft-lead {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 60px;
  }

  .craft-grid {
    grid-template-columns: 1fr;
    border-left: none;
    border-top: none;
  }

  .craft-item {
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: none;
    padding: 36px 8px;
  }

  .craft-grid .craft-item:last-child {
    border-bottom: 1px solid var(--line);
  }

  .fact-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
    margin-top: 60px;
  }

  .service-row {
    padding: 40px 0;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hako-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .facility-wrap {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .facility-photo::before {
    inset: 16px -16px -16px 16px;
  }

  .cta {
    padding: 100px 0;
  }

  .cta-actions {
    flex-direction: column;
    gap: 36px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 48px;
  }

  .footer-nav {
    gap: 36px 44px;
  }
}

@media (max-width: 520px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .hako-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .news-list a {
    flex-direction: column;
    gap: 4px;
  }

  .cta-tel {
    font-size: 32px;
  }

  /* スマホでは「図面一枚から、」で折る。
     text-wrap:balance が効かないブラウザでも改行位置を揃えるため明示する */
  .cta-lead br {
    display: inline;
  }

  /* スマホだけで効かせる改行（注記を「だからこそ、」の前で折る） */
  .sp-only {
    display: inline;
  }

  /* 項目名の幅が広いままだと値の行が極端に短くなり、行末がばらつく */
  .company-info > div {
    gap: 16px;
  }

  .company-info > div > span:first-child {
    width: 5.5em;
  }

  /* 枠の内側の余白が広いままだと、中のボタンが2行になる */
  .group-strip {
    padding: 34px 20px;
  }

  /* 「グループの強みを見る」が「を見る」だけ2行目に落ちるのを防ぐ。
     左右の余白を詰めて1行に収める（右側は矢印の分だけ残す） */
  .btn-line {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 60px;
  }

  /* 左右の余白が大きいままだと狭い端末でラベルが2行になるため、
     横幅いっぱいのボタンにして1行で表示する（フォームの送信ボタンは対象外） */
  .cta-actions .btn-fill {
    display: block;
    width: 100%;
    max-width: 360px;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
    white-space: nowrap;
  }

  .footer-nav {
    flex-direction: column;
    gap: 30px;
  }
}

/* ============================================
   下層ページ共通
============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 70px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  filter: brightness(.98) saturate(.82);
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 20, 23, .72), rgba(27, 27, 30, .94));
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--text-sub);
  margin-bottom: 34px;
}

.breadcrumb a {
  color: var(--text-sub);
  transition: color .3s;
}

.breadcrumb a:hover {
  color: var(--amber);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: rgba(255, 255, 255, .25);
}

.page-hero .sec-en {
  margin-bottom: 10px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: .12em;
  line-height: 1.5;
}

/* 狭い画面で語句の途中で折り返さないよう、意味の区切りで改行させる。 */
.page-title span,
.page-sub span {
  display: inline-block;
}

.page-sub {
  margin-top: 18px;
  font-size: 16px;
  color: rgba(232, 229, 223, .85);
  line-height: 2.2;
}

/* 本文 */
.page-body {
  padding: 90px 0 110px;
}

.page-body .sec-inner + .sec-inner {
  margin-top: 100px;
}

.lead-block {
  text-align: center;
  margin-bottom: 70px;
}

.lead-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .12em;
  line-height: 1.9;
  margin-bottom: 24px;
  text-wrap: balance;
}

.lead-text {
  color: var(--text-sub);
  font-size: 16px;
  line-height: 2.2;
  max-width: 46em;
  margin: 0 auto;
  text-align: left;
}

/* 経営理念。セクション末尾に置くため下余白だけ詰める。配置は他ページのリードと同じ中央寄せ。 */
.creed .lead-block {
  margin-bottom: 0;
}

/* 狭い画面で語句の途中で折り返さないよう、意味の区切りで改行させる。 */
.creed .lead-title span {
  display: inline-block;
}

/* 中央揃えでは行末に数文字だけ残ると目立つため、行の長さを均す。 */
.creed .lead-text {
  text-align: center;
  text-wrap: balance;
}

.creed .lead-text + .lead-text {
  margin-top: 1.8em;
}

/* 見出し（本文内） */
.h-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: .12em;
  line-height: 1.6;
  padding-left: 22px;
  border-left: 3px solid var(--amber);
  margin-bottom: 34px;
}

/* 画像＋テキスト行 */
.media-row {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.media-row.reverse {
  grid-template-columns: 1fr 460px;
}

.media-row.reverse .media-photo {
  order: 2;
}

.media-photo {
  overflow: hidden;
}

.media-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.92) brightness(1);
}

/* 見出しの階層をh1→h2にそろえたため、h2でもh3でも同じ体裁にする */
.media-text h2,
.media-text h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: .12em;
  line-height: 1.7;
  margin-bottom: 18px;
}

.media-text .m-en {
  display: block;
  font-family: var(--en);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--amber);
  margin-bottom: 12px;
}

.media-text p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 2.3;
}

/* チェックリスト */
.check-list {
  margin-top: 22px;
}

.check-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14.5px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--amber);
}

/* データ表 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

/* 管理画面のテーブルブロックは figure が外側に付き、クラスもそちらに乗る。
   中の table に同じ体裁を渡す。 */
figure.data-table {
  margin: 0;
}

figure.data-table > table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}

/* 語句単位で改行すると「最小幅＝一番長い語句」になり列幅の配分が崩れる。
   列幅を指定どおりに固定して、語句単位の改行を使えるようにする */
.data-table,
figure.data-table > table {
  table-layout: fixed;
}

.data-table th {
  background: rgba(255, 255, 255, .04);
  color: var(--amber);
  font-weight: 500;
  letter-spacing: .1em;
  width: 220px;
  white-space: nowrap;
}

.table-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-sub);
}

/* 規約文 */
.policy-text {
  color: var(--text-sub);
  font-size: 16px;
  line-height: 2.2;
}

.policy-text + .policy-text,
.policy-text + .policy-list,
.policy-list + .policy-text {
  margin-top: 1.4em;
}

.policy-list {
  counter-reset: policy-item;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 2.2;
}

.policy-list > li {
  position: relative;
  counter-increment: policy-item;
  padding-left: 2.1em;
}

.policy-list > li + li {
  margin-top: 1.2em;
}

.policy-list > li::before {
  content: counter(policy-item) ".";
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* 入れ子の項は原文どおり「(1)」で表記する。階層が深くなっても体裁はそろえる。 */
.policy-list ol {
  counter-reset: policy-sub;
  margin-top: .7em;
}

.policy-list ol > li {
  position: relative;
  counter-increment: policy-sub;
  padding-left: 2.6em;
}

.policy-list ol > li + li {
  margin-top: .4em;
}

.policy-list ol > li::before {
  content: "(" counter(policy-sub) ")";
  position: absolute;
  left: .2em;
}

/* お知らせ本文。管理画面で入力した段落・見出し・リストを読みやすく整える。 */
.article-body {
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-sub);
  max-width: 46em;
}

.article-body > * + * {
  margin-top: 1.6em;
}

.article-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .08em;
  line-height: 1.8;
  color: var(--text);
  margin-top: 2.4em;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-top: 2em;
}

.article-body a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
}

.article-body ul li {
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

.article-body li + li {
  margin-top: .5em;
}

.article-body blockquote {
  border-left: 3px solid var(--line-strong);
  padding-left: 22px;
}

/* お知らせ一覧のページ送り。 */
.pagination {
  margin-top: 40px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .1em;
}

.pagination .page-numbers {
  border: 1px solid var(--line);
  padding: 9px 15px;
  transition: border-color .3s, color .3s;
}

.pagination a.page-numbers:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.pagination .page-numbers.current {
  border-color: var(--amber);
  background: var(--amber);
  color: #fff;
}

/* 個人情報保護管理者の窓口。原文の罫線囲みを枠線で置き換える。 */
.policy-contact {
  margin-top: 1.6em;
  border: 1px solid var(--line);
  padding: 26px 30px;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--text-sub);
}

/* 関連リンク */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.related-card {
  border: 1px solid var(--line);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .1em;
  transition: border-color .3s, background .3s;
}

.related-card::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
  flex-shrink: 0;
  transition: width .3s;
}

.related-card:hover {
  border-color: var(--amber);
  background: rgba(217, 164, 65, .05);
}

.related-card:hover::after {
  width: 34px;
}

/* 手順ステップ */
.steps {
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 0 0 46px 74px;
  counter-increment: step;
}

.steps > li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--en);
  font-weight: 400;
  font-size: 24px;
  color: var(--amber);
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 10px;
  width: 1px;
  background: var(--line-strong);
}

.steps h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.steps p {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 2.1;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 26px 44px 26px 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .06em;
  position: relative;
  transition: color .3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  font-family: var(--en);
  font-size: 18px;
  color: var(--amber);
  flex-shrink: 0;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item summary:hover {
  color: var(--amber);
}

.faq-a {
  display: flex;
  gap: 20px;
  padding: 0 44px 28px 4px;
}

.faq-a::before {
  content: "A";
  font-family: var(--en);
  font-size: 18px;
  color: var(--text-sub);
  flex-shrink: 0;
}

.faq-a p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 2.2;
}

/* フォーム */
.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table th,
.form-table td {
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.form-table th {
  width: 230px;
  font-weight: 500;
  letter-spacing: .1em;
  padding-top: 30px;
  white-space: nowrap;
}

.req {
  display: inline-block;
  font-size: 11px;
  color: #0e0e0e;
  background: var(--amber);
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: 2px;
}

.form-table input[type="text"],
.form-table input[type="tel"],
.form-table input[type="email"],
.form-table select,
.form-table textarea {
  width: 100%;
  background-color: #2a2a2e;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 16px;
  letter-spacing: .05em;
}

.form-table textarea {
  min-height: 170px;
  resize: vertical;
}

.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
  outline: 1px solid var(--amber);
  border-color: var(--amber);
}

.form-submit {
  text-align: center;
  margin-top: 44px;
}

/* 送信ボタンの下に置く注意書き。ボタンと同じく中央に寄せる。 */
.form-note {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  line-height: 2;
}

.form-submit button {
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}

/* Googleマップの埋め込み枠。読み込み中も高さが変わらないよう比率で確保する */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  background: rgba(30, 25, 15, .03);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* トップページの会社情報欄と、会社概要の表に続けて置く地図の余白 */
.company-body .map-embed {
  margin-bottom: 44px;
}

.data-table + .map-embed {
  margin-top: 34px;
}

/* トップページの会社情報：左に概要、右に地図の2カラム（1カラムに折り返す幅は会社情報欄と同じ1080px） */
@media (min-width: 1081px) {
  .company-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
  }

  .company-copy,
  .company-info,
  .company-body .btn-line {
    grid-column: 1;
  }

  /* グリッド項目になってもボタンは文字幅のまま */
  .company-body .btn-line {
    justify-self: start;
  }

  /* 比率ではなく左列（概要＋表＋ボタン）の高さに合わせて下端を揃える */
  .company-body .map-embed {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 360px;
    margin-bottom: 0;
  }
}

/* 地図プレースホルダ */
.map-box {
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .02);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 13.5px;
  letter-spacing: .2em;
}

/* サブページ レスポンシブ */
@media (max-width: 1080px) {
  .media-row,
  .media-row.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 70px;
  }

  .media-row.reverse .media-photo {
    order: 0;
  }
}

@media (max-width: 860px) {
  .page-hero {
    padding: calc(var(--header-h) + 60px) 0 50px;
  }

  .page-body {
    padding: 70px 0 80px;
  }

  .page-body .sec-inner + .sec-inner {
    margin-top: 70px;
  }

  /* 「お問い合わせ」の「せ」だけが次の行に落ちないよう、
     見出し語の列は少し広げて左右の余白を詰める */
  .data-table th {
    width: 156px;
    white-space: normal;
  }

  .data-table th,
  .data-table td {
    padding: 14px 12px;
  }

  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .form-table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* iOSは16px未満の入力欄をタップすると画面を勝手に拡大するため、
     スマホでは16pxにして拡大を起こさせない */
  .form-table input[type="text"],
  .form-table input[type="tel"],
  .form-table input[type="email"],
  .form-table select,
  .form-table textarea {
    font-size: 16px;
  }
}

/* ラベルなしの枠（お問い合わせ電話ブロック等） */
.group-strip.no-label::before {
  content: none;
}

/* ============================================
   ライトセクション（明るい背景エリア）
============================================ */
.light {
  background: #fdfdfb;
  color: #272b41;
}

.light .sec-en {
  color: var(--amber-deep);
}

.light .sec-desc,
.light .lead-text,
.light .media-text p,
.light .steps p,
.light .faq-a p,
.light .facility-text > p,
.light .hako-body p,
.light .craft-item p,
.light .policy-text,
.light .policy-list,
.light .policy-contact,
.light .article-body,
.light .group-strip > p:not(.group-strip-title) {
  color: #5b564e;
}

.light .hako-note {
  color: #8a6210;
  border-color: rgba(184, 133, 42, .45);
  background: rgba(226, 172, 75, .12);
}

.light .hako-card {
  background: #fff;
  border-color: #e2e1d8;
}

.light .hako-card:hover {
  border-color: var(--amber-deep);
  box-shadow: 0 14px 32px rgba(60, 50, 20, .14);
}

.light .link-arrow {
  color: var(--amber-deep);
}

.light .link-arrow::after {
  background: var(--amber-deep);
}

.light .btn-line {
  color: #29261f;
  border-color: rgba(30, 25, 15, .35);
}

.light .h-line {
  border-left-color: var(--amber-deep);
}

.light .data-table th,
.light .data-table td {
  border-color: rgba(30, 25, 15, .16);
}

.light .data-table th {
  background: rgba(30, 25, 15, .05);
  color: var(--amber-deep);
}

.light .table-note {
  color: #8a857a;
}

.light .check-list li {
  color: #272b41;
  border-bottom-color: rgba(38, 40, 67, .12);
}

.light .check-list li::before {
  background: var(--amber-deep);
}

.light .related-card {
  border-color: rgba(30, 25, 15, .2);
  background: #fff;
}

.light .related-card::after {
  background: var(--amber-deep);
}

.light .related-card:hover {
  border-color: var(--amber-deep);
  background: rgba(184, 133, 42, .07);
}

.light .steps > li::before {
  color: var(--amber-deep);
}

.light .steps > li:not(:last-child)::after {
  background: rgba(30, 25, 15, .22);
}

.light .faq-item {
  border-bottom-color: rgba(30, 25, 15, .16);
}

.light .faq-item summary::before,
.light .faq-item summary:hover {
  color: var(--amber-deep);
}

.light .faq-item summary::after {
  border-right-color: var(--amber-deep);
  border-bottom-color: var(--amber-deep);
}

.light .faq-a::before {
  color: #8a857a;
}

.light .media-text .m-en {
  color: var(--amber-deep);
}

.light .form-table th,
.light .form-table td {
  border-bottom-color: rgba(30, 25, 15, .16);
}

.light .form-table input[type="text"],
.light .form-table input[type="tel"],
.light .form-table input[type="email"],
.light .form-table select,
.light .form-table textarea {
  background-color: #fff;
  border-color: rgba(30, 25, 15, .28);
  color: #29261f;
}

.light .form-table input:focus,
.light .form-table select:focus,
.light .form-table textarea:focus {
  outline: 1px solid var(--amber-deep);
  border-color: var(--amber-deep);
}

/* プルダウンの矢印。ブラウザ標準の矢印は枠のすぐ内側に固定で描かれ、
   padding-right では動かせないため、自前の矢印に置き換えて右の余白をとる。 */
.form-table select {
  -webkit-appearance: none;
  appearance: none;
  /* 標準の見た目を外すと行の高さが縮み、他の入力欄と高さがそろわなくなる */
  line-height: 21px;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23e8e5df' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 11px 7px;
}

.light .form-table select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2329261f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.light .map-box {
  border-color: rgba(30, 25, 15, .3);
  background: rgba(30, 25, 15, .03);
  color: #8a857a;
}

.light .group-strip {
  border-color: rgba(30, 25, 15, .28);
  background: #fff;
}

.light .group-strip::before {
  background: #fdfdfb;
  color: var(--amber-deep);
}

.light .news-list,
.light .news-list a {
  border-color: rgba(30, 25, 15, .14);
}

.light .news-list a:hover {
  background: rgba(30, 25, 15, .04);
}

.light .news-list time {
  color: var(--amber-deep);
}

.light .facility-digest,
.light .facility-digest > div {
  border-color: rgba(30, 25, 15, .16);
}

.light .facility-digest dt {
  color: var(--amber-deep);
}

.light .facility-digest dd {
  color: #29261f;
}

.light .facility-photo::before {
  border-color: rgba(30, 25, 15, .28);
}


/* ============================================
   カラー配色版の補正（藍 × 朱）
============================================ */
/* ヒーロー: 紙に藍墨の文字 */
.hero-lead {
  color: var(--text);
  text-shadow: none;
}

.hero-sub {
  color: #494e66;
  text-shadow: none;
}

.hero-vertical {
  color: rgba(39, 43, 65, .8);
  border-right-color: rgba(38, 40, 67, .3);
}

.hero-en {
  color: var(--text-sub);
}

.hero-en span {
  color: var(--amber);
  border-left-color: rgba(38, 40, 67, .3);
}

.scroll-line {
  color: #8b8fa0;
}

.scroll-line::after {
  background: linear-gradient(#8b8fa0, transparent);
}

/* 職人のこだわり: 藍色のパネルに反転 */
.craft {
  background: #262843;
  color: #f2f1ec;
}

.craft .sec-en {
  color: #f2764f;
}

.craft .craft-text {
  color: #b7bacb;
}

.craft .craft-statement::before {
  background: #f2764f;
}

.craft .craft-grid {
  border-top-color: rgba(255, 255, 255, .16);
  border-left-color: rgba(255, 255, 255, .16);
}

.craft .craft-item {
  border-right-color: rgba(255, 255, 255, .16);
  border-bottom-color: rgba(255, 255, 255, .16);
}

.craft .craft-num {
  color: #f2764f;
}

.craft .craft-num::after {
  background: rgba(255, 255, 255, .3);
}

.craft .craft-item p {
  color: #b7bacb;
}

.craft .fact-bar {
  border-top-color: rgba(255, 255, 255, .16);
}

.craft .fact-num {
  color: #fff;
}

.craft .fact-num small {
  color: #f2764f;
}

.craft .fact-label {
  color: #a4a8bb;
}

/* 注意書きは藍トーンに（警告色に見えないように） */
.hako-note,
.light .hako-note {
  color: #3c415f;
  border-color: rgba(38, 40, 67, .3);
  background: rgba(38, 40, 67, .05);
}

/* 塗りボタン: 朱 × 白文字 */
.btn-fill {
  background: var(--amber);
  color: #fff;
}

.btn-fill:hover {
  background: #ef6038;
}

.btn-line:hover {
  color: #fff;
  background: var(--amber);
  border-color: var(--amber);
}

.nav-contact:hover .nav-en,
.nav-contact:hover .nav-jp {
  color: #fff;
}

.req {
  color: #fff;
}

/* CTA帯: 写真に藍のオーバーレイ */
.cta {
  color: #f4f3ee;
}

.cta-bg::after {
  background: rgba(31, 33, 56, .86);
}

.cta .sec-en {
  color: #f2764f;
}

.cta .cta-text {
  color: #bfc2d1;
}

/* フッター: 藍 */
.site-footer {
  background: #1f2138;
  color: #eceadf;
  border-top: none;
}

.site-footer .footer-logo small,
.site-footer .footer-en,
.site-footer .footer-brand address,
.site-footer .fnav-col ul li a {
  color: #9599ad;
}

.site-footer .fnav-head {
  color: #eceadf;
}

.site-footer .fnav-head a:hover,
.site-footer .fnav-col ul li a:hover {
  color: #f2764f;
}

.site-footer .fnav-col ul li a::before {
  background: rgba(255, 255, 255, .3);
}

.site-footer .copyright {
  border-top-color: rgba(255, 255, 255, .12);
  color: #767a90;
}

/* 下層ページのヒーロー: トップと同じ「紙に藍墨」の見せ方に合わせる */
.page-hero-bg {
  background-position: center 40%;
  filter: brightness(1.02) saturate(.85) contrast(1.03);
}

/* 見出しが乗る左側は紙をほぼ不透明にし、写真は右側に残す。
   写真の輪郭が文字に重なると、輝度差があっても読みにくくなるため。 */
.page-hero-bg::after {
  background:
    linear-gradient(90deg, rgba(246, 245, 241, .97) 0%, rgba(246, 245, 241, .93) 48%, rgba(246, 245, 241, .6) 78%, rgba(246, 245, 241, .2) 100%),
    linear-gradient(rgba(246, 245, 241, .5) 0%, rgba(246, 245, 241, .3) 45%, rgba(253, 253, 251, 1) 100%);
}

.page-title {
  color: var(--text);
}

.page-sub {
  color: #3f4459;
}

.breadcrumb,
.breadcrumb a {
  color: #4a4f66;
}

.breadcrumb li:not(:last-child)::after {
  color: rgba(38, 40, 67, .45);
}

/* 製品事例のキャプションは写真下端の暗い覆いに重ねるため、白抜きのままにする */
.works-caption {
  color: #f4f3ee;
}

/* 幅が狭い端末では文字が写真の上まで伸びるため、紙の面を広くとる */
@media (max-width: 860px) {
  .page-hero-bg::after {
    background:
      linear-gradient(90deg, rgba(246, 245, 241, .96) 0%, rgba(246, 245, 241, .88) 55%, rgba(246, 245, 241, .66) 100%),
      linear-gradient(rgba(246, 245, 241, .5) 0%, rgba(246, 245, 241, .3) 40%, rgba(253, 253, 251, 1) 100%);
  }
}
