:root {
  --navy: #202124;
  --ink: #202124;
  --muted: #62666d;
  --line: #eadfd6;
  --soft: #fff7f1;
  --accent: #ff6500;
  --accent-dark: #d85200;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 12.8px;
  line-height: 1.75;
  background: var(--white);
  padding-top: 76px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 180px; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 12.8px; font-weight: 500; }
.site-nav a { color: var(--navy); }
.site-nav a:hover { font-weight: 600; }
.nav-cta, .btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 6px; padding: 10px 16px; font-weight: 600; line-height: 1.2; }
.nav-cta, .btn-primary { background: var(--accent); color: var(--white) !important; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 17.6px; }
.hero { padding: 72px 0 44px; background: linear-gradient(180deg, #fff3e9 0%, #fff 100%); }
.hero-grid, .two-col { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 42px; align-items: center; }
.hero-grid > *, .two-col > *, .media-layout > *, .card, .cta-card, article { min-width: 0; }
.eyebrow { color: var(--accent-dark); font-size: 12.8px; font-weight: 600; letter-spacing: 0; }
.hero .eyebrow { font-size: 16px; }
h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0; }
h1 { font-size: clamp(27.2px, 4vw, 44.8px); }
.hero h1 { font-size: clamp(24px, 3.4vw, 38px); }
h2 { font-size: clamp(20.8px, 2.4vw, 28.8px); }
h3 { font-size: 16px; }
p { margin: 12px 0 0; }
.lead { color: var(--muted); font-size: 13.6px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn-primary,
.hero-actions .btn-secondary { min-width: 104px; }
.btn-secondary { border: 1px solid var(--navy); color: var(--navy); background: #fff; }
.hero-image { border-radius: 8px; overflow: hidden; box-shadow: 0 20px 54px rgba(32,33,36,.14); aspect-ratio: 16 / 10; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-title-spaced { margin-bottom: 32px; }
.link-arrow { color: var(--accent-dark); font-weight: 600; }
.section-link { margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card, .cta-card, .notice-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.card > a { display: block; height: 100%; }
.card h3 a, .article-row h3 a { color: var(--navy); }
.icon-box, .thumb, .office-photo, .portrait { display: grid; width: 100%; max-width: 100%; place-items: center; color: var(--navy); font-weight: 600; text-align: center; background: linear-gradient(135deg, #fff0e4, #fffaf6); border: 1px solid var(--line); border-radius: 8px; }
.icon-box { width: 92px; height: 92px; margin-bottom: 16px; }
.thumb { aspect-ratio: 16 / 9; margin-bottom: 14px; color: #36536f; }
.portrait { aspect-ratio: 4 / 5; }
.office-photo { aspect-ratio: 4 / 3; }
.icon-box.has-image, .thumb.has-image, .portrait.has-image, .office-photo.has-image { overflow: hidden; background: #fff; }
.icon-box.has-image img, .thumb.has-image img, .portrait.has-image img, .office-photo.has-image img { width: 100%; height: 100%; object-fit: cover; }
.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 120px 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.news-list-cms .news-row { grid-template-columns: minmax(210px, auto) 1fr; }
.news-meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; width: fit-content; color: var(--accent-dark); background: #fff0e4; border-radius: 999px; padding: 4px 10px; font-size: 10.4px; font-weight: 600; }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.link-grid a { border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #fff; font-weight: 600; }
.media-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); gap: 28px; align-items: start; }
.article-list { display: grid; gap: 16px; }
.article-row { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filters, .pagination { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.filter-btn, .page-btn { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 9px 14px; font-weight: 600; cursor: pointer; }
.filter-btn.is-active, .page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.side-cta { display: grid; gap: 14px; position: sticky; top: 96px; }
.banner-slot { display: grid; min-height: 220px; place-items: center; border: 1px dashed var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 11.2px; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.service-card-table { display: none; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #fff0e4; color: var(--navy); }
.center-page { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: 72px 0; }
.form { display: grid; gap: 16px; max-width: 720px; }
label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: inherit; }
textarea { min-height: 180px; }
.site-footer { margin-top: 64px; background: var(--navy); color: #f4eee9; padding: 44px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-logo { width: 200px; margin-bottom: 12px; }
.footer-description { font-size: 11.2px; line-height: 1.7; }
.footer-links { columns: 2; padding-left: 18px; }
.footer-links a { color: #fff; }
.copyright { text-align: center; font-size: 9.6px; color: #c7beb7; margin-top: 28px; }
.meta { color: var(--muted); font-size: 10.4px; }
.company-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.company-nav a { border: 1px solid var(--line); border-radius: 6px; padding: 14px 20px; background: #fff; font-weight: 600; color: var(--navy); box-shadow: 0 8px 18px rgba(32,33,36,.06); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.profile-company-name { color: var(--navy); font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.breadcrumb { margin-top: 32px; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.4px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: ">"; margin-left: 6px; color: #a9a09a; }
.breadcrumb a { color: var(--accent-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; flex-direction: column; align-items: stretch; box-shadow: 0 14px 32px rgba(11,42,74,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: block; width: 100%; text-align: center !important; }
  .site-nav .nav-cta { display: flex; width: 100%; align-items: center; justify-content: center; text-align: center !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .news-row, .news-list-cms .news-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
  .hero-grid, .two-col, .media-layout, .cards, .gallery, .article-row { grid-template-columns: 1fr; }
  .side-cta { position: static; }
  .hero h1, .hero .lead, main article { max-width: 100%; overflow-wrap: anywhere; }
  .thumb[style], .portrait[style], .office-photo[style] { width: 100% !important; max-width: 100% !important; }
  .service-table { display: none; }
  .service-card-table { display: grid; gap: 14px; margin-top: 18px; }
  .service-card-table article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
  .service-card-table h3 { font-size: 14.4px; margin-bottom: 12px; }
  .service-card-table p { display: grid; gap: 3px; margin-top: 10px; }
  .service-card-table span,
  .service-card-label { color: var(--accent-dark); font-size: 10.4px; font-weight: 600; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero { padding-top: 44px; }
  .section { padding: 44px 0; }
  .link-grid { grid-template-columns: 1fr; }
  .brand img { width: 150px; }
  .footer-logo { width: 170px; }
}
