/* =========================================================
   株式会社ワップ コーポレートサイト 共通スタイル
   テーマ: 青系・信頼感・モダンすぎない誠実なデザイン
   ========================================================= */

:root {
  --navy:      #0d3b66;
  --navy-deep: #092c4d;
  --blue:      #1d5b94;
  --blue-mid:  #2e7cc4;
  --accent:    #3a86c8;
  --sky:       #eaf2fa;
  --sky-2:     #f3f7fb;
  --ink:       #1f2a37;
  --muted:     #5b6878;
  --line:      #e2e8f0;
  --white:     #ffffff;
  --gold:      #c9a14a; /* 30年の実績を表す上品なアクセント */
  --shadow:    0 10px 30px rgba(13, 59, 102, .08);
  --shadow-sm: 0 4px 14px rgba(13, 59, 102, .07);
  --radius:    10px;
  --maxw:      1120px;
  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: .2s; }
a:hover { color: var(--blue-mid); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand .brand-name { font-weight: 700; color: var(--navy); letter-spacing: .04em; font-size: 15px; }
.brand .brand-sub { display:block; font-size: 10px; color: var(--muted); letter-spacing:.18em; font-weight:500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .has-menu > a {
  position: relative;
  padding: 10px 16px; color: var(--ink); font-weight: 600; font-size: 14.5px;
  border-radius: 8px; font-family: var(--sans);
}
.nav > a:hover, .nav .has-menu > a:hover { background: var(--sky); color: var(--navy); }

/* ドロップダウン */
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s;
}
.has-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.dropdown a:hover { background: var(--sky); color: var(--navy); }
.dropdown .dd-group { font-size: 11.5px; color: var(--blue-mid); font-weight: 700; letter-spacing:.1em; padding: 10px 14px 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff !important; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 6px 16px rgba(13,59,102,.22); transition: .2s;
}
.btn:hover { background: var(--blue); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy) !important; border: 1.5px solid var(--navy); box-shadow:none; }
.btn--ghost:hover { background: var(--navy); color:#fff !important; }
.btn--lg { padding: 15px 32px; font-size: 15.5px; }
/* CTAバンド内の白ボタン（.btn の color:#fff !important を上書きして視認性を確保） */
.cta-band .btn { background:#fff !important; color: var(--navy) !important; }
.cta-band .btn:hover { background: var(--sky) !important; }

.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(1200px 500px at 78% -8%, rgba(58,134,200,.55), transparent 60%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 48%, var(--blue) 100%);
  overflow: hidden;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent);
  opacity:.5;
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 760px; }
.hero .eyebrow {
  display:inline-block; font-size: 13px; letter-spacing:.22em; font-weight: 700;
  color: #bcd8f2; border-left: 3px solid var(--gold); padding-left: 12px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 50px); line-height: 1.45; margin: 0 0 22px; letter-spacing: .02em;
}
.hero p { font-size: 17px; color: #d9e6f3; margin: 0 0 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { background:#fff; color: var(--navy) !important; }
.hero-actions .btn:hover { background: var(--sky); }
.hero-actions .btn--ghost { background: transparent; color:#fff !important; border-color: rgba(255,255,255,.7); }
.hero-actions .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- 共通セクション ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow-c {
  display:inline-block; font-size: 12.5px; letter-spacing:.24em; font-weight: 700; color: var(--blue-mid);
  margin-bottom: 14px;
}
.eyebrow-c::before { content:"— "; color: var(--gold); }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); color: var(--navy);
  margin: 0 0 14px; line-height: 1.5; letter-spacing:.02em;
}
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }

.bg-sky { background: var(--sky-2); }

/* ---------- 商品カード ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .22s; display:flex; flex-direction:column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f0; }
.card .thumb {
  height: 220px; background: linear-gradient(160deg,#f5f9fd,#e7f0f9);
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px;
  flex: 0 0 auto;
}
.card .thumb img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(13,59,102,.12)); }
/* 2枚並べるカード（宅配ボックス）は各画像を最大47%幅にして高さを揃える */
.card .thumb.duo img { max-width: 47%; }
/* 2枚を縦に並べるカード（各種コンテナ） */
.card .thumb.duo-v { flex-direction: column; gap: 6px; }
.card .thumb.duo-v img { max-width: 92%; max-height: 47%; }

/* ボックスタイプ一覧（構成図を横に並べる） */
.boxtype-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 6px 0 26px; }
.boxtype-cell { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 8px; text-align: center; }
.boxtype-cell .bt-fig { height: 120px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.boxtype-cell .bt-fig img { max-height: 120px; max-width: 100%; width: auto; }
.boxtype-cell .bt-name { font-weight: 700; color: var(--navy); font-size: 13px; }
.boxtype-cell .bt-box { font-size: 12px; color: var(--blue-mid); font-weight: 700; margin-top: 2px; }
.boxtype-cell .bt-size { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* 小さな補足写真（ダイヤル・受領印など） */
.subfig-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 26px; }
.subfig { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px; text-align: center; max-width: 220px; }
.subfig img { max-height: 130px; max-width: 100%; width: auto; border-radius: 4px; }
.subfig span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* 製品グリッド（防災 各カテゴリー） */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 8px; }
.prod-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.prod-card .pfig { height: 180px; background: linear-gradient(160deg,#f5f9fd,#eef4fa); display: flex; align-items: center; justify-content: center; padding: 14px; }
.prod-card .pfig img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.prod-card .pbody { padding: 14px 16px 18px; }
.prod-card h4 { font-size: 15px; color: var(--navy); margin: 0 0 6px; }
.prod-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.card .body { padding: 20px 20px 22px; flex:1; display:flex; flex-direction:column; }
.card .num { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing:.1em; }
.card h3 { font-size: 17px; color: var(--navy); margin: 6px 0 8px; }
.card p { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; line-height:1.7; flex:1;}
.card .more { font-size: 13.5px; font-weight: 700; color: var(--blue-mid); }
.card .more::after { content: " ›"; }

/* ---------- 強み（3つの特徴） ---------- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.feature { padding: 8px 6px; }
.feature .fnum {
  font-family: var(--serif); font-size: 40px; color: var(--blue-mid); line-height:1;
  opacity:.85; display:block; margin-bottom: 14px;
}
.feature h3 { font-size: 19px; color: var(--navy); margin: 0 0 10px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- 帯CTA ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 120%, rgba(58,134,200,.5), transparent 60%),
    linear-gradient(120deg, var(--navy-deep), var(--blue));
  color:#fff; text-align: center;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(22px,3vw,30px); margin: 0 0 14px; }
.cta-band p { color:#cfe0f1; margin: 0 0 28px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: #c4d4e4; padding: 56px 0 28px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .flogo { height: 30px; filter: invert(1) brightness(2); margin-bottom: 16px; }
.site-footer .fdesc { color:#9fb6cd; line-height: 1.8; }
.site-footer h4 { color:#fff; font-size: 13px; letter-spacing:.12em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color:#c4d4e4; }
.site-footer a:hover { color:#fff; }
.footer-bottom { padding-top: 22px; display:flex; justify-content: space-between; flex-wrap: wrap; gap:10px; color:#7e96ae; font-size:12.5px; }

/* ---------- ページ見出し（下層共通） ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--blue)); color:#fff;
  padding: 64px 0 58px; position:relative; overflow:hidden;
}
.page-hero::after{
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:46px 46px; opacity:.5;
}
.page-hero .inner { position:relative; z-index:1; }
.page-hero .eyebrow { font-size:12.5px; letter-spacing:.24em; color:#bcd8f2; font-weight:700; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(26px,3.6vw,38px); margin: 8px 0 0; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--ink); }

/* ---------- 商品詳細レイアウト ---------- */
.prod-block { padding: 26px 0; }
.cat-label {
  display:inline-flex; align-items:center; gap:10px; font-family:var(--serif);
  font-size: 22px; color: var(--navy); margin: 0 0 4px;
}
.cat-label .tag {
  font-family: var(--sans); font-size: 12px; font-weight:700; color:#fff; background: var(--blue-mid);
  padding: 3px 12px; border-radius: 999px; letter-spacing:.06em;
}
.cat-desc { color: var(--muted); font-size: 15px; margin: 6px 0 30px; }

.prod-item {
  display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center;
  background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 30px;
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.prod-item:nth-child(even) { grid-template-columns: 1fr 360px; }
.prod-item:nth-child(even) .prod-figure { order: 2; }
.prod-figure {
  background: linear-gradient(160deg,#f5f9fd,#e7f0f9); border-radius: 12px; padding: 28px;
  display:grid; place-items:center; aspect-ratio: 4/3.2;
}
.prod-figure img { max-height: 100%; width:auto; filter: drop-shadow(0 10px 20px rgba(13,59,102,.14)); }
.prod-body h3 { font-size: 22px; color: var(--navy); margin: 0 0 6px; font-family: var(--serif); }
.prod-body .lead { color: var(--blue-mid); font-weight:700; font-size: 13.5px; letter-spacing:.06em; margin: 0 0 14px; }
.prod-body p { color: var(--ink); font-size: 14.5px; margin: 0 0 16px; }
.spec { list-style: none; padding: 0; margin: 0; display:grid; gap: 8px; }
.spec li { display:flex; gap: 10px; font-size: 14px; color: var(--muted); }
.spec li::before { content:"✓"; color: var(--blue-mid); font-weight: 700; }

/* ---------- 型番・仕様マトリクス表 ---------- */
.spec-table { width:100%; border-collapse: collapse; margin: 10px 0 26px; font-size: 14px; background:#fff; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; vertical-align: middle; }
.spec-table thead th { background: var(--navy); color:#fff; font-weight: 700; }
.spec-table th[scope="row"] { background: var(--sky-2); color: var(--navy); font-weight: 700; white-space: nowrap; }
.spec-table caption { text-align: left; font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 8px; }
.type-note { color: var(--muted); font-size: 13px; margin: 0 0 26px; }

/* ---------- 会社概要テーブル ---------- */
.info-table { width:100%; border-collapse: collapse; background:#fff; border:1px solid var(--line); border-radius: 12px; overflow:hidden; }
.info-table th, .info-table td { text-align:left; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { background: var(--sky-2); color: var(--navy); font-weight:700; width: 200px; }
.history { display:grid; gap:0; }
.history .row { display:grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 0; border-bottom:1px dashed var(--line); }
.history .row:last-child { border-bottom:0; }
.history .yr { color: var(--blue-mid); font-weight:700; font-size:14.5px; }
.history .ev { color: var(--ink); font-size:14.5px; }

.client-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.client-grid span { background:#fff; border:1px solid var(--line); border-radius:8px; padding:12px 14px; font-size:13.5px; color:var(--muted); text-align:center; }

/* ---------- お問い合わせ ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding: 34px; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size:18px; color:var(--navy); margin:0 0 6px; }
.contact-card .tel { font-family: var(--serif); font-size: 30px; color: var(--navy); font-weight:700; margin: 10px 0 4px; }
.contact-card .note { color: var(--muted); font-size:13.5px; }
.form-field { margin-bottom: 18px; }
.form-field label { display:block; font-weight:700; font-size:14px; color:var(--ink); margin-bottom: 7px; }
.form-field label .req { color:#c0392b; font-size:12px; margin-left:6px; }
.form-field input, .form-field textarea, .form-field select {
  width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius:8px; font-size:15px; font-family:inherit;
  background:#fbfcfe; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline:2px solid var(--accent); border-color: var(--accent); }

/* ---------- 汎用 ---------- */
.center { text-align:center; }
.mt-40 { margin-top: 40px; }
.lead-copy { font-size: 17px; color: var(--ink); line-height: 2; }
.divider { height:1px; background: var(--line); border:0; margin: 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2,1fr); }
  .features { grid-template-columns: 1fr; gap: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: repeat(3,1fr); }
  .prod-item, .prod-item:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .prod-item:nth-child(even) .prod-figure { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left:0; right:0; background:#fff;
    border-bottom:1px solid var(--line); padding: 12px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav.open .dropdown { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; border-left:2px solid var(--sky); margin: 2px 0 6px 12px; padding-left:6px; }
  .nav-toggle {
    display: inline-flex; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy); display:block; }
  .cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .info-table th { width: 120px; padding: 14px; }
  .info-table td { padding: 14px; }
  .history .row { grid-template-columns: 1fr; gap: 2px; }
  .client-grid { grid-template-columns: repeat(2,1fr); }
  section { padding: 60px 0; }
}
