:root, :root[data-theme="bright"] {
  --ink: #26313a;
  --muted: #5f6b76;
  --line: #dbe9f3;
  --bg: #ffffff;
  --bg2: #eef7fd;
  --sky: #22a7e8;
  --sky-dark: #1786c0;
  --sky-soft: #dff3fd;
  --sun: #ffc42e;
  --sun-soft: #fff5d6;
  --hero-bg: #eaf5fc;
  --hero-ink: #1d2a33;
  --hero-veil-a: rgba(255,255,255,.78);
  --hero-veil-b: rgba(255,255,255,.34);
  --hero-img-opacity: 1;
  --hero-img-filter: brightness(1.06) saturate(1.05);
  --shadow: 0 4px 16px rgba(34,167,232,.10);
  --radius: 14px;
  --maxw: 1080px;
}
:root[data-theme="calm"] {
  --ink: #2b2f33; --muted: #5f6b76; --line: #dfe6ec; --bg: #ffffff; --bg2: #f3f8fb;
  --sky: #1f97d6; --sky-dark: #146fa1; --sky-soft: #e3f2fb; --sun: #f6b21a; --sun-soft: #fff4d6;
  --hero-bg: #3b4a55; --hero-ink: #ffffff;
  --hero-veil-a: rgba(20,40,55,.62); --hero-veil-b: rgba(20,40,55,.25);
  --hero-img-opacity: .82; --hero-img-filter: none; --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* header */
.hd { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 54px; height: 54px; object-fit: contain; flex: none; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .08em; line-height: 1.2; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky-soft); color: var(--sky-dark); }
.nav a.cta { background: var(--sun); color: #3a2a00; }
.nav a.cta:hover { background: #e9a40f; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; font-size: .95rem; }

/* hero */
.hero { position: relative; color: var(--hero-ink); background: var(--hero-bg); overflow: hidden; }
.hero img { width: 100%; height: 66vh; min-height: 380px; max-height: 620px; object-fit: cover; opacity: var(--hero-img-opacity); filter: var(--hero-img-filter); }
.hero .txt { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, var(--hero-veil-a) 0%, var(--hero-veil-b) 55%, rgba(255,255,255,0) 100%); }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); margin: 0 0 .4em; }
.hero p { font-size: clamp(1rem, 1.8vw, 1.25rem); max-width: 46em; margin-bottom: 1.2em; font-weight: 600; }
.hero .tag { display: inline-block; background: var(--sun); color: #3a2a00; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .9rem; margin-bottom: 14px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 10px; background: var(--sky); color: #fff; }
.btn:hover { background: var(--sky-dark); }
.btn.sun { background: var(--sun); color: #3a2a00; }
.btn.sun:hover { background: #e9a40f; }
.btn.ghost { background: #fff; color: var(--sky-dark); border: 2px solid var(--sky); }

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 1em; }
.warn { color: #d0261b; font-weight: 700; }
.hero .warn { background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 8px; }
img.fit-contain { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.svc img.fit-contain { aspect-ratio: auto; }

/* sections */
.sec { padding: 56px 0; }
.sec.alt { background: var(--bg2); }
.sec-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.sec-h h2 { margin: 0; }
.sec-h .en { color: var(--sky); font-weight: 700; letter-spacing: .12em; font-size: .8rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { color: var(--sky-dark); }
.card.num { border-top: 5px solid var(--sun); }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pcard img { aspect-ratio: 4/3; object-fit: cover; }
.pcard .b { padding: 16px 18px 18px; }
.pcard h3 { margin-bottom: .3em; }
.pcard p { color: var(--muted); font-size: .95rem; margin: 0; }
.pcard:hover { box-shadow: 0 6px 18px rgba(31,151,214,.15); }

/* service detail */
.svc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.svc:last-of-type { border-bottom: 0; }
.svc:nth-child(even) .pic { order: -1; }
.svc img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc .lead { font-weight: 700; color: var(--sky-dark); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: st; }
.flow .st { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.flow .st::before { counter-increment: st; content: counter(st); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: #3a2a00; font-weight: 700; margin-bottom: 8px; }
.flow .st h3 { font-size: 1.05rem; }
.flow .st p { margin: 0; color: var(--muted); font-size: .95rem; }

/* greeting */
.greet { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.greet img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.greet .sign { text-align: right; font-weight: 700; margin-top: 1em; }
.greet.single { grid-template-columns: 1fr; max-width: 46em; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { width: 9em; background: var(--bg2); font-weight: 700; white-space: nowrap; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.qual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qual .card h3 { font-size: 1rem; border-left: 4px solid var(--sun); padding-left: 10px; }
.qual ul { margin: 0; padding-left: 1.2em; }
.qual li { margin: .2em 0; }

.makers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.makers li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 10px; padding: 12px 14px; font-weight: 600; box-shadow: var(--shadow); }
.makers-note { color: var(--muted); margin: 14px 0 0; }

/* banners */
.banner { background: linear-gradient(120deg, var(--sky-soft), var(--sun-soft)); border-radius: var(--radius); padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.banner h2 { margin: 0 0 .2em; }
.banner p { margin: 0; color: var(--muted); }
.note { background: var(--sun-soft); border-left: 4px solid var(--sun); padding: 12px 16px; border-radius: 8px; }
.mail { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 700; word-break: break-all; }
.area-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.area-box .main { font-size: 1.4rem; font-weight: 700; color: var(--sky-dark); }
.page-h { background: var(--bg2); padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.page-h h1 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.page-h p { margin: .4em 0 0; color: var(--muted); }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }

/* footer */
.ft { background: #f7f9fb; border-top: 1px solid var(--line); padding: 30px 0 24px; color: var(--muted); font-size: .9rem; }
.ft .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft a { color: var(--muted); margin-right: 14px; }
.ft .co { font-weight: 700; color: var(--ink); }

@media (max-width: 860px) {
  .grid3, .qual, .flow { grid-template-columns: 1fr 1fr; }
  .svc, .greet { grid-template-columns: 1fr; }
  .svc:nth-child(even) .pic { order: 0; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .sec { padding: 40px 0; }
  .grid3, .grid2, .qual, .flow { grid-template-columns: 1fr; }
  .hero img { height: 58vh; min-height: 330px; }
  .hero .txt { background: linear-gradient(180deg, var(--hero-veil-a) 0%, var(--hero-veil-b) 70%, rgba(255,255,255,0) 100%); align-items: flex-start; padding-top: 22px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 12px 12px; }
  .nav.open { display: flex; }
  .tbl th { width: 7em; white-space: normal; }
  .banner { padding: 22px; }
}
