/* 迷子猫チラシ総本店 */
:root {
  --rose: #E68270;
  --rose-dark: #CC6751;
  --pink: #f6dfe2;
  --pink-light: #FDF7F4;
  --text: #333;
  --muted: #6b6b6b;
  --line: #e6d3d5;
  --bg: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.75;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--rose-dark); }
h1, h2, h3 { line-height: 1.45; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.note { color: var(--muted); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stg-bar { background: #333; color: #fff; text-align: center; font-size: 13px; padding: 4px; }

/* ヘッダー */
.site-header { border-top: 4px solid #EDA562; background: #FCF1E1; }
.site-header .inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.brand { flex: 1 1 0; min-width: 0; container-type: inline-size; }
.brand img { width: 100%; max-width: 260px; }
/* キャッチコピーは改行させず、ロゴ欄の幅に合わせて文字を縮める（25文字・最大13px） */
.brand .copy { margin: 4px 0 0; white-space: nowrap; color: var(--muted); font-size: min(13px, calc((100vw - 94px) / 25.5)); }
@supports (font-size: 1cqw) { .brand .copy { font-size: min(13px, calc(100cqw / 25.5)); } }
.tel-pc { display: none; }
/* スマホ：電話番号の画像はロゴの下に改行して表示 */
.tel-sp { order: 3; flex: 0 0 100%; text-align: center; }
.tel-sp img { width: 100%; max-width: 240px; }
.menu-btn { order: 2; }
/* メニュー：スマホ＝ハンバーガー／PC＝2行（データお渡しの次で改行） */
.menu-btn { flex: 0 0 auto; width: 54px; height: 54px; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; color: var(--rose-dark); }
.menu-btn span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--rose-dark); transition: transform .2s, opacity .2s; }
.menu-btn b { font-size: 10px; font-weight: normal; line-height: 1; margin-top: 2px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* スマホ：右からスーッと出るメニュー（閉じているときは画面の右外に置いておく） */
.gnav {
  background: #FEFAF3; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
  width: min(82vw, 320px); overflow-y: auto; box-shadow: -4px 0 16px rgba(0,0,0,.15);
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.gnav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
.gnav-close { display: block; margin-left: auto; width: 54px; height: 54px; border: 0; background: transparent; font-size: 32px; line-height: 1; color: var(--rose-dark); cursor: pointer; }
.gnav-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.35); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.gnav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
body.menu-open { overflow: hidden; }
.gnav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; }
.gnav li { border-top: 1px solid var(--line); }
.gnav a { display: block; padding: 12px 16px; font-size: 15px; color: var(--rose-dark); text-decoration: none; }
.gnav a:hover { background: #fff; }
.gnav-break { display: none; }
@media (min-width: 768px) {
  .brand img { max-width: 320px; }
  .tel-sp { display: none; }
  .tel-pc { display: block; }
  .menu-btn { display: none; }
  .gnav, .gnav.is-open { position: static; width: auto; overflow: visible; box-shadow: none; transform: none; visibility: visible; transition: none; }
  .gnav-close, .gnav-backdrop { display: none; }
  .gnav ul { display: flex; flex-wrap: wrap; justify-content: center; padding: 4px 16px; }
  .gnav li { border-top: 0; }
  .gnav li.gnav-break { display: block; flex-basis: 100%; height: 0; }
  .gnav a { padding: 8px 14px; font-size: 14px; }
  .tel-pc img { width: 300px; }
}

/* ボタン */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 14px 32px; font-size: 17px; font-weight: bold; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn-main { background: var(--rose); color: #fff; box-shadow: 0 3px 0 #CA735E; }
.btn-main:hover { background: #CA735E; }
.btn-sub { background: #fff; color: var(--rose-dark); border: 2px solid var(--rose); padding: 10px 22px; font-size: 15px; }

/* トップ */
.hero { background: #FEFAF3; }
.hero .slides { position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 1120 / 448; overflow: hidden; }
.hero .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.hero .slides img.is-active { opacity: 1; }
.intro { display: grid; gap: 20px; margin-top: 28px; }
.intro-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intro-text h2 { color: var(--rose-dark); font-size: 20px; margin: 0 0 12px; }
@media (min-width: 768px) {
  .intro { grid-template-columns: 1fr 1fr; align-items: center; }
  .intro-text h2 { font-size: 24px; }
}
.heading { text-align: center; color: var(--rose-dark); font-size: 22px; margin: 44px 0 20px; padding-bottom: 8px; border-bottom: 2px dotted var(--line); }
.intro-cta { text-align: center; }
.intro-cta-lead { color: var(--rose-dark); font-size: 20px; font-weight: bold; margin: 20px 0 8px; }
.product-grid { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }
.product-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; display: flex; flex-direction: column; }
.product-card.is-popular { border: 2px solid var(--rose); position: relative; }
.product-card.is-popular::before { content: "人気No.1"; position: absolute; top: -12px; left: 14px; background: var(--rose); color: #fff; font-size: 13px; font-weight: bold; padding: 2px 12px; border-radius: 999px; }
.product-card h3 { font-size: 17px; margin: 12px 0 6px; color: var(--rose-dark); }
.product-card p { margin: 0 0 10px; font-size: 15px; }
.product-card .btn { margin-top: auto; text-align: center; }
.need { margin-top: 44px; display: grid; gap: 24px; }
.need-box { background: var(--pink-light); border-radius: 10px; padding: 16px; display: grid; gap: 16px; }
.need-box h2 { margin: 0 0 6px; color: var(--rose-dark); font-size: 19px; }
.need-box .lead { font-weight: bold; margin: 0 0 8px; }
.need-box p { margin: 0 0 10px; }
@media (min-width: 768px) { .need-box { grid-template-columns: 360px 1fr; align-items: start; } }
ul.dots { margin: 0; padding-left: 1.2em; }
ul.dots ul { padding-left: 1.2em; list-style: circle; }
.line-add { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.line-add img.line-btn-sm { width: 162px; }  /* LINE 友だち追加ボタン（トップ・ご注文・お問い合わせ）：LINE ボタンを元の約70%に（画像は 232×72） */
.contact-line { margin-bottom: 36px; }  /* お問い合わせ：LINE ボタンの下を20px広げる（段落の16px＋20px） */
.news-list details { border-bottom: 1px solid var(--line); }
.news-list summary { cursor: pointer; padding: 12px 4px; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.news-list summary::-webkit-details-marker { display: none; }
.news-list summary::after { content: "＋"; margin-left: auto; color: var(--rose); }
.news-list details[open] summary::after { content: "－"; }
.news-list .date { color: var(--muted); font-size: 14px; }
.news-list .title { font-weight: bold; flex: 1 1 240px; }
.news-list details p { margin: 0 4px 14px; font-size: 15px; }
/* 新着情報：高さを決めて枠の中だけスクロール */
.news-scroll { max-height: 420px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; }
.news-scroll details:last-child { border-bottom: 0; }
@media (min-width: 768px) { .news-scroll { max-height: 480px; } }
.gallery { margin-top: 44px; }
.gallery-head { text-align: center; }
.gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 768px) { .gallery ul { grid-template-columns: repeat(6, 1fr); } }
.cta { text-align: center; margin: 40px auto; }

/* 下層ページ */
.page-title { color: var(--rose-dark); font-size: 22px; margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--pink); }
.text-page h2 { font-size: 18px; color: var(--rose-dark); margin-top: 28px; }
table.info, table.sum { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
table.info th, table.info td, table.sum th, table.sum td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.info th { width: 32%; background: var(--pink-light); font-weight: normal; color: var(--rose-dark); }
@media (max-width: 599px) {
  table.info th, table.info td { display: block; width: 100%; }
  table.info th { border-bottom: 0; padding-bottom: 4px; }
}
table.sum td { text-align: right; }
table.sum .total th, table.sum .total td { font-weight: bold; font-size: 18px; color: var(--rose-dark); }
.print-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 20px; }
@media (min-width: 600px) { .print-steps { grid-template-columns: 1fr 1fr; } }
.print-steps li { counter-increment: s; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.print-steps p { margin: 8px 0 0; }
.print-steps p::before { content: counter(s) "． "; font-weight: bold; color: var(--rose-dark); }

/* フォーム */
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-size: 18px; font-weight: bold; color: var(--rose-dark); padding: 0; margin-bottom: 10px; }
form label { display: block; margin: 0 0 12px; font-size: 15px; }
form input[type=text], form input[type=tel], form input[type=email], form select, form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid #ccc; border-radius: 6px;
  font-size: 16px; font-family: inherit; background: #fff;
}
form textarea { resize: vertical; }
.req { display: inline-block; margin-left: 6px; font-size: 11px; background: var(--rose); color: #fff; padding: 0 6px; border-radius: 3px; vertical-align: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 入力漏れ：欄を赤く囲む＋モーダル */
form .is-error, form input.is-error, form select.is-error, form textarea.is-error { border-color: #d33 !important; background-color: #fff5f5; }
.choice-list.is-error, .pay-list.is-error { outline: 2px solid #d33; outline-offset: 4px; border-radius: 8px; background: #fff5f5; }
.is-error-label { color: #c00; }
.pay-list { display: grid; gap: 8px; }
.err-dialog { border: 0; border-radius: 12px; padding: 22px 20px 18px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.err-dialog::backdrop { background: rgba(0,0,0,.45); }
.err-dialog-title { margin: 0 0 10px; font-weight: bold; font-size: 17px; color: #c00; }
.err-dialog ul { margin: 0 0 18px; padding-left: 1.2em; }
.err-dialog li { margin-bottom: 4px; }
.err-dialog .btn { width: 100%; }
.err { color: #c00; font-size: 14px; margin: -6px 0 12px; font-weight: bold; }
.choice-list { display: grid; gap: 8px; }
.type-list { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .type-list { grid-template-columns: repeat(3, 1fr); } }
.color-list { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.choice { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; align-items: center; text-align: center; border: 2px solid var(--line); border-radius: 8px; padding: 10px 4px; height: 100%; background: #fff; }
.choice b { font-size: 15px; }
.choice em { font-style: normal; color: var(--rose-dark); font-size: 15px; }
.choice small { font-size: 12px; color: var(--muted); }
.choice.color span { padding: 4px; }
.choice.color b { font-size: 13px; margin-top: 2px; }
.choice input:checked + span { border-color: var(--rose); background: var(--pink-light); box-shadow: 0 0 0 2px var(--rose) inset; }
.choice input:focus-visible + span { outline: 3px solid #4a90e2; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: 6px; }
.pay { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.other-box { display: none; padding: 12px; border-left: 3px solid var(--pink); margin-bottom: 12px; }
.is-other .other-box { display: block; }
.ship-none { display: none; }
.no-ship .ship-none { display: block; }
.no-ship .ship-req, .no-ship .ship-box { display: none; }
.order-total { position: sticky; bottom: 0; background: #fff; border-top: 2px solid var(--rose); padding: 10px 0 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; box-shadow: 0 -4px 10px rgba(0,0,0,.06); }
.order-total dl { display: grid; grid-template-columns: 1fr auto; margin: 0 0 10px; gap: 2px 10px; }
.order-total dt, .order-total dd { margin: 0; }
.order-total dd { text-align: right; }
.order-total .total { font-weight: bold; font-size: 18px; color: var(--rose-dark); }
.order-total .btn { width: 100%; }
.steps { list-style: none; display: flex; padding: 0; margin: 24px 0 0; gap: 4px; }
.steps li { flex: 1; text-align: center; background: #eee; color: var(--muted); font-size: 14px; padding: 6px; border-radius: 4px; }
.steps li.is-on { background: var(--rose); color: #fff; font-weight: bold; }
.confirm-item { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.confirm-item .item-name { font-weight: bold; font-size: 18px; margin: 0; }
.confirm-item .item-code { margin: 0; color: var(--muted); font-size: 14px; }
.confirm-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; margin: 20px 0; }
.confirm-actions .btn-main { width: 100%; max-width: 420px; }
.done-box { background: var(--pink-light); padding: 20px; border-radius: 10px; margin-bottom: 30px; }
.done-box .order-no { font-size: 20px; }

/* フッター */
.site-footer { margin-top: 50px; background: #FCF1E1; text-align: center; padding: 24px 16px 16px; }
.fnav { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.fnav a { color: var(--rose-dark); text-decoration: none; font-size: 14px; }
.fname { font-weight: bold; margin: 0; }
.ftel img { width: 260px; }
.copyright { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
