@charset "UTF-8";
:root {
  --brand: #0D8DD4;
  --paper: #F1F7FB;
  --paper-2: #E2EEF6;
  --ink: #0F2230;
  --ink-soft: #44606F;
  --link: #0A6FA8;
  --btn: #71D9F5;
  --btn-ink: #04192A;
  --panel: #71D9F5;
  --panel-ink: #04192A;
  --panel-btn: #04192A;
  --panel-btn-ink: #F1F7FB;
  --seal: #BE3A2B;
  --line: rgba(15, 34, 48, .22);
  --grid: rgba(13, 141, 212, .11);
  --field: #F7FBFE;
  --field-ink: #0F2230;

  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1620;
    --paper-2: #122230;
    --ink: #E4EEF5;
    --ink-soft: #9FB4C2;
    --link: #5BB9F0;
    --btn: #2FA3E6;
    --btn-ink: #04192A;
    --panel: #0E3A56;
    --panel-ink: #EAF4FB;
    --panel-btn: #EAF4FB;
    --panel-btn-ink: #0E3A56;
    --seal: #E2594B;
    --line: rgba(228, 238, 245, .22);
    --grid: rgba(47, 163, 230, .09);
  }
}
:root[data-theme="dark"] {
  --paper: #0C1620;
  --paper-2: #122230;
  --ink: #E4EEF5;
  --ink-soft: #9FB4C2;
  --link: #5BB9F0;
  --btn: #2FA3E6;
  --btn-ink: #04192A;
  --panel: #0E3A56;
  --panel-ink: #EAF4FB;
  --panel-btn: #EAF4FB;
  --panel-btn-ink: #0E3A56;
  --seal: #E2594B;
  --line: rgba(228, 238, 245, .22);
  --grid: rgba(47, 163, 230, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: .05em; }
p { margin: 0 0 1em; }
dl { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--brand);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-serif); font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; white-space: nowrap; }
.seal-mini {
  width: 32px; height: 32px; border: 2px solid var(--seal); color: var(--seal); border-radius: 3px;
  display: grid; grid-template: 1fr 1fr / 1fr 1fr; place-items: center;
  font-family: var(--font-serif); font-weight: 800; font-size: 12px; line-height: 1; padding: 1px;
  transform: rotate(-4deg);
}
.menu-btn {
  appearance: none; background: none; border: 1px solid var(--line); border-radius: 4px;
  width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
}
.nav.open { display: block; }
.nav a { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav a.nav-cta { margin-top: 16px; border: 0; text-align: center; background: var(--btn); color: var(--btn-ink); border-radius: 4px; font-weight: 700; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex; position: static; padding: 0; border: 0; background: none; align-items: center; gap: 24px; }
  .nav a { padding: 8px 0; border: 0; font-size: .95rem; }
  .nav a:hover { color: var(--link); }
  .nav a.nav-cta { margin: 0; padding: 10px 20px; }
  .nav a.nav-cta:hover { color: var(--btn-ink); filter: brightness(1.08); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px;
  border-radius: 4px; font-weight: 700; text-decoration: none; font-family: var(--font-sans); font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; letter-spacing: .06em;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* 電話CTAボタン（大きめ表示） */
.btn-tel { flex-direction: column; gap: 2px; padding: 16px 32px; min-height: 76px; line-height: 1.3; }
.btn-tel-label { font-size: 1.05rem; }
.btn-tel-number { font-family: var(--font-serif); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; letter-spacing: .04em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero-inner { position: relative; display: grid; gap: 36px; padding-block: clamp(40px, 8vw, 88px); }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: clamp(1.85rem, 7.4vw, 2.6rem); font-weight: 800; letter-spacing: .08em; line-height: 1.6; }
.seal {
  width: 84px; height: 84px; border: 3px solid var(--seal); color: var(--seal); border-radius: 6px;
  display: grid; grid-template: 1fr 1fr / 1fr 1fr; place-items: center;
  font-family: var(--font-serif); font-weight: 800; font-size: 34px; line-height: 1; padding: 5px;
  transform: rotate(-4deg); opacity: .92;
  animation: stamp .55s .35s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-4deg) scale(1.6); }
  to   { opacity: .92; transform: rotate(-4deg) scale(1); }
}
.hero-lead { max-width: 34em; color: var(--ink-soft); font-size: 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.facts { display: flex; flex-wrap: wrap; row-gap: 6px; font-size: 1rem; }
.facts li { padding: 0 16px; border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; border-left: 0; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero-title { flex-direction: row-reverse; align-items: flex-end; justify-self: end; gap: 28px; }
  .hero h1 {
    writing-mode: vertical-rl; font-size: clamp(2.3rem, 4vw, 3.1rem); height: 11.6em; letter-spacing: .1em; line-height: 1.65;
  }
  .seal { width: 96px; height: 96px; font-size: 39px; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section.alt { background: var(--paper-2); }
.split { display: grid; gap: 28px 64px; }
.sec-head h2 { font-size: clamp(1.55rem, 4.2vw, 2.1rem); margin-bottom: 16px; }
.sec-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 30em; margin: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 280px 1fr; }
  .sec-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; }
}

/* Services as ledger rows */
.rows > .row { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--line); }
.rows > .row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.3rem; }
.row p { margin: 0; max-width: 34em; }
.row .tax { color: var(--ink-soft); font-size: 1.05rem; margin-top: 4px; }
.row .row-lead { font-weight: 700; color: var(--ink); font-size: 1.1rem; letter-spacing: .03em; margin-bottom: 10px; }
.row .row-note { color: var(--ink-soft); font-size: .98rem; line-height: 1.85; }
.row .row-lead:last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .rows > .row { grid-template-columns: 13em 1fr; gap: 32px; }
}

/* Greeting */
.profile-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; }
.profile-name strong { font-family: var(--font-serif); font-size: 1.9rem; letter-spacing: .12em; }
.profile-name span { color: var(--ink-soft); }
.profile p { max-width: 36em; }

/* Contact */
.contact { background: var(--panel); color: var(--panel-ink); }
.contact a { color: inherit; }
.contact .sec-head p { color: inherit; }
.contact :focus-visible { outline-color: currentColor; }
.contact-card { display: grid; gap: 4px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid currentColor; }
.tel { display: block; font-family: var(--font-serif); font-weight: 800; font-size: clamp(2rem, 8vw, 3.2rem); letter-spacing: .05em; text-decoration: none; line-height: 1.3; }
.fax, .hours { margin: 0; letter-spacing: .06em; }
.fax { font-size: 1.2rem; }
.hours { font-size: 1.05rem; }

.contact-form { display: grid; gap: 20px; }
.two { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label { font-weight: 700; font-size: 1.05rem; }
.tag { font-size: .75rem; font-weight: 500; margin-left: 8px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--field-ink); background: var(--field);
  border: 1.5px solid transparent; border-radius: 4px; padding: 12px 14px; letter-spacing: .02em;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #5B6B75; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; line-height: 1.7; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--panel-btn); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-primary { background: var(--panel-btn); color: var(--panel-btn-ink); min-width: 220px; }
.contact .btn-ghost { border-color: currentColor; color: inherit; }
.contact .btn-ghost:hover { background: var(--panel-ink); color: var(--panel); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.7em; font-size: 1.02rem; margin: 0; line-height: 1.7; transition: opacity .2s ease; }
.form-status.is-message {
  display: block;
  margin-top: 4px;
  padding: 14px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.6;
  animation: statusIn .25s ease both;
}
.form-status.is-info { background: rgba(255, 255, 255, .9); color: var(--panel-ink); border: 2px solid transparent; }
.form-status.is-success { background: #FFFFFF; color: #0B6B3A; border: 2px solid #0B6B3A; }
.form-status.is-error { background: #FFFFFF; color: #B3261E; border: 2px solid #B3261E; }
@keyframes statusIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .form-status.is-message { animation: none; }
}
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }

/* Office photo */
.photo { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.photo img { display: block; width: 100%; height: auto; }
.photo-tag { position: absolute; left: 12px; top: 12px; background: rgba(15, 34, 48, .82); color: #fff; font-size: .78rem; line-height: 1.6; padding: 2px 10px; border-radius: 2px; letter-spacing: .08em; }

/* 事業所案内の写真ギャラリー（外観を大きく、室内・駐車場を並べて表示） */
.photo-grid { display: grid; gap: 12px; margin: 0 0 36px; }
.photo-main img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-sub .photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-sub .photo-tag { font-size: .72rem; padding: 1px 8px; }

/* Office info */
.office dl > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.office dl > div:last-child { border-bottom: 1px solid var(--line); }
.office dt { color: var(--ink-soft); font-size: 1rem; }
.office dd { margin: 0; }
.map-link { display: inline-block; margin-top: 4px; }
.office-note { margin: 20px 0 0; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Privacy policy page ---------- */
/* このページは左右2カラム(.split)を使っていないため、他ページ用の
   「見出しを追従表示(sticky)させる」設定を打ち消して、通常の並びに戻す */
.policy .sec-head { max-width: 40em; margin-bottom: 8px; position: static; top: auto; align-self: auto; }
.policy-content { max-width: 42em; padding-top: 12px; border-top: 1px solid var(--line); }
.policy-content h3 { font-size: 1.15rem; margin: 2em 0 .8em; }
.policy-content h3:first-child { margin-top: 0; }
.policy-content p { color: var(--ink-soft); font-size: 1rem; }
.policy-content ul { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.policy-content li { color: var(--ink-soft); font-size: 1rem; margin-bottom: .4em; }
.policy-content a { color: var(--link); }
.policy-date { margin-top: 2em; color: var(--ink-soft); font-size: .95rem; }

footer { padding: 28px 0 40px; font-size: .92rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
