:root {
  --paper: #ffffff;
  --ink: #262626;
  --sub: #66615c;
  --rule: #e2ddd7;
  --panel: #f5f4f2;
  --red: #c30d23;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--paper);
  word-break: auto-phrase;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.nb { white-space: nowrap; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; word-break: keep-all; overflow-wrap: normal; }

/* header: logo left, rounded nav right */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; max-width: none; padding: 0 40px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand span { font-family: var(--mincho); font-size: 15px; letter-spacing: .08em; }
.global-nav ul { list-style: none; display: flex; gap: 4px; background: var(--paper); border-radius: 999px; padding: 6px; box-shadow: 0 2px 14px rgba(38, 38, 38, .08); }
.global-nav a { display: block; text-decoration: none; font-size: 14px; padding: 8px 20px; border-radius: 999px; }
.global-nav a:hover { background: var(--panel); }
.global-nav a[aria-current="page"] { color: var(--red); }
.nav-toggle { display: none; background: var(--paper); border: 0; border-radius: 999px; box-shadow: 0 2px 14px rgba(38, 38, 38, .1); font: inherit; font-size: 14px; padding: 8px 18px; color: var(--ink); cursor: pointer; }

/* top hero */
.top-hero { position: relative; height: min(78vh, 760px); min-height: 520px; overflow: hidden; }
.top-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.top-hero .copy { position: absolute; right: 6vw; bottom: 12%; max-width: 560px; background: rgba(255, 255, 255, .94); padding: 44px 48px 40px; border-radius: 24px 0 24px 0; }
.top-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.5; letter-spacing: .04em; }
.top-hero p { margin-top: 18px; color: var(--sub); font-size: 15px; }

/* page hero (EPICs-like: photo with title at right) */
.page-hero { position: relative; height: 360px; overflow: hidden; background: var(--panel); }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .title { position: absolute; right: 8vw; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .92); padding: 22px 36px; border-radius: 16px; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .1em; line-height: 1.4; }
.page-hero h1 small { display: block; font-family: var(--gothic); font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--sub); }

/* two-column section: heading left, content right */
.section { padding: 104px 0; }
.split { display: grid; grid-template-columns: 260px 1fr; gap: 56px; }
.split > h2 { font-size: 30px; line-height: 1.5; letter-spacing: .06em; }
.split > h2 small { display: block; margin-top: 6px; font-family: var(--gothic); font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--sub); }
.split .body > p { max-width: 38em; }
.split .body > p + p { margin-top: 16px; }

/* rounded panel that bleeds to one edge */
.panel-left, .panel-right { background: var(--panel); padding: 88px 0; }
.panel-left { margin-right: 8vw; border-radius: 0 40px 40px 0; }
.panel-right { margin-left: 8vw; border-radius: 40px 0 0 40px; }

.lead { font-family: var(--mincho); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.7; margin-bottom: 28px; }

/* business: image + text */
.biz { display: grid; gap: 64px; }
.biz-item { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.biz-item:nth-child(even) .biz-img { order: 2; }
.biz-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.biz-item h3 { font-size: 24px; line-height: 1.5; margin-bottom: 14px; }
.biz-item ul { list-style: none; margin-top: 12px; }
.biz-item li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.text-link { display: inline-block; margin-top: 20px; text-underline-offset: 4px; }

/* service page rows */
.svc { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--rule); align-items: start; }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.svc h3 { font-size: 21px; line-height: 1.6; margin-bottom: 10px; }
.svc .partners { list-style: none; margin-top: 12px; }
.svc .partners li { padding: 4px 0; }
.svc .partners a { text-underline-offset: 3px; }
.svc .partners span { color: var(--sub); font-size: 14px; margin-left: .5em; }
.group-title { font-size: 26px; letter-spacing: .06em; margin: 0 0 8px; }
.group + .group { margin-top: 96px; }
.pending { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--sub); border: 1px solid var(--rule); border-radius: 999px; padding: 0 12px; }

/* message */
.message { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.message img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: 16px; }
.message p + p { margin-top: 16px; }
.message blockquote { margin: 22px 0; font-family: var(--mincho); font-size: 18px; line-height: 2; }
.message .sign { margin-top: 28px; }
.message .sign small { display: block; color: var(--sub); font-size: 14px; }
.message .sign strong { font-family: var(--mincho); font-size: 22px; letter-spacing: .2em; font-weight: 700; }

/* full-width photo band */
.band { height: 380px; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* profile */
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.profile tr:first-child th, .profile tr:first-child td { padding-top: 0; }
.profile th { width: 150px; font-weight: 400; color: var(--sub); padding-right: 24px; font-size: 15px; }
.profile ul { list-style: none; }
.profile li { padding-left: 1em; text-indent: -1em; }
.profile li::before { content: "・"; }
.profile .grp + .grp { margin-top: 12px; }

.map { margin-top: 40px; aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* contact */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-cards div { background: var(--panel); border-radius: 20px; padding: 32px 36px; }
.contact-cards dt { color: var(--sub); font-size: 14px; }
.contact-cards dd a { font-family: var(--mincho); font-size: 28px; letter-spacing: .04em; text-decoration: none; }
.contact-cards dd a.mail { font-family: var(--gothic); font-size: 19px; letter-spacing: 0; text-decoration: underline; text-underline-offset: 4px; word-break: break-all; }

.cta { text-align: center; padding: 96px 0; }
.cta p { font-family: var(--mincho); font-size: clamp(20px, 2.2vw, 24px); }
.cta .tel { display: inline-block; margin-top: 16px; font-family: var(--mincho); font-size: 34px; letter-spacing: .06em; text-decoration: none; }
.cta .sub { display: block; margin-top: 4px; font-size: 15px; font-family: var(--gothic); color: var(--sub); }
.cta .sub a { text-underline-offset: 3px; }

/* footer */
.site-footer { background: var(--panel); padding: 56px 0 32px; font-size: 14px; color: var(--sub); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; }
.site-footer img { height: 64px; width: auto; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address b { display: block; color: var(--ink); font-weight: 400; font-family: var(--mincho); font-size: 16px; margin-bottom: 4px; }
.site-footer ul { list-style: none; }
.site-footer ul a { text-decoration: none; line-height: 2.2; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer .copy { grid-column: 1 / -1; margin-top: 16px; font-size: 12px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .biz-item { grid-template-columns: 1fr; gap: 20px; }
  .biz-item:nth-child(even) .biz-img { order: 0; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .message { grid-template-columns: 1fr; gap: 28px; }
  .message figure { max-width: 280px; }
  .panel-left { margin-right: 16px; }
  .panel-right { margin-left: 16px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { padding: 0 16px; min-height: 72px; }
  .brand img { height: 44px; }
  .brand span { font-size: 13px; }
  .nav-toggle { display: block; }
  .global-nav { display: none; position: absolute; right: 16px; top: 68px; }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; border-radius: 20px; padding: 10px; min-width: 200px; }
  .global-nav a { padding: 10px 18px; }
  .top-hero { height: auto; min-height: 0; }
  .top-hero img { height: 300px; }
  .top-hero .copy { position: static; max-width: none; border-radius: 0; padding: 32px 20px 8px; background: var(--paper); }
  .page-hero { height: 220px; }
  .page-hero .title { right: 16px; padding: 14px 22px; }
  .section { padding: 64px 0; }
  .panel-left, .panel-right { padding: 56px 0; }
  .split > h2 { font-size: 24px; }
  .band { height: 200px; }
  .profile th, .profile td { display: block; width: auto; padding: 0; border: 0; }
  .profile th { padding-top: 14px; font-size: 14px; }
  .profile tr:first-child th { padding-top: 0; }
  .profile td, .profile tr:first-child td { padding: 2px 0 14px; border-bottom: 1px solid var(--rule); }
  .contact-cards { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
  .cta .tel { font-size: 28px; }
}
