/* ==========================================================
   Direto 公式サイト 共通スタイル
   ----------------------------------------------------------
   【カスタマイズのしかた】
   サイト全体の色は、下の :root の中の値を変えるだけで一括変更できます。
   例）--accent を #e8710a から #d32f2f に変えると、ボタンが赤になります。
   ========================================================== */
:root {
  --navy: #0b2a5b;      /* 見出し・フッターなどの濃い紺 */
  --blue: #1565c0;      /* メインの青 */
  --blue-light: #1e88e5;/* 明るい青（アイコンなど） */
  --sky: #eef5fc;       /* 薄い青の背景 */
  --ink: #1a2433;       /* 本文の文字色 */
  --muted: #5b6778;     /* 補足の文字色 */
  --line: #d6e2f0;      /* 枠線 */
  --bg: #ffffff;        /* 背景 */
  --accent: #e8710a;    /* 問い合わせボタンの色（目立たせる色） */
  --accent-dark: #c75f06;
  --radius: 12px;
  --max: 1120px;        /* ページの最大幅 */
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section--sky { background: var(--sky); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head .en {
  display: block; font-size: 13px; letter-spacing: .2em; color: var(--blue);
  font-weight: 700; text-transform: uppercase; margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(24px, 4vw, 32px); color: var(--navy); }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  font-family: inherit; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(232,113,10,.3); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--navy); }
.logo__main { font-size: 26px; font-weight: 900; letter-spacing: .04em; }
.logo__main span { color: var(--blue-light); }
.logo__sub { font-size: 12px; color: var(--muted); }
/* ロゴ画像（direto-logo.png ＝ direto背景透明.png のコピー 600×300）から、周りの余白だけを除いて表示
   文字＋下の陰影（反射）の範囲：左95〜右470、上82〜下250 → 陰影はデザインの一部なので切らない */
.logo { align-items: center; }
.logo__img {
  --logo-h: 54px;                          /* ← ロゴ全体（陰影を含む）の高さ。大きくしたいときはここを変更 */
  --s: calc(var(--logo-h) / 168);          /* 表示する範囲の高さ(168px)に対する倍率 */
  display: block; position: relative; overflow: hidden; flex-shrink: 0;
  width: calc(375 * var(--s)); height: var(--logo-h);
}
.logo__img img {
  position: absolute; max-width: none;
  width: calc(600 * var(--s)); height: calc(300 * var(--s));
  left: calc(-95 * var(--s)); top: calc(-82 * var(--s));
}
.footer .logo__img { --logo-h: 60px; }
@media (max-width: 600px) { .logo__img { --logo-h: 46px; } .logo__sub { display: none; } }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.header__tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-decoration: none; color: var(--navy); }
.header__tel strong { font-size: 20px; letter-spacing: .02em; }
.header__tel small { font-size: 11px; color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- ヒーロー（一番上の大きなエリア） ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  /* 施工写真を images/hero.jpg に置くと自動で背景に表示されます（無い場合は青いグラデーション） */
  background:
    linear-gradient(100deg, rgba(8,32,74,.94) 0%, rgba(11,42,91,.85) 45%, rgba(21,101,192,.55) 100%),
    url("images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #0b2a5b, #1565c0);
}
.hero::after { /* 配線をイメージした装飾 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 80px 16px; }
.hero__catch { font-size: clamp(15px, 2.2vw, 18px); font-weight: 700; color: #bcd8ff; margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 900; letter-spacing: .02em; }
.hero__lead { margin-top: 20px; font-size: clamp(16px, 2.2vw, 19px); font-weight: 500; }
.hero__target {
  display: inline-block; margin-top: 20px; padding: 6px 16px; background: rgba(255,255,255,.14);
  border-left: 4px solid var(--accent); font-size: 14px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__services { display: grid; gap: 12px; }
.hero__service {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); font-weight: 700; font-size: 17px;
}
.hero__service svg { width: 28px; height: 28px; flex-shrink: 0; color: #9cc8ff; }

/* ---------- お悩み ---------- */
.worries { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.worry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px;
  text-align: center; font-size: 14px; font-weight: 500; line-height: 1.6;
}
.worry svg { width: 48px; height: 48px; margin: 0 auto 10px; color: var(--blue); }
.worries-answer { text-align: center; margin-top: 32px; font-size: clamp(18px, 3vw, 22px); font-weight: 700; color: var(--navy); }
.worries-answer em { font-style: normal; color: var(--blue); background: linear-gradient(transparent 65%, #cfe3fb 65%); }

/* ---------- サービス ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service__head { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 14px 16px; }
.service__head svg { width: 30px; height: 30px; flex-shrink: 0; color: #9cc8ff; }
.service__head h3 { font-size: 17px; }
.service__body { padding: 16px 18px 20px; flex: 1; }
.service__body p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.service__body ul { list-style: none; }
.service__body li { font-size: 14px; padding-left: 1.1em; position: relative; }
.service__body li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-light); }

/* ---------- 強み ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strength { background: #fff; border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--blue); box-shadow: 0 4px 16px rgba(11,42,91,.06); }
.strength__num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; font-size: 22px; align-items: center; justify-content: center; }
.strength h3 { font-size: 19px; color: var(--navy); margin: 14px 0 10px; }
.strength p { font-size: 15px; color: var(--muted); }
.flow-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.flow-mini span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); }
.flow-mini span:not(:last-child)::after { content: " →"; color: var(--blue-light); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* ---------- 対応機器・エリア ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.info-card h3 svg { width: 24px; height: 24px; color: var(--blue); }
.makers { display: flex; flex-wrap: wrap; gap: 8px; }
.makers li { list-style: none; padding: 6px 14px; background: var(--sky); border-radius: 6px; font-weight: 700; font-size: 14px; color: var(--navy); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.area-list li { list-style: none; padding: 6px 14px; border: 1px solid var(--blue); color: var(--blue); border-radius: 999px; font-size: 14px; font-weight: 700; }

/* ---------- ご依頼の流れ ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: step; }
.flow li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 10px 16px; text-align: center; }
.flow li::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 auto 8px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900;
}
.flow strong { display: block; font-size: 15px; color: var(--navy); }
.flow span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* ---------- よくある質問 ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 48px 18px 56px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 20px; top: 16px; color: var(--blue); font-weight: 900; font-size: 20px; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 24px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 20px 56px; color: var(--muted); position: relative; }
.faq .answer::before { content: "A"; position: absolute; left: 20px; top: -2px; color: var(--accent); font-weight: 900; font-size: 20px; }

/* ---------- お問い合わせ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: start; }
.contact-tel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px 28px; }
.contact-tel h3 { font-size: 18px; margin-bottom: 8px; }
.contact-tel a.tel { display: block; color: #fff; text-decoration: none; font-size: clamp(26px, 4vw, 32px); font-weight: 900; letter-spacing: .03em; margin: 8px 0; }
.contact-tel p { font-size: 14px; opacity: .85; }
.contact-tel hr { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: 20px 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.form-row { margin-bottom: 20px; }
.form-row > label, .form-row > .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req, .opt { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; color: #fff; }
.req { background: #d32f2f; }
.opt { background: #9aa6b5; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #b9c7d8; border-radius: 8px; font-size: 16px; font-family: inherit; background: #fbfdff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(30,136,229,.25); border-color: var(--blue-light); }
.form textarea { min-height: 150px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 16px; }
.checks label { font-size: 15px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checks input, .agree input { width: 18px; height: 18px; accent-color: var(--blue); }
.agree { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 15px; margin: 8px 0 20px; }
.form .btn { width: 100%; font-size: 17px; padding: 16px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 700; display: none; }
.form-status.is-ok { display: block; background: #e7f6ec; color: #1b6e36; }
.form-status.is-error { display: block; background: #fdecea; color: #b3261e; }
.hp { position: absolute; left: -9999px; } /* 迷惑メール対策の隠し項目 */
/* Microsoft Forms 埋め込み（高さはフォームの長さに合わせて調整してください） */
.form--embed { padding: 12px; }
.form--embed iframe { display: block; width: 100%; height: 1500px; border: 0; border-radius: 8px; }
.form--embed .note { margin: 12px 0 4px; }
.forms-open { text-align: center; padding: 28px 12px; }
.forms-open > p:first-child { margin-bottom: 20px; }
.forms-open .btn { width: 100%; max-width: 360px; font-size: 17px; padding: 16px; }
@media (max-width: 600px) { .form--embed iframe { height: 1700px; } }

/* ---------- 事業者概要 ---------- */
.profile { max-width: 820px; margin: 0 auto; border-collapse: collapse; width: 100%; background: #fff; }
.profile th, .profile td { border-bottom: 1px solid var(--line); padding: 16px; text-align: left; vertical-align: top; font-size: 15px; }
.profile th { width: 28%; color: var(--navy); background: var(--sky); font-weight: 700; }

/* ---------- 最下部CTA・フッター ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; text-align: center; padding: 56px 16px; }
.cta-band h2 { font-size: clamp(22px, 3.6vw, 30px); }
.cta-band p { margin: 12px 0 24px; opacity: .9; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.footer { background: #071d40; color: rgba(255,255,255,.8); padding: 40px 0 96px; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer a { color: rgba(255,255,255,.85); }
.footer .logo { color: #fff; }
.footer .logo__sub { color: rgba(255,255,255,.6); }
.footer small { display: block; margin-top: 24px; opacity: .6; }

/* スマホ下部に固定される「電話・問い合わせ」ボタン */
.sticky-cta { display: none; }

/* ---------- 下層ページ（プライバシーポリシー） ---------- */
.page-title { background: var(--navy); color: #fff; padding: 48px 0; }
.page-title h1 { font-size: clamp(24px, 4vw, 32px); }
.doc { max-width: 820px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h2 { font-size: 19px; color: var(--navy); margin: 36px 0 12px; padding-left: 12px; border-left: 4px solid var(--blue); }
.doc p, .doc li { font-size: 15px; }
.doc ul, .doc ol { padding-left: 1.4em; margin-top: 8px; }
.doc .date { text-align: right; color: var(--muted); margin-top: 40px; }

/* ==========================================================
   スマホ・タブレット向けの調整
   ========================================================== */
/* ヘッダーのメニューが2行に折り返さない幅（約1240px）より狭いときは、≡ボタンに切り替え */
.nav a, .header__tel { white-space: nowrap; }
@media (max-width: 1240px) {
  .nav, .header__tel { display: none; }
  .menu-btn { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .nav.is-open a { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 16px; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 16px; }
  .hero__services { grid-template-columns: 1fr 1fr; }
  .strengths { grid-template-columns: 1fr; }
  .info-grid, .contact-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero__service { font-size: 15px; padding: 12px 14px; }
  .hero__cta .btn { width: 100%; }
  .worries { grid-template-columns: 1fr 1fr; }
  .form, .contact-tel, .info-card { padding: 24px 18px; }
  .profile th, .profile td { display: block; width: 100%; }
  .profile th { padding-bottom: 8px; }
  .profile td { padding-top: 8px; }
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  }
  .sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; font-weight: 700; color: #fff; text-decoration: none; font-size: 15px; }
  .sticky-cta a:first-child { background: var(--navy); }
  .sticky-cta a:last-child { background: var(--accent); }
  .sticky-cta svg { width: 20px; height: 20px; }
}
