/* =========================
   Minimal Reset
========================= */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body, h1, h2, h3, p, ul, li { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* =========================
   Theme Tokens
========================= */
:root{
  --bg: #f6f3ec;          /* Sand Beige */
  --panel: #ffffff;
  --ink: #1b1b1b;
  --muted: #6c6c6c;
  --line: #e7e2d9;

  --accent: #13b8a6;      /* Teal main */
  --accent-2: #f6b73c;    /* Amber */
  --accent-3: #ff7a59;    /* Coral */

  --booth: #e63b2e;       /* BOOTH Red */
  --booth-d: #cc2f23;     /* BOOTH Red (hover) */

  --radius-s: 10px;
  --radius-m: 14px;

  --shadow-1: 0 6px 20px rgba(0,0,0,.06);
  --shadow-2: 0 18px 50px rgba(0,0,0,.10);
}

/* =========================
   Base
========================= */
body{
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  background: linear-gradient(#fbf9f4, var(--bg));
  line-height: 1.65;
  letter-spacing: .02em;
}

.container{
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* =========================
   Header
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in oklab, #ffffff 75%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #000;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: .04em;
}

.header-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  font-weight: 700;
  font-size: 14px;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active{ transform: translateY(0); box-shadow: var(--shadow-1); }

.btn.accent{
  background: var(--accent);
  color: #fff;
  border-color: color-mix(in oklab, var(--accent) 60%, #000 10%);
}
.btn.accent:hover{
  background: color-mix(in oklab, var(--accent) 92%, #fff 8%);
}

/* BOOTHボタン（ブランドカラー） */
.btn.booth-btn{
  background: var(--booth);
  color: #fff;
  border-color: color-mix(in oklab, var(--booth) 65%, #000 10%);
}
.btn.booth-btn:hover{ background: var(--booth-d); }

/* =========================
   Hero
========================= */
.hero{
  padding: clamp(36px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
  color: #fff;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero h1{
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero p{
  color: color-mix(in oklab, #ffffff 82%, #000 18%);
  max-width: 60ch;
}

/* Badges */
.badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0b3b36;
  background: color-mix(in oklab, var(--accent) 14%, #fff 86%);
  border: 1px solid color-mix(in oklab, var(--accent) 20%, var(--line) 80%);
}

/* Hero Art */
.hero-art{ position: relative; min-height: 360px; isolation: isolate; }
.blur-blob{
  position: absolute; filter: blur(38px); opacity: .45; z-index: -1; border-radius: 50%;
}
.blob-1{ width: 240px; height: 240px; background: #ffd58a; top: -20px; right: 12%; }
.blob-2{ width: 240px; height: 240px; background: #9bf4e6; bottom: 0; left: 10%; }
.blob-3{ width: 200px; height: 200px; background: #f9a89b; top: 20%; left: 45%; }

.tile-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 86px;
  gap: 10px;
  transform: rotate(-2.2deg);
}
.tile-img{
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-1);
  border: 1px solid color-mix(in oklab, var(--line) 80%, #000 0%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile-img:hover{ transform: translateY(-4px) rotate(.6deg); box-shadow: var(--shadow-2); }

.tilt-1{ grid-column: 1 / span 3; grid-row: 1 / span 2; }
.tilt-2{ grid-column: 4 / span 3; grid-row: 1 / span 3; }
.tilt-3{ grid-column: 1 / span 2; grid-row: 3 / span 2; }
.tilt-4{ grid-column: 3 / span 2; grid-row: 3 / span 2; }
.tilt-5{ grid-column: 5 / span 2; grid-row: 4 / span 2; }
.tilt-6{ grid-column: 1 / span 3; grid-row: 5 / span 2; }

/* =========================
   Section Common
========================= */
.section{
  padding: clamp(36px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.section:nth-of-type(even){ background: #fffdfa; }

.section h2{
  font-size: clamp(22px, 3.2vw, 28px);
  margin-bottom: 16px;
}

/* =========================
   Filters (カテゴリ)
========================= */
.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.filter-btn{
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  color: #26302f;
  transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}
.filter-btn:hover{ transform: translateY(-1px); }
.filter-btn.active{
  background: color-mix(in oklab, var(--accent) 18%, #fff 82%);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line) 65%);
  color: #0f3e38;
}

/* =========================
   Catalog Grid & Cards
========================= */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* Youtube埋め込みを統一比率で */
.embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;       /* 主要端末で安定 */
  overflow: hidden;
  background: #000;
  border-top-left-radius: var(--radius-m);
  border-top-right-radius: var(--radius-m);
}
.embed iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.card{
  grid-column: span 4;                 /* 3列 */
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: clip;
  background: var(--panel);
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in oklab, var(--accent) 28%, var(--line) 72%);
}

.card-body{
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.tag{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: #f1fbf9;
  color: #0b6c62;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, #d9f5f0 70%);
  width: max-content;
}

.card h3{
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.4;
}

.meta{ color: var(--muted); font-size: 13px; }

.card-actions{
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* =========================
   Request CTA（Googleフォーム）
========================= */
.request-panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}
.request-panel__body{ padding: clamp(18px, 3.6vw, 28px); }
.request-lead{ color: var(--ink); margin: 8px 0 12px; }
.request-points{ margin: 0 0 14px; padding-left: 1.2em; color: var(--muted); }
.request-points li{ margin: .3em 0; }
.request-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }

/* Googleフォーム専用ボタン */
.btn-gform{
  background: #34A853; color: #fff;
  border-color: #2c8f47;
}
.btn-gform:hover{ background: #2e944c; }

/* =========================
   Accordion (About / Terms)
========================= */
.accordion{ display: grid; gap: 10px; }

.acc{
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  overflow: clip;
  box-shadow: var(--shadow-1);
}

.acc > summary{
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.acc > summary::-webkit-details-marker{ display: none; }
.acc > summary::after{
  content: "＋";
  position: absolute; right: 14px; top: 12px;
  font-weight: 800; color: var(--muted);
  transition: transform .2s ease;
}
.acc[open] > summary::after{ content: "−"; }

.acc__content{
  padding: 12px 14px 14px;
  color: #444;
  border-top: 1px dashed var(--line);
}

/* =========================
   Footer
========================= */
footer{
  border-top: 1px solid var(--line);
  background: #fff;
  color: #3a3a3a;
  padding: 18px 0 36px;
  font-size: 14px;
  text-align: center;
}

/* =========================
   Fade-in on Scroll
========================= */
.fadein{ opacity: 0; transform: translateY(12px); }
.is-in{ opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce){
  .fadein, .is-in, .tile-img, .btn, .filter-btn, .card{ transition: none !important; }
}

/* =========================
   Responsive
========================= */
@media (max-width: 1080px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; min-height: 280px; }
}

@media (max-width: 920px){
  .grid{ gap: 14px; }
  .card{ grid-column: span 6; } /* 2列 */
}

@media (max-width: 640px){
  .header-inner{ padding: 10px 0; }
  .header-actions{ gap: 8px; }
  .tile-grid{ transform: rotate(-1.2deg); grid-auto-rows: 76px; }
  .card{ grid-column: span 12; } /* 1列 */
  .btn{ padding: 9px 14px; }
  .filters{ gap: 6px; }
}

/* =========================
   Dark Scheme Tweak
========================= */
@media (prefers-color-scheme: dark){
  :root{
    --bg: #131514;
    --panel: #161817;
    --ink: #f5f5f5;
    --muted: #b8b8b8;
    --line: #222624;
  }
  .site-header{ background: color-mix(in oklab, #0f1110 75%, transparent); }
  .btn{ background: #181b1a; color: #f2f2f2; border-color: #242826; }
  .btn.accent{ color: #08211e; }
  .btn.booth-btn{ color:#fff; }
  .badge{ color: #093530; background: color-mix(in oklab, var(--accent) 22%, #0f1110 78%); }
  .section{ background: #0f1110; }
  .section:nth-of-type(even){ background: #121412; }
  .acc{ background:#161817; }
  .acc__content{ color:#ddd; }
  footer{ background: #0f1110; color: #cfcfcf; }
}
