/* =========================================================
   Locavia 自社サイト　共通のスタイル（雛形 第1版 2026-10-21）
   - 色と余白は :root の変数でまとめて変えられます
   - 文字は端末の日本語フォントを使います（Webフォントを足す場合は font-family を変更）
   - WordPress へ移すときは、このファイルをテーマの style.css に移せます
   ========================================================= */

:root {
  --color-bg: #faf7f2;        /* 背景 */
  --color-surface: #ffffff;   /* カードの背景 */
  --color-text: #2b2b2b;      /* 本文 */
  --color-muted: #6b6b6b;     /* 補足の文字 */
  --color-main: #1f4a5a;      /* 見出し・ロゴ */
  --color-accent: #c0653a;    /* ボタン・印 */
  --color-accent-dark: #a2522c;
  --color-line: #e4ddd2;      /* 罫線 */
  --color-soft: #f1ebe1;      /* 区切りの背景 */
  --radius: 10px;
  --width: 1040px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-main); }
a:hover { color: var(--color-accent); }

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

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.logo { text-decoration: none; color: var(--color-main); line-height: 1.2; }
.logo-name { display: block; font-size: 24px; font-weight: 700; letter-spacing: 0.06em; }
.logo-sub { display: block; font-size: 11px; color: var(--color-muted); letter-spacing: 0.1em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--color-text); }
.site-nav a[aria-current="page"] { color: var(--color-accent); font-weight: 700; }
.site-nav .nav-contact a {
  background: var(--color-accent); color: #fff; padding: 6px 16px; border-radius: 999px;
}
.site-nav .nav-contact a:hover { background: var(--color-accent-dark); color: #fff; }

/* ---------- 見出しと区切り ---------- */
main { display: block; }
.section { padding: 64px 0; }
.section-soft { background: var(--color-soft); }
h1, h2, h3 { color: var(--color-main); line-height: 1.5; letter-spacing: 0.04em; }
h1 { font-size: 30px; margin: 0 0 16px; }
h2 { font-size: 24px; margin: 0 0 24px; }
h3 { font-size: 18px; margin: 32px 0 12px; }
.lead { font-size: 17px; }
.note { font-size: 13px; color: var(--color-muted); }
.page-head { padding: 56px 0 32px; }
.page-head p { margin: 0; }

/* ---------- トップの最初の画面 ---------- */
.hero { padding: 80px 0 72px; }
.hero h1 { font-size: 34px; }
.hero p { max-width: 640px; }

/* ---------- ボタン ---------- */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--color-accent); color: #fff; border: 2px solid var(--color-accent);
}
.btn:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #fff; }

/* ---------- 約束・リスト ---------- */
.promise { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promise li {
  background: var(--color-surface); border-left: 4px solid var(--color-accent);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700;
}
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.6em; margin-bottom: 8px; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }

/* ---------- カード ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-top: 0; font-size: 17px; }
.card p { margin: 0 0 8px; font-size: 15px; }
.card .price { color: var(--color-accent); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.tags li { font-size: 12px; background: var(--color-soft); border-radius: 4px; padding: 2px 8px; }
.thumb {
  aspect-ratio: 16 / 10; background: var(--color-soft); border-radius: 6px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; color: var(--color-muted); font-size: 12px;
}

/* ---------- 流れ ---------- */
.flow { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.flow li {
  counter-increment: step; position: relative; padding: 0 0 20px 56px; min-height: 40px;
}
.flow li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--color-main); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; background: var(--color-surface); font-size: 15px; }
th, td { border: 1px solid var(--color-line); padding: 10px 14px; text-align: left; vertical-align: top; }
thead th { background: var(--color-main); color: #fff; }
tbody th { background: var(--color-soft); font-weight: 700; white-space: nowrap; }
.table-plans { min-width: 680px; }
.table-plans .recommend { background: #fbeee6; }
.badge { display: inline-block; background: var(--color-accent); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.scroll-hint { display: none; font-size: 12px; color: var(--color-muted); }
@media (max-width: 720px) { .scroll-hint { display: block; } }

/* ---------- 運営者 ---------- */
.profile { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.illust {
  width: 200px; aspect-ratio: 1; border-radius: 50%; background: var(--color-soft);
  border: 2px dashed var(--color-line); display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); font-size: 12px; text-align: center; padding: 12px;
}
.career { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--color-line); }
.career li { padding: 0 0 20px 20px; position: relative; }
.career li::before {
  content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--color-accent);
}
.career strong { color: var(--color-main); }

/* ---------- よくある質問 ---------- */
.faq dt { font-weight: 700; color: var(--color-main); margin-top: 20px; }
.faq dt::before { content: "Q. "; color: var(--color-accent); }
.faq dd { margin: 6px 0 0; padding-left: 1.6em; }

/* ---------- 実績のブロック ---------- */
.block { margin-top: 48px; }
.block-feature {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 32px;
}
.toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-block; text-decoration: none; font-size: 14px; padding: 4px 14px;
  border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface);
}

/* ---------- 最後の導線 ---------- */
.cta { background: var(--color-main); color: #fff; text-align: center; padding: 64px 0; }
.cta h2 { color: #fff; }
.cta p { max-width: 640px; margin: 0 auto; }
.cta .buttons { justify-content: center; }
.cta .btn { background: #fff; color: var(--color-main); border-color: #fff; }
.cta .btn:hover { background: var(--color-soft); color: var(--color-main); }

.mail-box {
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.mail-address { font-size: 24px; font-weight: 700; color: var(--color-main); word-break: break-all; }

/* ---------- フッター ---------- */
.site-footer { background: #233a44; color: #e9e4dc; padding: 48px 0 28px; font-size: 14px; }
.site-footer a { color: #e9e4dc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer-name { font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 6px; }
.copyright { margin-top: 32px; font-size: 12px; color: #b9b3a9; text-align: center; }

/* ---------- スマートフォン ---------- */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 26px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .site-nav ul { gap: 4px 14px; }
  .site-nav a { font-size: 13px; }
  .profile { grid-template-columns: 1fr; }
  .illust { width: 160px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .block-feature { padding: 22px; }
  .btn { width: 100%; }
}

/* ---------- お問い合わせフォーム ---------- */
.contact-form p { margin: 0 0 20px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.contact-form .agree label { font-weight: 400; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="url"],
.contact-form select, .contact-form textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--color-line);
  border-radius: 6px; background: var(--color-surface); color: var(--color-text);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--color-main); outline-offset: 1px;
}
.req { display: inline-block; margin-left: 8px; font-size: 11px; color: #fff; background: var(--color-accent); border-radius: 4px; padding: 0 6px; vertical-align: middle; }
.form-error { display: block; color: #b3261e; font-size: 14px; margin-top: 4px; }
.form-alert { background: #fdecea; border: 1px solid #f3c2bd; color: #8a1c14; padding: 12px 16px; border-radius: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
