@charset "UTF-8";
/* ============================================================
   遠州機械設計室（架空）／ style.css
   モバイルファースト（base: 320-480px → 768px → 1024px）
   ------------------------------------------------------------
   目次
     00. デザイントークン（:root）
     01. リセット・ベース
     02. ポートフォリオ告知バナー（統一仕様）
     03. ヘッダー / ハンバーガー / ドロワー（パターンB）
     04. 共通パーツ（section / title / btn）
     05. HERO
     06. PROBLEM
     07. SERVICE
     08. REASON
     09. WORKS
     10. PRICE
     11. FLOW
     12. FAQ
     13. ABOUT
     14. CONTACT
     15. FOOTER / to-top
     16. メディアクエリ（768px / 1024px）
   ============================================================ */

/* ========== 00. デザイントークン ========== */
:root {
  --color-primary: #0f3b5c;
  --color-primary-dark: #0a2a42;
  --color-accent: #c9490f;
  --color-accent-light: #ef7a3d;
  --color-base: #f4f6f8;
  --color-white: #ffffff;
  --color-text: #14202b;
  --color-subtext: #586b7c;
  --color-border: rgba(20, 32, 43, 0.14);
  --color-border-light: rgba(255, 255, 255, 0.22);

  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "Barlow Semi Condensed", "Zen Kaku Gothic New", sans-serif;

  --header-h: 60px;
  --radius: 4px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* 告知バナー用 */
  --pn-bg: #0a2a42;
  --pn-fg: #f4f6f8;
  --pn-fg-rgb: 244, 246, 248;
  --pn-accent: #ef7a3d;
}

/* ========== 01. リセット・ベース ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-white);
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.45; margin: 0; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sp-only { display: inline; }
.center { text-align: center; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; }

/* ========== 02. ポートフォリオ告知バナー ========== */
.portfolio-notice {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 40px;
  background: var(--pn-bg);
  color: var(--pn-fg);
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  border-bottom: 1px solid var(--pn-accent);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.portfolio-notice strong {
  color: var(--pn-accent);
  letter-spacing: 0.2em;
  font-weight: 500;
  flex-shrink: 0;
}
.portfolio-notice .pn-close {
  background: transparent;
  border: 1px solid rgba(var(--pn-fg-rgb), 0.4);
  color: var(--pn-fg);
  font-size: 0.7rem;
  padding: 2px 8px;
  margin-left: 0.2rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  font-family: inherit;
}
.portfolio-notice .pn-close:hover {
  background: var(--pn-accent);
  border-color: var(--pn-accent);
  color: var(--pn-bg);
}
/* 本体押し下げ + 固定ヘッダー追従（固定ヘッダー分を加算） */
body.notice-visible { padding-top: calc(var(--header-h) + 40px); }
body.notice-visible .site-header { top: 40px; }

@media (max-width: 720px) {
  .portfolio-notice { height: 52px; font-size: 0.68rem; padding: 0.35rem 0.55rem; gap: 0.4rem; }
  .portfolio-notice .pn-close { margin-left: 0; flex-shrink: 0; }
  body.notice-visible { padding-top: calc(var(--header-h) + 52px); }
  body.notice-visible .site-header { top: 52px; }
}

/* ========== 03. ヘッダー / ハンバーガー / ドロワー ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  border-bottom: 1px solid var(--color-border);
  transition: top 0.3s;
  /* ❌ backdrop-filter / transform / filter は直接書かない（::before に逃がす） */
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}
.header-inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--color-text); }
.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-num);
  font-size: 1.15rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ja { font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }
.logo-en {
  font-family: var(--font-num);
  font-size: 0.6rem;
  color: var(--color-subtext);
  letter-spacing: 0.12em;
}

.pc-nav { display: none; }
.header-cta { display: none; }

.hamburger {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  position: relative;
  z-index: 220;                     /* drawer(215) より上 */
  background: transparent;
  border: 0; padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 59, 92, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 210;
}
.drawer-mask.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 80vw;
  max-width: 340px;
  height: 100dvh;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 215;
  padding: calc(var(--header-h) + 1rem) 1.25rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--color-primary);
}
.drawer.is-open { transform: translateX(0); box-shadow: -8px 0 32px rgba(15, 59, 92, 0.2); }

body.notice-visible .drawer { padding-top: calc(var(--header-h) + 40px + 1rem); }
@media (max-width: 720px) {
  body.notice-visible .drawer { padding-top: calc(var(--header-h) + 52px + 1rem); }
}

.drawer-list { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.drawer-list a {
  display: block;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}
.drawer-list a:hover, .drawer-list a:focus-visible { color: var(--color-accent); }
.drawer-cta {
  margin-top: 1.1rem;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: var(--radius);
  text-align: center;
  padding: 0.95rem 1rem !important;
  border: none !important;
  font-weight: 700 !important;
}
.drawer-footer { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.drawer-tel { display: flex; flex-direction: column; margin-bottom: 0.5rem; }
.drawer-tel span { font-size: 0.75rem; color: var(--color-subtext); }
.drawer-tel a {
  font-family: var(--font-num);
  font-size: 1.5rem;
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1.3;
}
.drawer-tel small, .drawer-hours { font-size: 0.7rem; color: var(--color-subtext); }
.drawer-hours { margin: 0; }

/* ========== 04. 共通パーツ ========== */
.section { padding: 4rem 0; }
.section-base { background: var(--color-base); }
.section-dark { background: var(--color-primary); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-title .en { color: var(--color-accent-light); }

.section-title {
  font-size: 1.563rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.section-title .en {
  font-family: var(--font-num);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  font-weight: 600;
}
.section-lead { color: var(--color-subtext); font-size: 0.9rem; margin-bottom: 2rem; }
.section-lead strong { color: var(--color-accent); font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: #a63a09; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-primary); color: #fff; }
.btn-block { width: 100%; }

/* ========== 05. HERO ========== */
.hero {
  position: relative;
  /* 左（テキスト側）を濃く、右（写真の見せ場）を薄くしたオーバーレイ */
  background:
    linear-gradient(100deg, rgba(15,59,92,0.92) 0%, rgba(13,50,79,0.75) 45%, rgba(10,42,66,0.5) 100%),
    url("../img/hero.webp") center / cover no-repeat var(--color-primary);
  color: #fff;
  overflow: hidden;
  padding: 3.5rem 1.25rem 3rem;
}
/* 方眼＝図面らしさをCSSだけで表現（画像不要） */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; }
.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--color-accent-light);
  border-left: 3px solid var(--color-accent-light);
  padding-left: 0.6rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 7.5vw, 2.441rem);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}
.hero-lead { font-size: 0.92rem; color: rgba(255,255,255,0.86); margin-bottom: 2rem; }

.hero-spec {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border-light);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
}
.hero-spec-item dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.15rem;
}
.hero-spec-item dd {
  font-family: var(--font-num);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.hero-spec-item dd span { color: var(--color-accent-light); }

.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--color-primary); }

/* ========== 06. PROBLEM ========== */
.problem-list { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.problem-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.75;
}
.problem-answer {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 0;
}

/* ========== 07. SERVICE ========== */
.card-grid { display: grid; gap: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-num {
  font-family: var(--font-num);
  font-size: 0.95rem;
  color: var(--color-accent);
  letter-spacing: 0.16em;
  margin-bottom: 0.35rem;
}
.card h3 { font-size: 1.125rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; color: var(--color-subtext); margin-bottom: 0.9rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-tags li {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: var(--color-base);
  border: 1px solid var(--color-border);
  color: var(--color-subtext);
  border-radius: 2px;
}

/* ========== 08. REASON ========== */
.reason-grid { display: grid; gap: 1.75rem; }
.reason-item { padding-left: 1rem; border-left: 2px solid var(--color-accent-light); }
.reason-num {
  font-family: var(--font-num);
  font-size: 1.563rem;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.reason-item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.reason-item p { font-size: 0.9rem; color: rgba(255,255,255,0.82); margin: 0; }

/* ========== 09. WORKS ========== */
.works-grid { display: grid; gap: 1.5rem; }
.work { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.work img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.work-body { padding: 1.15rem; }
.work-meta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}
.work h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.work p { font-size: 0.88rem; color: var(--color-subtext); margin: 0; }

/* ========== 10. PRICE ========== */
.price-table-wrap { overflow-x: auto; margin-bottom: 1.25rem; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.9rem; }
.price-table th, .price-table td {
  border: 1px solid var(--color-border);
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: middle;
}
.price-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.price-table tbody th { background: var(--color-base); font-weight: 500; }
.price-table tbody td:nth-child(2) {
  font-family: var(--font-num);
  font-size: 1.05rem;
  color: var(--color-accent);
  white-space: nowrap;
}
.price-note {
  font-size: 0.8rem;
  color: var(--color-subtext);
  background: var(--color-base);
  border: 1px solid var(--color-border);
  padding: 1rem;
  margin-bottom: 2rem;
}
.price-note li { list-style: disc; margin-left: 1.2rem; }
.price-note li + li { margin-top: 0.35rem; }

/* ========== 11. FLOW ========== */
.flow-list { display: grid; gap: 1rem; counter-reset: flow; }
.flow-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  position: relative;
}
.flow-step {
  font-family: var(--font-num);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}
.flow-list h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.flow-list p:last-child { font-size: 0.88rem; color: var(--color-subtext); margin: 0; }

/* ========== 12. FAQ ========== */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.2rem; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-answer { padding: 0 1.1rem 1.15rem; }
.faq-answer p { font-size: 0.9rem; color: var(--color-subtext); margin: 0; }

/* ========== 13. ABOUT ========== */
.about-profile { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.about-profile img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}
.about-role { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--color-accent); margin-bottom: 0.1rem; }
.about-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.75rem; }
.about-note { font-size: 0.7rem; font-weight: 400; color: var(--color-subtext); margin-left: 0.4rem; }
.about-profile p:last-child { font-size: 0.9rem; color: var(--color-subtext); margin: 0; }

.about-table { border-top: 1px solid var(--color-border); }
.about-table > div { border-bottom: 1px solid var(--color-border); padding: 0.9rem 0.2rem; }
.about-table dt {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.about-table dd { font-size: 0.9rem; }
.about-table small { color: var(--color-subtext); font-size: 0.75rem; }

/* ========== 14. CONTACT ========== */
.section-cta { background: var(--color-base); }
.cta-lead { font-size: 0.95rem; color: var(--color-subtext); margin-bottom: 2rem; }

.contact-box { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.contact-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  padding: 1.25rem;
  text-align: center;
}
.contact-label { font-size: 0.75rem; letter-spacing: 0.16em; color: var(--color-subtext); margin-bottom: 0.35rem; }
.contact-value { margin-bottom: 0.35rem; }
.contact-value a {
  font-family: var(--font-num);
  font-size: 1.6rem;
  color: var(--color-primary);
  text-decoration: none;
  word-break: break-all;
}
.contact-sub { font-size: 0.8rem; color: var(--color-subtext); margin: 0; }
.contact-sub small { font-size: 0.72rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.req {
  display: inline-block;
  font-size: 0.68rem;
  background: var(--color-accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 0.4rem;
  letter-spacing: 0.06em;
  vertical-align: 2px;
  white-space: nowrap;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;              /* 16px未満にするとiOSで自動ズームするため */
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}
.form-row textarea { resize: vertical; line-height: 1.7; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-row [aria-invalid="true"] { border-color: var(--color-accent); }
.form-consent input[aria-invalid="true"] { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--color-subtext);
  background: var(--color-base);
  border: 1px dashed var(--color-border);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
.form-disclaimer strong { color: var(--color-text); }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
  cursor: pointer;
}
.form-consent input {
  width: 20px;
  height: 20px;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.form-consent a { font-weight: 500; }
.form-demo-note { font-size: 0.75rem; color: var(--color-subtext); margin-bottom: 1rem; }
.form-result { font-size: 0.85rem; margin: 0.9rem 0 0; color: var(--color-primary); font-weight: 500; }

/* ========== 15. FOOTER / to-top ========== */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.8); padding: 2.5rem 0 1.5rem; }
.footer-top { display: grid; gap: 1.75rem; margin-bottom: 1.75rem; }
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 0.2rem; }
.footer-en { font-family: var(--font-num); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--color-accent-light); margin-bottom: 0.9rem; }
.footer-addr { font-size: 0.82rem; margin: 0; }
.footer-addr small { font-size: 0.72rem; color: rgba(255,255,255,0.55); }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem; }
.footer-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--color-accent-light); }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.8;
}

.to-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 190;
}
.to-top.is-visible { opacity: 0.9; pointer-events: auto; }
.to-top:hover { opacity: 1; }

/* ========== 16. PRIVACY / TERMS ========== */
.subpage-back {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.subpage-back::before { content: "←"; margin-right: 0.4rem; }
.legal-page .header-inner { gap: 0.4rem; }
.legal-page .logo-ja { font-size: 0.86rem; letter-spacing: 0.02em; }
.legal-page .logo-en { font-size: 0.52rem; }
.legal-page .subpage-back { font-size: 0.75rem; }
.legal-main { background: var(--color-base); padding-bottom: 4rem; }
.legal-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.legal-hero .en {
  display: block;
  font-family: var(--font-num);
  color: var(--color-accent-light);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.35rem;
}
.legal-hero h1 { font-size: clamp(1.75rem, 7vw, 2.441rem); }
.legal-document {
  background: #fff;
  border: 1px solid var(--color-border);
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem;
}
.legal-intro { color: var(--color-subtext); }
.legal-note {
  background: #fff7f1;
  border: 1px solid rgba(201, 73, 15, 0.28);
  border-left: 4px solid var(--color-accent);
  color: #63301a;
  font-size: 0.82rem;
  padding: 0.9rem 1rem;
  margin-bottom: 2rem;
}
.legal-document section + section { margin-top: 2.25rem; }
.legal-document h2 {
  color: var(--color-primary);
  font-size: 1.2rem;
  padding-bottom: 0.45rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.legal-document h3 { font-size: 1rem; margin: 1.25rem 0 0.45rem; }
.legal-document p,
.legal-document li,
.legal-document dd { font-size: 0.9rem; color: var(--color-subtext); }
.legal-document ul,
.legal-document ol { padding-left: 1.3rem; }
.legal-document li { list-style: disc; }
.legal-document li + li { margin-top: 0.4rem; }
.legal-document dl { border-top: 1px solid var(--color-border); }
.legal-document dl > div { border-bottom: 1px solid var(--color-border); padding: 0.8rem 0; }
.legal-document dt { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--color-primary); }
.legal-document dd { margin-top: 0.2rem; }
.legal-updated { font-size: 0.78rem; color: var(--color-subtext); margin: 2rem 0 0; text-align: right; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.65rem 1.2rem; margin-top: 1rem; }
.footer-legal a { color: rgba(255,255,255,0.8); font-size: 0.8rem; text-decoration: none; }
.footer-legal a:hover { color: var(--color-accent-light); }

/* ========== 17. メディアクエリ ========== */
@media (min-width: 768px) {
  body { font-size: 1.02rem; }
  .sp-only { display: none; }
  :root { --header-h: 72px; }

  .section { padding: 6rem 0; }
  .container { padding: 0 2rem; }
  .section-title { font-size: 1.953rem; margin-bottom: 1.25rem; }
  .section-lead { font-size: 0.95rem; margin-bottom: 3rem; }

  .hamburger { display: none; }
  .drawer, .drawer-mask { display: none; }
  .pc-nav { display: block; }
  .pc-nav ul { display: flex; gap: 1.1rem; }
  .pc-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.82rem;
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
  }
  .pc-nav a:hover { color: var(--color-accent); }
  .header-cta {
    display: inline-flex;
    align-items: center;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background 0.25s;
  }
  .header-cta:hover { background: #a63a09; }
  .logo-ja { font-size: 1.1rem; }

  .hero { padding: 5.5rem 2rem 5rem; }
  .hero h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
  .hero-lead { font-size: 1rem; max-width: 40em; }
  .hero-spec { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
  .hero-actions { flex-direction: row; }

  .problem-list { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 2.25rem 2rem; }

  .about-profile { grid-template-columns: 160px 1fr; align-items: start; gap: 2rem; }
  .about-profile img { width: 160px; height: 160px; }
  .about-table > div { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0.2rem; }
  .about-table dt { margin-bottom: 0; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-nav ul { grid-template-columns: repeat(2, 1fr); }
  .price-table { min-width: 0; }
  .legal-main { padding-bottom: 6rem; }
  .legal-page .logo-ja { font-size: 1.1rem; }
  .legal-page .logo-en { font-size: 0.6rem; }
  .legal-page .subpage-back { font-size: 0.82rem; }
  .legal-hero { padding: 4.5rem 0 4rem; }
  .legal-document { margin-top: 2rem; padding: 3rem; }
  .legal-document dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; }
  .legal-document dd { margin-top: 0; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.441rem; }
  .hero { padding: 7rem 2rem 6.5rem; }
  .hero h1 { font-size: 3.2rem; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .reason-grid { grid-template-columns: repeat(4, 1fr); }
  .works-grid { grid-template-columns: repeat(4, 1fr); }
  .flow-list { grid-template-columns: repeat(5, 1fr); }
  .pc-nav ul { gap: 1.5rem; }
  .pc-nav a { font-size: 0.88rem; }
  .to-top { right: 2rem; bottom: 2rem; }
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
