/* 03「うちの子は、どの子？」 動物ごとの部屋 refs #1379 */
:root {
  --ground: #F7F8F6;   /* 共通の地（白い壁） */
  --ink: #26323C;      /* 共通の文字色 */
  --ink-sub: #4D5964;
  --line: #D8DEDB;
  --white: #FFFFFF;
  /* 部屋の色（パッケージから）: tint=壁 / fill=写真の背景 / strong=パッケージ色 / deep=文字にも使える濃さ */
  --dog-tint: #E9F3FA; --dog-fill: #CDE6F5; --dog-strong: #5AAEE0; --dog-deep: #1C5E8C;
  --cat-tint: #FCEFF3; --cat-fill: #F9DEE5; --cat-strong: #EE9DB4; --cat-deep: #93304D; --cat-aqua: #9ED8EA;
  --small-tint: #FDF6DD; --small-fill: #FBEABC; --small-strong: #F2D13A; --small-deep: #6A5200;
  --bird-tint: #F0F6E5; --bird-fill: #E1EBC9; --bird-strong: #9CCB4E; --bird-deep: #3A6416;
  --radius-arch: 999px 999px 0 0;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --wrap: 1200px;
}
body[data-room="dog"], [data-tone="dog"] { --tint: var(--dog-tint); --fill: var(--dog-fill); --strong: var(--dog-strong); --deep: var(--dog-deep); }
body[data-room="cat"], [data-tone="cat"] { --tint: var(--cat-tint); --fill: var(--cat-fill); --strong: var(--cat-strong); --deep: var(--cat-deep); }
body[data-room="small"], [data-tone="small"] { --tint: var(--small-tint); --fill: var(--small-fill); --strong: var(--small-strong); --deep: var(--small-deep); }
body[data-room="bird"], [data-tone="bird"] { --tint: var(--bird-tint); --fill: var(--bird-fill); --strong: var(--bird-strong); --deep: var(--bird-deep); }
[data-go="dog"] { --own-fill: var(--dog-fill); --own-strong: var(--dog-strong); }
[data-go="cat"] { --own-fill: var(--cat-fill); --own-strong: var(--cat-strong); }
[data-go="small"] { --own-fill: var(--small-fill); --own-strong: var(--small-strong); }
[data-go="bird"] { --own-fill: var(--bird-fill); --own-strong: var(--bird-strong); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.85; font-weight: 500;
  line-break: strict; word-break: keep-all; overflow-wrap: anywhere;
  font-feature-settings: "palt" 0;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.nw { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- ヘッダー ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.site-head__in { max-width: var(--wrap); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 24px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-size: 24px; font-weight: 700; letter-spacing: .04em; }
.brand__tld { color: var(--ink-sub); font-weight: 500; }
.brand__sub { font-size: 12px; color: var(--ink-sub); }
.roomnav { display: flex; gap: 6px; margin-left: auto; }
.roomnav__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 700; font-size: 15px;
}
.roomnav__btn .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--own-strong); }
.roomnav__btn[aria-pressed="true"] { background: var(--own-fill); border-color: var(--ink); }
.head-link { font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 4px; }
.head-link:hover { text-decoration: underline; }

/* ---------- ヒーロー（4つのドア） ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 64px 24px 72px; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; }
.hero__title { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.25; letter-spacing: .02em; font-weight: 700; }
.hero__lede { margin-top: 24px; font-size: 17px; color: var(--ink-sub); max-width: 22em; }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.door { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; }
.door__arch {
  display: block; aspect-ratio: 3 / 4.2; border-radius: var(--radius-arch); overflow: hidden; background: var(--own-fill);
  border-bottom: 8px solid var(--own-strong); transition: box-shadow .2s;
}
.door__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: transform .4s ease; }
.door:hover .door__arch img { transform: scale(1.04); }
.door[aria-pressed="true"] .door__arch { box-shadow: 0 0 0 4px var(--ground), 0 0 0 7px var(--ink); }
.door__name { margin-top: 14px; font-size: 24px; font-weight: 700; line-height: 1.3; }
.door__meta { margin-top: 2px; font-size: 14px; color: var(--ink-sub); line-height: 1.6; }
.door:focus-visible { outline: none; }
.door:focus-visible .door__arch { box-shadow: 0 0 0 4px var(--ground), 0 0 0 7px var(--ink); }
.door:focus-visible .door__name { text-decoration: underline; }

/* ---------- 部屋 ---------- */
.rooms { background: var(--tint); transition: background-color .35s ease; outline: none; border-radius: 48px 48px 0 0; }
.room { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 88px; }
.room__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.room__arch { border-radius: var(--radius-arch); overflow: hidden; background: var(--fill); max-width: 440px; aspect-ratio: 3 / 3.8; border-bottom: 10px solid var(--strong); }
.room__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.room__title { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.3; font-weight: 700; }
.room__lede { margin-top: 16px; font-size: 18px; max-width: 26em; }
.room__count { margin-top: 16px; font-size: 15px; color: var(--ink-sub); }
.room__count strong { color: var(--ink); font-size: 20px; }
.route { margin-top: 28px; display: grid; gap: 10px; max-width: 30em; counter-reset: none; }
.route a {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; background: var(--white); border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 17px;
}
.route a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.route__n, .step__n {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--strong); color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1;
}
.route__n--how { background: var(--fill); font-size: 15px; }

.step { margin-top: 88px; }
.step__title { display: flex; align-items: center; gap: 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; font-weight: 700; }
.step__n { width: 48px; height: 48px; font-size: 22px; }
.step__text { margin-top: 12px; max-width: 34em; }

/* はじめての1品 */
.first { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; background: var(--white); border-radius: 32px; padding: 32px; }
.first__shot { background: var(--white); border-radius: 20px; overflow: hidden; align-self: start; }
.first__img { width: 100%; }
.first__name { font-size: 24px; font-weight: 700; line-height: 1.45; }
.first__text { margin-top: 12px; max-width: 32em; }
.sizes { margin-top: 24px; border-top: 1px solid var(--line); }
.size { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.size__thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--ground); }
.size__body { display: flex; flex-direction: column; }
.size__name { font-weight: 700; line-height: 1.5; }
.size__note { font-size: 14px; color: var(--ink-sub); line-height: 1.6; }
.size__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }

/* 目的別の棚 */
.shelves { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 48px 24px; }
.shelf { grid-column: span var(--n, 1); display: flex; flex-direction: column; }
.shelf--treat { margin-top: 28px; }
.shelf__label { font-size: 19px; font-weight: 700; display: flex; align-items: flex-end; }
.shelf__label span::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 10px; border-radius: 50%; background: var(--strong); vertical-align: 0; }
.shelf__label { min-height: 2.9em; line-height: 1.45; }
.shelf__items { margin-top: 12px; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 32px 24px; flex: 1; }
.shelf--treat .shelf__items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item { display: flex; flex-direction: column; }
.item__shot { background: var(--white); border-radius: 20px 20px 0 0; border-bottom: 6px solid var(--strong); overflow: hidden; }
.item__shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.item__name { margin-top: 14px; font-size: 17px; line-height: 1.5; font-weight: 700; }
.item__blurb { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--ink-sub); }
.share { white-space: nowrap; display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 6px; background: var(--white); color: var(--deep); font-size: 13px; font-weight: 700; }
.item .price { margin-top: 10px; }
.item .buy, .item .ask { margin-top: 10px; align-self: flex-start; }
.price { font-size: 20px; font-weight: 700; line-height: 1.3; }
.tax { font-size: 13px; font-weight: 500; color: var(--ink-sub); }
.buy {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.4;
}
.buy:hover { background: #3A4955; }
.ask { font-size: 14px; color: var(--ink); background: var(--white); border: 1.5px dashed var(--ink-sub); border-radius: 12px; padding: 8px 12px; line-height: 1.6; }

/* 与え方 */
.howto { margin-top: 96px; background: var(--white); border-radius: 32px; padding: 40px; }
.howto__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; font-weight: 700; }
.howto__lead { margin-top: 8px; color: var(--ink-sub); }
.seg { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.seg__btn {
  display: flex; flex-direction: column; align-items: center; padding: 12px 8px; min-height: 64px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 18px; background: var(--white); font-weight: 700; font-size: 16px; line-height: 1.4;
}
.seg__sub { font-size: 14px; font-weight: 500; color: var(--ink-sub); }
.seg__btn[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--fill); border-color: var(--ink); }
.seg__now { margin-top: 24px; font-weight: 700; font-size: 18px; }
.amounts { margin-top: 8px; }
.amt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.amt dt { font-weight: 700; }
.amt dd strong { font-size: 20px; color: var(--deep); }
.amt__note { display: block; font-size: 14px; color: var(--ink-sub); }
.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 6px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; cursor: pointer; }
.howto__split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.howto__pic { border-radius: var(--radius-arch); overflow: hidden; background: var(--fill); aspect-ratio: 3 / 4; border-bottom: 8px solid var(--strong); }
.howto__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.cat-table { margin-top: 20px; }
.cat-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cat-row--head { font-size: 14px; color: var(--ink-sub); font-weight: 700; border-bottom: 2px solid var(--ink); }
.cat-row--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 2fr); }
.cat-row [role="rowheader"] { font-weight: 700; }
.cat-row strong { font-size: 18px; color: var(--deep); }
.bird-how { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.bird-how h4 { font-size: 20px; padding-bottom: 6px; border-bottom: 3px solid var(--strong); display: inline-block; }
.bird-how .amt { grid-template-columns: 1fr; gap: 4px; }
.bird-how .amt dd strong { font-size: 18px; }

/* ほかの部屋 */
.next-rooms { margin-top: 80px; }
.next-rooms__label { font-weight: 700; font-size: 18px; }
.next-rooms ul { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 20px; }
.mini-door { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--white); border: 0; border-radius: 20px; padding: 10px 16px 0 14px; cursor: pointer; font-weight: 700; font-size: 16px; text-align: left; }
.mini-door__arch { align-self: flex-end; width: 52px; height: 64px; border-radius: var(--radius-arch); overflow: hidden; background: var(--fill); flex: none; border-bottom: 4px solid var(--strong); }
.mini-door__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.mini-door:hover { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- ブランド ---------- */
.brand-story { max-width: var(--wrap); margin: 0 auto; padding: 104px 24px 96px; }
.story__head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.45; font-weight: 700; }
.story__head p { margin-top: 20px; max-width: 38em; font-size: 17px; }
.story__body { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2.4fr); gap: 40px; align-items: start; }
.story__fig img { width: 100%; border-radius: 24px; }
.story__fig figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-sub); }
.story__fig--box img { border-radius: 16px; background: var(--white); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.fact dt { font-size: 18px; font-weight: 700; line-height: 1.5; padding-top: 12px; border-top: 3px solid var(--ink); }
.fact dd { margin-top: 8px; font-size: 15px; line-height: 1.8; }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--ink); color: var(--white); }
.contact__in { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px; }
.contact h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.4; }
.contact p { margin-top: 12px; max-width: 36em; }
.tel { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
.tel a { text-decoration: none; }
.hours { font-size: 15px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }
.btn-line { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 22px; border: 1.5px solid var(--white); border-radius: 999px; text-decoration: none; font-weight: 700; }
.btn-line:hover { background: var(--white); color: var(--ink); }
.contact :focus-visible { outline-color: var(--white); }

/* ---------- フッター ---------- */
.site-foot { background: var(--ground); }
.site-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 56px; font-size: 14px; color: var(--ink-sub); }
.foot-logo { width: 220px; margin-bottom: 16px; }
.site-foot p + p { margin-top: 4px; }
.copy { margin-top: 16px !important; }

/* ---------- タブレット・SP ---------- */
@media (max-width: 1000px) {
  .shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf { grid-column: span min(var(--n, 1), 3); }
  .shelf--treat .shelf__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
  .hero__lede { max-width: 32em; }
  .story__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 130px; }
  .site-head__in { flex-wrap: wrap; padding: 8px 16px; gap: 6px 12px; }
  .brand__name { font-size: 21px; }
  .brand__sub { font-size: 11px; }
  .head-link { margin-left: auto; font-size: 13px; }
  .roomnav { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr 1.4fr 1.2fr; gap: 6px; }
  .roomnav__btn { justify-content: center; padding: 4px 6px; font-size: 14px; min-height: 40px; gap: 6px; }
  .roomnav__btn .dot { width: 10px; height: 10px; }
  .hero { padding: 36px 16px 48px; }
  .hero__title { font-size: 40px; }
  .hero__lede { font-size: 16px; }
  .doors { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .door__name { font-size: 21px; margin-top: 10px; }
  .door__meta { font-size: 13px; }
  .rooms { border-radius: 32px 32px 0 0; }
  .room { padding: 48px 16px 64px; }
  .room__head { grid-template-columns: 108px minmax(0, 1fr); gap: 20px 18px; align-items: end; }
  .room__arch { width: 108px; border-bottom-width: 6px; }
  .room__intro { display: contents; }
  .room__title { grid-column: 2; grid-row: 1; align-self: end; font-size: 32px; }
  .room__lede, .room__count, .route { grid-column: 1 / -1; }
  .room__lede { margin-top: 4px; }
  .room__count { margin-top: 0; }
  .route { margin-top: 0; }
  .room__lede { font-size: 16px; }
  .route a { font-size: 16px; }
  .step { margin-top: 64px; }
  .step__n { width: 40px; height: 40px; font-size: 19px; }
  .first { grid-template-columns: 1fr; padding: 20px; gap: 20px; border-radius: 24px; }
  .first__name { font-size: 21px; }
  .size { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 14px; }
  .size__thumb img { width: 64px; height: 64px; }
  .size__buy { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; }
  .shelves { grid-template-columns: 1fr 1fr; gap: 40px 14px; }
  .shelf { grid-column: span min(var(--n, 1), 2); }
  .shelf__label { min-height: 0; font-size: 17px; }
  .shelf__items { grid-template-columns: repeat(min(var(--n, 1), 2), minmax(0, 1fr)); gap: 28px 14px; }
  .shelf--treat .shelf__items { grid-template-columns: 1fr 1fr; }
  .item__name { font-size: 15px; }
  .item__blurb { font-size: 13px; }
  .price { font-size: 18px; }
  .buy { padding: 8px 14px; font-size: 14px; }
  .item .buy { align-self: stretch; justify-content: center; }
  .howto { margin-top: 72px; padding: 24px 18px; border-radius: 24px; }
  .seg { grid-template-columns: 1fr 1fr; gap: 8px; }
  .amt { grid-template-columns: 1fr; gap: 2px; }
  .howto__split { grid-template-columns: 1fr; gap: 16px; }
  .howto__pic { width: 140px; }
  .cat-row { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .cat-row [role="rowheader"] { grid-column: 1 / -1; }
  .cat-row--head [role="columnheader"]:first-child { display: none; }
  .cat-row--wide { grid-template-columns: 1fr; gap: 2px; }
  .cat-row strong { font-size: 16px; }
  .bird-how { grid-template-columns: 1fr; gap: 24px; }
  .next-rooms ul { grid-template-columns: 1fr; gap: 10px; }
  .brand-story { padding: 72px 16px 64px; }
  .story__body { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .contact__in { padding: 56px 16px; }
  .site-foot__in { padding: 32px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
