﻿:root {
  --nazo-c1: #bfbfbf;
  --nazo-c2: #43b047;
  --nazo-c3: #f7a417;
  --nazo-c4: #c0302f;
  --nazo-c5: #6d7f14;
  --nazo-c6: #1348e8;
  --nazo-c7: #7b2bb7;
  --nazo-c8: #d211ff;
}


.nazo100-aniv {
  min-height: calc(100vh - 80px);
  padding: 60px 16px 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #dddee6;
}

.nazo100-aniv--congrats {
  padding: 70px 20px 60px;
  background:
    radial-gradient(820px at 16% 18%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
    radial-gradient(720px at 82% 12%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
    #dddee6;
}

.nazo100-aniv__puzzle-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* border-radius: 28px; */
  padding: 36px 44px 44px;
  box-shadow: 0 25px 65px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(6px);
}

.font-mincho {
  font-family: "游明朝 Medium", "Yu Mincho Medium", "YuMincho Medium", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
}

.nazo100-aniv--hint {
  background-color: #dddee6;
}

.nazo100-aniv__puzzle-card--hint {
  width: min(860px, 100%);
  padding: 36px 44px 44px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 65px rgba(17, 24, 39, 0.18);
}

.nazo-hint {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #333;
}

.nazo-hint__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nazo-hint__nav::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.nazo100-aniv--hint .nazo100-aniv__back {
  color: #3b3b3b;
  border-color: #3b3b3b;
  background: #fff;
}

.nazo100-aniv--hint .nazo100-aniv__back:hover {
  background: #f1f1f1;
}

.nazo-hint__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nazo-hint__eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: #4b4b4b;
}

.nazo-hint__title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1f1f1f;
}

.nazo-hint__lead {
  margin: 0;
  color: #555;
}

.nazo-hint__list {
  gap: 12px;
}

.nazo100-aniv--hint .nazo-accordion__item {
  border-radius: 12px;
  border: 1px solid #e1e4ea;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.nazo100-aniv--hint .nazo-accordion__item.is-open {
  border-color: #cfd5de;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.nazo100-aniv--hint .nazo-title {
  background: #f7f7f7;
  color: #2b2b2b;
  padding: 16px 18px;
  font-size: 1.02rem;
}

.nazo100-aniv--hint .nazo-title__chevron {
  color: #2b2b2b;
}

.nazo100-aniv--hint .description {
  color: #333;
}

.nazo100-aniv--hint .nazo-accordion__item.is-open .description {
  background: #fff;
  border-top: 1px solid #eceff3;
}

.puzzle-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.puzzle-header__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #353535;
}

.puzzle-header__info {
  display: flex;
  flex-direction: column;
}

.puzzle-header__eyebrow {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.puzzle-header__main {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.puzzle-header__meta {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 14px;
  color: #3b3b3b;
}

.puzzle-header__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.puzzle-header__label {
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-block;
}

.puzzle-header__label.with-line {
  border-bottom: 1px solid #292929;
  min-width: 230px;
}

.puzzle-header__line {
  display: inline-block;
  flex: 1;
  min-width: 80px;
  height: 1px;
  border-bottom: 1px solid #292929;
}

.puzzle-header__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  position: relative;
  z-index: 1;
}

.puzzle-header__name .puzzle-header__line {
  min-width: 260px;
}

.puzzle-header__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #404040;
  line-height: 1.7;
  margin-top: 16px;
}

.puzzle-header__lead {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.puzzle-header__hint {
  margin: 0 0 2px;
  letter-spacing: 0.05em;
}

.puzzle-header__steps {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.puzzle-header__steps li {
  padding-left: 4px;
}

.nazo100-aniv__image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}

.nazo100-aniv__image {
  width: 100%;
  max-width: 440px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nazo100-aniv__answer-section {
  margin-top: 28px;
  text-align: center;
}

.nazo100-aniv__answer-label {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.nazo100-aniv__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.nazo100-aniv__input-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.nazo100-aniv__input {
  width: 100%;
  border: none;
  border-radius: 16px;
  font-size: 1.15rem;
  padding: 16px 22px 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nazo100-aniv__input:focus {
  outline: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  transform: translateY(-1px);
}

.nazo100-aniv__underline {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a44, #fc6076);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nazo100-aniv__input:focus + .nazo100-aniv__underline,
.nazo100-aniv__input:not(:placeholder-shown) + .nazo100-aniv__underline {
  transform: scaleX(1);
  opacity: 1;
}
.nazo100-aniv__back {
  border-radius: 999px;
  color: #6b6968;
  border: 1px solid #6b6968;
  font-weight: 700;
  padding: 8px 36px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}
.nazo100-aniv__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.nazo100-aniv__submit {
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff9a44, #fc6076);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 42px;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(252, 96, 118, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nazo100-aniv__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(252, 96, 118, 0.4);
  filter: brightness(1.05);
}

.nazo100-aniv__empty {
  padding: 160px 16px 64px;
  text-align: center;
  font-size: 1.2rem;
}

.nazo100-aniv__answer-section {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.nazo100-aniv__answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.answer-area.is-cleared .answer-input {
  color: #666;
  font-weight: 700;
}

.success-mark {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-12px);
  color: #666;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 0 16px;
}

.nazo100-aniv__submit[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.nazo100-aniv-result {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}

.nazo100-aniv-result.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nazo100-aniv-result__content {
  width: min(360px, 100%);
  padding: 32px 24px 24px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
  position: relative;
}

.nazo100-aniv-result__text {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #333;
}

.nazo100-aniv-result.is-correct .nazo100-aniv-result__text {
  color: #048344;
}

.nazo100-aniv-result.is-incorrect .nazo100-aniv-result__text {
  color: #ad2f45;
}

.nazo100-aniv-result.is-error .nazo100-aniv-result__text {
  color: #a94442;
}

.nazo100-aniv-result__close {
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nazo100-aniv-result__close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.nazo100-aniv-result__close:hover {
  background: #000;
}

.nazo100-reset {
  display: flex;
  justify-content: center;
}

.nazo100-reset__trigger {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #f7f7f7;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  color: #111;
  text-decoration: none;
  width: 200px;
  text-align: center;
}

.nazo100-reset__trigger:hover {
  background: #ededed;
  color: #111;
  text-decoration: none;
}

.nazo100-reset__trigger.red {
  border: 1px solid #a31212;
  background: #f5d5d5;
  color: #a31212;
}

.nazo100-reset__trigger.red:hover {
  background: #e7b8b8;
}

.nazo100-reset__trigger:active {
  transform: translateY(1px);
}

.nazo100-reset__trigger:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.nazo100-reset-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1250;
}

.nazo100-reset-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nazo100-reset-modal__content {
  width: min(420px, 100%);
  padding: 26px 22px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
}

.nazo100-reset-modal__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nazo100-reset-modal__body {
  margin: 0 0 16px;
  color: #444;
  line-height: 1.5;
}

.nazo100-reset-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.nazo100-reset-modal__button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #111;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nazo100-reset-modal__button--secondary {
  background: #f7f7f7;
  color: #111;
}

.nazo100-reset-modal__button--secondary:hover {
  background: #ededed;
}

.nazo100-reset-modal__button--danger {
  background: #c93b4a;
  border-color: #c93b4a;
  color: #fff;
}

.nazo100-reset-modal__button--danger:hover {
  background: #b73240;
  border-color: #b73240;
}

.nazo100-instruction-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1225;
}

.nazo100-instruction-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nazo100-instruction-modal__content {
  width: min(360px, 100%);
  padding: 26px 22px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.nazo100-instruction-modal__title {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nazo100-instruction-modal__body {
  margin: 0;
  color: #2f2f2f;
  line-height: 1.6;
  font-weight: 600;
}

.nazo100-instruction-modal__close {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #f7f7f7;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.nazo100-instruction-modal__close:hover {
  background: #ededed;
}

.nazo100-instruction-modal__close:active {
  transform: translateY(1px);
}

.nazo100-instruction-modal__close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.nazo100-aniv-index {
  --cell-size: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.nazo100-note__helper {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: #444;
  text-align: center;
  line-height: 1.6;
}

.puzzle-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 12px;
  margin: 0 60px 0 0;
}

.puzzle-note {
  position: absolute;
  top: calc(var(--cell-size) / 2);
  right: 0;
  transform: translateX(100%);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0 8px;
  letter-spacing: 0.2em;
}

.puzzle-grid {
  border-collapse: collapse;
  border: 2px solid #333;
  margin: 0 auto;
  background: #fff;
  width: calc(var(--cell-size) * 11);
  max-width: 100%;
}

.grid-cell {
  width: var(--cell-size);
  height: var(--cell-size);
  border: 1px solid #4b4b4b;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  font-size: 22px;
  background: #fff;
  color: #111;
  position: relative;
}

.grid-cell__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  outline: none;
  word-break: break-all;
  font-size: 16px;
}

.grid-cell__content.is-editable {
  cursor: text;
  padding: 6px 4px 4px;
  line-height: 1.2;
}

.grid-cell.is-edit-mode {
  cursor: text;
}

.grid-cell.is-edit-mode:focus-within {
  outline: 2px solid #111;
  outline-offset: -3px;
}

.grid-cell__content.is-editable:focus {
  box-shadow: inset 0 0 0 2px #111;
  background: rgba(0, 0, 0, 0.05);
}

.grid-cell__content.is-editable[data-has-value="false"]::before {
  content: attr(data-placeholder);
  color: #777;
  font-weight: 500;
  opacity: 0.8;
}

.is-topside {
  border-bottom: 2px solid #333;
}

.is-leftside {
  border-right: 2px solid #333;
}

.grid-cell a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background-color: rgba(174, 174, 174);
}


.grid-cell.is-cleared a {
  background-color: #fff;
  color: #555;
}

/* .grid-cell.show-instruction {
  cursor: pointer;
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
  font-weight: 800;
  transition: background 0.15s ease, transform 0.1s ease;
}

.grid-cell.show-instruction:hover {
  background: linear-gradient(180deg, #f6f6f6 0%, #e2e2e2 100%);
}

.grid-cell.show-instruction:active {
  transform: translateY(1px);
} */

.grid-cell.is-link {
  cursor: pointer;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  transition: all 0.1s ease-in-out;
}

.grid-cell.is-link:hover {
  background: linear-gradient(to bottom, #fcfcfc 0%, #cecece 100%);
}

.grid-cell.is-link:active {
  background: linear-gradient(to bottom, #eeeeee 0%, #fafafa 100%);
}

.grid-cell.cell-yellow {
  background: #f6c65a;
}

.grid-cell.cell-purple {
  background: rgb(100, 20, 200);
  color: #fff;
}

.grid-cell.cell-red {
  background: rgb(255, 80, 20);
  color: #fff;
}

.grid-cell.cell-pink {
  background: rgb(255, 110, 200);
}

.grid-cell.cell-blue {
  background-color: rgb(0, 105, 255);
  color: #fff;
}

.grid-cell.cell-orange {
  background: rgb(100, 50, 0);
  color: #fff;
}

.grid-cell.cell-green {
  background: rgba(30, 180, 120);
}

.answer-area {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 36px 0 28px;
  padding: 0 12px;
  position: relative;
}

.answer-card {
  width: 100%;
  padding: 18px 20px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border: 1px solid #e7e8ec;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.answer-title {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #1d1d1d;
}

.answer-hint {
  margin: 0 0 14px;
  color: #4c4c4c;
  font-weight: 500;
  font-size: 0.95rem;
}

.answer-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px;
}

.answer-box {
  flex: 1;
  min-height: 52px;
  border-radius: 12px 0 0 12px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #e6e7eb;
}

.answer-input {
  /* width: 100%;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: #141414; */
  width: 350px;
  padding: 16px;
  font-size: 18px;
  border-radius: 12px;
  border: 3px solid #333;
  outline: none;
  transition: 0.25s;
}

.nazo-input:focus {
  border-color: var(--nazo-c6);
  box-shadow: 0 0 10px var(--nazo-c6);
}

.answer-input::placeholder {
  color: #9aa0a6;
  font-weight: 500;
}

.answer-input:focus-visible {
  outline: none;
}

.answer-submit-wrapper {
  display: flex;
}

.answer-submit {
  width: 100px;
  padding: 18px;
  font-size: 22px;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  background: linear-gradient(90deg, var(--nazo-c3), var(--nazo-c4));
  color: #fff;
  transition: 0.25s;
}

.answer-submit:hover {
  /* filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25); */
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.7);
}

.answer-submit:active {
  /* transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18); */
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.answer-submit:disabled,
.answer-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.answer-lock-message {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin: 8px 0 0;
  font-weight: 400;
}

.answer-lock-message.is-hidden {
  display: none;
}

.glass-button {
  position: relative;
  /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(174, 174, 175, 0.6)); */
  /* backdrop-filter: blur(14px); */
  background-color: rgba(174, 174, 174);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;


  /* ▼ 白背景でも立体がわかる影設定 ▼ */
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.9), /* 明るいハイライト */
  inset -2px -2px 6px rgba(0, 0, 0, 0.12); /* 右下の濃い影 */
}



.glass-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.02));
  opacity: 0.4;
  pointer-events: none;
}


.glass-button span {
  position: relative;
  z-index: 1;
}


.glass-button .glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), transparent 55%);
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}


.glass-button:hover {
  box-shadow: inset 3px 3px 6px rgba(255, 255, 255, 1),
  inset -3px -3px 8px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(143, 144, 145, 0.7));
}


.glass-button:active {
  transform: translateY(0px) scale(0.97);
  box-shadow:
  0 6px 14px rgba(0, 0, 0, 0.18),
  inset 1px 1px 4px rgba(255, 255, 255, 0.85),
  inset -2px -2px 6px rgba(0, 0, 0, 0.25);
}

.x-post {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.x-post__button {
  display: inline-flex;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-color: #000;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}


.x-post__button:hover {
  background: linear-gradient(135deg, #000, #1c1c1c);
  color: #fff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}


.x-post__button:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.x-post__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.x-post__label {
  display: inline-flex;
  align-items: center;
}

.nazo-clear-img {
  width: 100%;
  padding: 14px 28px;
  text-align: center;
  background: #fff7e4;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.nazo-clear-img img {
  width: 100%;
  max-width: 440px;
  display: block;
  margin: 0 auto;
}

.nazo100-congrats-card {
  width: min(960px, 100%);
  gap: 28px;
  padding: 34px 42px 42px;
  display: flex;
  flex-direction: column;
}

.nazo100-congrats__message {
  margin: 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 241, 247, 0.94));
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  color: #2b2b2b;
  line-height: 1.8;
}

.nazo100-congrats__lead {
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 1.35rem);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.nazo100-description {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nazo100-description__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.nazo100-description__eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #7a7d85;
  margin: 0;
  text-transform: uppercase;
}

.description-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.nazo100-description__lead {
  margin: 2px 0 0;
  color: #444;
  line-height: 1.6;
}

.nazo-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nazo-accordion__item {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nazo-accordion__item.is-open {
  border-color: rgba(67, 176, 71, 0.22);
  box-shadow: 0 12px 30px rgba(24, 94, 32, 0.12);
}

.nazo-title {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: none;
  background: linear-gradient(120deg, rgba(247, 247, 247, 0.8), rgba(236, 240, 245, 0.85));
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #1f2937;
}

.nazo-title:focus-visible {
  outline: 2px solid var(--nazo-c2);
  outline-offset: 2px;
}

.nazo-title__text {
  flex: 1;
}

.nazo-title__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #111;
  font-size: 18px;
  transition: color 0.2s ease;
}

.nazo-title__chevron .fa-solid {
  transition: transform 0.2s ease;
}

.nazo-accordion__item.is-open .nazo-title__chevron .fa-solid {
  transform: rotate(-180deg);
}

.nazo-accordion .description {
  margin: 0;
  padding: 0 18px;
  color: #343434;
  line-height: 1.75;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
}

.nazo-accordion__item.is-open .description {
  opacity: 1;
  padding: 12px 18px 18px;
  max-height: 2000px;
}

.nazo-accordion .description p {
  margin: 0 0 12px;
}

.nazo-accordion .description p:last-child {
  margin-bottom: 0;
}



@media (max-width: 640px) {
  .nazo100-aniv {
    padding: 50px 4px;
    align-items: start;
  }

  .nazo100-aniv--congrats {
    padding: 42px 8px 32px;
    background: radial-gradient(420px at 18% 12%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)), #dddee6;
  }

  .nazo100-aniv__puzzle-card {
    max-width: 100%;
    padding: 8px 10px 34px 4px;
  }

  .puzzle-header__title {
    align-items: center;
    margin: auto;
  }

  .puzzle-header__paper {
    padding: 4px 12px 8px;
    border-radius: 14px;
  }

  .puzzle-header__top {
    flex-direction: column;
    gap: 12px;
  }

  .puzzle-header__info {
    width: 100%;
    align-items: end;
  }

  .puzzle-header__meta {
    gap: 8px;
  }

  .puzzle-header__meta-item {
    min-width: 0;
  }

  .puzzle-header__line {
    min-width: 60px;
  }

  .puzzle-header__name {
    gap: 8px;
    margin: 12px 0 6px;
  }

  .nazo100-congrats-card {
    padding: 20px 18px 28px;
    gap: 20px;
  }

  .nazo100-congrats__message {
    padding: 16px 14px;
    line-height: 1.7;
  }

  .nazo100-aniv-result__content {
    padding: 28px 16px 20px;
    border-radius: 16px;
  }

  .nazo100-aniv-result__text {
    letter-spacing: 0.05em;
  }

  .nazo100-aniv-result__close {
    width: 100%;
  }

  .nazo100-reset__trigger {
    width: min(320px, 100%);
    justify-content: center;
    display: inline-flex;
    font-size: 0.8rem;
  }

  .nazo100-reset-modal__content {
    padding: 22px 16px 18px;
    border-radius: 16px;
  }

  .nazo100-reset-modal__actions {
    flex-direction: column-reverse;
  }

  .nazo100-reset-modal__button {
    width: 100%;
    text-align: center;
  }

  .nazo100-aniv-index {
    width: 100%;
    --cell-size: min(52px, calc((100vw - 86px) / 11));
  }

  .puzzle-wrapper {
    margin: 0 30px 0 0;
  }

  .puzzle-grid {
    width: 100%;
    table-layout: fixed;
  }

  .puzzle-note {
    font-size: 0.8rem;
    letter-spacing: 0;
    padding: 0 2px;
  }

  .answer-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 8px;
  }

  .answer-card {
    padding: 14px 12px 18px;
  }

  .answer-box {
    width: 100%;
    border-radius: 12px;
    min-height: 48px;
  }

  .answer-submit-wrapper {
    width: 100%;
  }

  .answer-submit {
    width: 100%;
    max-width: 220px;
    margin: 12px auto;
    border-radius: 12px;
  }

  .answer-input {
    width: 100%;
  }

  .grid-cell {
    font-size: 16px;
  }

  /* .grid-cell.is-cleared::after {
    right: 4px;
    bottom: 2px;
    font-size: 14px;
  } */

  .nazo-clear-img {
    padding: 10px 16px;
  }

  .nazo-accordion__item {
    border-radius: 14px;
  }

  .nazo-title {
    padding: 14px 16px;
  }

  .nazo100-aniv__puzzle-card--hint {
    padding: 22px 18px 32px;
  }

  .nazo-hint__nav {
    gap: 10px;
    font-size: 0.9rem;
  }

  .nazo-hint__nav::after {
    display: none;
  }
}

