:root {
  --blue: #1266a8;
  --blue-dark: #17496e;
  --blue-pale: #edf7fc;
  --green: #2f8168;
  --green-pale: #edf7f2;
  --ink: #26333b;
  --muted: #5c6d76;
  --line: #cbdde6;
  --paper: #ffffff;
  --warm: #fffdf8;
  --shadow: 0 6px 20px rgba(28, 76, 101, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f5fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
a { color: var(--blue); }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; padding: .65rem 1rem; background: #fff; }
.site-header { background: #fff; border-top: 6px solid var(--blue); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1120px, calc(100% - 32px)); margin: auto; min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); text-decoration: none; }
.brand small { display: block; color: var(--green); font-weight: 700; letter-spacing: .08em; }
.brand strong { display: block; color: var(--blue); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.35; letter-spacing: .03em; }
.header-contact { text-align: right; line-height: 1.45; }
.header-contact span { display: block; color: var(--muted); font-size: .83rem; }
.header-contact a { color: var(--blue-dark); font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.global-nav { background: var(--blue-dark); }
.global-nav ul { margin: 0; padding: 0; list-style: none; }
.global-nav .menu-root { width: min(1120px, calc(100% - 32px)); margin: 0 auto; display: flex; }
.global-nav .menu-root > li { position: relative; }
.global-nav .menu-root > li > a,
.global-nav summary {
  display: block;
  padding: .7rem 1rem;
  border-right: 1px solid rgba(255,255,255,.22);
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
.global-nav summary { list-style: none; }
.global-nav summary::-webkit-details-marker { display: none; }
.global-nav summary::after { content: "▾"; margin-left: .45rem; font-size: .75em; }
.global-nav .menu-root > li > a:hover,
.global-nav .menu-root > li > a:focus-visible,
.global-nav summary:hover,
.global-nav summary:focus-visible,
.global-nav details[open] > summary { background: var(--blue); outline-offset: -3px; }
.global-nav .submenu {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  display: none;
  min-width: 260px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.global-nav .has-submenu:hover .submenu,
.global-nav details[open] .submenu { display: block; }
.global-nav .submenu a {
  display: block;
  padding: .55rem .85rem;
  border-bottom: 1px solid #e3edf2;
  color: var(--blue-dark);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.5;
}
.global-nav .submenu li:last-child a { border-bottom: 0; }
.global-nav .submenu a:hover,
.global-nav .submenu a:focus-visible { background: var(--blue-pale); color: var(--blue); }
.hero { position: relative; overflow: hidden; background: #dceef6; }
.hero img { width: 100%; height: clamp(260px, 38vw, 485px); object-fit: cover; object-position: center; }
.hero-copy { position: absolute; inset: 0; display: grid; align-content: center; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 38%, rgba(255,255,255,.10) 70%); }
.hero-copy-inner { width: min(1120px, calc(100% - 32px)); margin: auto; }
.eyebrow { margin: 0 0 .35rem; color: var(--green); font-weight: 800; letter-spacing: .08em; }
.hero h1 { max-width: 680px; margin: 0; color: var(--blue-dark); font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.35; letter-spacing: .025em; }
.hero p:last-child { max-width: 620px; margin: 1rem 0 0; font-size: clamp(1rem, 2vw, 1.28rem); font-weight: 700; }
.home-intro { background: var(--blue); color: #fff; }
.home-intro-inner { width: min(960px, calc(100% - 32px)); margin: auto; padding: 28px 0; text-align: center; }
.home-intro p { margin: 0; }
.container { width: min(1120px, calc(100% - 32px)); margin: auto; }
.section { padding: 58px 0; }
.section-heading { margin: 0 0 28px; text-align: center; color: var(--blue-dark); font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.45; }
.section-heading::after { content: ""; display: block; width: 66px; height: 3px; margin: 13px auto 0; background: var(--green); }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.link-card { min-height: 126px; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-left: 5px solid var(--blue); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.link-card:hover, .link-card:focus-visible { border-color: var(--blue); transform: translateY(-2px); }
.link-no { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-weight: 800; }
.link-card strong { display: block; color: var(--blue-dark); font-size: 1.06rem; }
.link-card span:last-child { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.service-strip { background: var(--green-pale); border-block: 1px solid #cee3d9; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-box { padding: 28px; background: #fff; border: 1px solid #c9ddd5; }
.service-box h3 { margin: 0 0 .55rem; color: var(--green); font-size: 1.35rem; }
.service-box p { margin: 0; }
.plain-link { display: inline-block; margin-top: .8rem; font-weight: 700; }
.contact-band { padding: 38px 0; background: var(--blue-dark); color: #fff; }
.contact-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-band h2, .contact-band p { margin: 0; }
.contact-band a { color: #fff; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; text-decoration: none; }
.site-footer { padding: 32px 0; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0; }
.page-title { padding: 38px 0; background: linear-gradient(120deg, var(--blue-pale), #fff); border-bottom: 1px solid var(--line); }
.page-title .container { position: relative; }
.page-title p { margin: 0 0 .2rem; color: var(--green); font-size: .86rem; font-weight: 800; letter-spacing: .1em; }
.page-title h1 { margin: 0; color: var(--blue-dark); font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1.4; }
.breadcrumbs { padding: 10px 0; background: #fff; border-bottom: 1px solid #e1ebef; color: var(--muted); font-size: .82rem; }
.breadcrumbs ol { margin: 0; padding: 0; display: flex; gap: .55rem; list-style: none; }
.breadcrumbs li + li::before { content: ">"; margin-right: .55rem; color: #91a4ae; }
.content-section { padding: 50px 0; background: #fff; }
.content-section.alt { background: var(--blue-pale); }
.content-section h2 { margin: 0 0 1.4rem; padding: 0 0 .55rem .8rem; border-left: 5px solid var(--green); border-bottom: 1px solid var(--line); color: var(--blue-dark); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.45; }
.content-section h3 { margin: 1.8rem 0 .65rem; color: var(--green); font-size: 1.22rem; }
.content-section p { margin: 0 0 1.15rem; }
.lead { color: var(--blue-dark); font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 700; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.info-card h3 { margin-top: 0; color: var(--blue-dark); }
.number-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: .8rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }
.check-list, .plain-list { margin: .6rem 0 1.2rem; padding: 0; list-style: none; }
.check-list li, .plain-list li { position: relative; padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px dotted #c8d7de; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.plain-list li::before { content: "●"; position: absolute; left: .2rem; color: var(--blue); font-size: .6rem; top: .75rem; }
.warning-list li::before { color: #c15b4c; }
.notice { margin: 1.3rem 0; padding: 18px 20px; background: #fff9e8; border-left: 5px solid #d8a42b; }
.steps { margin: 0; padding: 0; counter-reset: step; list-style: none; }
.steps li { position: relative; margin-bottom: 20px; padding: 22px 22px 22px 82px; background: #fff; border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 18px; color: var(--blue); font-size: 1.4rem; font-weight: 900; }
.steps li:not(:last-child)::after { content: "↓"; position: absolute; bottom: -25px; left: 43px; z-index: 1; color: var(--green); font-weight: 900; }
.steps strong { display: block; color: var(--blue-dark); font-size: 1.15rem; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { padding: 13px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { width: 26%; background: var(--blue-pale); color: var(--blue-dark); }
.portrait-layout { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: start; }
.portrait-layout img { width: 230px; max-height: 310px; object-fit: cover; object-position: top; border: 8px solid #fff; box-shadow: var(--shadow); }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.profile { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.profile img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  align-self: start;
}
.profile-body { padding: 22px; }
.profile-role { margin: 0; color: var(--green); font-size: .88rem; font-weight: 700; }
.profile h2 { margin: .15rem 0 .15rem; padding: 0; border: 0; font-size: 1.4rem; }
.profile-qual { color: var(--muted); font-size: .9rem; }
.job-box { margin-bottom: 28px; padding: 28px; background: #fff; border-top: 5px solid var(--blue); box-shadow: var(--shadow); }
.job-box h2 { border-left: 0; padding-left: 0; }
.map-image {
  width: min(630px, 100%);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.store-image { width: 100%; max-height: 350px; margin-bottom: 28px; object-fit: cover; }
.support-image {
  width: min(760px, 100%);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.policy-list { padding-left: 1.4rem; }
.policy-list li { margin-bottom: .9rem; }
.anchor-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.anchor-links a { padding: .45rem .8rem; background: var(--blue-pale); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.back-home { display: inline-block; margin-top: 1rem; font-weight: 700; }

@media (max-width: 820px) {
  .header-inner { min-height: 88px; }
  .header-contact span { display: none; }
  .global-nav { overflow: visible; }
  .global-nav .menu-root { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .global-nav .menu-root > li > a,
  .global-nav summary { height: 100%; padding: .65rem .55rem; text-align: center; white-space: normal; }
  .global-nav .submenu { position: static; width: 100%; min-width: 0; padding: 0; border: 0; box-shadow: none; }
  .global-nav .submenu a { padding: .5rem .6rem; text-align: left; }
  .hero-copy { background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.74)); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile { display: grid; grid-template-columns: 220px 1fr; }
  .profile img { height: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { align-items: flex-start; padding: 15px 0; }
  .header-contact a { font-size: 1.05rem; }
  .global-nav .menu-root { grid-template-columns: repeat(2, 1fr); }
  .hero img { height: 410px; object-position: 58% center; }
  .hero-copy { align-content: end; padding-bottom: 26px; background: linear-gradient(0deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.84) 55%, rgba(255,255,255,.14) 100%); }
  .hero h1 { font-size: 1.95rem; }
  .link-grid, .service-grid { grid-template-columns: 1fr; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .portrait-layout { grid-template-columns: 1fr; }
  .portrait-layout img { width: 200px; }
  .profile { display: block; }
  .profile img { height: auto; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tr { margin-bottom: 12px; border: 1px solid var(--line); }
  .data-table th, .data-table td { border: 0; }
  .section { padding: 42px 0; }
  .contact-band .container, .footer-grid { display: block; }
  .contact-band a { display: block; margin-top: .65rem; }
  .site-footer p + p { margin-top: .7rem; }
}

/* 印刷時のみ、各ページをA4縦1枚に収める */
@media print {
  @page { size: A4 portrait; margin: 4mm; }

  html, body { background: #fff !important; }
  body {
    width: auto;
    margin: 0;
    color: #111;
    font-size: 15px;
    line-height: 1.35;
    zoom: .9;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.print-fill-home { zoom: 1.2; }
  body.print-fill-business { zoom: 1.3; }
  body.print-fill-about { zoom: 1.15; }
  body.print-fill-flow { zoom: 1.35; }
  body.print-fill-history { zoom: 1.05; }

  .skip-link,
  .global-nav,
  .breadcrumbs,
  .contact-band,
  .site-footer { display: none !important; }

  .container,
  .header-inner,
  .hero-copy-inner,
  .home-intro-inner {
    width: 100%;
    max-width: none;
  }

  .site-header { border-top-width: 3px; border-bottom: 1px solid var(--line); }
  .header-inner { min-height: 0; padding: 4px 0 7px; }
  .header-contact { display: none; }
  .brand small { font-size: 9px; }
  .brand strong { font-size: 19px; }

  .page-title { padding: 8px 0; }
  .page-title p { margin: 0; font-size: 8px; }
  .page-title h1 { font-size: 21px; }

  .section,
  .content-section { padding: 10px 0; }
  .section-heading { margin-bottom: 10px; font-size: 19px; }
  .section-heading::after { width: 36px; margin-top: 4px; }
  .content-section h2 { margin-bottom: 7px; padding-bottom: 3px; font-size: 17px; }
  .content-section h3 { margin: 8px 0 3px; font-size: 15px; }
  .content-section p { margin-bottom: 6px; }
  .lead { font-size: 16px; }

  .hero img { height: 145px; }
  .hero h1 { font-size: 28px; }
  .hero p:last-child { margin-top: 5px; font-size: 15px; }
  .home-intro-inner { padding: 7px 0; }

  .link-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .link-card { min-height: 0; gap: 7px; padding: 7px; box-shadow: none; }
  .link-no { flex-basis: 24px; width: 24px; height: 24px; }
  .link-card strong { font-size: 13px; }
  .link-card span:last-child { margin-top: 1px; font-size: 10px; line-height: 1.25; }

  .service-grid,
  .two-col,
  .three-col { gap: 8px; }
  .service-box,
  .info-card { padding: 9px; box-shadow: none; }
  .anchor-links { margin-bottom: 8px; }
  .anchor-links a { padding: 2px 5px; }
  .check-list,
  .plain-list { margin: 3px 0 6px; }
  .check-list li,
  .plain-list li { padding-top: 2px; padding-bottom: 2px; }
  .plain-list li::before { top: 6px; }
  .notice { margin: 6px 0; padding: 7px 9px; }

  .steps li { margin-bottom: 7px; padding: 7px 8px 7px 42px; }
  .steps li::before { left: 9px; top: 5px; font-size: 15px; }
  .steps li:not(:last-child)::after { display: none; }
  .steps strong { font-size: 15px; }

  .data-table th,
  .data-table td { padding: 4px 6px; }

  .portrait-layout { grid-template-columns: 42mm 1fr; gap: 8px; }
  .portrait-layout img {
    width: 40mm;
    height: auto !important;
    max-height: 55mm;
    aspect-ratio: auto;
    object-fit: contain;
    border-width: 3px;
    box-shadow: none;
  }
  .profile-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .profile { display: block; box-shadow: none; }
  .profile img { width: 100%; height: auto; }
  .profile-body { padding: 7px; }
  .profile h2 { font-size: 16px; }

  .job-box { margin-bottom: 8px; padding: 8px; border-top-width: 3px; box-shadow: none; }
  .map-image { width: 58mm; max-width: 58mm; }
  .store-image { max-height: 42mm; margin-bottom: 8px; }
  .support-image { width: auto; max-width: 100%; max-height: 235mm; }
  .policy-list { margin: 4px 0; padding-left: 18px; }
  .policy-list li { margin-bottom: 4px; }

  img,
  .link-card,
  .service-box,
  .info-card,
  .profile,
  table,
  tr { break-inside: avoid; page-break-inside: avoid; }
}
