:root {
  --shell-ink: #18323b;
  --shell-muted: #5c6d72;
  --shell-teal: #167f7b;
  --shell-teal-dark: #0d5d5a;
  --shell-pale: #eef7f5;
  --shell-line: #d9e5e3;
  --shell-max: 1120px;
  --shell-shadow: 0 12px 30px rgba(24, 50, 59, .08);
  --shell-font: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--shell-ink); font-family: var(--shell-font); font-size: 16px; font-weight: 500; line-height: 1.85; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--shell-teal-dark); text-underline-offset: .2em; }
a:hover { color: var(--shell-teal); }
img { max-width: 100%; height: auto; }
.shell-skip-link { position: absolute; left: -9999px; }
.shell-skip-link:focus { left: 1rem; top: 1rem; z-index: 10000; background: #fff; padding: .7rem 1rem; }

.shell-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--shell-line); backdrop-filter: blur(12px); }
.admin-bar .shell-header { top: 32px; }
.shell-header-inner { max-width: var(--shell-max); margin: auto; min-height: 78px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.shell-brand { display: flex; align-items: center; gap: 10px; color: var(--shell-ink); text-decoration: none; white-space: nowrap; }
.shell-brand-mark { display: block; width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.shell-brand strong, .shell-brand small { display: block; }
.shell-brand strong { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.shell-brand small { font-size: 11px; color: var(--shell-muted); margin-top: 1px; }
.shell-primary-nav { margin-left: auto; }
.shell-primary-nav ul { display: flex; align-items: center; gap: 15px; list-style: none; margin: 0; padding: 0; }
.shell-primary-nav a { display: block; color: var(--shell-ink); text-decoration: none; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.shell-primary-nav a:hover { color: var(--shell-teal); }
.shell-menu-toggle { display: none; margin-left: auto; border: 1px solid var(--shell-line); background: #fff; border-radius: 5px; padding: .6rem .8rem; color: var(--shell-ink); font-family: var(--shell-font); }

.shell-main { min-height: 60vh; }
.shell-main > .wp-block-group { padding-left: 24px; padding-right: 24px; }
.shell-main .wp-block-group__inner-container, .shell-main > .wp-block-group > * { max-width: var(--shell-max); margin-left: auto; margin-right: auto; }
.shell-hero { padding-top: 76px !important; padding-bottom: 80px !important; background: linear-gradient(120deg,#f4faf9 0%,#fff 68%); position: relative; overflow: hidden; }
.shell-hero::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; right: -130px; top: -180px; border: 72px solid rgba(22,127,123,.055); }
.shell-eyebrow { margin: 0 0 14px !important; color: var(--shell-teal); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.shell-hero h1, .shell-page-hero h1 { max-width: 1040px; margin: .15em 0 .6em; font-family: var(--shell-font); font-size: clamp(31px, 3.45vw, 46px); font-weight: 700; line-height: 1.48; letter-spacing: .015em; }
.shell-hero .shell-lead { max-width: 780px; font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; line-height: 1.8; }
.shell-hero p:not(.shell-eyebrow) { max-width: 790px; }
.wp-block-buttons { gap: 12px; margin-top: 30px; }
.wp-block-button__link { border-radius: 4px !important; padding: .82em 1.45em !important; background: var(--shell-teal) !important; color: #fff !important; text-decoration: none; font-weight: 700; }
.is-style-outline .wp-block-button__link { background: transparent !important; color: var(--shell-teal-dark) !important; border: 1px solid var(--shell-teal) !important; }

.shell-section { padding-top: 70px !important; padding-bottom: 70px !important; }
.shell-section h2, .shell-page-content h2 { margin-top: 1.75em; font-family: var(--shell-font); font-size: clamp(25px, 2.7vw, 34px); font-weight: 700; line-height: 1.5; letter-spacing: .015em; }
.shell-section > h2:first-child, .shell-page-content > h2:first-child { margin-top: 0; }
.shell-section-tint { background: var(--shell-pale); }
.shell-quote { margin: 36px 0 0 !important; padding: 22px 26px; border-left: 4px solid var(--shell-teal); background: #f7fbfa; }
.shell-quote p { margin: 0; font-size: 18px; font-weight: 600; }
.shell-cards { gap: 20px; }
.shell-card { height: 100%; padding: 26px !important; background: #fff; border: 1px solid var(--shell-line); box-shadow: var(--shell-shadow); }
.shell-card h3 { margin-top: 0; font-size: 20px; font-weight: 700; }
.shell-card p:last-child { margin-bottom: 0; }
.shell-profile-teaser { gap: 48px; }
.shell-profile-teaser .wp-block-column:first-child { display: block; }
.shell-profile-image img, .shell-profile-inline img { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shell-shadow); }
.shell-profile-inline { display: block; float: right; width: min(36%, 310px); margin: 0 0 28px 38px; }
.shell-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.shell-fact-grid > div { padding: 20px; border: 1px solid var(--shell-line); background: var(--shell-pale); }
.shell-fact-grid strong, .shell-fact-grid span { display: block; }
.shell-fact-grid strong { margin-bottom: 6px; font-size: 18px; }
.shell-activity { display: grid; gap: 16px; margin: 24px 0 42px; }
.shell-activity p { margin: 0; padding: 22px 24px; border-left: 4px solid var(--shell-teal); background: var(--shell-pale); }
.shell-activity time, .shell-activity strong, .shell-activity span { display: block; }
.shell-activity time { color: var(--shell-muted); font-size: 14px; }
.shell-activity strong { margin: 3px 0 6px; font-size: 18px; }
.shell-activity a { display: inline-block; margin-top: 8px; }
.shell-wide-photo { margin: 34px 0 42px; }
.shell-wide-photo img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 6px; box-shadow: var(--shell-shadow); }
.shell-map { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; margin: 28px 0 12px; border: 1px solid var(--shell-line); border-radius: 6px; background: var(--shell-pale); }
.shell-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shell-links ul { columns: 2; column-gap: 36px; }
.shell-page-hero { padding-top: 52px !important; padding-bottom: 46px !important; background: var(--shell-pale); }
.shell-page-hero h1 { font-size: clamp(30px, 3.1vw, 42px); margin-bottom: 0; }
.shell-page-content { max-width: 900px !important; }
.shell-page-content p, .shell-page-content li { font-size: 16px; }
.shell-page-content li + li { margin-top: .42em; }
.shell-notice { margin: 30px 0; padding: 20px 24px; background: #fff8df; border: 1px solid #eadfb1; border-radius: 5px; }
.shell-personality { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 30px; align-items: center; margin: 24px 0; }
.shell-personality img { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shell-shadow); }
.shell-personality p { margin: 0; }
.shell-research { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 30px; align-items: start; margin: 24px 0 42px; }
.shell-research-photo { margin: 0; }
.shell-research-photo img { display: block; width: 100%; border-radius: 6px; box-shadow: var(--shell-shadow); }
.shell-research-photo figcaption { margin-top: 8px; color: var(--shell-muted); font-size: 13px; }
.shell-research-copy p:first-child { margin-top: 0; }
.shell-research-copy p:last-child { margin-bottom: 0; }

.shell-contact-form { margin: 28px 0; padding: 30px; border: 1px solid var(--shell-line); border-radius: 6px; background: #f8fbfa; }
.shell-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.shell-contact-form p { margin: 0; }
.shell-contact-form label, .shell-contact-form legend { display: block; margin-bottom: 7px; font-weight: 700; }
.shell-contact-form input[type="text"], .shell-contact-form input[type="email"], .shell-contact-form input[type="tel"], .shell-contact-form select, .shell-contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #aabcbc; border-radius: 4px; background: #fff; color: var(--shell-ink); font: inherit; line-height: 1.5; }
.shell-contact-form textarea { resize: vertical; }
.shell-contact-form input:focus, .shell-contact-form select:focus, .shell-contact-form textarea:focus { outline: 3px solid rgba(22,127,123,.18); border-color: var(--shell-teal); }
.shell-form-wide { grid-column: 1 / -1; }
.shell-contact-form fieldset { margin: 0; padding: 0; border: 0; }
.shell-choice { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 24px 6px 0 !important; font-weight: 500 !important; }
.shell-consent label { font-weight: 500; }
.shell-required { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 3px; background: #a43636; color: #fff; font-size: 12px; line-height: 1.7; }
.shell-submit { margin-top: 24px; padding: .9em 1.6em; border: 0; border-radius: 4px; background: var(--shell-teal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.shell-submit:hover { background: var(--shell-teal-dark); }
.shell-form-message { margin: 24px 0; padding: 16px 20px; border-radius: 5px; font-weight: 700; }
.shell-form-message--success { border: 1px solid #78a89a; background: #edf8f3; color: #164c3e; }
.shell-form-message--error { border: 1px solid #d39a9a; background: #fff1f1; color: #742929; }
.shell-contact-alternative { color: var(--shell-muted); font-size: 14px !important; }
.shell-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.shell-footer { padding: 50px 24px 20px; background: var(--shell-ink); color: #dce8e9; }
.shell-footer-inner { max-width: var(--shell-max); margin: auto; display: flex; justify-content: space-between; gap: 40px; }
.shell-footer strong { font-size: 18px; color: #fff; }
.shell-footer p { font-size: 13px; }
.shell-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.shell-footer a { color: #fff; text-decoration: none; font-size: 13px; }
.shell-copyright { max-width: var(--shell-max); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 11px; color: #aabec2; }

@media (max-width: 1040px) {
  .shell-menu-toggle { display: block; }
  .shell-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 78px; margin: 0; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--shell-line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .shell-primary-nav.is-open { display: block; }
  .shell-primary-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .shell-primary-nav a { padding: 10px 4px; border-bottom: 1px solid var(--shell-line); }
  .shell-hero { padding-top: 64px !important; padding-bottom: 68px !important; }
  .shell-section { padding-top: 58px !important; padding-bottom: 58px !important; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .shell-header-inner { min-height: 70px; padding: 0 16px; }
  .shell-brand-mark { width: 40px; height: 40px; }
  .shell-brand strong { font-size: 14px; }
  .shell-brand small { display: none; }
  .shell-primary-nav { top: 70px; }
  .shell-primary-nav ul { grid-template-columns: 1fr; }
  .shell-main > .wp-block-group { padding-left: 18px; padding-right: 18px; }
  .shell-hero h1 br { display: none; }
  .shell-hero h1 { font-size: clamp(28px, 8.4vw, 36px); line-height: 1.5; }
  .shell-hero { padding-top: 48px !important; padding-bottom: 54px !important; }
  .shell-page-hero { padding-top: 38px !important; padding-bottom: 34px !important; }
  .shell-section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .shell-cards { display: block; }
  .shell-card { margin-bottom: 16px; }
  .shell-profile-teaser { display: flex; flex-direction: column; }
  .shell-profile-teaser .wp-block-column { flex-basis: auto !important; }
  .shell-profile-inline { float: none; margin: 0 0 28px; max-width: 260px; }
  .shell-fact-grid { grid-template-columns: 1fr; }
  .shell-links ul { columns: 1; }
  .shell-footer-inner { display: block; }
  .shell-footer nav { margin-top: 28px; }
  .shell-footer ul { display: block; }
  .shell-footer li { margin-top: 8px; }
  .shell-page-content p, .shell-page-content li { font-size: 15px; }
  .shell-personality { grid-template-columns: 1fr; }
  .shell-personality img { max-width: 280px; }
  .shell-research { grid-template-columns: 1fr; }
  .shell-research-photo { max-width: 420px; }
  .shell-contact-form { padding: 22px 18px; }
  .shell-form-grid { grid-template-columns: 1fr; }
  .shell-form-wide { grid-column: auto; }
}

@media (max-width: 782px) {
  .admin-bar .shell-header { top: 46px; }
}
