/* =========================================================
   Aqua System (Thailand) 日本語サイト  共通スタイル
   カラー: アクア／ブルー基調
   ========================================================= */

:root {
  --navy: #0b2c5c;
  --blue: #0a66c2;
  --aqua: #0fa3c4;
  --aqua-light: #e6f6fa;
  --sky: #f3f8fc;
  --text: #1d2733;
  --text-soft: #4a5a6a;
  --line: #e1e8ef;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 44, 92, 0.10);
  --shadow-sm: 0 2px 10px rgba(11, 44, 92, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "Meiryo", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
  font-size: 16px;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー / ナビ ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-weight: 600; font-size: .7rem; color: var(--text-soft); letter-spacing: .04em; }
.brand-logo { height: 70px; width: auto; display: block; }

/* 言語切替（国旗） */
.lang-switch { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.lang-switch a { display: inline-flex; padding: 0; border-radius: 4px; line-height: 0; }
.lang-switch a:hover { text-decoration: none; }
.lang-switch img {
  width: 30px; height: 20px; display: block;
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: var(--shadow-sm); opacity: .65; transition: .15s;
}
.lang-switch a:hover img { opacity: 1; transform: translateY(-1px); }
.lang-switch a.active img { opacity: 1; outline: 2px solid var(--blue); outline-offset: 1px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
}
.nav-links a:hover { background: var(--aqua-light); text-decoration: none; }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  margin-left: 8px;
  background: var(--blue) !important;
  color: #fff !important;
}
.nav-cta:hover { background: var(--navy) !important; }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); margin: 5px 0;
  transition: .3s;
}

/* ---------- ヒーロー ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(11,44,92,.86), rgba(15,163,196,.78)),
    url("../assets/hero.svg") center/cover no-repeat,
    linear-gradient(135deg, var(--navy), var(--aqua));
  color: #fff;
}
.hero-inner {
  padding: 88px 20px 96px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.4;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero p { font-size: 1.1rem; max-width: 680px; margin: 0 0 30px; opacity: .96; }
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: var(--aqua-light); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--sky); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--aqua); font-weight: 800; letter-spacing: .14em;
  font-size: .82rem; text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 8px 0 14px; color: var(--navy);
}
.section-head p { color: var(--text-soft); margin: 0; }

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; padding: 56px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.page-hero p { margin: 0; opacity: .9; }
.breadcrumb { font-size: .85rem; opacity: .85; margin-bottom: 14px; }
.breadcrumb a { color: #fff; text-decoration: underline; }

/* ---------- カードグリッド ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--aqua-light); color: var(--blue);
  display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ---------- フロー（3ステップ） ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 26px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin: 10px 0 8px; color: var(--navy); font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-soft); font-size: .94rem; }

/* ---------- 注意ボックス ---------- */
.note {
  background: var(--aqua-light);
  border-left: 5px solid var(--aqua);
  border-radius: 10px;
  padding: 22px 24px;
  color: var(--text);
}
.note strong { color: var(--navy); }

/* ---------- カタログ一覧（言語別サムネイル） ---------- */
.dl-group-title {
  color: var(--navy); font-size: 1.25rem; margin: 0 0 4px;
  display: flex; align-items: center; gap: 10px;
}
.dl-group + .dl-group { margin-top: 52px; }
.dl-list { display: grid; gap: 20px; margin-top: 24px; }

/* 1製品 = カード。中に言語別サムネイルを並べる */
.dl-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm); transition: .2s;
}
.dl-item:hover { box-shadow: var(--shadow); }
.dl-item h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.1rem; }
.dl-item .dl-desc { margin: 0 0 16px; color: var(--text-soft); font-size: .9rem; }

.dl-langs { display: flex; flex-wrap: wrap; gap: 18px; }

/* 言語ごとの表紙サムネイル + ラベル */
.dl-lang { display: flex; flex-direction: column; align-items: center; width: 116px; }
.dl-lang .thumb {
  display: block; line-height: 0; width: 100%;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); transition: .2s;
}
.dl-lang .thumb img {
  width: 100%; height: 158px; object-fit: cover; object-position: top center; display: block;
}
.dl-lang .thumb:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.dl-lang .lang-label {
  margin-top: 8px; font-size: .82rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--aqua-light); color: var(--blue);
}
.dl-lang .lang-label.th { background: #eaf7ee; color: #1f8a4c; }
.dl-lang .lang-label.en { background: #eef2fb; color: #3a4db5; }
.dl-lang .thumb:hover + .lang-label { text-decoration: none; }

/* 特集（Web カタログ）大きめカード */
.dl-feature {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--sky), #fff);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); margin-top: 24px;
}
.dl-feature .thumb { flex: 0 0 auto; line-height: 0; }
.dl-feature .thumb img {
  width: 180px; height: auto; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); transition: .2s;
}
.dl-feature .thumb:hover img { transform: translateY(-3px); }
.dl-feature .dl-feature-body { flex: 1; min-width: 260px; }
.dl-feature h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.4rem; }
.dl-feature p { margin: 0 0 18px; color: var(--text-soft); }

@media (max-width: 760px) {
  .dl-lang { width: calc(50% - 9px); }
  .dl-lang .thumb img { height: 200px; }
}

/* ---------- 製品テーブル風 ---------- */
.product { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.product-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: #fff; box-shadow: var(--shadow-sm);
}
.product-item h3 { color: var(--navy); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.product-item .tag {
  font-size: .72rem; background: var(--aqua-light); color: var(--blue);
  padding: 3px 9px; border-radius: 999px; font-weight: 700;
}
.product-item ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--text-soft); font-size: .93rem; }

/* ---------- フォーム ---------- */
.form-wrap {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 7px; font-size: .94rem; }
.field .req { color: #c0392b; font-size: .8rem; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 9px;
  font: inherit; color: var(--text); background: #fcfdff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-light);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--text-soft); margin-top: 6px; }

/* ---------- 連絡先カード ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { color: var(--navy); margin: 0 0 8px; font-size: 1.05rem; }
.contact-card p { margin: 0 0 4px; color: var(--text-soft); font-size: .94rem; }

/* ---------- CTA 帯 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: #fff; text-align: center; padding: 60px 20px;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: 0 0 26px; opacity: .95; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--navy); color: #cdd8e6; padding: 50px 0 24px; font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer-grid a { color: #cdd8e6; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px; text-align: center; font-size: .82rem; color: #9fb0c4;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .grid-3, .steps, .catalog-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px; gap: 2px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .grid-3, .grid-2, .steps, .catalog-list,
  .product, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 20px; }
  .brand-logo { height: 38px; }
}
