/* 株式会社フィリアル ― 優しく柔らかい黄緑。読みやすさ優先（文字大きめ・電話を目立たせる） */
:root {
  --bg: #fafbf5;
  --surface: #ffffff;
  --ink: #2c3327;
  --muted: #5d6656;
  --green: #9cc865;
  --green-deep: #4c7a2a;
  --green-pale: #eef5e2;
  --line: #dde5d0;
  --tbd: #b4631f;
  --f-head: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.5; margin: 0; text-wrap: balance; letter-spacing: .04em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* 確認中の印（公開前に消す） */
.tbd { color: var(--tbd); border-bottom: 1px dashed var(--tbd); font-size: .9em; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { mix-blend-mode: multiply; }
.brand .mark { width: 44px; }
.brand .name { width: 190px; }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--ink); line-height: 1.3; }
.header-tel small { font-size: 12px; color: var(--muted); }
.header-tel strong { font-size: 22px; color: var(--green-deep); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.gnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.gnav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.gnav a { display: block; padding: 12px 22px; text-decoration: none; color: var(--ink); font-size: 16px; border-bottom: 3px solid transparent; }
.gnav a:hover { color: var(--green-deep); }
.gnav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green-deep); font-weight: 700; }

/* ヒーロー */
.hero { background: linear-gradient(180deg, var(--green-pale), var(--bg)); position: relative; overflow: hidden; }
.hero .wrap { padding-block: 72px 80px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(30px, 5.4vw, 48px); color: var(--ink); }
.hero p { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 32em; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-leaves { position: absolute; right: -40px; bottom: -30px; width: min(420px, 60vw); opacity: .55; pointer-events: none; }

.page-title { background: var(--green-pale); }
.page-title .wrap { padding-block: 44px; }
.page-title h1 { font-size: clamp(26px, 4vw, 34px); }
.page-title p { margin-top: 6px; color: var(--muted); font-size: 15px; letter-spacing: .12em; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 17px; font-weight: 700; text-decoration: none; border: 2px solid var(--green-deep); cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: #3e6622; }
.btn-ghost { background: var(--surface); color: var(--green-deep); }
.btn-ghost:hover { background: var(--green-pale); }

/* セクション */
.section { padding-block: 72px; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 32px; }
.section-head .en { display: block; font-size: 13px; letter-spacing: .2em; color: var(--green-deep); font-family: var(--f-body); font-weight: 700; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 30px); margin-top: 4px; }
.lead { max-width: 38em; }

/* 想い */
.philosophy { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.philosophy img { mix-blend-mode: multiply; width: 140px; }
.philosophy h2 { font-size: 24px; }
.philosophy p { margin-top: 10px; }

/* 事業カード */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.service-card .tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--green-deep); background: var(--green-pale); border-radius: 999px; padding: 2px 14px; }
.service-card h3 { font-size: 22px; }
.service-card .more { margin-top: auto; padding-top: 8px; font-weight: 700; }

/* 大切にしていること */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; counter-reset: v; }
.values li { padding: 24px 0 0; border-top: 2px solid var(--green); counter-increment: v; }
.values h3 { font-size: 20px; display: flex; gap: 12px; align-items: baseline; }
.values h3::before { content: counter(v, decimal-leading-zero); font-family: var(--f-body); font-size: 14px; color: var(--green-deep); letter-spacing: .1em; }
.values p { margin-top: 8px; color: var(--muted); }

/* 電話の帯 */
.call { background: var(--green-deep); color: #fff; }
.call .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.call h2 { font-size: 24px; }
.call p { opacity: .9; margin-top: 4px; }
.call .tel { color: #fff; text-decoration: none; font-size: clamp(28px, 4.4vw, 38px); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; display: block; }
.call .tbd { color: #ffe3c4; border-color: #ffe3c4; }
.call .btn-ghost { border-color: #fff; }

/* サービスページ */
.service-block { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.service-block + .service-block { margin-top: 24px; }
.service-block h2 { font-size: clamp(22px, 3vw, 28px); padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.service-block h3 { font-size: 19px; margin-top: 28px; }
.service-block p { margin-top: 12px; }
.points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.points li { padding-left: 1.4em; position: relative; }
.points li::before { content: ""; position: absolute; left: .2em; top: .75em; width: .55em; height: .55em; border-radius: 50% 0; background: var(--green); transform: rotate(-45deg); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow li { counter-increment: f; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; text-align: center; }
.flow li::before { content: "STEP " counter(f); display: block; font-size: 12px; font-weight: 700; color: var(--green-deep); letter-spacing: .12em; }

/* 会社概要 */
.greeting { display: grid; gap: 16px; max-width: 40em; }
.greeting .sign { text-align: right; margin-top: 8px; font-family: var(--f-head); font-size: 18px; }
.info { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info th, .info td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info th { width: 9em; background: var(--green-pale); font-weight: 700; white-space: nowrap; }

/* お問い合わせ */
.contact-tel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.contact-tel .tel { font-size: 32px; font-weight: 700; color: var(--green-deep); text-decoration: none; font-variant-numeric: tabular-nums; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: grid; gap: 22px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.req, .opt { font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; }
.req { background: var(--green-deep); color: #fff; }
.opt { background: var(--line); color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select {
  font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #c5cfb7; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 180px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { font-weight: 400; display: flex; align-items: center; gap: 8px; border: 1px solid #c5cfb7; border-radius: 8px; padding: 10px 16px; cursor: pointer; background: #fff; }
.choices input { width: 20px; height: 20px; accent-color: var(--green-deep); }
.agree { display: flex; align-items: center; gap: 10px; }
.agree input { width: 22px; height: 22px; accent-color: var(--green-deep); }
.form .btn { justify-self: center; min-width: 240px; }
.form-msg { padding: 16px 20px; border-radius: 8px; background: var(--green-pale); }
.form-msg.error { background: #fbe9e2; color: #8a2f12; }

/* プライバシー */
.policy { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px; max-width: 46em; }
.policy h2 { font-size: 19px; margin-top: 28px; }
.policy h2:first-of-type { margin-top: 20px; }
.policy p, .policy ul { margin-top: 8px; }

/* フッター */
.site-footer { background: #2f3a29; color: #e7ecdf; margin-top: 0; }
.site-footer .wrap { padding-block: 48px 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.site-footer .fname { font-family: var(--f-head); font-size: 20px; color: #fff; }
.site-footer p { font-size: 15px; margin-top: 6px; }
.site-footer a { color: #e7ecdf; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.site-footer small { grid-column: 1 / -1; display: block; border-top: 1px solid #4a5742; padding-top: 20px; font-size: 13px; color: #b9c4ad; }

/* スマホ */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .brand .name { width: 150px; }
  .brand .mark { width: 36px; }
  .header-tel small { display: none; }
  .header-tel strong { font-size: 17px; }
  .gnav ul { display: grid; grid-template-columns: repeat(2, 1fr); }
  .gnav a { text-align: center; padding: 10px 8px; border-bottom-width: 2px; }
  .hero .wrap { padding-block: 48px 56px; }
  .philosophy { grid-template-columns: 1fr; padding: 24px; text-align: left; }
  .philosophy img { width: 96px; }
  .services, .values { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .service-block, .policy, .form { padding: 24px; }
  .section { padding-block: 52px; }
  .info th { width: 6.5em; padding: 14px 12px; }
  .info td { padding: 14px 12px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
