:root {
  --ink: #102d3c;
  --blue: #075978;
  --navy: #153e52;
  --sky: #ddf1f7;
  --sky-strong: #c9e5ee;
  --yellow: #ffd65a;
  --yellow-light: #ffe894;
  --orange: #c9470c;
  --orange-edge: #f3742c;
  --peach: #fef2e9;
  --line: #cdd7dc;
  --muted: #475e69;
  --paper: #fff;
  --font: "Noto Sans JP", sans-serif;
  --content: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; font-weight: 400; -webkit-text-size-adjust: 100%; min-height: 100vh; display: flex; flex-direction: column; }
body, button, input, textarea, select { font-family: var(--font); }
main { min-height: 45vh; flex: 1; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; line-break: strict; }
h1 { font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -.035em; }
h2 { font-size: clamp(25px, 2.5vw, 32px); letter-spacing: -.02em; }
h3 { font-size: 21px; }
h1 strong, h2 strong { white-space: nowrap; font-weight: inherit; }
p, li, a { overflow-wrap: anywhere; line-break: strict; }
ul, ol { padding-left: 1.4em; }
img { display: block; max-width: 100%; height: auto; }
figure { min-width: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font-size: 16px; color: var(--ink); }
button, summary, input[type="checkbox"] { cursor: pointer; }
button, input, textarea, select { border-radius: 4px; }
a, button, summary, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
::selection { background: var(--yellow-light); color: var(--ink); }
.wp-block-group, .wp-block-image, .wp-block-buttons { margin-block: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wp-block-button { max-width: 100%; }
.wp-block-button a, .site-cta, .sb-contact-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 46px; max-width: 100%; padding: 10px 22px; border: 1px solid var(--orange-edge);
  border-radius: 6px; background: var(--orange); color: #fff; font-weight: 700;
  line-height: 1.5; text-decoration: none; box-shadow: 0 2px 0 #9a370b;
  transition: background-color .18s, box-shadow .18s;
}
.wp-block-button a::after, .site-cta::after { content: "→"; font-size: 23px; line-height: 1; flex-shrink: 0; }
.wp-block-button a:hover, .site-cta:hover, .sb-contact-form button:hover { background: #a73808; color: #fff; box-shadow: 0 3px 0 #872a04; }
.site-skip-link { position: fixed; z-index: 100; top: -100px; left: 12px; padding: 12px 20px; background: #fff; color: var(--ink); font-weight: 700; border: 2px solid var(--blue); }
.site-skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 10; padding-top: 27px; background: #fff; border-bottom: 1px solid #e0e6e9; }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 27px; background: var(--sky-strong); }
.site-header-inner { width: min(92%, var(--content)); margin: auto; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--ink); text-decoration: none; flex-shrink: 0; }
.site-brand-name { position: relative; display: block; padding-left: 47px; font-size: 34px; font-weight: 900; letter-spacing: -.035em; line-height: 1.3; }
.site-brand-name::before { content: ""; position: absolute; left: 5px; top: 16px; width: 29px; height: 25px; border: 3px solid currentColor; border-top: 0; }
.site-brand-name::after { content: ""; position: absolute; width: 25px; height: 25px; left: 7px; top: 4px; border-top: 3px solid currentColor; border-left: 3px solid currentColor; transform: rotate(45deg); }
.site-header .site-brand-note { position: absolute; top: 2px; left: max(4%, calc((100% - 1200px) / 2)); font-size: 12px; letter-spacing: .01em; font-weight: 700; line-height: 23px; }
.site-desktop-nav { display: flex; align-items: center; gap: 20px; }
.site-desktop-nav nav { display: flex; align-items: center; gap: 24px; }
.site-desktop-nav nav a { color: var(--ink); font-size: 14px; font-weight: 700; padding: 14px 0; text-decoration: none; white-space: nowrap; }
.site-desktop-nav nav a[href$="/contact/"] { display: none; }
.site-desktop-nav nav a:hover, .site-desktop-nav nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.site-desktop-nav .site-cta { font-size: 13px; padding: 9px 15px; gap: 12px; min-height: 44px; }
.site-mobile-menu { display: none; }
.site-footer { background: linear-gradient(110deg, #1b536b, #153e52); color: #fff; padding: 24px 0 16px; }
.site-footer-inner { width: min(92%, var(--content)); margin: auto; }
.site-footer-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .site-brand { color: #fff; display: flex; align-items: center; gap: 24px; }
.site-footer .site-brand-name { font-size: 23px; padding-left: 33px; }
.site-footer .site-brand-name::before { width: 21px; height: 18px; top: 11px; left: 3px; border-width: 2px; }
.site-footer .site-brand-name::after { width: 18px; height: 18px; top: 3px; left: 4px; border-width: 2px; }
.site-footer .site-brand-note { border-left: 1px solid #8aafc0; padding-left: 20px; font-size: 11px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: #fff; font-size: 12px; padding-block: 10px; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer-copy { font-size: 12px; margin-top: 12px; }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; border-top: 1px solid #608397; padding-top: 10px; font-size: 11px; }
.sb-page-intro { background: var(--sky); padding: 38px max(4%, calc((100% - 1200px) / 2)) 34px; }
.sb-page-intro h1 { margin: 3px 0 12px; }
.sb-page-intro > p:last-child { max-width: 800px; }
.sb-eyebrow { color: var(--blue); font-size: 14px; letter-spacing: .07em; font-weight: 800; }
.sb-page-intro .wp-block-buttons { margin-top: 24px; }
.sitebuilder-news { min-height: 65vh; padding-bottom: 48px; }
.sb-news-list { width: min(92%, var(--content)); margin: 28px auto; }
.sb-news-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 24px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sb-news-row:first-child { border-top: 1px solid var(--line); }
.sb-news-row h2, .sb-news-title { font-size: 19px; font-weight: 700; line-height: 1.6; }
.sb-news-row p { font-size: 14px; font-weight: 400; margin-top: 6px; color: var(--muted); }
.sb-news-row:hover { background: #f2f9fb; }
.sb-news-row:hover h2, .sb-news-row:hover .sb-news-title { text-decoration: underline; text-underline-offset: 5px; }
.sb-news-date { color: var(--muted); font-size: 13px; font-weight: 500; }
.sb-news-arrow { color: var(--blue); font-size: 25px; }
.sb-news-empty { width: min(92%, 900px); margin: 32px auto; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: #f6fafb; }
.sb-news-empty h2 { font-size: 24px; margin-bottom: 8px; }
.sb-news-empty p { font-size: 15px; }
.sb-news-empty .wp-block-buttons { margin-top: 22px; }
.navigation.pagination { width: min(92%, 1200px); margin: 28px auto 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.page-numbers { min-width: 44px; min-height: 44px; padding: 8px 15px; text-align: center; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.page-numbers.current { background: var(--blue); color: #fff; }
.page-numbers.dots { border-color: transparent; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sb-article { max-width: 760px; width: 92%; margin: 40px auto 0; }
.sb-article header { padding-bottom: 24px; border-bottom: 2px solid var(--sky-strong); }
.sb-article h1 { margin: 8px 0 18px; font-size: clamp(28px, 3vw, 38px); }
.sb-article-body { padding: 28px 0; line-height: 1.95; }
.sb-article-body > * + * { margin-top: 22px; }
.sb-article-body h2 { font-size: 27px; margin-top: 36px; border-left: 4px solid var(--yellow); padding-left: 16px; }
.sb-article-body h3 { font-size: 22px; margin-top: 28px; }
.sb-article-back { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; font-weight: 700; }
.sb-article-back::before { content: "←"; }
.sb-contact { background: var(--peach); padding: 30px 4% 44px; min-height: 70vh; }
.sb-contact-layout { max-width: 920px; margin: auto; }
.sb-contact-copy { margin: 0 auto 20px; text-align: center; }
.sb-contact-copy h1 { font-size: clamp(28px, 3vw, 36px); margin: 3px 0 14px; }
.sb-contact-copy h1::after { content: ""; display: block; width: 56px; height: 3px; margin: 13px auto 0; background: var(--yellow); }
.sb-contact-copy p { font-size: 15px; }
.sb-contact-copy p + p { margin-top: 6px; }
.sb-contact-form { background: #fff; padding: 24px 32px; border: 1px solid #f3e5dc; border-radius: 9px; }
.sb-contact-form > p { font-size: 14px; margin-bottom: 16px; }
.sb-contact-form form { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 16px 24px; align-items: start; }
.sb-contact-form label { font-size: 15px; font-weight: 700; padding-top: 10px; }
.sb-contact-form input:not([type="checkbox"]):not([type="hidden"]), .sb-contact-form textarea { width: 100%; max-width: 100%; min-height: 46px; background: #fff; border: 1px solid #7c919c; padding: 10px 12px; line-height: 1.6; }
.sb-contact-form textarea { height: 170px; min-height: 150px; resize: vertical; }
.sb-contact-form .sb-privacy, .sb-contact-form .sb-consent, .sb-contact-form button { grid-column: 2; }
.sb-contact-form .sb-privacy { font-size: 13px; color: var(--muted); }
.sb-contact-form .sb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; line-height: 1.7; min-height: 44px; padding: 3px 0; }
.sb-contact-form input[type="checkbox"] { accent-color: var(--blue); flex-shrink: 0; width: 20px; height: 20px; margin: 3px 0 0; }
.sb-contact-form button { width: 100%; }
.sb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sb-contact-status { padding: 14px; border: 1px solid #a13312; background: #fff2ec; color: #85290c; border-radius: 4px; }
.sb-contact-status[data-success="true"] { border-color: #39785e; color: #23513e; background: #eff8f3; }
.sb-contact-thanks { padding-block: 48px; }
.sb-contact-thanks .sb-contact-layout { max-width: 760px; }
.sb-contact-thanks .wp-block-buttons { margin-top: 24px; }
.error404 .sb-page-intro { min-height: 55vh; padding-block: 60px; }
.error404 .sb-page-intro h1 { font-size: clamp(24px, 6.4vw, 46px); }
@media (min-width: 921px) {
  .site-footer { padding: 10px 0; }
  .site-footer-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 24px; }
  .site-footer-top { grid-column: 1 / -1; }
  .site-footer-copy { font-size: 11px; margin-top: 0; align-self: center; }
  .site-footer-bottom { margin: 0; padding: 0; border: 0; gap: 22px; align-items: center; font-size: 10px; }
}
@media (max-width: 1100px) {
  .site-header-inner { min-height: 60px; }
  .site-desktop-nav { gap: 14px; }
  .site-desktop-nav nav { gap: 18px; }
  .site-desktop-nav nav a { font-size: 12px; }
  .site-desktop-nav .site-cta { font-size: 12px; padding: 9px 12px; gap: 8px; }
  .site-brand-name { font-size: 32px; }
  .site-footer-top { align-items: flex-start; }
  .site-footer .site-brand { display: block; }
  .site-footer .site-brand-note { display: block; border: 0; padding: 8px 0 0; }
}
@media (max-width: 920px) {
  .site-desktop-nav { display: none; }
  .site-mobile-menu { display: block; }
  .site-mobile-menu summary { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; font-weight: 700; background: #fff; }
  .site-mobile-menu[open] { width: 100%; }
  .site-mobile-menu[open] summary { width: fit-content; margin-left: auto; }
  .site-header-inner:has(.site-mobile-menu[open]) { flex-wrap: wrap; padding-block: 10px 16px; gap: 8px; }
  .site-mobile-menu[open] nav { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0; gap: 0 20px; }
  .site-mobile-menu nav a { color: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 0; min-height: 48px; text-decoration: none; font-size: 15px; font-weight: 700; }
  .site-mobile-menu nav a[aria-current="page"] { color: var(--blue); }
  .site-mobile-menu .site-cta { width: 100%; font-size: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header-inner, .site-footer-inner { width: calc(100% - 36px); }
  .site-header .site-brand-note { font-size: 11px; left: 18px; }
  .site-brand-name { font-size: 29px; padding-left: 39px; }
  .site-brand-name::before { width: 25px; height: 21px; top: 14px; left: 3px; }
  .site-brand-name::after { width: 22px; height: 22px; left: 4px; }
  .site-footer { padding: 24px 0 18px; }
  .site-footer-top { display: block; }
  .site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 18px; }
  .site-footer nav a { font-size: 13px; min-height: 44px; }
  .site-footer-copy { font-size: 12px; }
  .site-footer-bottom { font-size: 10px; }
  .sb-page-intro { padding: 26px 20px; }
  .sb-news-row { grid-template-columns: minmax(0,1fr) 24px; gap: 8px 12px; padding: 20px 4px; }
  .sb-news-date { grid-column: 1; }
  .sb-news-row > div, .sb-news-title { grid-column: 1; }
  .sb-news-arrow { grid-column: 2; grid-row: 1 / 3; }
  .sb-news-row h2, .sb-news-title { font-size: 18px; }
  .sb-news-empty { padding: 24px 18px; }
  .sb-news-empty h2 { font-size: 21px; }
  .sb-news-empty .site-cta { font-size: 13px; padding-inline: 12px; gap: 10px; }
  .sb-article { margin-top: 28px; width: calc(100% - 40px); }
  .sb-contact { padding: 24px 16px 32px; }
  .sb-contact-copy { text-align: left; }
  .sb-contact-copy h1::after { margin-left: 0; }
  .sb-contact-copy p { font-size: 14px; }
  .sb-contact-form { padding: 20px 16px; }
  .sb-contact-form form { display: flex; flex-direction: column; gap: 8px; }
  .sb-contact-form form > * { width: 100%; }
  .sb-contact-form label { margin-top: 8px; padding-top: 0; }
  .sb-contact-form textarea { min-height: 170px; }
  .sb-contact-form .sb-privacy { margin-top: 12px; }
  .sb-contact-form .sb-consent { margin: 8px 0; }
  .wp-block-button a { font-size: 14px; padding: 12px 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
