/* =========================================================
   NAZONE — mobile first
   ベースはスマホ。768px / 960px でデスクトップ向けに広げる
   ========================================================= */

:root {
  --brand: #4cbf82;
  --brand-bright: #6fd49a;
  --brand-soft: rgba(76, 191, 130, 0.14);
  --brand-deep: #145238;
  --ink: #1a2e26;
  --ink-strong: #102018;
  --muted: #5a7368;
  --paper: #f4fbf6;
  --card: #fff;
  --line: rgba(20, 82, 56, 0.12);
  --font: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --header-h: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --stripe: linear-gradient(
    90deg,
    #7aa07a 0%,
    #b8a3d4 20%,
    #e07a7a 40%,
    #f5b6c8 60%,
    #8ed4e0 80%,
    #c8c8c8 100%
  );
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.75;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; font-size: 16px; }

.wrap {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* ---------- Header (phone: logo + hamburger) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 8px 0 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

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

.menu-btn {
  grid-column: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--brand-soft);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-deep);
  border-radius: 2px;
  transition: 0.2s var(--ease);
}
.menu-btn.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  z-index: 35;
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 8px 0 32px;
  background: var(--brand-deep);
  overflow: auto;
}
.nav.is-open { display: flex; }
.nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 12px 24px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav a .nav__jp {
  font-size: 17px;
  font-weight: 700;
}
.nav a .nav__en {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand-bright);
  font-weight: 700;
}
.nav a.is-active .nav__jp { color: var(--brand-bright); }

body.is-nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  margin: 0 -16px 28px;
  background: #fff;
}
.hero img {
  width: 100%;
  height: auto;
}
.hero__bar {
  padding: 16px 16px 18px;
  background: #fff;
}
.hero__bar p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.colorbar {
  height: 6px;
  background: var(--stripe);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.btn--primary {
  background: var(--brand-deep);
  color: #fff;
}
.btn--ghost {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--brand-deep);
}

/* ---------- Section head ---------- */
.section-head {
  margin: 40px 0 16px;
}
.section-head p {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.3;
}

.page-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.about-copy {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.more-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-deep);
  border-bottom: 1.5px solid var(--brand);
}

.about-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 14px;
  margin-bottom: 12px;
}
.about-block h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--brand-deep);
}
.about-block p { margin: 0; overflow-wrap: anywhere; }
.about-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-block li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.about-block li:last-child { border-bottom: 0; }

/* ---------- Work grid (poster first) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.work-card {
  display: block;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.work-card__thumb {
  aspect-ratio: 1 / 1;
  background: #e8f4ec;
  overflow: hidden;
}
.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
}
.work-card__cap {
  padding: 10px 12px 12px;
}
.work-card__title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.work-card__date {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.filter-label {
  width: 100%;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.filter-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.is-active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

/* ---------- Members ---------- */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.member-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.member-visual {
  width: min(160px, 46%);
  aspect-ratio: 1;
  margin: 0 auto 12px;
}
.member-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.member-body h2 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.member-body h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--brand-deep);
}
.member-body p {
  margin: 0 0 12px;
  font-size: 13px;
}
.member-sns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
}
.member-sns svg { width: 12px; height: 12px; }

/* ---------- Contact / privacy / work detail ---------- */
.contact-lead {
  margin: 0 0 18px;
  font-size: 15px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  outline: none;
}
.field input:focus,
.field textarea:focus { border-color: var(--brand); }
.field textarea { min-height: 140px; resize: vertical; }

.btn-submit {
  border: 0;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 700;
  min-height: 48px;
  cursor: pointer;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
}
.form-note a {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.privacy-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
}
.privacy-block h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--brand-deep);
}
.privacy-block p {
  margin: 0;
  font-size: 14px;
  white-space: pre-wrap;
}

.work-detail {
  display: grid;
  gap: 20px;
}
.work-detail__media {
  border-radius: 12px;
  overflow: hidden;
  background: #e8f4ec;
  max-width: 420px;
}
.work-detail__media img { width: 100%; }
.work-detail__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: var(--ink-strong);
}
.work-detail__date {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.work-detail h3 {
  margin: 18px 0 6px;
  font-size: 13px;
  color: var(--brand-deep);
}
.work-detail p,
.work-detail li {
  font-size: 14px;
  white-space: pre-wrap;
}
.work-detail ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 8px 16px 24px;
  text-align: center;
}
.copyright {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumb a { font-weight: 700; color: var(--ink); }

.is-hidden { display: none !important; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .wrap { padding: 0 24px 80px; }
  .hero { margin-left: -24px; margin-right: -24px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .member-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: center;
  }
  .member-visual { width: 100%; margin: 0; }
}

/* ---------- Desktop: 横ナビ、3列グリッド ---------- */
@media (min-width: 768px) {
  :root { --header-h: 64px; }

  .site-header {
    padding: 0 24px;
    grid-template-columns: auto 1fr;
  }
  .logo img { height: 26px; }
  .menu-btn { display: none; }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    top: auto;
    height: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
    grid-column: 2;
  }
  .nav a {
    min-height: 40px;
    padding: 6px 12px;
    color: var(--ink);
    border: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }
  .nav a .nav__jp { display: none; }
  .nav a .nav__en {
    display: block;
    font-size: 12px;
    color: var(--brand-deep);
  }
  .nav a.is-active .nav__en { color: var(--brand); }
  body.is-nav-open { overflow: auto; }

  .hero {
    margin: 8px 0 36px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .hero__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
  }
  .hero__bar p { margin: 0; max-width: 36em; }

  .section-head h1,
  .section-head h2 { font-size: 1.75rem; }

  .work-detail {
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
  }
}

@media (min-width: 960px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-form { max-width: 520px; }
}

/* ---------- /naiyoubutsu ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-naiyoubutsu {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #77cbea;
  color: #fff;
  text-align: center;
}

.naiyou-sheet {
  flex: 1;
  width: 100%;
  background: #77cbea;
}

.naiyou-hero {
  margin: 0;
  width: 100%;
}

.naiyou-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

body.page-naiyoubutsu .site-footer {
  margin-top: auto;
  width: 100%;
  background: #f0f0f2;
  border-color: transparent;
  padding: 16px;
}

body.page-naiyoubutsu .copyright {
  color: #595757;
}

body.page-naiyoubutsu .nav,
body.page-naiyoubutsu .menu-btn {
  display: none;
}

.naiyou-wrap {
  --pad-x: 20px;
  width: 100%;
  flex: 1;
  padding: 12px var(--pad-x) 56px;
}

.naiyou-intro h1,
.naiyou-open,
.naiyou-q,
.naiyou-ok,
.naiyou-thanks,
.naiyou-block,
.naiyou-block h2,
.naiyou-notes-box,
.naiyou-notes-box h2 {
  color: #fff;
}

.naiyou-intro h1 {
  margin: 20px 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
}

.naiyou-thanks {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.naiyou-thanks p {
  margin: 0 0 1.1em;
}

.naiyou-thanks p:last-child {
  margin-bottom: 0;
}

.naiyou-block {
  margin: 0 0 20px;
  min-height: 72px;
}

.naiyou-block h2,
.naiyou-notes-box h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.naiyou-block ul,
.naiyou-notes-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.8;
}

.naiyou-block li,
.naiyou-notes-box li {
  margin: 0 0 6px;
  color: #fff;
}

.naiyou-notes-box {
  margin: 0 0 24px;
  padding: 16px 14px;
  border: 2px solid #fff;
}

body.page-naiyoubutsu .naiyou-btn,
body.page-naiyoubutsu button.naiyou-btn,
body.page-naiyoubutsu .naiyou-form .naiyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  padding: 0 22px;
  margin: 12px auto 0;
  border: 0;
  border-radius: 999px;
  background: #f4da26;
  color: #102018;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.naiyou-form .naiyou-btn { margin-top: 0; }

.naiyou-step {
  margin-top: 28px;
}

.naiyou-step-bar {
  width: calc(100% + var(--pad-x) * 2);
  margin: 0 calc(var(--pad-x) * -1) 16px;
  padding: 10px 16px;
  background: #fff;
  color: #102018;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

button.naiyou-step-bar.hint-step-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hint-chevron {
  flex: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent currentColor;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.hint-step.is-open > .hint-step-toggle .hint-chevron,
.hint-card.is-open > .hint-card-toggle .hint-chevron {
  transform: rotate(90deg);
}

.hint-panel[hidden] {
  display: none;
}

.hint-step.is-open .naiyou-step-bar {
  margin-bottom: 16px;
}

.naiyou-hint-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f4da26;
  color: #102018;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.naiyou-open,
.naiyou-q {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.naiyou-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 2px solid #fff;
  color: #fff;
}

.naiyou-notice p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.naiyou-notice p:last-child {
  margin-bottom: 0;
}

.hint-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hint-card {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hint-card--answer {
  border-color: #f4da26;
  background: rgba(244, 218, 38, 0.12);
}

.hint-card-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.hint-card-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.hint-card--answer .hint-card-label,
.hint-card--answer .hint-chevron {
  color: #f4da26;
  opacity: 1;
}

.hint-card-body {
  padding: 0 14px 16px;
}

.hint-card-body[hidden] {
  display: none;
}

.hint-card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
  .hint-chevron {
    transition: none;
  }
}

.naiyou-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.naiyou-form input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  text-align: center;
}

.naiyou-form.is-locked input {
  cursor: default;
  color: #102018;
}

.naiyou-form .naiyou-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.naiyou-reset {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 50;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(16, 32, 24, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.naiyou-clear {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.naiyou-clear.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.naiyou-clear[hidden] { display: none; }

.naiyou-clear p {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 12vw, 80px);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: scale(0.62);
}

.naiyou-clear.is-on p {
  animation: naiyou-clear-pop 0.62s cubic-bezier(0.22, 1.35, 0.36, 1) forwards;
}

@keyframes naiyou-clear-pop {
  0% {
    opacity: 0;
    transform: scale(0.62) translateY(10px);
  }
  68% {
    opacity: 1;
    transform: scale(1.1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .naiyou-clear,
  .naiyou-clear.is-on p {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.naiyou-ng {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 768px) {
  body.page-naiyoubutsu {
    background: #29bbe6;
  }

  .naiyou-sheet {
    width: min(100%, 720px);
    margin: 0 auto;
    background: #77cbea;
  }

  .naiyou-wrap {
    --pad-x: 32px;
    width: 100%;
    padding: 24px var(--pad-x) 56px;
  }

  .naiyou-intro h1 { font-size: 1.75rem; }
}
