/* 株式会社アモイ産業 デザイン見本 共通スタイル */
:root {
  /* 名刺から取得したコーポレートカラー */
  --brand: #1e2a38;       /* 濃紺（名刺裏面の地色） */
  --brand-deep: #121a24;
  --brand-pale: #ebe6d9;
  --cream: #f4f0e5;       /* 生成り（名刺表面の地色） */
  --gray: #9ea1a6;        /* 石の灰色（ロゴ上面） */
  --accent: #2b9fd8;      /* 差し色：水色（明るい背景用） */
  --accent-light: #6cc3ec;/* 差し色：水色（濃紺背景用） */
  --ink: #18202e;
  --ink-soft: #545b66;
  --stone: #f4f0e5;
  --line: #ddd8cc;
  --white: #fff;
  --radius: 4px;
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* 書体：欧文・数字は Garamond、和文の見出しは游明朝、本文は游ゴシック
   （欧文書体を先に指定すると、英数字だけ Garamond、日本語は次の書体で表示される） */
:root {
  --font-sans: "EB Garamond", Garamond, "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "Hiragino Sans", sans-serif;
  --font-serif: "EB Garamond", Garamond, "游明朝体", YuMincho, "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  color: var(--ink); background: var(--white); line-height: 1.9; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mincho { font-family: var(--font-serif); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { line-height: 1.25; }
.logo-text b { display: block; font-size: 21px; letter-spacing: .12em; }
.logo-text b .kk { font-size: 13px; letter-spacing: .1em; margin-right: .6em; vertical-align: 2px; }
.logo-text small { font-size: 9px; letter-spacing: .3em; color: var(--ink-soft); }
.gnav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.gnav a:not(.btn) { position: relative; padding: 6px 0; }
.gnav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .25s; }
.gnav a:not(.btn):hover::after, .gnav a.is-current::after { width: 100%; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 8px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  border-radius: var(--radius); border: 2px solid var(--brand); transition: .2s; cursor: pointer;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-outline { background: transparent; color: var(--brand-deep); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-white { background: var(--cream); color: var(--brand); border-color: var(--cream); }
.btn-white:hover { background: var(--brand-pale); border-color: var(--brand-pale); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 見出し ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--stone); }
.sec-head { margin-bottom: 56px; }
.sec-head .en { font-size: 13px; letter-spacing: .3em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.5; margin-top: 6px; }
.sec-head p { color: var(--ink-soft); margin-top: 16px; max-width: none; }
.sec-head.center { text-align: center; }
.sec-head.center p { margin-inline: auto; max-width: 860px; }

/* ---------- 写真プレースホルダー（実写真に差し替え） ---------- */
.ph {
  position: relative; background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0/23px 23px,
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.12) 0 1px, transparent 2px) 0 0/17px 17px,
    linear-gradient(135deg, #8d969c, #5d676e 55%, #3e464c);
  color: rgba(255,255,255,.8); overflow: hidden; border-radius: var(--radius);
}
.ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 10px; font-size: 12px; letter-spacing: .1em; }
.ph.light { background:
    radial-gradient(circle at 30% 40%, rgba(0,0,0,.08) 0 2px, transparent 3px) 0 0/19px 19px,
    linear-gradient(135deg, #e9ebea, #c9cecf); color: #6b767c; }
.ph.red { background:
    radial-gradient(circle at 30% 40%, rgba(0,0,0,.15) 0 2px, transparent 3px) 0 0/15px 15px,
    linear-gradient(135deg, #a7756a, #6e443d); }
.ph.blue { background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.25) 0 2px, transparent 3px) 0 0/21px 21px,
    linear-gradient(135deg, #6c8497, #34495a); }
.ph.dark { background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.12) 0 1px, transparent 2px) 0 0/13px 13px,
    linear-gradient(135deg, #3b4045, #15181b); }

/* ---------- 下層ページヘッダー ---------- */
.page-hero { background: var(--brand); color: var(--cream); border-bottom: 4px solid var(--accent); padding: 80px 0 70px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border: 60px solid rgba(255,255,255,.08); transform: rotate(20deg); }
.page-hero .en { font-size: 13px; letter-spacing: .35em; color: var(--accent-light); text-transform: uppercase; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 6px; }
.breadcrumb { font-size: 13px; padding: 14px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.breadcrumb a { color: var(--brand-deep); }

/* ---------- 汎用グリッド/カード ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30,42,56,.12); border-color: var(--accent); }
.card .ph { aspect-ratio: 4/3; border-radius: 0; }
.card-body { padding: 22px 24px 26px; flex: 1; }
.card-body .tag { display: inline-block; font-size: 12px; color: var(--brand-deep); background: var(--brand-pale); padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.card-body h3 { font-size: 18px; line-height: 1.5; }
.card-body p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- テーブル ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 20px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { width: 200px; color: var(--brand-deep); font-weight: 700; white-space: nowrap; }
.table tr:first-child th, .table tr:first-child td { border-top: 3px double var(--brand); }

/* ---------- CTA ---------- */
.cta { background: var(--brand); color: var(--cream); padding: 90px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; left: -60px; bottom: -120px; width: 320px; height: 320px; border: 50px solid rgba(255,255,255,.07); transform: rotate(-15deg); }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.6; }
.cta p { opacity: .9; margin-top: 12px; }
.cta-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); padding: 30px; border-radius: var(--radius); text-align: center; }
.cta-box .tel { color: var(--accent-light); font-size: 32px; font-weight: 700; letter-spacing: .05em; display: block; margin: 4px 0; }
.cta-box small { display: block; opacity: .85; font-size: 13px; }
.cta-box .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ---------- フッター ---------- */
.site-footer { border-top: 4px solid var(--accent); background: var(--brand); color: #c3ccd2; padding: 70px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; }
.site-footer .logo-text b { color: #fff; }
.site-footer .logo-text small { color: #8d9aa3; }
.site-footer address { font-style: normal; margin-top: 20px; line-height: 2; }
.footer-nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 14px 56px; align-content: start; justify-content: end; }
.footer-nav a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; font-size: 12px; text-align: center; color: #7d8a93; }
.notice-b2b { display: inline-block; margin-top: 16px; font-size: 12px; border: 1px solid #4d5d68; padding: 4px 12px; border-radius: 2px; }

/* ---------- フォーム ---------- */
.form-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.form-row label.lbl { font-weight: 700; padding-top: 10px; }
.req, .opt { font-size: 11px; padding: 2px 8px; border-radius: 2px; margin-left: 8px; color: #fff; vertical-align: 2px; }
.req { background: #d9534f; } .opt { background: #9aa6ad; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #c8d1d6; border-radius: var(--radius); font: inherit; background: #fbfcfc;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); background: #fff; }
textarea { min-height: 180px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 8px; }
.checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.form-submit { text-align: center; margin-top: 44px; }

/* ---------- アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-inner, .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: start; }
  .menu-btn { display: block; }
  .gnav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); display: none; }
  .gnav.is-open { display: flex; }
  .gnav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnav .btn { margin-top: 16px; justify-content: center; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .table th, .table td { display: block; width: 100%; padding: 10px 4px; }
  .table th { border-bottom: 0; padding-top: 18px; }
  .table tr:first-child td { border-top: 0; }
  .footer-nav { grid-template-columns: repeat(2, max-content); gap: 12px 40px; justify-content: start; }
}

/* ---------- 実写真 ---------- */
img.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }

/* ---------- 日本語の改行 ---------- */
/* 単語の途中で折り返さず、文節の区切りで改行する（Chrome/Edge対応。他ブラウザは通常の改行） */
h1, h2, h3, p, li, dd, td, th, .card-body, .cta-box small {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.card img.photo { aspect-ratio: 4/3; height: auto; border-radius: 0; }

/* ---------- 写真準備中 ---------- */
.soon {
  aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: var(--cream); position: relative;
}
.soon::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(244,240,229,.25); }
.soon span { font-size: 22px; letter-spacing: .12em; }
.soon small { font-size: 12px; letter-spacing: .3em; color: var(--accent-light); }

/* 改行させない言葉のまとまり（住所など） */
.nb { display: inline-block; }

/* 見出し・ロゴ・強調の一言は游明朝 */
h1, h2, h3, .logo-text, .soon span, .voice-q { font-family: var(--font-serif); }
