/* ==========================================================================
   Dive Buddy's — Design System
   Source of truth: V2/notes/V2-BRAND-GUIDELINES-FOR-CLAUDE.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors (Brand spec §6.1) */
  --ocean:        #1E8ED8;
  --ocean-dark:   #1577B8;
  --deep:         #0B3F5C;
  --line-green:   #06C755;
  --line-green-dark: #05B14C;
  --coral:        #FF7A6B;
  --coral-soft:   #FFB5A8;
  --coral-blob:   #FFE3DD;
  --sand:         #F6F1E8;
  --sand-deep:    #EDE3CE;
  --sky:          #EAF7FC;
  --sky-soft:     #F4FAFD;
  --text:         #16313F;
  --sub:          #5F7480;
  --border:       #DCE8EE;
  --white:        #FFFFFF;

  /* Shadows */
  --shadow:        0 16px 40px rgba(11, 63, 92, 0.10);
  --soft-shadow:   0 8px 24px rgba(11, 63, 92, 0.08);
  --tiny-shadow:   0 2px 8px rgba(11, 63, 92, 0.06);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 80px;
  --space-16: 120px;

  /* Radius */
  --radius-button: 12px;
  --radius-card:   16px;
  --radius-pill:   999px;

  /* Typography */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Yu Gothic Medium", sans-serif;
  --font-display: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* Layout */
  --container-w: min(1120px, calc(100% - 48px));
  --container-narrow: min(960px, calc(100% - 48px));
  --header-h: 80px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.04em;
  margin: 0;
}

p { margin: 0; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container { width: var(--container-w); margin: 0 auto; }
.container-narrow { width: var(--container-narrow); margin: 0 auto; }
.page { min-height: 100vh; overflow: hidden; }

.section { padding: var(--space-12) 0; }
.section--tight { padding: var(--space-10) 0; }

.section-head { text-align: center; margin-bottom: var(--space-8); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ocean);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }

.button--line {
  background: var(--line-green);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.25);
}
.button--line:hover { background: var(--line-green-dark); }

.button--primary {
  background: var(--ocean);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(30, 142, 216, 0.25);
}
.button--primary:hover { background: var(--ocean-dark); }

.button--outline {
  background: var(--white);
  color: var(--deep);
  border-color: var(--border);
}
.button--outline:hover { border-color: var(--ocean); color: var(--ocean); }

.button--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
  border-color: var(--border);
}
.button--ghost:hover { background: var(--white); border-color: var(--ocean); color: var(--ocean); }

.button .icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 232, 238, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-5);
}

.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 56px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  padding: 6px 2px;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--ocean); }

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header-cta .button { padding: 10px 18px; font-size: 13px; }

/* Mobile burger (hidden on desktop) */
.burger {
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--deep);
  position: relative;
}
.burger span::before,
.burger span::after {
  content: ''; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--deep);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

.mobile-site-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
}
.mobile-site-menu[hidden] { display: none; }
.mobile-site-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 63, 92, 0.28);
}
.mobile-site-menu-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(100%, 420px);
  margin-left: auto;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(220, 232, 238, 0.9);
  box-shadow: -18px 24px 48px rgba(11, 63, 92, 0.18);
}
.mobile-site-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 var(--space-3);
  border-bottom: 1px solid rgba(220, 232, 238, 0.85);
  color: var(--deep);
  font-size: 15px;
  font-weight: 700;
}
.mobile-site-menu-panel a:hover {
  color: var(--ocean);
  background: var(--sky);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-media::after {
  /* Soft gradient from left for text readability */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(11, 63, 92, 0.55) 0%,
    rgba(11, 63, 92, 0.28) 35%,
    rgba(11, 63, 92, 0.0) 60%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-12) 0 calc(var(--space-12) + 40px);
}

.hero-copy { max-width: 560px; color: var(--white); }

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.35;
  color: var(--white);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 18px rgba(11, 63, 92, 0.35);
}

.hero-lead {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 12px rgba(11, 63, 92, 0.5);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(11, 63, 92, 0.35);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.hero-note .icon {
  width: 16px; height: 16px;
  color: var(--coral-soft);
}

/* Wavy divider below hero (the "可愛さ" curve) */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; height: 100px; }

/* --------------------------------------------------------------------------
   7. About section (with coral blob backgrounds)
   -------------------------------------------------------------------------- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 920px;
  margin: 0 auto;
}

.about-item {
  text-align: center;
  padding: var(--space-4) var(--space-3);
}

.about-icon {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The "cute" coral blob behind each icon */
.about-icon::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: radial-gradient(
    ellipse at 60% 55%,
    var(--coral-blob) 0%,
    var(--coral-blob) 55%,
    rgba(255, 227, 221, 0) 80%
  );
  z-index: 0;
  border-radius: 50%;
}

.about-icon svg {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  color: var(--ocean);
  stroke: var(--ocean);
  fill: none;
}

.about-item h3 {
  font-size: 16px;
  margin-bottom: var(--space-2);
  color: var(--deep);
}

.about-item p {
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   8. Contents (3 cards)
   -------------------------------------------------------------------------- */
.contents {
  background: var(--sky-soft);
  position: relative;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.card-icon {
  position: absolute;
  top: 16px; left: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ocean);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(11, 63, 92, 0.25);
}
.card-icon svg { width: 22px; height: 22px; stroke-width: 2; }

/* Highlight shop search with coral */
.content-card--highlight .card-icon {
  background: var(--coral);
  box-shadow: 0 4px 12px rgba(255, 122, 107, 0.35);
}
.content-card--highlight .card-link {
  color: var(--coral);
}
.content-card--highlight {
  border: 1.5px solid var(--coral-blob);
}

.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.card-body h3 {
  font-size: 18px;
  text-align: center;
  color: var(--deep);
}
.card-body p {
  font-size: 13.5px;
  color: var(--sub);
  text-align: center;
  line-height: 1.85;
}
.card-link {
  margin-top: auto;
  text-align: center;
  color: var(--ocean);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.card-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   9. CTA Band (sand colored with starfish decoration)
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--sand);
  padding: var(--space-7) 0;
  position: relative;
  overflow: hidden;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-text { flex: 1; min-width: 280px; }
.cta-text h2 {
  font-size: 20px;
  margin-bottom: var(--space-2);
}
.cta-text p {
  font-size: 13.5px;
  color: var(--sub);
}

.cta-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Starfish illustration (PNG → WebP, mix-blend-mode removes white bg on sand) */
.cta-band .deco-starfish {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  width: 110px;
  height: auto;
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   10. Story (OUR STORY) section
   -------------------------------------------------------------------------- */
.story { background: var(--white); position: relative; overflow: hidden; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: start;
}

.story-head h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}

.story-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  aspect-ratio: 4 / 3;
}
.story-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.story-list {
  list-style: none;
  padding: 0; margin: 0;
  margin-top: 36px; /* align with h2 on the left (offset = section-label height + margin) */
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.story-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.check-circle {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ocean);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.check-circle svg { width: 12px; height: 12px; stroke-width: 3; }

/* Coral illustration (bottom-right, grounded) */
.story .deco-coral {
  position: absolute;
  right: 40px;
  bottom: 8px;
  width: 200px;
  height: auto;
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Fish illustration (swims above photo, peripheral) */
.story .deco-fish {
  position: absolute;
  left: 3%;
  top: 14%;
  width: 110px;
  height: auto;
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transform: scaleX(-1); /* face toward photo */
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-10) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: var(--space-6);
  align-items: start;
}

.footer-col h3 {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  font-family: var(--font-sans);
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--white);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--coral-soft); }

.footer-brand {
  text-align: right;
}
.footer-brand img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-left: auto;
  margin-bottom: var(--space-3);
}
.footer-brand .copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
  :root {
    --header-h: 64px;
  }

  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }

  .brand-logo img { height: 44px; }

  .section { padding: var(--space-10) 0; }

  .hero { min-height: 540px; }
  .hero-media img { object-position: 65% center; }
  .hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(11, 63, 92, 0.4) 0%,
      rgba(11, 63, 92, 0.25) 40%,
      rgba(11, 63, 92, 0.6) 100%
    );
  }
  .hero-content { padding: var(--space-10) 0 var(--space-12); }
  .hero h1 { font-size: 30px; line-height: 1.45; }
  .hero-lead { font-size: 14.5px; line-height: 1.85; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    max-width: 380px;
  }
  .about-icon { width: 80px; height: 80px; }
  .about-icon svg { width: 44px; height: 44px; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cta-band { padding: var(--space-6) 0; }
  .cta-band .container {
    flex-direction: column;
    text-align: center;
  }
  .cta-band .deco-starfish {
    left: auto;
    right: 12px;
    top: 12px;
    transform: rotate(15deg);
    width: 70px;
    height: auto;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .story-list { margin-top: 0; }
  .story .deco-coral {
    right: 12px;
    bottom: 0;
    width: 130px;
    height: auto;
  }
  .story .deco-fish { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--space-5);
  }
  .footer-brand img { margin: 0 auto var(--space-3); }
}

@media (min-width: 881px) {
  .mobile-site-menu { display: none !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Shop Search Page — Layout / Sidebar / Cards / Pagination
   ========================================================================== */

/* --- Page hero (compact, for sub-pages) --------------------------------- */
.subhero {
  position: relative;
  padding: var(--space-8) 0 var(--space-10);
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--white) 100%);
  overflow: hidden;
}
.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/home-hero.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.subhero-inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--sub);
  margin-bottom: var(--space-3);
}
.breadcrumb a:hover { color: var(--ocean); }
.breadcrumb-sep { color: var(--border); }

.subhero h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin-bottom: var(--space-3);
}
.subhero-lead {
  font-size: 14px;
  color: var(--sub);
  max-width: 540px;
  margin-bottom: var(--space-5);
}

.subhero-searchbar {
  display: flex;
  gap: var(--space-3);
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--soft-shadow);
  align-items: center;
}
.subhero-searchbar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  padding: 10px 0;
}
.subhero-searchbar input::placeholder { color: var(--sub); }
.subhero-searchbar .button {
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-size: 14px;
}

.subhero-meta {
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--sub);
}
.subhero-meta strong { color: var(--deep); font-weight: 700; }

/* --- Shop page layout (sidebar + main) ---------------------------------- */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.sidebar-head svg { width: 16px; height: 16px; color: var(--ocean); }

.filter-group { margin-bottom: var(--space-5); }
.filter-group:last-of-type { margin-bottom: 0; }
.filter-group h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: var(--space-3);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}
.filter-check:hover { color: var(--ocean); }
.filter-check input { display: none; }
.filter-check .box {
  width: 18px; height: 18px;
  border: 1.6px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.filter-check input:checked + .box {
  border-color: var(--ocean);
  background: var(--ocean);
}
.filter-check input:checked + .box::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) translateY(-1px);
}

.filter-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-pill {
  width: 100%;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  white-space: nowrap;
}
.filter-pill:hover { border-color: var(--ocean); color: var(--ocean); }
.filter-pill.is-active {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
}

.sidebar-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 10px;
  margin-top: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--white);
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-reset:hover { border-color: var(--ocean); color: var(--ocean); }
.sidebar-reset svg { width: 14px; height: 14px; }

/* --- Main content -------------------------------------------------------- */
.shop-main { min-width: 0; }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.results-count {
  font-size: 15px;
  color: var(--text);
}
.results-count strong {
  color: var(--deep);
  font-weight: 700;
  font-size: 18px;
}
.results-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sort-select {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sort-select label {
  font-size: 12px;
  color: var(--sub);
}
.sort-select select {
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: 6px 12px;
  background: var(--white);
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}

/* --- Jiji consultation banner ------------------------------------------- */
.jiji-banner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  background: linear-gradient(105deg, #F0FBF5 0%, #E3F7EC 100%);
  border: 1.5px solid #BCEACE;
  border-radius: var(--radius-card);
  flex-wrap: wrap;
}
.jiji-banner-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--line-green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.jiji-banner-icon svg { width: 24px; height: 24px; }
.jiji-banner-text { flex: 1; min-width: 220px; }
.jiji-banner-text h3 {
  font-size: 14.5px;
  color: var(--deep);
  margin-bottom: 4px;
}
.jiji-banner-text p {
  font-size: 12.5px;
  color: var(--sub);
}
.jiji-banner .button {
  padding: 10px 20px;
  font-size: 13px;
}

/* --- Shop card grid ------------------------------------------------------ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
  border-color: transparent;
}

/* Stretched link: covers entire card so anywhere is clickable */
.shop-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}
.shop-card-link:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: -2px;
  border-radius: var(--radius-card);
}

.shop-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky);
}
.shop-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.shop-card-image .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(11, 63, 92, 0.25);
}
.shop-card-image .placeholder svg { width: 40%; height: 40%; }

/* ========== ショップカード お気に入りボタン ========== */
.shop-card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #888;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s, color 0.2s, background 0.2s;
  padding: 0;
  line-height: 1;
}
.shop-card-favorite:hover:not(:disabled) {
  background: #ffffff;
  transform: scale(1.08);
}
.shop-card-favorite:active:not(:disabled) {
  transform: scale(0.95);
}
.shop-card-favorite:disabled {
  opacity: 0.5;
  cursor: default;
}
.shop-card-favorite.is-fav {
  color: #e85a5a;
}
.shop-card-favorite .heart {
  display: inline-block;
  line-height: 1;
}

.shop-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.shop-card h3 {
  font-size: 16px;
  color: var(--deep);
  margin: 0;
  line-height: 1.4;
}

.shop-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--sub);
}
.shop-card-location svg {
  width: 12px; height: 12px;
  color: var(--ocean);
  flex-shrink: 0;
}

.shop-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.shop-card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.shop-card-tag--green   { background: #E3F7EC; color: #1D7A3F; }
.shop-card-tag--pink    { background: #FFEDF1; color: #B83560; }
.shop-card-tag--blue    { background: #E1F0FB; color: #1B5F8E; }
.shop-card-tag--amber   { background: #FFF3D6; color: #8C5B0B; }
.shop-card-tag--purple  { background: #ECE6FB; color: #4F3CA6; }
.shop-card-tag--cyan    { background: #DDF3F6; color: #1D6B7A; }
.shop-card-tag--coral   { background: var(--coral-blob); color: #B83A2C; }
.shop-card-tag--neutral { background: #F0F2F5; color: #5F7480; }

.shop-card-desc {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.7;
  flex: 1;
}

.shop-card-price {
  font-size: 13px;
  color: var(--text);
  background: var(--sky-soft);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shop-card-price svg { width: 14px; height: 14px; color: var(--ocean); }
.shop-card-price strong { color: var(--coral); font-weight: 700; }

.shop-card-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  position: relative;
  z-index: 2;
}
.shop-card-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 12px;
  border-radius: var(--radius-button);
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.shop-card-action--detail {
  background: var(--white);
  border-color: var(--border);
  color: var(--deep);
}
.shop-card-action--detail:hover { border-color: var(--ocean); color: var(--ocean); }
.shop-card-action--line {
  background: var(--white);
  border-color: var(--line-green);
  color: var(--line-green);
}
.shop-card-action--line:hover {
  background: var(--line-green);
  color: var(--white);
}
.shop-card-action svg { width: 11px; height: 11px; }

/* --- Disclaimer / pagination -------------------------------------------- */
.results-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
  background: var(--sand);
  border-radius: var(--radius-button);
  font-size: 12.5px;
  color: var(--text);
}
.results-disclaimer svg { width: 16px; height: 16px; color: var(--sub); flex-shrink: 0; margin-top: 1px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.pagination button {
  min-width: 36px; height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--ocean);
  color: var(--ocean);
}
.pagination button.is-active {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination .ellipsis {
  padding: 0 4px;
  color: var(--sub);
  font-weight: 600;
}

/* --- Loading / Empty / Error states ------------------------------------- */
.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
  gap: var(--space-3);
  text-align: center;
}
/* Ensure hidden attribute wins over display: flex above */
.state-block[hidden],
.shop-grid[hidden],
.pagination[hidden],
.results-disclaimer[hidden] {
  display: none !important;
}
.state-block .spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(30, 142, 216, 0.2);
  border-top-color: var(--ocean);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-block h3 { font-size: 15px; color: var(--deep); }
.state-block p { font-size: 13px; color: var(--sub); }
.state-block-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sky-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ocean);
}
.state-block-icon svg { width: 28px; height: 28px; }

/* --- Mobile responsive --------------------------------------------------- */
@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .subhero-searchbar {
    flex-direction: column;
    border-radius: var(--radius-card);
    padding: 12px;
  }
  .subhero-searchbar input { padding: 6px 8px; width: 100%; }
  .subhero-searchbar .button { width: 100%; }
  .results-bar { gap: var(--space-3); }
  .jiji-banner { padding: var(--space-3); }
  .jiji-banner .button { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Guide Page — Beginner's Guide / YouTube channels
   ========================================================================== */

/* --- Hero (image-backed) --------------------------------------------------- */
.guide-hero {
  position: relative;
  padding: var(--space-12) 0;
  overflow: hidden;
  background: var(--deep);
}
.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/guide-hero.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.guide-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,63,92,0.85) 0%, rgba(11,63,92,0.55) 40%, rgba(11,63,92,0.25) 100%);
  z-index: 1;
}
.guide-hero-inner {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
}
.guide-hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}
.guide-hero h1 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.4;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.guide-hero-lead {
  font-size: clamp(14px, 1.3vw, 16px);
  color: rgba(255,255,255,0.95);
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* --- Intro section ------------------------------------------------------- */
.guide-intro {
  padding: var(--space-10) 0 var(--space-7);
  text-align: center;
  background: var(--white);
}
.guide-intro h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: var(--space-3);
}
.guide-intro p {
  font-size: 14.5px;
  color: var(--sub);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.9;
}

/* --- Channel cards (alternating layout) --------------------------------- */
.channels {
  padding: 0 0 var(--space-12);
  background: var(--white);
}

.channel-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-8) 0;
}
.channel-block + .channel-block {
  border-top: 1px solid var(--border);
}
.channel-block--reverse .channel-card { order: 2; }
.channel-block--reverse .channel-text { order: 1; }

.channel-card {
  background: linear-gradient(135deg, var(--deep) 0%, #134d72 100%);
  border-radius: 20px;
  padding: var(--space-5);
  box-shadow: var(--shadow);
  color: var(--white);
}
.channel-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.channel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  overflow: hidden;
  flex-shrink: 0;
}
.channel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel-card-name { flex: 1; min-width: 0; }
.channel-card-name h3 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}
.channel-card-name p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  margin: 3px 0 0;
}

.channel-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.channel-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.channel-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.channel-thumb:hover .channel-thumb-overlay { background: rgba(0,0,0,0.10); }
.channel-thumb-play {
  width: 60px; height: 60px;
  background: #FF0000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: transform 0.2s;
}
.channel-thumb:hover .channel-thumb-play { transform: scale(1.08); }
.channel-thumb-play svg { width: 26px; height: 26px; color: var(--white); margin-left: 4px; }

.channel-text .eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--ocean);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: inline-block;
}
.channel-text h2 {
  font-size: clamp(20px, 2.3vw, 26px);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}
.channel-text > p {
  font-size: 14.5px;
  color: var(--sub);
  line-height: 1.9;
  margin-bottom: var(--space-4);
}
.channel-tags {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.channel-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--sky);
  color: var(--ocean);
}

.button--youtube {
  background: #FF0000;
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(255,0,0,0.22);
}
.button--youtube:hover { background: #CC0000; }
.button--youtube svg { width: 16px; height: 16px; }

/* --- Disclaimer block --------------------------------------------------- */
.guide-disclaimer {
  padding: var(--space-5) var(--space-6);
  background: var(--sky-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: var(--space-7);
  text-align: center;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.85;
}

/* --- Final CTA (sand) --------------------------------------------------- */
.guide-cta-band {
  background: var(--sand);
  padding: var(--space-10) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.guide-cta-band > .container { position: relative; z-index: 1; }
.guide-cta-band h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: var(--space-3);
}
.guide-cta-band p {
  font-size: 14.5px;
  color: var(--sub);
  line-height: 1.9;
  margin-bottom: var(--space-5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.guide-cta-band .deco-starfish {
  position: absolute;
  right: 32px;
  top: 24px;
  width: 80px;
  height: auto;
  transform: rotate(15deg);
  mix-blend-mode: multiply;
  z-index: 0;
  opacity: 0.85;
}

/* --- Mobile responsive --------------------------------------------------- */
@media (max-width: 880px) {
  .guide-hero { padding: var(--space-10) 0; }
  .guide-hero h1 { font-size: 24px; line-height: 1.5; }

  .channel-block {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6) 0;
  }
  .channel-block--reverse .channel-card { order: 1; }
  .channel-block--reverse .channel-text { order: 2; }
  .channel-text h2 { font-size: 20px; }

  .guide-cta-band .deco-starfish {
    width: 56px;
    right: 12px;
    top: 12px;
  }
}
