:root {
  --navy: #002f54;
  --navy-deep: #001e36;
  --ecru: #f9f7ee;
  --paper: #fffef9;
  --sand: #e8d1ab;
  --sand-soft: #f1e5cf;
  --ink: #172634;
  --muted: #53626e;
  --line: rgba(0, 47, 84, 0.14);
  --gutter: 20px;
  --section-space: 72px;
  --shell: 1120px;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ecru); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ecru);
  color: var(--ink);
  font: 400 16px/1.85 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: 24px; }

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--paper);
  color: var(--navy);
  border-radius: 4px;
}
:focus-visible { outline: 3px solid var(--sand); outline-offset: 4px; }

.section-shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.eyebrow {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
}
.eyebrow--navy { color: var(--navy); }
.text-nowrap { white-space: nowrap; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: max(18px, env(safe-area-inset-top)) var(--gutter) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: white;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  text-decoration: none;
}
.brand img {
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1);
}
.brand span {
  border-left: 1px solid rgba(255, 255, 255, 0.58);
  padding-left: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 2px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
}
.store-link__long { display: none; }
.store-link svg, .tool-card__link svg, .category-card > svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  position: relative;
  height: clamp(660px, 100svh, 860px);
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
  color: white;
}
.hero__media, .hero__slide, .hero__slide picture, .hero__slide img, .hero__veil { position: absolute; inset: 0; }
.hero__slide {
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.16,1,.3,1);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.035);
  transition: transform 11.5s cubic-bezier(.16,1,.3,1);
}
.hero__slide.is-active img { transform: scale(1); }
.hero__slide--ordermade img { object-position: 48% 52%; }
.hero__veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 23, 42, 0.44) 0%, rgba(0, 24, 43, 0.03) 31%, rgba(0, 23, 42, 0.28) 58%, rgba(0, 21, 38, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 22, 40, 0.20), transparent 62%);
}
.hero__content {
  position: absolute;
  z-index: 2;
  inset: auto var(--gutter) 250px;
  max-width: 620px;
  opacity: 1;
  transform: none;
}
.js .hero__content {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s 0.25s ease, transform 0.9s 0.25s ease;
}
.js .hero.is-ready .hero__content { opacity: 1; transform: translateY(0); }
.hero h1 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(35px, 10vw, 52px);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.42;
  text-shadow: 0 3px 24px rgba(0, 20, 35, 0.24);
}
.hero__lead {
  margin-top: 19px;
  color: rgba(255, 255, 255, 0.91);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.hero-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  background: var(--ecru);
  border-bottom: 1px solid rgba(0, 47, 84, 0.08);
}
.hero__dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero__dot span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(0, 47, 84, 0.2);
  transition: width 0.35s ease, background 0.35s ease;
}
.hero__dot.is-active span { width: 37px; background: var(--navy); }

.quick-start {
  padding-block: 64px 72px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.quick-start__intro { max-width: 700px; }
.quick-start__intro h2 {
  margin-top: 13px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(31px, 9vw, 48px);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.42;
}
.quick-start__intro > p:last-child {
  max-width: 610px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.quick-start__grid {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  align-items: start;
}
.quick-category {
  overflow: hidden;
  background: var(--ecru);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 47, 84, 0.06);
}
.quick-category__trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 230px;
  padding: 24px 24px 14px;
  overflow: hidden;
  color: white;
  text-align: left;
  border: 0;
  cursor: pointer;
  isolation: isolate;
}
.quick-category__trigger::before,
.quick-category__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transition: transform 0.65s cubic-bezier(.22,.61,.36,1);
}
.quick-category--bed .quick-category__trigger::before { background-image: url("assets/tool-01-bed-size.jpg"); }
.quick-category--food .quick-category__trigger::before { background-image: url("assets/tool-02-food-cost.jpg"); }
.quick-category__trigger::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 25, 45, 0.14), rgba(0, 23, 42, 0.88));
}
.quick-category:hover .quick-category__trigger::before,
.quick-category.is-open .quick-category__trigger::before { transform: scale(1.035); }
.quick-category__label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quick-category__label strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
}
.quick-category__label > span { margin-top: 6px; color: rgba(255,255,255,.82); font-size: 12px; }
.quick-category__action {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  width: 48px;
  height: 42px;
  margin-top: 8px;
}
.quick-category__action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 0.35s ease;
}
.quick-category.is-open .quick-category__action svg { transform: rotate(180deg); }
.quick-category__reveal {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  transition: grid-template-rows 0.48s cubic-bezier(.22,.61,.36,1), opacity 0.32s ease, visibility 0s 0.48s;
}
.quick-category.is-open .quick-category__reveal {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.quick-category__reveal-inner { min-height: 0; overflow: hidden; }
.quick-tool { padding: 24px 20px; border-top: 1px solid var(--line); }
.quick-tool--featured { background: rgba(232, 209, 171, 0.18); }
.quick-tool__question { color: var(--navy); font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.55; }
.quick-tool h3 { margin-top: 8px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 700; line-height: 1.7; }
.quick-tool h3 + p { display: grid; gap: 2px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.quick-tool h3 + p strong { color: var(--navy); font-size: 10px; letter-spacing: 0.09em; }
.quick-tool__status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 17px;
  padding: 4px 11px;
  color: var(--navy);
  background: var(--sand-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.quick-tool__status--ready { background: #e3ece5; }
.quick-tool__link,
.quick-category__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 16px;
  background: var(--navy);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.quick-category__all {
  margin: 0;
  padding-inline: 20px;
  color: var(--navy);
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.quick-start__note {
  max-width: 820px;
  margin-top: 30px;
  padding-left: 18px;
  color: var(--muted);
  border-left: 2px solid var(--sand);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
}

@media (hover: hover) and (pointer: fine) {
  .quick-category:hover .quick-category__reveal,
  .quick-category:focus-within .quick-category__reveal {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }
  .quick-category:hover .quick-category__action svg,
  .quick-category:focus-within .quick-category__action svg { transform: rotate(180deg); }
}

.tools { padding-block: 68px var(--section-space); }
.section-intro { max-width: 690px; }
.section-intro h2 {
  margin-top: 13px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(29px, 8vw, 44px);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.45;
}
.section-intro > p:last-child { margin-top: 18px; max-width: 600px; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 30, 54, 0.045);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.tool-card:hover {
  border-color: rgba(0, 47, 84, 0.22);
  box-shadow: 0 14px 36px rgba(0, 30, 54, 0.075);
}
.tool-card__category { color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: 0.2em; }
.tool-card h3 {
  margin-top: 6px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.tool-card--food h3 { padding-right: 52px; }
.tool-card__dog-mark {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 7px;
  color: var(--navy);
  background: var(--sand-soft);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.tool-card__visual {
  position: relative;
  z-index: 1;
  flex: none;
  aspect-ratio: 8 / 5;
  margin: 16px -18px 0;
  overflow: hidden;
  border-block: 1px solid rgba(0, 47, 84, 0.1);
}
.tool-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
}
.tool-card:hover .tool-card__visual img { transform: scale(1.025); }
.tool-card--bed .tool-card__visual img {
  transform: scale(1.16);
  transform-origin: 50% 72%;
}
.tool-card--bed:hover .tool-card__visual img { transform: scale(1.19); }
.tool-card__description {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}
.tool-card--linked .tool-card__description { margin-bottom: 18px; }
.tool-card__availability {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
  color: #71808a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tool-card__link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  width: min(100%, 260px);
  min-height: 48px;
  margin-top: auto;
  padding: 12px 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #001521 0%, var(--navy-deep) 52%, #002a47 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 30, 54, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: box-shadow .25s ease, transform .25s ease;
}
.tool-card__link::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -35%;
  width: 18%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  filter: blur(1px);
  transform: translateX(-220%) rotate(18deg);
  animation: tool-cta-shine 4.8s ease-in-out infinite;
  pointer-events: none;
}
.tool-card__link span { position: relative; z-index: 1; }
.tool-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 28px rgba(0, 30, 54, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.tool-card__link:active { transform: translateY(0); }

@keyframes tool-cta-shine {
  0%, 64% { transform: translateX(-220%) rotate(18deg); }
  80%, 100% { transform: translateX(780%) rotate(18deg); }
}

.category-links { padding-block: var(--section-space); background: var(--navy); color: white; }
.category-links .eyebrow { color: var(--sand); }
.category-links .section-intro h2 { color: white; }
.category-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
.category-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  isolation: isolate;
}
.category-card img, .category-card__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-card img { object-fit: cover; object-position: 50% 76%; transition: transform 0.8s cubic-bezier(.22,.61,.36,1); }
.category-card--order img { object-position: 47% 74%; }
.category-card__veil { z-index: 1; background: linear-gradient(180deg, rgba(0, 20, 36, 0.02) 34%, rgba(0, 18, 33, 0.83) 100%); }
.category-card__body { position: absolute; z-index: 2; inset: auto 22px 25px; display: flex; flex-direction: column; }
.category-card small { font-size: 9px; font-weight: 800; letter-spacing: 0.2em; }
.category-card strong { margin-top: 8px; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0.03em; }
.category-card__body > span { margin-top: 4px; color: rgba(255,255,255,.75); font-size: 12px; }
.category-card > svg { position: absolute; z-index: 2; right: 22px; bottom: 31px; }
.category-card:hover img { transform: scale(1.035); }

.notice { background: var(--sand-soft); }
.notice__details { border-block: 1px solid rgba(0, 47, 84, 0.1); }
.notice__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.notice__details summary::-webkit-details-marker { display: none; }
.notice__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 47, 84, 0.28);
  border-radius: 50%;
}
.notice__icon::before,
.notice__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.notice__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.notice__details[open] .notice__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.notice__content { padding: 0 0 28px; }
.notice__content p { max-width: 780px; color: #435461; font-size: 12px; line-height: 1.9; }
.site-footer { padding-block: 54px max(28px, env(safe-area-inset-bottom)); background: var(--ecru); color: var(--navy); }
.site-footer__inner { display: grid; gap: 34px; }
.site-footer img { width: 128px; height: auto; }
.site-footer img + p { margin-top: 11px; color: var(--muted); font-family: var(--serif); font-size: 13px; }
.site-footer__actions { display: grid; gap: 20px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.site-footer__social a:hover { color: white; background: var(--navy); transform: translateY(-2px); }
.site-footer__social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__social .icon-fill { fill: currentColor; stroke: none; }
.site-footer nav { display: grid; }
.site-footer nav a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-decoration: none; }
.site-footer nav a span { color: #71808a; font-size: 15px; font-weight: 400; }
.copyright { color: #7a858c; font-size: 10px; letter-spacing: 0.08em; }

[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(28px);
  transition: opacity .72s cubic-bezier(.16,1,.3,1), transform .72s cubic-bezier(.16,1,.3,1), filter .72s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-card { min-height: 420px; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-space: 92px; }
  .site-header { inset-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2)); }
  .brand img { width: 142px; }
  .store-link__short { display: none; }
  .store-link__long { display: inline; }
  .hero { min-height: 700px; }
  .hero__content { left: max(var(--gutter), calc((100vw - var(--shell)) / 2)); bottom: 180px; }
  .hero h1 { font-size: clamp(49px, 5.1vw, 70px); line-height: 1.35; }
  .hero__lead { font-size: 15px; }
  .quick-start { padding-block: 84px 92px; }
  .quick-start__intro h2 { font-size: 44px; }
  .quick-start__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
  .quick-category__trigger { min-height: 294px; padding: 30px 30px 18px; }
  .quick-category__label strong { font-size: 40px; }
  .quick-tool { padding: 26px 28px; }
  .quick-category__all { padding-inline: 28px; }
  .tools { padding-top: 88px; }
  .section-intro h2 { font-size: 42px; }
  .tool-grid { gap: 18px; margin-top: 42px; }
  .tool-card { min-height: 0; padding: 22px; }
  .tool-card h3 { font-size: 24px; }
  .tool-card__dog-mark { top: 20px; right: 20px; }
  .tool-card__visual { margin-inline: -22px; }
  .category-grid { gap: 18px; margin-top: 44px; }
  .category-card { min-height: 500px; }
  .site-footer__inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .copyright { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__slide:not(:first-child) { display: none; }
  .hero-pagination { display: none; }
  .js .hero__content, .js [data-reveal] { opacity: 1; filter: none; transform: none; }
  .tool-card:hover .tool-card__visual img { transform: none; }
  .tool-card--bed .tool-card__visual img,
  .tool-card--bed:hover .tool-card__visual img { transform: scale(1.16); }
  .tool-card__link::before { animation: none; }
  .quick-category__trigger::before,
  .quick-category__action svg { transition: none; }
}
