/* POCKET POP：パステルカラーと丸いパーツを使った雑貨屋のデザイン */
:root { --ink: #303244; --pink: #f45083; --blue: #60b9e4; --yellow: #ffd64e; --paper: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #227da8; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.container { width: min(1400px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; background: white; padding: 10px 20px; z-index: 20; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 96px; }
.brand { flex-shrink: 0; }
.logo { display: flex; font-family: 'Arial Black', Arial, sans-serif; font-size: clamp(24px, 2.6vw, 36px); font-weight: 900; line-height: 1.1; letter-spacing: -.8px; }
.logo span:nth-child(3n+1) { color: #fa8fab; }
.logo span:nth-child(3n+2) { color: #72bee5; }
.logo span:nth-child(3n) { color: #ffca35; }
.logo span:nth-child(6) { color: #bba4c1; }
.logo-space { margin-left: 9px; }
.logo .logo-spark { color: #ffca35; font-size: 28px; margin-left: 9px; }
.brand-tagline { display: block; font-family: Arial, sans-serif; font-size: 8px; font-weight: 800; letter-spacing: 2px; text-align: center; margin-top: 5px; }
.site-header nav { display: flex; gap: 30px; font-size: 13px; font-weight: 700; }
.site-header nav a { padding: 10px 2px; }
.site-header nav a:hover, .nav-home { color: var(--pink); }
.nav-home { border-bottom: 3px solid var(--pink); }
.cart-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; border: none; background: #fff1f5; border-radius: 24px; padding: 9px 15px; font-size: 12px; font-weight: 700; color: var(--ink); }
.cart-toggle svg { width: 25px; height: 25px; }
#cart-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 5px; border-radius: 50%; background: var(--pink); color: white; font-size: 11px; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 430px; background: linear-gradient(110deg, #ff8faa, #ffb7c8 65%, #ffe4b1); border-radius: 18px; overflow: hidden; align-items: center; padding: 38px 50px; gap: 20px; }
.eyebrow { margin: 0 0 12px; font-family: Arial, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 1.9px; }
.hero .eyebrow { color: #663b4b; }
.tiny-star { color: #fff; font-size: 22px; margin-right: 5px; vertical-align: middle; }
h1 { font-size: clamp(29px, 3vw, 44px); line-height: 1.65; margin: 0 0 18px; letter-spacing: -.035em; color: #553245; }
.highlight { color: #553245; }
.hero-description { margin: 0 0 24px; font-size: 14px; line-height: 2; color: #553245; }
.button { display: inline-flex; align-items: center; gap: 24px; background: #fff183; padding: 12px 25px; min-height: 46px; border-radius: 30px; font-size: 13px; font-weight: 700; }
.button:hover { background: #ffea57; }
.hero-image { position: relative; min-width: 0; height: 340px; }
.hero-photo { position: absolute; overflow: hidden; border: 7px solid #fff9; box-shadow: 0 10px 25px #7e334425; border-radius: 12px; background: #f4b8c6; }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; }
.hero-photo-memo { width: 50%; aspect-ratio: 1; top: 12px; left: 1%; transform: rotate(-9deg); }
.hero-photo-mug { width: 49%; aspect-ratio: 1; right: 1%; bottom: 3px; transform: rotate(8deg); }
.hero-photo-pens { width: 28%; aspect-ratio: 1; top: -3px; right: 10%; transform: rotate(6deg); }
.hero-sticker { position: absolute; left: 7%; bottom: 10px; transform: rotate(-7deg); background: #fff6b4; padding: 12px 20px; border-radius: 50%; font: 700 16px/1.4 Arial, sans-serif; color: #6b5637; text-align: center; }
.hero-sticker span { color: #e85583; }
.hero-star { position: absolute; top: 8px; left: 52%; color: #fff6a4; font-size: 43px; }
.category-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-block: 30px 42px; }
.category-nav a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; font-size: 12px; font-weight: 700; }
.category-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 31px; transition: transform .2s; }
.category-nav a:hover .category-icon { transform: translateY(-4px); }
.category-pink { background: #ffedf3; color: #e94c82; }
.category-blue { background: #eaf6fe; color: #45a4d4; }
.category-yellow { background: #fff8db; color: #bc8c12; }
.category-mint { background: #eaf9f5; color: #39a99d; }
.category-purple { background: #f4edfc; color: #a477cd; }
.products { padding-bottom: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
h2 { margin: 0; font-size: clamp(20px, 2vw, 27px); line-height: 1.6; letter-spacing: -.025em; }
.pink-dot { color: var(--pink); }
.section-heading .eyebrow { color: #8c6475; margin-bottom: 5px; }
.section-note { font-size: 12px; margin: 0 0 4px; }
/* 横幅の広い画面では6商品を1列に。小さい画面では3列・2列・1列。 */
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.product { min-width: 0; }
.product-image { width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fbedf1; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product h3 { font-size: 12px; line-height: 1.7; margin: 12px 0 4px; min-height: 3.4em; }
.price { margin: 0; font-family: Arial, 'Meiryo', sans-serif; font-size: 17px; font-weight: 800; }
.price span { font-size: 11px; margin-left: 3px; }
.add-to-cart { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; min-height: 44px; border: none; border-radius: 24px; padding: 9px 14px; background: var(--pink); color: white; font-size: 12px; font-weight: 700; margin-top: 10px; }
.add-to-cart:hover { background: #d73769; }
.add-to-cart span { font-size: 17px; }
.price-note { font-size: 11px; color: #676778; margin-top: 22px; }
.cart-status { min-height: 2em; font-size: 13px; color: #93516e; margin: 10px 0; }
.about { display: grid; grid-template-columns: 65px 1fr 1.1fr; align-items: center; gap: 28px; background: #fff8dc; border-radius: 16px; padding: 36px; }
.about-mark { color: var(--pink); font-size: 70px; line-height: 1; }
.about .eyebrow { font-size: 9px; letter-spacing: 1.2px; color: #795d31; }
.about-copy { font-size: 13px; line-height: 2; }
.about-copy p { margin: 0 0 12px; }
.about-copy p:last-child { margin: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 30px; }
.footer-logo { font: 900 18px Arial, sans-serif; color: #e65a8b; }
.footer-logo span { font-size: 10px; color: #e9bb3c; margin-left: 5px; }
.site-footer > p:not(.footer-logo), .site-footer small { font-size: 11px; color: #676778; }
/* 右側のカート：標準dialogで背景操作とキーボードのフォーカスを制御。 */
body.cart-open { overflow: hidden; }
.cart { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100%); max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; padding: 0; border: none; color: var(--ink); background: white; box-shadow: -10px 0 40px #282b4026; }
.cart[open] { display: flex; flex-direction: column; animation: slide-in .25s ease-out; }
.cart::backdrop { background: #30324455; }
.cart-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 24px 24px 14px; flex-shrink: 0; }
.cart-header h2 { font-size: 24px; }
.cart-header .eyebrow { font-size: 9px; color: #946c7a; margin-bottom: 2px; }
.cart-close { display: grid; place-items: center; border: none; background: #f7f5f6; color: #666477; border-radius: 50%; width: 44px; height: 44px; font-size: 28px; }
.cart-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; padding: 0 24px; }
.cart-banner { background: #ffe8ef; color: #a12f59; border-radius: 25px; text-align: center; padding: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 700; }
.cart-empty { text-align: center; padding: 45px 10px; color: #676778; }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) 44px; gap: 7px 12px; padding: 18px 0; border-bottom: 1px solid #ece8ed; align-items: start; }
.cart-thumbnail { width: 76px; height: 76px; object-fit: contain; border-radius: 7px; grid-row: 1 / 3; background: #fbedf1; }
.cart-item > div:not(.cart-quantity) { grid-column: 2; grid-row: 1; }
.cart-item h3 { margin: 0 0 5px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.cart-item p { margin: 0; font-size: 12px; }
.cart-quantity { grid-column: 2 / 4; grid-row: 2; display: flex; align-items: center; gap: 8px; font-size: 11px; }
.quantity-controls { display: flex; align-items: center; gap: 6px; }
.quantity-controls button { width: 44px; height: 44px; border: 1px solid #e8e4e9; border-radius: 8px; background: #faf9fb; color: var(--ink); font-weight: 700; }
.quantity-controls button:hover { background: #ffedf3; }
.quantity-value { min-width: 23px; text-align: center; font-size: 13px; }
.cart-subtotal { grid-column: 2 / 4; grid-row: 3; font-weight: 700; }
.remove-from-cart { grid-column: 3; grid-row: 1; border: none; background: transparent; color: #746373; min-height: 44px; padding: 4px; font-size: 11px; text-decoration: underline; }
.cart-feedback { min-height: 2em; font-size: 11px; color: #96516e; }
.cart-summary { padding: 18px 24px 24px; border-top: 1px solid #ece8ed; flex-shrink: 0; background: white; }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 15px; }
.cart-total strong { font: 800 23px Arial, 'Meiryo', sans-serif; }
.continue-shopping { width: 100%; min-height: 48px; border: none; border-radius: 26px; background: var(--pink); color: white; font-size: 14px; font-weight: 700; }
.continue-shopping:hover { background: #d73769; }
.cart-demo-note { margin: 12px 0 0; font-size: 10px; line-height: 1.8; color: #676778; }
[hidden] { display: none !important; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (max-width: 1100px) {
  .container { width: calc(100% - 48px); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .product h3 { min-height: 0; font-size: 14px; }
  .site-header { gap: 20px; }
  .site-header nav { gap: 18px; font-size: 12px; }
  .hero { padding: 30px; }
  .hero-image { height: 300px; }
  .about { grid-template-columns: 1fr 1fr; }
  .about-mark { display: none; }
  .desktop-break { display: none; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 20px; }
  .container { width: calc(100% - 32px); }
  .site-header { min-height: 90px; flex-wrap: wrap; gap: 12px; padding-block: 16px; }
  .logo { font-size: 25px; }
  .logo .logo-spark { font-size: 21px; }
  .brand-tagline { font-size: 6px; letter-spacing: 1.5px; }
  .site-header nav { order: 3; width: 100%; justify-content: center; gap: 25px; }
  .site-header nav a { padding: 4px 2px; }
  .cart-toggle { padding: 7px 10px; gap: 5px; }
  .cart-toggle > span:not(#cart-count) { display: none; }
  .cart-toggle { flex-shrink: 0; }
  .hero { grid-template-columns: 1fr; padding: 28px 24px 22px; gap: 20px; border-radius: 12px; }
  h1 { font-size: clamp(25px, 6.7vw, 39px); }
  .hero-description { font-size: 13px; }
  .hero-image { height: clamp(240px, 68vw, 380px); }
  .hero-photo-memo { width: 49%; }
  .hero-photo-mug { width: 49%; }
  .hero-photo-pens { width: 29%; }
  .hero-sticker { font-size: 14px; padding: 9px 16px; }
  .category-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; margin-block: 26px 32px; }
  .category-icon { width: 56px; height: 56px; font-size: 27px; }
  .category-nav a { font-size: 11px; }
  .section-heading { flex-direction: column; align-items: start; gap: 9px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .product h3 { font-size: 12px; min-height: 3.4em; }
  .add-to-cart { padding: 9px 12px; font-size: 11px; }
  .about { grid-template-columns: 1fr; gap: 18px; padding: 25px; }
  .site-footer { flex-direction: column; gap: 3px; text-align: center; }
  .site-footer p { margin: 5px 0; }
  .cart-header { padding: 20px 18px 14px; }
  .cart-body { padding-inline: 18px; }
  .cart-summary { padding: 16px 18px max(18px, env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .product-grid { grid-template-columns: 1fr; }
  .product h3 { min-height: 0; }
  .logo { font-size: 22px; }
  .cart-item { grid-template-columns: 60px minmax(0, 1fr) 44px; gap: 7px 9px; }
  .cart-thumbnail { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart[open] { animation: none; }
  .category-icon { transition: none; }
}
