/* ==========================================================================
   株式会社A・N・S コーポレートサイト 共通スタイル
   カラー / フォント / レイアウトはこのファイルで一括管理しています。
   ========================================================================== */

:root {
  --navy: #0a2540;
  --navy-2: #123a63;
  --blue: #1e6fd9;
  --blue-dark: #1657ac;
  --accent: #34c3a3;
  --ink: #1a2634;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; 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 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: 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: 40px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand .brand-name { font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: .04em; }
.brand .brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 10px 14px; border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a.is-current { color: var(--blue); }
.nav .btn-contact {
  margin-left: 8px; background: var(--blue); color: #fff; font-weight: 700;
  padding: 10px 20px; border-radius: 999px;
}
.nav .btn-contact:hover { background: var(--blue-dark); text-decoration: none; }

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

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(9,32,56,.97) 0%, rgba(15,44,76,.95) 62%, rgba(23,76,140,.90) 100%),
    radial-gradient(1100px 460px at 82% -10%, rgba(52,195,163,.16), transparent 60%),
    var(--navy);
}
.hero .container { padding-top: 96px; padding-bottom: 104px; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .18em;
  color: #cfe4ff; border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.35; margin: 0 0 22px; font-weight: 700; }
.hero p.lead { font-size: 17px; max-width: 640px; color: #e6eefb; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: .2s; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ---------- セクション共通 ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .en { display: block; color: var(--blue); font-size: 13px; letter-spacing: .2em; font-weight: 700; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 32px); margin: 0 0 16px; color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; }

/* ページ見出し（下層ページ） */
.page-hero {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 64px 0;
}
.page-hero .en { color: #8fc0ff; font-size: 13px; letter-spacing: .2em; font-weight: 700; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 0; }
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* ---------- カード / グリッド ---------- */
.grid { display: grid; gap: 24px; }
.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);
  padding: 30px 26px; transition: .25s; height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 10px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* 強みリスト */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.feature h3 { margin: 4px 0 8px; font-size: 18px; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* 実績カード */
.work-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.work-card .thumb { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #d7e4f5, #eef3fa); display: flex; align-items: center; justify-content: center; color: #96abc6; font-size: 13px; }
.work-card .body { padding: 18px 20px; }
.work-card .tag { display: inline-block; font-size: 12px; color: var(--blue); background: #eaf2fe; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.work-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.work-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* サービス詳細ブロック */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block.reverse .media { order: 2; }
.service-block .media { aspect-ratio: 16 / 10; border-radius: var(--radius); background: linear-gradient(135deg, #d7e4f5, #eef3fa); display: flex; align-items: center; justify-content: center; color: #8ba3c2; }
.service-block h3 { font-size: 22px; color: var(--navy); margin: 0 0 6px; }
.service-block .en { color: var(--blue); font-size: 12px; letter-spacing: .18em; font-weight: 700; }
.service-block ul { margin: 16px 0 0; padding-left: 18px; color: var(--muted); }
.service-block ul li { margin: 6px 0; }

/* テーブル（会社概要） */
.table-info { width: 100%; border-collapse: collapse; background: #fff; }
.table-info th, .table-info td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.table-info th { width: 200px; color: var(--navy); font-weight: 700; background: var(--bg-soft); }

/* お問い合わせ CTA バンド */
.cta-band { background: linear-gradient(115deg, var(--navy), var(--blue-dark)); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(22px, 3.5vw, 30px); margin: 0 0 14px; }
.cta-band p { color: #dbe7fb; margin: 0 0 28px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.cta-tel { font-size: 26px; font-weight: 700; letter-spacing: .04em; }

/* フォーム */
.form-grid { display: grid; gap: 20px; max-width: 720px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 700; font-size: 14px; color: var(--navy); }
.form-row .req { color: #e0374b; font-size: 12px; margin-left: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-note { font-size: 13px; color: var(--muted); }

/* 汎用 */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.rich p { color: var(--muted); }
.rich h3 { color: var(--navy); }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #c7d4e6; padding: 56px 0 28px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-name { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.footer-brand p { margin: 12px 0 0; color: #9fb2cc; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .08em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: #c7d4e6; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; text-align: center; color: #7e93b0; font-size: 12px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; }
  .service-block.reverse .media { order: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    gap: 2px; transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 8px; border-radius: 8px; }
  .nav .btn-contact { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .table-info th { width: 120px; padding: 14px; }
  .table-info td { padding: 14px; }
  .hero .container { padding-top: 72px; padding-bottom: 80px; }
  .section { padding: 60px 0; }
}

/* ==========================================================================
   モダン化の追加スタイル（スクロールアニメ・装飾・微調整）
   ========================================================================== */

/* スクロール表示アニメーション */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ヒーローの装飾（ドットグリッド） */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }

/* カードのアイコンを少し大きく・モダンに */
.card .icon { box-shadow: 0 8px 20px rgba(30,111,217,.28); }

/* セクション見出しの下線アクセント */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--blue), var(--accent)); border-radius: 3px;
}

/* CTAボタンのホバーで少し浮く */
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30,111,217,.35); }

/* スマホでの余白・文字を最適化 */
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero h1 { line-height: 1.4; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .cta-contacts { flex-direction: column; gap: 12px; }
  .cta-tel { font-size: 22px; }
}

/* 実ロゴ（ヘッダー） */
.brand-logo { height: 38px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 30px; } }

/* 取次販売代理店（パートナーロゴ） */
.partner { padding: 60px 0; }
.partner .section-head { margin-bottom: 32px; }
.partner-logos { display: flex; gap: 48px; align-items: center; justify-content: center; flex-wrap: wrap; }
.partner-logos .eo-logo { max-height: 56px; width: auto; }
.partner-logos .optage-logo { max-height: 44px; width: auto; }
@media (max-width: 560px) { .partner-logos { gap: 28px; } .partner-logos .eo-logo { max-height: 44px; } }

/* サービス写真（差し込み対応：画像があれば表示、なければプレースホルダー） */
.service-block .media { position: relative; overflow: hidden; }
.service-block .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.service-block .media .ph { position: relative; z-index: 0; }

/* 代表挨拶の「大切にしている取り組み」 */
.msg-points { list-style: none; margin: 22px 0 26px; padding: 24px 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.msg-points li { position: relative; padding-left: 22px; margin: 12px 0; color: var(--muted); }
.msg-points li:first-child { margin-top: 0; }
.msg-points li:last-child { margin-bottom: 0; }
.msg-points li::before { content: ""; position: absolute; left: 0; top: 12px; width: 9px; height: 9px; border-radius: 2px; background: linear-gradient(135deg, var(--blue), var(--accent)); }
.msg-points li b { color: var(--navy); }
.msg-lead { font-weight: 700; color: var(--navy); margin: 8px 0 0; }

/* 代表者写真つき署名 */
.ceo-sign { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-top: 30px; }
.ceo-sign img { width: 140px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 12px; box-shadow: var(--shadow); }
.ceo-name { text-align: left; }
.ceo-name span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.ceo-name strong { font-size: 22px; color: var(--navy); letter-spacing: .04em; }
@media (max-width: 560px) { .ceo-sign { flex-direction: column; align-items: center; text-align: center; } .ceo-name { text-align: center; } }

/* 施工実績（写真なし・カテゴリ別カード） */
.chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); background: #eaf2fe; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.work-item { position: relative; padding-left: 30px; }
.work-item::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--blue), var(--accent)); }
.work-item h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.work-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* 信頼バー（実績・許可の裏付け） */
.trustbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { text-align: center; padding: 26px 16px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 18px; color: var(--navy); letter-spacing: .02em; }
.trust-item span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) {
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* フッターの許可・登録表記 */
.footer-cred { margin-top: 12px !important; font-size: 12px; color: #9fb2cc; }
