/* ==========================================================================
   きゃろってぃー Official Site
   ========================================================================== */

:root {
  --coffee-900: #2E1D12;
  --coffee-800: #4A3221;
  --coffee-700: #6B4A30;
  --camel: #C9A66B;
  --camel-light: #E4D2AC;
  --ivory: #FDF8F0;
  --ivory-dim: #F3E9D8;
  --carrot: #E8792B;
  --carrot-dark: #C9601A;
  --sage: #8A9A7E;
  --sage-dark: #5F715A;

  --tag-notice-bg: #FBEADB;
  --tag-notice-fg: #C9601A;
  --tag-activity-bg: #E7EEE1;
  --tag-activity-fg: #5F715A;
  --tag-event-bg: #EFE6D8;
  --tag-event-fg: #4A3221;

  --font-heading: "Shippori Mincho", "Cormorant Garamond", serif;
  --font-body: "Zen Maru Gothic", sans-serif;
  --font-chalk: "Yomogi", "Zen Maru Gothic", sans-serif;

  --board-bg: #1F3D30;
  --board-bg-light: #274A3A;
  --board-frame: #6B4A30;

  --header-h: 78px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(74, 50, 33, 0.12);
  --ease-cute: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--coffee-900);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 .5em;
  letter-spacing: .04em;
  color: var(--coffee-800);
}

ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--coffee-800);
  color: var(--ivory);
  padding: .75em 1.25em;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   First-load intro
   White -> center pour -> dual wave rise -> logo -> curtain open
   ========================================================================== */

.site-intro {
  --intro-wave-height: clamp(82px, 12vh, 132px);
  --intro-duration: 4.8s;
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.intro-white-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #fff;
  opacity: 1;
  animation: introWhiteTimeline var(--intro-duration) linear forwards;
}

@keyframes introWhiteTimeline {
  0%, 76% { opacity: 1; }
  76.2%, 100% { opacity: 0; }
}

.intro-line {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: clamp(10px, 1vw, 18px);
  height: 0;
  opacity: 1;
  transform: translateX(-50%);
  background: var(--coffee-900);
  animation: introLineTimeline var(--intro-duration) linear forwards;
}

@keyframes introLineTimeline {
  0%, 2.5% { height: 0; opacity: 1; }
  2.5% { animation-timing-function: cubic-bezier(.42, 0, .58, 1); }
  12% { height: 100%; opacity: 1; }
  38% {
    height: 100%;
    opacity: 1;
    animation-timing-function: cubic-bezier(.42, 0, .58, 1);
  }
  38.2%, 100% { height: 100%; opacity: 0; }
}

@keyframes introLineTimelineMobile {
  0%, 2.5% { height: 0; opacity: 1; }
  2.5% { animation-timing-function: cubic-bezier(.42, 0, .58, 1); }
  12% { height: 100%; opacity: 1; }
  42.1% {
    height: 100%;
    opacity: 1;
    animation-timing-function: cubic-bezier(.42, 0, .58, 1);
  }
  42.3%, 100% { height: 100%; opacity: 0; }
}

.intro-liquid {
  --liquid-delay: .48s;
  --liquid-rise-duration: 1.05s;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: calc(100% + var(--intro-wave-height));
  transform: translate3d(0, calc(100% + var(--intro-wave-height)), 0);
  opacity: 1;
  animation:
    introLiquidRise var(--liquid-rise-duration) cubic-bezier(.42, 0, .82, .65) var(--liquid-delay) forwards,
    introLiquidHide .01s linear 3.65s forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.intro-liquid-front-layer {
  --liquid-delay: .78s;
  z-index: 4;
}

@keyframes introLiquidRise {
  from { transform: translate3d(0, calc(100% + var(--intro-wave-height)), 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes introLiquidHide {
  to { opacity: 0; }
}

.intro-wave {
  position: absolute;
  top: 0;
  max-width: none;
  height: calc(var(--intro-wave-height) * 7.5);
  display: block;
  object-fit: fill;
  object-position: center top;
  transform-origin: 50% 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.intro-wave-back {
  top: -112px;
  left: -46%;
  width: 188%;
  z-index: 1;
  animation: introWaveDrift var(--intro-duration) linear .48s forwards;
}

.intro-wave-front {
  top: -68px;
  left: -18%;
  width: 166%;
  z-index: 1;
  animation: introWaveDrift var(--intro-duration) linear .78s forwards;
}

@keyframes introWaveDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-13%, 0, 0); }
}

.intro-liquid-body {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: calc(var(--intro-wave-height) + 160px);
  bottom: 0;
}

.intro-liquid-body-back {
  background: var(--coffee-700);
}

.intro-liquid-body-front {
  background: var(--coffee-900);
}

.intro-curtains {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.intro-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 58%;
  background: linear-gradient(90deg, var(--coffee-900) 0%, #3a281a 13%, var(--coffee-900) 25%, #3b291b 39%, var(--coffee-900) 53%, #3a281a 68%, var(--coffee-900) 82%, #3b291b 93%, var(--coffee-900) 100%);
  opacity: 0;
  will-change: transform, opacity;
}

.intro-curtain-l {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 93.5% 100%, 0 100%);
  animation: introCurtainLeftTimeline var(--intro-duration) linear forwards;
}

.intro-curtain-r {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6.5% 100%);
  animation: introCurtainRightTimeline var(--intro-duration) linear forwards;
}

@keyframes introCurtainLeftTimeline {
  0%, 75.8% { opacity: 0; transform: translate3d(0, 0, 0); }
  76% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
  100% { opacity: 1; transform: translate3d(-112%, 0, 0); }
}

@keyframes introCurtainRightTimeline {
  0%, 75.8% { opacity: 0; transform: translate3d(0, 0, 0); }
  76% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
  100% { opacity: 1; transform: translate3d(112%, 0, 0); }
}

.intro-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: min(82vw, 560px);
  max-height: 70vh;
  object-fit: contain;
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 10px), 0) scale(.92);
  animation: introLogoTimeline var(--intro-duration) linear forwards;
  will-change: opacity, transform;
}

@keyframes introLogoTimeline {
  0%, 48% {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% + 10px), 0) scale(.92);
  }
  48% { animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  55% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
  67% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
  76%, 100% {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% - 6px), 0) scale(1.025);
  }
}

@media (max-width: 600px) {
  .site-intro { --intro-wave-height: clamp(70px, 11vh, 105px); }
  .intro-liquid { --liquid-rise-duration: 1.25s; }
  .intro-line { animation-name: introLineTimelineMobile; }
  .intro-wave {
    height: auto;
    object-fit: contain;
  }
  .intro-logo { width: min(88vw, 430px); }
  .intro-wave-back { top: -82px; left: -56%; width: 208%; }
  .intro-wave-front { top: -50px; left: -26%; width: 180%; }
  .intro-curtain-l { clip-path: polygon(0 0, 100% 0, 94.5% 100%, 0 100%); }
  .intro-curtain-r { clip-path: polygon(0 0, 100% 0, 100% 100%, 5.5% 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none; }
}
/* ---------- layout helpers ---------- */
.section-block {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 20px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.2em;
}
.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2em;
  line-height: 1.9;
  color: var(--coffee-700);
}
.only-pc { display: none; }
.only-mobile { display: inline; }
@media (min-width: 800px) {
  .only-pc { display: inline; }
  .only-mobile { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .85em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--carrot);
  color: var(--ivory);
  box-shadow: 0 6px 0 var(--carrot-dark);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--carrot-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--carrot-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--coffee-800);
  color: var(--coffee-800);
}
.btn-outline:hover { background: var(--coffee-800); color: var(--ivory); transform: translateY(-3px); }
.btn-secondary {
  background: var(--ivory);
  color: var(--coffee-800);
  box-shadow: 0 6px 0 var(--camel);
}
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--camel); }
.btn-secondary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--camel); }
.btn-sm { padding: .55em 1.2em; font-size: .85rem; }
.btn svg { width: 1.1em; height: 1.1em; display: block; }

.tag, .tag-inline {
  display: inline-block;
  background: var(--sage);
  color: var(--ivory);
  padding: .35em 1em;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  margin: .2em;
}
.tag-inline { margin: 0 .2em; }

/* ---------- fade-up scroll animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s var(--ease-cute);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1.is-visible { transition-delay: .1s; }
.delay-2.is-visible { transition-delay: .2s; }
.delay-3.is-visible { transition-delay: .3s; }
.delay-4.is-visible { transition-delay: .4s; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(253, 248, 240, 0.98);
  z-index: 100;
  border-bottom: 1px solid var(--camel-light);
}
.header-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
}
.brand-logo { height: 58px; width: auto; transition: transform .3s var(--ease-cute); }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.05); }

.tab-nav { position: relative; display: none; }
.tab-nav ul { display: flex; gap: 8px; }
.tab-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--coffee-700);
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.tab-nav a:hover { background: var(--ivory-dim); }
.tab-nav a.is-active { color: var(--carrot-dark); animation: tabPop .45s cubic-bezier(.34, 1.7, .5, 1); }
@keyframes tabPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); }
  60% { transform: scale(.96); }
  100% { transform: scale(1); }
}
.tab-nav a rt, .mobile-nav a rt {
  font-size: .55em;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--coffee-700);
  opacity: .8;
  user-select: none;
}
.tab-nav a.is-active rt { color: var(--carrot-dark); opacity: .9; }
.mobile-nav a.is-active rt { color: var(--ivory); opacity: .85; }
.tab-indicator {
  position: absolute;
  bottom: -1px;
  height: 3px;
  background: var(--carrot);
  border-radius: 3px;
  overflow: hidden;
  transition: left .4s cubic-bezier(.34, 1.56, .64, 1), width .4s cubic-bezier(.34, 1.56, .64, 1);
}
.tab-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.95) 45%, transparent 60%);
  opacity: 0;
  transform: translateX(-120%);
}
.tab-indicator.is-landing::after {
  animation: tabShine .5s ease-out .05s;
}
@keyframes tabShine {
  0% { opacity: 0; transform: translateX(-120%); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

.hamburger {
  position: relative;
  display: flex;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  cursor: pointer;
  align-items: center;
}
.hamburger span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 24px;
  height: 3px;
  background: var(--coffee-800);
  border-radius: 3px;
  transition: transform .3s var(--ease-cute), opacity .2s ease;
  transform-origin: center;
}
.hamburger span:nth-child(1) { transform: translate(-50%, -9px); }
.hamburger span:nth-child(2) { transform: translate(-50%, -50%); }
.hamburger span:nth-child(3) { transform: translate(-50%, 6px); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(80vw, 320px);
  height: calc(100vh - var(--header-h));
  background: var(--ivory);
  box-shadow: -12px 0 30px rgba(46, 29, 18, 0.15);
  transform: translateX(100%);
  transition: transform .35s var(--ease-cute);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 12px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  color: var(--coffee-800);
}
.mobile-nav a.is-active { background: var(--carrot); color: var(--ivory); animation: tabPop .45s cubic-bezier(.34, 1.7, .5, 1); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 29, 18, 0.35);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .tab-nav { display: block; }
  .hamburger, .mobile-nav, .mobile-nav-overlay { display: none; }
  .header-inner { justify-content: center; gap: 34px; padding: 0 20px; }
}

/* Header join-actions: membership / free fan club / paid fan club buttons.
   Normal flex child of .header-inner, so the same `gap` used between brand/nav
   keeps a consistent rhythm (Contact-to-buttons matches logo-to-HOME). */
.header-join-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-join-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.header-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5em .9em;
  border-radius: 999px;
  background: var(--carrot);
  color: var(--ivory);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--carrot-dark);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.header-join-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--carrot-dark); }
.header-join-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--carrot-dark); }
.header-join-btn.is-disabled {
  background: #B9B2A6;
  color: var(--ivory);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  opacity: .85;
}
.header-join-item > span:last-child {
  font-size: .5rem;
  color: var(--coffee-700);
  letter-spacing: .01em;
  white-space: nowrap;
}
/* Membership button is on hold for now (not yet at the subscriber threshold) */
.header-join-membership { display: none; }
@media (max-width: 899px) {
  .brand-logo { height: 36px; }
  .header-join-actions { gap: 6px; }
}
@media (min-width: 900px) {
  .header-join-actions { gap: 14px; }
  .header-join-btn { padding: .6em 1.1em; font-size: .74rem; }
  .header-join-item > span:last-child { font-size: .56rem; }
}

/* ==========================================================================
   Main / Tab panels
   ========================================================================== */
main {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  padding-top: var(--header-h);
}

.tab-panel {
  display: none;
  animation: panelIn .5s var(--ease-cute);
}
.tab-panel.is-active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(46,29,18,0.82) 20%, rgba(46,29,18,0.55) 55%, rgba(46,29,18,0.25) 100%);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 48px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.hero-copy { color: var(--ivory); text-align: center; padding: 0 20px; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .75rem;
  color: var(--camel-light);
  margin-bottom: 1em;
}
.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.4;
  color: var(--ivory);
  margin-bottom: .6em;
}
.hero-lead { line-height: 1.9; margin-bottom: 1.8em; opacity: .92; }
.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.hero-actions .btn {
  flex: 1 1 0;
  justify-content: center;
  padding: .7em .6em;
  font-size: .78rem;
  white-space: nowrap;
  gap: .3em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hero-actions .btn:hover {
  background: var(--carrot);
  border-color: var(--carrot);
  color: var(--ivory);
  box-shadow: 0 9px 0 var(--carrot-dark);
  transform: translateY(-3px);
}
.hero-actions .btn:focus-visible {
  outline: 3px solid var(--carrot);
  outline-offset: 3px;
}
.hero-actions .btn:active {
  box-shadow: 0 3px 0 var(--carrot-dark);
  transform: translateY(2px);
}
@media (max-width: 799px) {
  .hero { min-height: auto; align-items: flex-start; }
  .hero-inner {
    min-width: 0;
    gap: 0;
    padding-bottom: 52px;
  }
  .hero-copy {
    width: 100%;
    min-width: 0;
    padding: 36px 18px 0;
  }
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-lead {
    max-width: 100%;
    font-size: clamp(.78rem, 3.6vw, .92rem);
    line-height: 1.85;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    max-width: 100%;
  }
  .hero-actions .btn {
    min-width: 0;
    height: 42px;
    min-height: 0;
    padding: 0 .35em;
    font-size: clamp(.58rem, 2.6vw, .72rem);
    line-height: 1;
    white-space: nowrap;
    text-align: center;
  }
  .hero-actions .btn svg,
  .hero-actions .btn span { flex: 0 0 auto; }
  .hero-figure {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
@media (min-width: 480px) {
  .hero-actions .btn { padding: .85em 1.4em; font-size: .88rem; gap: .4em; }
}
@media (min-width: 800px) {
  .hero-actions { justify-content: flex-start; gap: 22px; width: auto; }
  .hero-actions .btn { flex: 0 0 auto; font-size: .85rem; padding: .75em 1.3em; }
}

.hero-figure {
  position: relative;
  width: 100%;
}
.hero-img {
  display: block;
  width: 100%;
}
.steam {
  position: absolute;
  background: linear-gradient(to top, rgba(255,255,255,.78), rgba(255,255,255,0));
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
}
.steam.s1 { left: 11%;  bottom: 44%; width: 7px;  height: 34px; animation: steamRise    4.1s ease-in-out .2s  infinite; }
.steam.s2 { left: 21%;  bottom: 53%; width: 10px; height: 46px; animation: steamRiseAlt 5.2s ease-in-out 1.4s infinite; }
.steam.s3 { left: 29%;  bottom: 39%; width: 6px;  height: 29px; animation: steamRise    3.6s ease-in-out 2.5s infinite; }
.steam.s4 { left: 40%;  bottom: 56%; width: 9px;  height: 41px; animation: steamRiseAlt 4.8s ease-in-out .8s  infinite; }
.steam.s5 { left: 50%;  bottom: 46%; width: 8px;  height: 36px; animation: steamRise    4.4s ease-in-out 3.1s infinite; }
.steam.s6 { left: 60%;  bottom: 41%; width: 11px; height: 48px; animation: steamRiseAlt 5.6s ease-in-out 1.9s infinite; }
.steam.s7 { left: 69%;  bottom: 51%; width: 7px;  height: 32px; animation: steamRise    3.9s ease-in-out 0s   infinite; }
.steam.s8 { left: 79%;  bottom: 45%; width: 9px;  height: 43px; animation: steamRiseAlt 4.6s ease-in-out 2.9s infinite; }
.steam.s9 { left: 88%;  bottom: 54%; width: 6px;  height: 27px; animation: steamRise    5.0s ease-in-out 1.1s infinite; }
@keyframes steamRise {
  0% { opacity: 0; transform: translate(0, 0) scaleX(1) rotate(0deg); filter: blur(1px); }
  15% { opacity: .7; }
  45% { transform: translate(-6px, -26px) scaleX(1.3) rotate(-4deg); }
  70% { opacity: .45; transform: translate(5px, -46px) scaleX(1.6) rotate(3deg); filter: blur(2px); }
  100% { opacity: 0; transform: translate(-3px, -68px) scaleX(2) rotate(-2deg); filter: blur(3.5px); }
}
@keyframes steamRiseAlt {
  0% { opacity: 0; transform: translate(0, 0) scaleX(1) rotate(0deg); filter: blur(1px); }
  18% { opacity: .65; }
  50% { transform: translate(7px, -30px) scaleX(1.4) rotate(4deg); }
  75% { opacity: .4; transform: translate(-6px, -50px) scaleX(1.7) rotate(-3deg); filter: blur(2.2px); }
  100% { opacity: 0; transform: translate(4px, -72px) scaleX(2.1) rotate(3deg); filter: blur(3.8px); }
}

@media (min-width: 800px) {
  .hero-inner { flex-direction: row; justify-content: space-between; padding: 60px 40px; }
  .hero-copy { text-align: left; max-width: 520px; padding: 0; }
  .hero-eyebrow, .hero-actions { justify-content: flex-start; }
  .hero-figure { width: 48%; max-width: 640px; margin: 0; }
  .hero-img { border-radius: var(--radius-lg); box-shadow: 0 24px 50px rgba(0,0,0,0.35); }
}

/* Weekly schedule image */
.schedule-block { text-align: center; }
.schedule-img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Menu teasers (recommended videos) */
.menu-teasers { padding-top: 0; }
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

/* Each recommended video sits on a little cushion (zabuton) */
.video-column { display: flex; flex-direction: column; align-items: center; }
.video-cushion {
  display: inline-block;
  width: fit-content;
  margin: 0 auto 14px;
  padding: .55em 1.5em;
  background: var(--coffee-700);
  color: var(--ivory);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(74, 50, 33, .25);
}

.video-card {
  position: relative;
  width: 100%;
  background: var(--ivory);
  border: 2px solid var(--camel-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease-cute), box-shadow .3s ease, border-color .3s ease;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--carrot);
}
.video-embed { position: relative; padding-top: 56.25%; height: 0; background: var(--coffee-900); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Endlessly scrolling ribbon of stream-archive thumbnails, full viewport width */
.video-marquee {
  position: relative;
  width: 100vw;
  margin-top: 36px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 22px 0;
  background: var(--coffee-900);
  overflow: hidden;
}
.video-marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  padding-inline: 16px;
  transition: transform .8s cubic-bezier(.45, 0, .2, 1);
  touch-action: pan-y;
  user-select: none;
}
.video-marquee-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(253, 248, 240, .92);
  color: var(--coffee-900);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}
.video-marquee-arrow svg { width: 22px; height: 22px; }
.video-marquee-arrow:hover { background: var(--ivory); transform: translateY(-50%) scale(1.08); }
.video-marquee-arrow:active { transform: translateY(-50%) scale(.96); }
.video-marquee-arrow-prev { left: 14px; }
.video-marquee-arrow-next { right: 14px; }
@media (max-width: 639px) {
  /* Mobile already has swipe; the arrows are a PC-only affordance. */
  .video-marquee-arrow { display: none; }
}
.video-marquee-item {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--coffee-700);
  transition: transform .25s var(--ease-cute), border-color .25s ease;
}
.video-marquee-item:hover { transform: translateY(-4px) scale(1.03); border-color: var(--carrot); }
.video-marquee-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 639px) {
  .video-marquee { padding: 14px 0; }
  .video-marquee-track {
    gap: 8px;
    padding-inline: 8px;
  }
  .video-marquee-item {
    /* Sized so exactly 2 items fit the screen edge-to-edge (8px side padding + 8px gap between). */
    width: calc((100vw - 24px) / 2);
    border-width: 1px;
    border-radius: 8px;
  }
}
@media (min-width: 900px) {
  .video-marquee-item { width: 280px; }
}

/* News preview (home) + full news list (News tab) */
.news-board {
  background: var(--ivory-dim);
  border: 2px solid var(--camel-light);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  max-width: 720px;
  margin: 0 auto;
}
.news-list { display: grid; gap: 12px; }
.news-list li,
.news-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ivory);
  border: 1.5px solid var(--camel-light);
  border-radius: 999px;
  font-size: .92rem;
  color: var(--coffee-900);
  transition: transform .2s var(--ease-cute), border-color .2s ease;
}
.news-list a:hover { transform: translateX(4px); border-color: var(--carrot); }
.news-date {
  font-family: var(--font-heading);
  color: var(--coffee-700);
  font-size: .85rem;
  white-space: nowrap;
}
.news-tag {
  display: inline-flex;
  align-items: center;
  padding: .35em 1em;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.news-tag-notice { background: var(--tag-notice-bg); color: var(--tag-notice-fg); }
.news-tag-activity { background: var(--tag-activity-bg); color: var(--tag-activity-fg); }
.news-tag-event { background: var(--tag-event-bg); color: var(--tag-event-fg); }
.news-title { line-height: 1.5; flex: 1 1 200px; }
.news-more { display: block; width: fit-content; margin: 20px auto 0; }
.news-more:hover {
  background: var(--carrot);
  border-color: var(--carrot);
  color: var(--ivory);
  box-shadow: 0 9px 0 var(--carrot-dark);
  transform: translateY(-3px);
}
.news-more:focus-visible {
  outline: 3px solid var(--carrot);
  outline-offset: 3px;
}
.news-more:active {
  box-shadow: 0 3px 0 var(--carrot-dark);
  transform: translateY(2px);
}
.news-list-full { max-width: 720px; margin: 0 auto; }
@media (max-width: 639px) {
  .news-preview { padding-inline: 14px; }
  .news-board {
    padding: 14px;
    border-width: 1.5px;
    border-radius: 22px;
  }
  .news-list { gap: 10px; }
  .news-list li,
  .news-list a {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 7px 12px;
    padding: 12px 14px;
    border-width: 1px;
    border-radius: 16px;
    font-size: .82rem;
  }
  .news-tag {
    padding: .3em .75em;
    font-size: .68rem;
  }
  .news-date {
    align-self: center;
    min-width: 0;
    font-size: .74rem;
  }
  .news-title {
    grid-column: 1 / -1;
    min-width: 0;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .news-more {
    margin-top: 16px;
    padding: .7em 1.55em;
    font-size: .82rem;
  }
}

/* News tab: filter pills + sort */
.news-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 1.6em;
}
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filter-btn {
  padding: .5em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--camel-light);
  background: var(--ivory);
  color: var(--coffee-800);
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.news-filter-btn:hover { border-color: var(--carrot); }
.news-filter-btn.is-active { background: var(--coffee-800); border-color: var(--coffee-800); color: var(--ivory); }
@media (max-width: 480px) {
  /* Shrink just enough that all four pills (up through "イベント情報") fit on one line. */
  .news-filter { flex-wrap: nowrap; gap: 5px; }
  .news-filter-btn { padding: .4em .55em; font-size: .66rem; }
}
.news-sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--coffee-700); }
.news-sort select {
  padding: .4em .8em;
  border-radius: 999px;
  border: 1.5px solid var(--camel-light);
  background: var(--ivory);
  color: var(--coffee-900);
  font-family: inherit;
  font-size: .85rem;
}

/* Link grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 640px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  height: 132px;
  padding: 20px 12px;
  background: var(--ivory);
  border: 2px solid var(--camel-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform .25s var(--ease-cute), box-shadow .25s ease, border-color .25s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--carrot); }
.link-card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  color: var(--ivory);
  font-weight: 700;
  font-size: .8rem;
  overflow: hidden;
}
.link-card-badge svg { width: 26px; height: 26px; }
.link-card-badge img { display: block; width: 100%; height: 100%; object-fit: cover; }
.link-card-badge-x { background: #000; }
.link-card-badge-youtube { background: #FF0000; }
.link-card-badge-wick { background: #fff; border: 2px solid #111; }
.link-card-badge-wick img { width: 36px; height: 36px; object-fit: contain; }
.link-card-badge-amazon { background: #ff9900; }
.link-card-badge-gipt { background: #fff; border: 1px solid #e7e1eb; }
.link-card-badge-gipt img { width: 36px; height: 36px; object-fit: contain; }
.link-card-badge-tsunagu { background: #fff; }
.link-card-badge-tsunagu img { object-fit: contain; }
.link-card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.7em;
  min-width: 0;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--coffee-800);
  overflow: hidden;
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .link-grid { gap: 10px; }
  .link-card { height: 124px; padding: 14px 8px; }
  .link-card-label { font-size: .76rem; }
}

/* Share */
.share-section { padding-top: 34px; }
.share-section .share-title {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--coffee-700);
}
.share-row { display: flex; justify-content: center; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;
  color: var(--ivory);
  transition: transform .25s var(--ease-cute), box-shadow .25s ease;
}
.share-btn svg { width: 26px; height: 26px; transform: translateY(2px); }
.share-btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-soft); }

/* Site-wide footnote area (share + removal notice), shown above the footer on every tab */
.site-footnote {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  flex: 0 0 auto;
}
.site-footnote .share-section { padding-bottom: 8px; }
.removal-notice {
  margin: 12px 0 28px;
  text-align: center;
  font-size: .72rem;
  color: var(--coffee-700);
}
.removal-notice a { color: var(--sage-dark); font-weight: 700; text-decoration: underline; }

/* Touch devices must return buttons to their default appearance after a tap. */
@media (hover: none), (pointer: coarse) {
  .btn-primary:hover {
    background: var(--carrot);
    color: var(--ivory);
    box-shadow: 0 6px 0 var(--carrot-dark);
    transform: none;
  }
  .btn-outline:hover {
    background: transparent;
    border-color: var(--coffee-800);
    color: var(--coffee-800);
    transform: none;
  }
  .btn-secondary:hover,
  .hero-actions .btn:hover,
  .news-more:hover {
    background: var(--ivory);
    border-color: transparent;
    color: var(--coffee-800);
    box-shadow: 0 6px 0 var(--camel);
    transform: none;
  }
}

/* ==========================================================================
   PROFILE
   ========================================================================== */
.profile-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 860px) {
  .profile-layout { grid-template-columns: 320px 1fr; }
}
.profile-portrait {
  background: linear-gradient(160deg, var(--camel-light), var(--ivory));
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.profile-model-stage {
  height: min(680px, 72vh);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.profile-model-stage img {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
}
.profile-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.profile-thumb {
  width: 64px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  padding: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 2px solid var(--camel-light);
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.profile-thumb:hover,
.profile-thumb:focus-visible,
.profile-thumb.is-active {
  border-color: var(--carrot);
  box-shadow: 0 3px 0 rgba(225, 119, 49, .22);
  transform: translateY(-2px);
}
.profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.profile-thumb img,
.profile-model-stage img,
.profile-photo-stage img { pointer-events: none; }
.profile-switch-image { animation: profileImageSwitch .28s ease both; }
@keyframes profileImageSwitch {
  from { opacity: .35; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

.profile-card {
  background: var(--ivory);
  border: 2px solid var(--camel-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-soft);
}
.menu-card-title { font-size: 1.5rem; margin-bottom: .1em; }
.profile-role { color: var(--sage-dark); font-weight: 700; margin-bottom: 1.4em; }

.profile-list { display: grid; gap: 14px; margin-bottom: 0; }
.profile-list > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--camel-light);
}
.profile-list dt { font-weight: 700; color: var(--carrot-dark); font-size: .88rem; }
.profile-list dd { margin: 0; line-height: 1.8; font-size: .92rem; }

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-tags .tag { line-height: 1.45; }
.profile-tags .tag b { color: #fff; }
.profile-colors-row {
  display: block !important;
  align-items: start !important;
}
.profile-colors-row dt { margin-bottom: 9px; }
.profile-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.profile-color-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--camel-light);
  border-radius: 10px;
}
.profile-color-swatch {
  width: 22px;
  aspect-ratio: 1;
  display: block;
  background: var(--swatch);
  border: 1px solid rgba(46, 29, 18, .12);
  border-radius: 4px;
}
.profile-color-item code {
  min-width: 0;
  color: var(--coffee-800);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .72rem;
  white-space: nowrap;
}
.profile-color-copy {
  padding: 4px 6px;
  cursor: pointer;
  background: var(--ivory-dim);
  border: 1px solid var(--camel-light);
  border-radius: 6px;
  color: var(--coffee-800);
  font: inherit;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.profile-color-copy:focus-visible,
.profile-color-copy.is-copied { background: var(--carrot); border-color: var(--carrot); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .profile-color-copy:hover { background: var(--carrot); border-color: var(--carrot); color: #fff; }
}
@media (min-width: 860px) {
  .profile-tags {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: start;
  }
}
.profile-creators-row {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
.profile-creators-row dt { white-space: nowrap; }
.creator-list { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.creator-item { display: grid; justify-items: center; gap: 7px; font-weight: 700; }
.creator-item a {
  width: 104px;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--camel-light);
  border-radius: 18px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.creator-item a:hover,
.creator-item a:focus-visible { border-color: var(--carrot); box-shadow: 0 4px 0 rgba(225, 119, 49, .2); transform: translateY(-2px); }
.creator-item img { width: 100%; height: 100%; object-fit: cover; }

.profile-reference-gallery,
.profile-photo-gallery {
  margin-top: clamp(30px, 6vw, 64px);
  padding: clamp(18px, 4vw, 34px);
  background: var(--ivory);
  border: 2px solid var(--camel-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.profile-gallery-title { margin-bottom: .7em; text-align: center; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.profile-photo-stage {
  width: min(100%, 920px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--camel-light);
  border-radius: var(--radius-md);
}
.profile-photo-stage img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.profile-reference-stage {
  box-sizing: border-box;
  padding: clamp(12px, 3vw, 32px);
  cursor: zoom-in;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.profile-reference-stage:hover,
.profile-reference-stage:focus-visible { border-color: var(--carrot); box-shadow: 0 5px 0 rgba(225, 119, 49, .18); }
.profile-reference-thumbs {
  max-width: 920px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.profile-reference-thumbs .profile-thumb { background: #fff; }
.profile-reference-thumbs .profile-thumb-brown { background: #755642; }
.profile-reference-note { margin-top: 12px; text-align: center; color: var(--coffee-600); font-size: .78rem; }
.profile-photo-stage img.is-height-fit {
  width: calc(100% - 24px) !important;
  height: calc(100% - 24px) !important;
  max-width: calc(100% - 24px) !important;
  max-height: calc(100% - 24px) !important;
  object-fit: contain !important;
  object-position: center !important;
}
.profile-photo-thumbs { max-width: 920px; margin-inline: auto; flex-wrap: wrap; }
.profile-swipe-hint { display: none; }
@keyframes profileSwipeHint {
  from { transform: translateX(-2px); }
  to { transform: translateX(2px); }
}
.profile-mobile-break { display: none; }


/* ==========================================================================
   FA GALLERY
   ========================================================================== */
.gallery-lead { margin-bottom: 1.4em; }
/* Reusable utility: a <br> that only breaks on narrow phones (used in FA Gallery and Guideline leads). */
.lead-break-mobile { display: none; }
@media (max-width: 480px) {
  .gallery-lead { font-size: .8rem; line-height: 1.85; }
  .lead-break-mobile { display: inline; }
}
.fa-reference-btn {
  display: flex;
  margin: 0 auto 1.8em;
  width: fit-content;
}
@media (min-width: 700px) {
  /* In the Guideline tab, keep this button left-aligned with the surrounding text instead of centered. */
  .guide-fa .fa-reference-btn { margin-left: 0; }
}
#profileReferenceGallery { scroll-margin-top: calc(var(--header-h) + 16px); }

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto 1.6em;
}
@media (min-width: 700px) {
  .gallery-controls { flex-wrap: nowrap; }
}
.gallery-controls-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.gallery-search { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--coffee-700); }
.gallery-search-label { font-weight: 700; white-space: nowrap; }
.gallery-search select,
.gallery-search input {
  padding: .4em .8em;
  border-radius: 999px;
  border: 1.5px solid var(--camel-light);
  background: var(--ivory);
  color: var(--coffee-900);
  font-family: inherit;
  font-size: .85rem;
  max-width: 160px;
  min-width: 0;
}
.gallery-sort { flex: none; }
.gallery-search input:focus,
.gallery-search select:focus { outline: none; border-color: var(--carrot); }
.gallery-sort { display: flex; flex-direction: row; gap: 8px; }
.gallery-sort-btn {
  padding: .5em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--camel-light);
  background: var(--ivory);
  color: var(--coffee-800);
  font-size: .85rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gallery-sort-btn:hover { border-color: var(--carrot); }
.gallery-sort-btn.is-active { background: var(--coffee-800); border-color: var(--coffee-800); color: var(--ivory); }
@media (max-width: 699px) {
  .gallery-controls { flex-direction: column; align-items: stretch; gap: 10px; }
  /* center (not stretch): each search row is sized to its own content and centered,
     instead of the input/select stretching flush to the right edge with no breathing room. */
  .gallery-controls-search { flex-direction: column; align-items: center; gap: 8px; }
  /* Fixed label width so the select/input boxes on both rows line up to the same width. */
  .gallery-search-label { min-width: 6.4em; }
  .gallery-search select,
  .gallery-search input {
    width: 170px;
    box-sizing: border-box;
    max-width: 55vw;
    /* 16px keeps iOS Safari from auto-zooming the page when the field gains focus. */
    font-size: 16px;
  }
  .gallery-sort { flex-direction: row; align-self: stretch; gap: 8px; }
  .gallery-sort-btn { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
  .gallery-search { gap: 5px; font-size: .72rem; }
  .gallery-sort-btn { padding: .38em .68em; font-size: .72rem; white-space: nowrap; }
}

#gallery .section-block { max-width: 1200px; }
@media (max-width: 699px) {
  #gallery > .section-block { padding-left: 10px; padding-right: 10px; }
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  /* flex-start (not center): with an item count not divisible by the column count,
     centering leaves a lone item stranded in the middle of the last row. */
  justify-content: flex-start;
  gap: 8px;
}
@media (min-width: 700px) {
  .gallery-grid { gap: 12px; }
}
@media (min-width: 1000px) {
  .gallery-grid { gap: 14px; }
}
.gallery-status { width: 100%; text-align: center; color: var(--coffee-700); padding: 40px 0; }

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  width: calc((100% - 2 * 8px) / 3);
}
@media (min-width: 700px) {
  .gallery-item { width: calc((100% - 3 * 12px) / 4); }
}
@media (min-width: 1000px) {
  .gallery-item { width: calc((100% - 4 * 14px) / 5); }
}
@media (max-width: 699px) {
  .gallery-item { gap: 5px; }
  .gallery-caption { gap: 4px; }
  .gallery-caption-name { font-size: .66rem; }
  .gallery-caption-twitter { width: 20px; height: 20px; }
  .gallery-caption-twitter svg { width: 10px; height: 10px; }
}
.gallery-item-img-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--camel-light);
  background: var(--ivory-dim);
  padding: 0;
}
.gallery-item-img-btn img:first-child {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease-cute);
}
.gallery-item-img-btn:hover img:first-child { transform: scale(1.08) rotate(1deg); }
.gallery-watermark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 94%;
  height: 94%;
  object-fit: contain;
  pointer-events: none;
  opacity: .45;
}
.gallery-commission-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(110, 72, 47, .85);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}
.lightbox-commission-badge {
  top: 10px;
  left: 10px;
  font-size: .78rem;
  padding: 3px 12px;
}
.gallery-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 2px;
}
.gallery-caption-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--coffee-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.gallery-caption-twitter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--coffee-700);
  color: var(--ivory);
  transition: transform .2s ease;
}
.gallery-caption-twitter:hover { transform: translateY(-2px); }
.gallery-caption-twitter svg { width: 13px; height: 13px; }

/* ==========================================================================
   GUIDELINE
   ========================================================================== */
.guide-section-heading p,
.fa-guide-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.guide-grid { display: grid; gap: 18px; margin-bottom: 22px; }
@media (min-width: 700px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
}
.guide-good { background: #f0f4ec; border-color: #c8d4bf; }
.guide-ng { background: #fff2e8; border-color: #f0c9aa; }
.guide-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.guide-card-heading > div > span { display: block; margin-bottom: 3px; font-size: .63rem; font-weight: 800; letter-spacing: .13em; }
.guide-good .guide-card-heading > div > span { color: var(--sage-dark); }
.guide-ng .guide-card-heading > div > span { color: var(--carrot-dark); }
.guide-card h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.52rem); }
.guide-icon { display: grid; flex: 0 0 45px; width: 45px; height: 45px; place-items: center; border-radius: 50%; font-size: 1.25rem; font-weight: 800; }
.guide-good .guide-icon { background: var(--sage); color: var(--ivory); }
.guide-ng .guide-icon { background: var(--carrot); color: var(--ivory); font-family: sans-serif; }
.guide-list,
.guide-rule-list { display: grid; gap: 11px; }
.guide-list li,
.guide-rule-list li { position: relative; padding-left: 1.45em; font-size: .9rem; line-height: 1.78; }
.guide-good .guide-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-dark); font-weight: 900; }
.guide-ng .guide-list li::before { content: "×"; position: absolute; left: 0; color: var(--carrot-dark); font-weight: 900; }

.guide-section { margin-top: 22px; padding: clamp(26px, 5vw, 48px); border-radius: 28px; }
.guide-clips { background: #fff; border: 1px solid var(--camel-light); box-shadow: 0 8px 24px rgba(74, 50, 33, .06); }
.guide-fa { background: #f9f1e5; border: 1px solid #e6cfad; }
.guide-section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 17px; }
.guide-section-number { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--coffee-800); color: var(--ivory); font-family: var(--font-heading); font-size: 1.1rem; }
.guide-section-heading p { color: var(--carrot-dark); }
.guide-section-heading h3 { margin: 3px 0 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.guide-section-lead { margin: 0 0 20px; color: var(--coffee-700); font-size: .95rem; line-height: 1.8; }
.guide-rule-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--carrot); }

.guide-request-box { margin-top: 25px; padding: clamp(19px, 3vw, 29px); border: 1px dashed var(--camel); border-radius: 18px; background: rgba(253, 248, 240, .78); }
.guide-request-box h4 { margin-bottom: 15px; color: var(--coffee-800); font-size: 1rem; }
.guide-request-lead { margin: 0 0 14px; color: var(--coffee-700); font-size: .88rem; line-height: 1.7; }
.guide-rule-list a { color: var(--sage-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.guide-request-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(201, 166, 107, .4); color: var(--coffee-700); font-size: .88rem; line-height: 1.7; }

.guide-sample-box { margin-top: 18px; padding: clamp(19px, 3vw, 29px); border: 1px solid var(--camel-light); border-radius: 18px; background: var(--ivory-dim); }
.guide-sample-box h4 { margin-bottom: 15px; color: var(--coffee-800); font-size: 1rem; }
.guide-sample-text { margin: 0; color: var(--coffee-700); font-size: .84rem; line-height: 1.85; }
.guide-sample-text a { color: var(--sage-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ==========================================================================
   COMMISSION
   ========================================================================== */
.commission-types { text-align: center; margin-bottom: 2em; }
.commission-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 2.2em;
}
@media (min-width: 700px) { .commission-grid { grid-template-columns: 1fr 1fr; } }
.commission-grid-single { grid-template-columns: minmax(0, 680px); justify-content: center; }
.commission-card {
  background: var(--ivory);
  border: 2px solid var(--camel-light);
  border-radius: var(--radius-lg);
  padding: 28px clamp(20px, 4vw, 32px);
}
.commission-card h3 { margin-bottom: .8em; font-size: 1.1rem; }
.commission-card ol, .commission-card ul { display: grid; gap: 10px; }
.commission-card li { font-size: .9rem; line-height: 1.8; padding-left: 1.6em; position: relative; }
.commission-card ol { counter-reset: step; }
.commission-card ol li { counter-increment: step; }
.commission-card ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.3em; height: 1.3em;
  background: var(--carrot);
  color: var(--ivory);
  border-radius: 50%;
  font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.commission-card ul li::before { content: "・"; position: absolute; left: 0; }

.commission-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 1em; }

/* Shared mobile proportions for every content page outside HOME. */
@media (max-width: 699px) {
  .tab-panel:not(#home) {
    width: 100%;
    min-width: 0;
  }
  .tab-panel:not(#home) > .section-block {
    width: 100%;
    min-width: 0;
    padding: 48px 16px 64px;
  }
  .tab-panel:not(#home) .section-title {
    margin-bottom: 1em;
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }
  .tab-panel:not(#home) .section-lead,
  .tab-panel:not(#home) p,
  .tab-panel:not(#home) li,
  .tab-panel:not(#home) dd {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .profile-layout,
  .guide-grid,
  .commission-grid {
    width: 100%;
    min-width: 0;
    gap: 16px;
  }
  .profile-portrait,
  .profile-card,
  .guide-card,
  .guide-fa,
  .commission-card {
    width: 100%;
    min-width: 0;
    border-width: 1.5px;
    border-radius: 20px;
  }
  .profile-portrait { padding: 12px; }
  .profile-model-stage { height: min(118vw, 66svh); }
  .profile-thumbs {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 2px 1px 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .profile-thumb { width: 58px; border-radius: 10px; }
  .profile-card,
  .guide-card,
  .guide-fa,
  .commission-card { padding: 20px 16px; }
  .menu-card-title { font-size: 1.25rem; }
  .profile-role { font-size: .84rem; }
  .profile-list { gap: 10px; }
  .profile-list > div {
    grid-template-columns: minmax(90px, 31%) minmax(0, 1fr);
    gap: 8px;
    padding-bottom: 10px;
  }
  .profile-list dt { font-size: .76rem; overflow-wrap: normal; }
  .profile-list dd { min-width: 0; font-size: .8rem; line-height: 1.65; }
  .profile-tags { gap: 6px; }
  .profile-tags .tag { max-width: 100%; font-size: .7rem; white-space: normal; }
  .profile-color-item { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 4px; padding: 6px 5px; }
  .profile-color-swatch { width: 18px; }
  .profile-color-item code { font-size: .64rem; }
  .profile-color-copy { padding: 4px; font-size: .56rem; }
  .creator-list { gap: 12px 18px; }
  .creator-item a { width: 88px; border-radius: 16px; }
  .profile-reference-gallery,
  .profile-photo-gallery { margin-top: 24px; padding: 16px 12px; border-width: 1.5px; border-radius: 20px; }
  .profile-photo-stage { border-radius: 14px; }
  .profile-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 2px;
    color: var(--coffee-600);
    font-size: .7rem;
    font-weight: 700;
  }
  .profile-swipe-hint span { color: var(--carrot); font-size: 1rem; animation: profileSwipeHint 1.4s ease-in-out infinite alternate; }
  .profile-photo-thumbs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    padding-right: 30px;
  }
  .profile-photo-thumbs .profile-thumb { scroll-snap-align: start; }
  .profile-photo-thumbs .profile-thumb:last-child { padding: 6px; }
  .profile-photo-thumbs .profile-thumb:last-child img { object-fit: contain; }
  .profile-reference-thumbs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .profile-reference-thumbs .profile-thumb { scroll-snap-align: start; }
  .profile-mobile-break { display: inline; }
  .guide-card li,
  .guide-rule-list li,
  .commission-card li { font-size: .82rem; line-height: 1.65; }
  .guide-card-heading { margin-bottom: 16px; }
  .guide-section { margin-top: 16px; padding: 24px 17px; border-radius: 22px; }
  .guide-section-number { flex-basis: 39px; width: 39px; height: 39px; font-size: 1rem; }
  .guide-section-heading { gap: 11px; margin-bottom: 14px; }
  .guide-section-heading h3 { font-size: 1.22rem; }
  .guide-section-lead { font-size: .84rem; }
  .guide-request-box,
  .guide-sample-box { padding: 18px 14px; }
  .guide-sample-text { font-size: .78rem; }
  .commission-types { margin-bottom: 1.4em; }
  .commission-types .tag { font-size: .72rem; }
  .commission-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .commission-cta .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 20px;
}
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.contact-method-btn {
  min-width: 180px;
  justify-content: center;
  white-space: nowrap;
  background: #fff;
  border-color: var(--camel-light);
  box-shadow: 0 6px 0 var(--camel);
}
.contact-method-btn:focus-visible {
  border-color: var(--carrot);
  outline: 3px solid rgba(232, 121, 43, .2);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .contact-method-btn:not(.is-disabled):hover {
    background: var(--carrot);
    border-color: var(--carrot);
    color: var(--ivory);
    box-shadow: 0 9px 0 var(--carrot-dark);
  }
}
.contact-method-btn.is-disabled {
  cursor: default;
  pointer-events: none;
}
.contact-card {
  background: var(--ivory);
  border: 2px solid var(--camel-light);
  border-radius: var(--radius-lg);
  padding: 28px clamp(20px, 4vw, 32px);
}
.contact-card-wide { max-width: 100%; }
.contact-card h3 { margin-bottom: .8em; font-size: 1.1rem; }
.contact-form-note { font-size: .88rem; color: var(--coffee-700); line-height: 1.8; }
.contact-form-cta { margin-top: 18px; text-align: center; }
.contact-form-embed:empty { display: none; }
.contact-form-embed { margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-form-embed iframe { display: block; width: 100%; border: 0; }
.contact-form-embed-desktop { display: none; }
@media (max-width: 899px) {
  .contact-lead,
  .contact-form-heading,
  .contact-form-note { text-align: center; }
  .contact-methods {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 360px;
    margin-bottom: 0;
  }
  .contact-method-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-inline: .8em;
    font-size: clamp(.78rem, 3.7vw, .9rem);
    white-space: nowrap;
  }
  .contact-grid { display: none; }
}
@media (min-width: 900px) {
  .contact-form-embed-desktop { display: block; }
  .contact-form-cta-mobile { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
  padding: 18px 20px;
  background: var(--coffee-900);
  color: var(--camel-light);
}
.footer-logo { height: 100px; margin: 0 auto .4em; opacity: .85; }
.site-footer p { font-size: .8rem; margin: 0; }
@media (max-width: 899px) {
  .site-footer { padding: 9px 20px; }
  .footer-logo { height: 50px; margin: 0 auto .2em; }
  .site-footer p { font-size: .7rem; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 12, 6, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { position: relative; display: inline-flex; max-width: min(90vw, 720px); max-height: 75vh; }
.lightbox img#lightboxImg { max-width: min(90vw, 720px); max-height: 75vh; border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0,0,0,.5); background: var(--ivory-dim); }
.lightbox-watermark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 94%;
  height: 94%;
  object-fit: contain;
  pointer-events: none;
  opacity: .45;
}
.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ivory-dim);
  margin-top: 16px;
  font-size: .9rem;
}
.lightbox-caption .gallery-caption-twitter { background: var(--ivory); color: var(--coffee-900); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: var(--ivory); font-size: 2.2rem;
  cursor: pointer; line-height: 1;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
