@font-face {
  font-family: "Home Heading";
  src: url("/home/fonts/hero-noto-sans-jp-black.woff2?v=6") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  unicode-range: U+306E, U+30C4, U+30EB, U+30FC, U+5857, U+58C1, U+5916, U+6C7A, U+88C5, U+89E3;
}

:root {
  color-scheme: light;
  --ink: #332620;
  --muted: #625046;
  --accent-ink: #b42337;
  --accent-hover: #921a2b;
  --home-blue: #00acd7;
  --brand-yellow: #ffd343;
  --soft-yellow: #fff0b3;
  --soft-peach: #fff0e7;
  --tinted-surface: #fff8e8;
  --home-green: #40b649;
  --green: #176341;
  --green-tint: #eef7e9;
  --line: #ecd8c5;
  --accent-border: #df9b93;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.65; }
h1, h2, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; }
.wrap { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }

.site-header { position: relative; z-index: 1; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 12px; padding-inline: clamp(16px, 4vw, 68px); }
.brand { width: min(251px, 46%); line-height: 0; }
.brand img { width: 100%; height: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 9px; font-size: .88rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-action:first-child { border-color: #efd788; background: var(--soft-yellow); }
.header-action:first-child:hover { background: var(--brand-yellow); }
.header-line { color: var(--green); border-color: #c4dfd0; }
.header-line:hover { background: var(--green-tint); }
.grid-icon { width: 17px; height: 17px; flex: none; background: radial-gradient(circle, var(--accent-ink) 53%, transparent 59%) 0 0 / 8px 8px; }
.line-icon { flex: none; }

.hero {
  position: relative;
  background: #fff url('/home/home-grid.png') repeat center top;
}
.hero-opening {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 18px 48px;
  background: #fff url('/home/home-grid.png') repeat center top;
  text-align: center;
  transition: opacity .28s ease;
}
.hero-opening.is-ending { opacity: 0; }
.hero-inner { transition: opacity .28s ease; }
.hero-intro-active .hero-inner { opacity: 0; }
.hero-opening-line {
  min-height: 1.35em;
  color: #191919;
  font-size: clamp(1.7rem, 5.6vw, 4.75rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -.045em;
}
.hero-opening-accent { color: var(--accent-ink); font-size: clamp(1.4rem, 4.8vw, 3.9rem); }
.hero-opening-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 20px);
  margin: clamp(18px, 4vw, 36px) auto;
  padding: 0;
  list-style: none;
}
.hero-opening-topics li {
  --topic: #006b8b;
  --topic-bg: #def5fb;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .35em .68em;
  border: 2px solid var(--topic);
  border-radius: .8em .8em .65em .8em;
  background: var(--topic-bg);
  color: var(--topic);
  font-size: clamp(.84rem, 3.4vw, 1.7rem);
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.hero-opening-topics li:nth-child(2) { --topic: #845000; --topic-bg: #fff0bf; }
.hero-opening-topics li:nth-child(3) { --topic: #a0263c; --topic-bg: #ffe5ea; }
.hero-opening-topics li:nth-child(4) { --topic: #176341; --topic-bg: #e7f7ea; }
.hero-opening-topics li.is-visible { opacity: 1; transform: none; }
.topic-icon { position: relative; display: inline-block; width: .9em; height: .9em; flex: none; font-style: normal; }
.topic-search { width: .68em; height: .68em; margin-inline-end: .22em; border: 2px solid; border-radius: 50%; }
.topic-search::after { position: absolute; left: 83%; top: 86%; width: .36em; height: 2px; background: currentColor; content: ""; transform: rotate(45deg); transform-origin: left center; }
.topic-quote { width: .7em; border: 2px solid; border-radius: 2px; }
.topic-quote::after { position: absolute; inset: 29% 17% auto; height: 2px; background: currentColor; box-shadow: 0 .16em currentColor; content: ""; }
.topic-alert { border: 2px solid; border-radius: 50%; line-height: .75em; }
.topic-paint { height: .54em; margin-block-start: -.26em; border: 2px solid; border-radius: 4px; }
.topic-paint::after { position: absolute; left: 53%; top: 100%; width: 2px; height: .37em; background: currentColor; content: ""; }
.hero-opening-skip {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: 14px;
  min-height: 36px;
  padding: 3px 12px;
  border: 1px solid #b1c6ce;
  border-radius: 6px;
  background: #fff;
  color: #264956;
  font-size: .84rem;
  font-weight: 700;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(44px, 5.1vw, 72px);
}
.hero-copy { container-type: inline-size; text-align: center; }
.hero-kicker { display: inline-block; margin-bottom: clamp(12px, 2vw, 24px); padding: .36em .85em; border: 2px solid var(--accent-ink); border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: clamp(.8rem, 4.15cqi, 1.2rem); font-weight: 850; line-height: 1.45; }
.hero h1 { font-family: "Home Heading", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; font-size: clamp(3rem, 17cqi, 6rem); font-weight: 900; letter-spacing: -.065em; line-height: 1.09; }
.hero h1 span { display: block; }
.hero h1 span:first-child { margin-bottom: .17em; font-size: .61em; letter-spacing: -.04em; }
.hero h1 span:last-child { width: fit-content; margin-inline: auto; padding-inline: .07em; background: linear-gradient(transparent 72%, var(--brand-yellow) 72% 94%, transparent 94%); color: var(--accent-ink); }
.hero-start { display: grid; gap: 9px; max-width: 450px; margin: clamp(19px, 5cqi, 31px) auto 0; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.hero-action { display: flex; align-items: center; justify-content: center; min-height: 50px; padding-inline: 10px; border-radius: 8px; background: #007a9b; color: #fff; font-size: clamp(.94rem, 4.4cqi, 1.12rem); font-weight: 850; text-decoration: none; }
.hero-action:hover { background: #006783; }
.hero-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hero-shortcuts a { display: flex; align-items: center; justify-content: center; min-height: 43px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--accent-ink); font-size: clamp(.72rem, 3.5cqi, .92rem); font-weight: 800; line-height: 1.28; text-decoration: none; }
.hero-shortcuts a:nth-child(1) { background: var(--tinted-surface); }
.hero-shortcuts a:nth-child(2) { background: var(--soft-peach); }
.hero-shortcuts a:nth-child(3) { border-color: #ccdec7; background: var(--green-tint); color: var(--green); }
.hero-shortcuts a:hover { border-color: var(--accent-border); }
.hero-visual { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 16px #85432413; }
.hero-visual video { display: block; width: 100%; height: auto; aspect-ratio: 128 / 83; }

.service-finder { padding-block: clamp(24px, 4vw, 52px); background: var(--brand-yellow); }
.finder-panel { padding: clamp(18px, 4vw, 42px); border: 1px solid #edc452; border-radius: 16px; background: #fff; }
.finder-intro { display: grid; min-height: 206px; align-content: center; justify-items: center; gap: 13px; text-align: center; }
.finder-typing, .finder-form legend, .finder-results h3 { margin: 0; color: var(--accent-ink); font-size: clamp(1.28rem, 3vw, 2rem); font-weight: 850; line-height: 1.4; }
.finder-typing { min-height: 2.8em; display: grid; align-items: center; }
.finder-intro { transition: opacity 420ms ease; }
.finder-intro.is-leaving { opacity: 0; }
.finder-skip, .finder-back { padding: 5px 10px; border: 0; background: transparent; color: var(--accent-ink); font-size: .88rem; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.finder-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.finder-form legend { padding: 0; }
.finder-hint { margin: 6px 0 15px; color: var(--muted); font-size: .91rem; }
.finder-options, .finder-matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.finder-options label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: .91rem; font-weight: 750; cursor: pointer; }
.finder-options label:has(input:checked) { border-color: var(--accent-border); background: var(--soft-peach); }
.finder-options input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--accent-ink); }
.finder-submit { min-height: 46px; margin-top: 16px; padding: 6px 16px; border: 0; border-radius: 7px; background: var(--accent-ink); color: #fff; font-weight: 800; }
.finder-submit:hover { background: var(--accent-hover); }
.finder-error { margin-top: 8px; color: #aa263b; font-size: .9rem; font-weight: 750; }
.finder-matches { margin: 16px 0; padding: 0; gap: 14px; list-style: none; }
.finder-match { display: grid; grid-template-columns: minmax(84px, 31%) 1fr; gap: 13px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--tinted-surface); }
.finder-match:only-child { grid-column: 1 / -1; max-width: 730px; }
.finder-match-image { display: block; width: 100%; aspect-ratio: 1.6; border-radius: 5px; background: #fff; object-fit: contain; }
.finder-match-image.is-logo { padding: 12%; }
.finder-match-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; }
.finder-match h4 { margin: 0; color: var(--accent-ink); font-size: 1rem; }
.finder-match small { color: var(--muted); font-size: .74rem; }
.finder-match p { margin-top: 6px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.finder-match p strong { display: block; color: var(--ink); font-size: .78rem; }
.finder-match-action { display: inline-flex; align-items: center; min-height: 40px; margin-top: 9px; padding: 4px 10px; border-radius: 6px; background: var(--accent-ink); color: #fff; font-size: .84rem; font-weight: 800; text-decoration: none; }
.finder-match-action:hover { background: var(--accent-hover); }
.finder-match-action.is-details { border: 1px solid var(--line); background: #fff; color: var(--accent-ink); }

.catalog { padding-block: clamp(33px, 5.6vw, 72px) 36px; background: radial-gradient(ellipse at 2% 55%, var(--soft-yellow) 0 43%, transparent 44%); color: #000; }
.catalog-heading { margin-bottom: 23px; }
.catalog h2, .features > h2 { font-size: clamp(1.45rem, 3.1vw, 2.35rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.25; }
.carousel-controls { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding-bottom: 5px; }
.carousel-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #00acd7; border-radius: 50%; background: #fff; color: #007b9d; }
.carousel-controls svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel-controls button:hover:not(:disabled) { background: #dff6fb; }
.carousel-controls button:disabled { opacity: .45; cursor: default; }
.carousel { --rail-inset: clamp(16px, 4vw, 68px); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(235px, 24vw, 355px); gap: 16px; width: min(100%, 1710px); margin: 0 auto; padding: 6px var(--rail-inset) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-inset); list-style: none; scrollbar-width: none; }
.carousel li { min-width: 0; scroll-snap-align: start; }
.tile { display: grid; grid-template-rows: auto 1fr; gap: 9px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; }
.tile:hover { border-color: var(--accent-border); }
.tile small, .tile strong { display: block; }
.tile small { margin-bottom: 3px; font-size: .76rem; font-weight: 750; }
.tile strong { font-size: clamp(.89rem, 1.45vw, 1.13rem); line-height: 1.3; font-weight: 900; }
.tile img { grid-row: 1; display: block; width: 100%; aspect-ratio: 1.85; border-radius: 6px; background: var(--tinted-surface); object-fit: cover; }
.tile-search img { background: #e8f6fb; object-fit: contain; }
.tile-score img { background: #f4f6eb; object-fit: contain; }
.tile-line img { padding: 14%; background: #f1faf0; object-fit: contain; }

.features { padding-block: clamp(42px, 6vw, 78px); }
.features > h2 { margin-bottom: 22px; }
.service { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); grid-template-areas: "media copy"; gap: clamp(19px, 4vw, 44px); align-items: center; margin-block: 0 18px; padding: clamp(16px, 3vw, 33px); border-radius: 15px; background: var(--tinted-surface); scroll-margin-top: 18px; }
.service:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); grid-template-areas: "copy media"; }
.service-checker, .service-agreement, .service-support { background: var(--soft-peach); }
.service-line { background: var(--green-tint); }
.service-media { display: block; grid-area: media; aspect-ratio: 2.06; overflow: hidden; border-radius: 10px; background: #f5e8d8; }
.service-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.service-media:hover img { transform: scale(1.025); }
.service-search .service-media img { object-fit: contain; }
.service-search .service-media { background: #e8f6fb; }
.service-score .service-media { aspect-ratio: 1000 / 563; background: #f4f6eb; }
.service-score .service-media img { object-fit: contain; }
.score-video { grid-column: 1 / -1; width: min(100%, 800px); justify-self: center; }
.score-video h3 { margin: 0 0 10px; font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.35; }
.score-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #1d1b1a; }
.score-video > a { display: inline-block; margin-top: 8px; color: #07509e; font-size: .85rem; text-underline-offset: 3px; }
.service-line .service-media { background: #fff; }
.service-line .service-media img { padding: 12% 15%; object-fit: contain; }
.service-content { grid-area: copy; }
.service-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.service h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.32; letter-spacing: -.035em; }
.service-description { margin-top: 9px; color: var(--muted); line-height: 1.7; }
.service-link, .service-button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 45px; margin-top: 15px; padding: 7px 19px; border-radius: 8px; background: var(--accent-ink); color: #fff; font-size: .92rem; font-weight: 800; text-decoration: none; }
.service-link:hover { background: var(--accent-hover); }
.service-search .service-link { background: #007592; }
.service-search .service-link:hover { background: #005c75; }
.service-line .service-link { background: var(--green); }
.service-line .service-link:hover { background: #124b32; }
.service-button { border: 1px solid var(--accent-border); background: #fff; color: var(--accent-ink); cursor: pointer; list-style: none; }
.service-button::-webkit-details-marker { display: none; }
.service-button:hover { border-color: var(--accent-ink); }
.service-details { scroll-margin-top: 20px; }
.service-details p { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: #fff9f3; font-size: .88rem; }
.service-status { color: var(--muted); font-size: .76rem; font-weight: 650; white-space: nowrap; }
.faq { max-width: 820px; padding-block: 6px clamp(44px, 7vw, 90px); }
.faq h2 { margin-bottom: 21px; color: var(--accent-ink); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.3; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.faq-topics button { flex: 1 1 9em; min-height: 44px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--tinted-surface); color: var(--accent-ink); font-weight: 800; }
.faq-topics button[aria-pressed="true"] { background: var(--accent-ink); color: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 2px; color: var(--accent-ink); font-weight: 750; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.15rem; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 16px 2px; color: var(--muted); }
.faq details a { color: var(--accent-ink); text-underline-offset: 3px; }

.site-footer { padding-block: clamp(28px, 5vw, 75px); background: var(--home-blue); }
.footer-panel { padding: clamp(19px, 4vw, 54px); border-radius: 13px; background: #fff; }
.footer-brand { display: block; width: min(225px, 65%); margin-bottom: 19px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 21px; padding: clamp(14px, 2.6vw, 30px); border-radius: 7px; background: var(--tinted-surface); }
.footer-links h2 { color: #07509e; font-size: .93rem; }
.footer-links ul { margin: 9px 0 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: 4px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.footer-links a:hover { color: #07509e; text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #07509e; }
.footer-copyright { margin-top: 15px; color: var(--muted); font-size: .75rem; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 761px) {
  .hero-inner { width: min(1300px, calc(100% - 64px)); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 46px 18px; }
  .hero-visual { width: min(100%, 460px); justify-self: center; }
  .finder-matches { grid-template-columns: 1fr; }
  .service, .service:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "copy"; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 475px) {
  .finder-options, .finder-matches { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 65px; padding-inline: 10px; gap: 4px; }
  .header-actions { gap: 4px; }
  .header-action { min-height: 40px; gap: 4px; padding-inline: 6px; font-size: .72rem; }
  .grid-icon, .line-icon { transform: scale(.82); }
  .carousel { grid-auto-columns: 76%; gap: 12px; }
  .service-media { aspect-ratio: 1.85; }
}

@media (prefers-reduced-motion: reduce) {
  .finder-intro { transition: none; }
  .service-media img { transition: none; }
  .service-media:hover img { transform: none; }
}
