/*
 * Nippon Teshigotocho maintenance layer.
 * Keep small post-launch layout adjustments here so future updates are easy to find.
 */

.archive-artist-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.15vw, 18px);
}

.craft-search-results .archive-artist-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.archive-artist-card-grid .artist-card {
  min-width: 0;
}

.archive-artist-card-grid .card-media {
  aspect-ratio: 3 / 4;
}

.archive-artist-card-grid .card-body {
  padding: 12px 14px 14px;
}

.archive-artist-card-grid .artist-card .eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.archive-artist-card-grid .card-body h2 {
  margin-bottom: 5px;
  font-size: clamp(0.96rem, 1.02vw, 1.18rem);
  line-height: 1.36;
}

.archive-artist-card-grid .card-body p:not(.eyebrow) {
  font-size: 0.72rem;
  line-height: 1.55;
}

.archive-work-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.25vw, 22px);
  border-top: 0;
  border-left: 0;
}

.craft-search-results .archive-work-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.archive-work-card-grid .work-card {
  min-height: 0;
  grid-template-rows: auto minmax(78px, auto);
  border: 1px solid var(--line);
}

.archive-work-card-grid .work-media {
  aspect-ratio: 3 / 4;
}

.archive-work-card-grid .work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-information-row {
  grid-template-columns:
    minmax(128px, 0.58fr)
    minmax(190px, 1.05fr)
    minmax(180px, 0.9fr)
    minmax(180px, 0.82fr)
    minmax(132px, 0.46fr);
}

.archive-information-row > span:last-child {
  justify-self: end;
}

.archive-story-lead {
  max-width: 720px;
  margin: 0 0 clamp(30px, 4vw, 52px);
  color: #6c6257;
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.9;
}

.archive-story-row {
  grid-template-columns:
    minmax(120px, 0.5fr)
    minmax(240px, 1.35fr)
    minmax(160px, 0.78fr)
    minmax(140px, 0.68fr)
    minmax(86px, 0.32fr);
}

.archive-story-row > span:last-child {
  justify-self: end;
}

.archive-story-row > a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.archive-story-row > a:hover,
.archive-story-row > a:focus-visible {
  color: var(--gold);
}

.archive-information-artist-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid rgba(170, 134, 65, 0.42);
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.archive-information-artist-link:hover,
.archive-information-artist-link:focus-visible {
  background: rgba(170, 134, 65, 0.12);
  color: var(--gold);
}

.craft-search-prefecture-field {
  grid-column: 1 / -1;
}

.craft-search-form .button {
  grid-column: 1 / -1;
}

.home-craft-search-band {
  padding: clamp(16px, 2.5vw, 30px) 0;
}

.home-craft-search-toggle {
  border: 1px solid rgba(176, 138, 69, 0.34);
  background: rgba(17, 16, 13, 0.28);
}

.home-craft-search-toggle summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 3vw, 34px);
  cursor: pointer;
  list-style: none;
}

.home-craft-search-toggle summary::-webkit-details-marker {
  display: none;
}

.home-craft-search-toggle summary > span {
  display: grid;
  gap: 4px;
}

.home-craft-search-toggle summary strong {
  color: #fffaf2;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.08rem, 1.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0;
}

.home-craft-search-toggle summary em {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(176, 138, 69, 0.54);
  color: #f8f3ea;
  font-style: normal;
  font-size: 0.86rem;
  white-space: nowrap;
}

.home-craft-search-toggle summary em::after {
  content: "+";
  margin-left: 10px;
  color: #b08a45;
}

.home-craft-search-toggle[open] summary em::after {
  content: "-";
}

.home-craft-search-toggle .craft-search-form {
  padding: 0 clamp(18px, 3vw, 34px) clamp(20px, 3vw, 34px);
}

.home-craft-search-toggle:not([open]) .craft-search-form {
  display: none;
}

.archive-filter-toggle {
  padding: 0;
}

.archive-filter-toggle summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 2.8vw, 30px);
  cursor: pointer;
  list-style: none;
}

.archive-filter-toggle summary::-webkit-details-marker {
  display: none;
}

.archive-filter-toggle summary span {
  color: #fffaf2;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.02rem, 1.35vw, 1.32rem);
  font-weight: 700;
}

.archive-filter-toggle summary em {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(176, 138, 69, 0.54);
  color: #f8f3ea;
  font-style: normal;
  font-size: 0.82rem;
}

.archive-filter-toggle summary em::after {
  content: "+";
  margin-left: 9px;
  color: #b08a45;
}

.archive-filter-toggle[open] summary em::after {
  content: "-";
}

.archive-filter-toggle .archive-filter-form {
  padding: 0 clamp(18px, 2.8vw, 30px) clamp(18px, 2.8vw, 30px);
}

.archive-filter-toggle:not([open]) .archive-filter-form {
  display: none;
}

.craft-search-field-label {
  display: block;
  margin: 0 0 10px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.genre-checkbox-selector {
  display: grid;
  gap: 10px;
}

.genre-checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.craft-search-form .genre-all-toggle,
.craft-search-form .genre-checkbox-list label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(248, 243, 234, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 243, 234, 0.84);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
}

.craft-search-form .genre-all-toggle {
  justify-content: center;
  border-color: rgba(176, 138, 69, 0.58);
  background: rgba(176, 138, 69, 0.12);
  color: #fffaf2;
  font-weight: 700;
}

.craft-search-form .genre-all-toggle input[type="checkbox"],
.craft-search-form .genre-checkbox-list input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: #b08a45;
}

.craft-search-form .genre-all-toggle:has(input:checked),
.craft-search-form .genre-checkbox-list label:has(input:checked) {
  border-color: rgba(176, 138, 69, 0.8);
  background: rgba(176, 138, 69, 0.18);
  color: #fffaf2;
}

.craft-search-form input[type="date"],
.craft-search-form input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(248, 243, 234, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font: inherit;
}

.information-filter-form {
  grid-template-columns: 1fr;
  align-items: start;
  overflow: hidden;
}

.information-filter-form > * {
  min-width: 0;
}

.information-filter-form .craft-search-prefecture-field,
.information-filter-form .button {
  grid-column: auto;
}

.information-filter-form .button {
  width: 100%;
}

.prefecture-region-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.craft-search-form .prefecture-all-toggle {
  display: inline-flex;
  grid-column: 1 / -1;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(176, 138, 69, 0.58);
  background: rgba(176, 138, 69, 0.12);
  color: #fffaf2;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  cursor: pointer;
}

.craft-search-form .prefecture-all-toggle input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: #b08a45;
}

.craft-search-form .prefecture-all-toggle:has(input:checked) {
  border-color: rgba(176, 138, 69, 0.95);
  background: rgba(176, 138, 69, 0.24);
}

.prefecture-region-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(248, 243, 234, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.prefecture-region-group p {
  margin: 0 0 9px;
  color: #b08a45;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.prefecture-region-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.craft-search-form .prefecture-region-group label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgba(248, 243, 234, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 243, 234, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
}

.craft-search-form .prefecture-region-group .prefecture-region-toggle {
  display: flex;
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  margin-bottom: 10px;
  border-color: rgba(176, 138, 69, 0.38);
  background: rgba(17, 16, 13, 0.12);
  color: #b08a45;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.craft-search-form .prefecture-region-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: #b08a45;
}

.craft-search-form .prefecture-region-group label:has(input:checked) {
  border-color: rgba(176, 138, 69, 0.8);
  background: rgba(176, 138, 69, 0.18);
  color: #fffaf2;
}

.artist-inquiry-disclaimer {
  display: grid;
  gap: 4px;
  margin: 16px 0 22px;
  padding: 14px 16px;
  border-left: 3px solid rgba(205, 92, 78, 0.86);
  background: rgba(205, 92, 78, 0.1);
  color: #f0b2a8;
}

.artist-inquiry-disclaimer p {
  margin: 0;
  color: inherit;
  font-size: 0.94rem;
  line-height: 1.72;
}

.site-header .site-header-inner {
  gap: clamp(18px, 3vw, 44px);
  min-height: 92px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header .brand-logo {
  width: clamp(245px, 18vw, 360px);
  max-height: 82px;
}

.site-header .site-nav {
  margin-left: auto;
}

.site-header .site-nav ul {
  gap: 8px;
  justify-content: flex-end;
}

.site-header .site-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(170, 134, 65, 0.34);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.86);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible,
.site-header .site-nav .current-menu-item > a {
  border-color: rgba(213, 176, 103, 0.78);
  background: rgba(170, 134, 65, 0.18);
  color: #d5b067;
}

.footer-nav ul {
  justify-content: flex-end;
  gap: 9px 16px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold);
}

.site-footer .brand-logo {
  width: clamp(220px, 18vw, 320px);
  max-height: 76px;
}

.legal-page {
  background:
    linear-gradient(90deg, rgba(170, 134, 65, 0.04) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.2)),
    #f7f1e7;
}

.legal-page .section-inner {
  max-width: 980px;
}

.legal-page .section-title {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(170, 134, 65, 0.28);
}

.legal-content {
  max-width: 820px;
  margin-top: clamp(24px, 3vw, 42px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(170, 134, 65, 0.18);
  background: rgba(255, 252, 246, 0.76);
  box-shadow: 0 18px 44px rgba(38, 30, 22, 0.06);
  color: #3d352c;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.legal-content h2 {
  margin: 2.1em 0 0.72em;
  padding-left: 14px;
  border-left: 3px solid rgba(170, 134, 65, 0.72);
  color: #211b15;
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  font-weight: 600;
  line-height: 1.5;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 2;
}

.legal-content p {
  margin: 0 0 1.08em;
}

.legal-content ul,
.legal-content ol {
  display: grid;
  gap: 7px;
  margin: 0 0 1.35em;
  padding-left: 1.35em;
}

.legal-content li::marker {
  color: var(--gold);
}

.legal-content a {
  color: #8d6b2d;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.artist-profile-choice-section {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(170, 134, 65, 0.18);
  background: #fffaf2;
}

.artist-profile-choice-section h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.18rem, 1.7vw, 1.7rem);
  font-weight: 500;
  color: #211b15;
}

.artist-profile-choice-section p {
  margin: 0;
  color: #6f6254;
  line-height: 1.85;
}

.artist-profile-checks {
  gap: 16px;
  padding: clamp(16px, 2vw, 24px);
}

.artist-profile-checks label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #ddd2c3;
  background: rgba(255, 255, 255, 0.72);
}

.artist-profile-checks input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.artist-profile-check-copy {
  display: block;
  grid-column: auto;
  color: #211b15;
}

.artist-profile-check-copy strong {
  display: block;
  margin-bottom: 10px;
  color: #2c251f;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.artist-profile-check-copy small {
  display: block;
  color: #6f6254;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
}

.artist-profile-check-copy a {
  color: #8c6427;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.artist-profile-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.artist-profile-radio-group label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid #ddd2c3;
  background: #fff;
  color: #2c251f;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.artist-profile-radio-group input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.site-contact-activity-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  border: 0;
  background: transparent;
}

.site-contact-activity-checks label {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ddd2c3;
  background: #fff;
}

.about-flow-line {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.about-flow-line p {
  text-align: left;
}

.about-flow-line section + section::before {
  left: calc(clamp(18px, 2.2vw, 34px) * -0.72);
}

.about-reason-grid {
  display: block;
}

.about-reason-copy {
  width: 100%;
}

.about-reason-copy h2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  text-align: center;
}

.about-reason-copy h2::before,
.about-reason-copy h2::after {
  display: block;
  height: 1px;
  background: rgba(21, 19, 15, 0.14);
  content: "";
}

.about-reason-grid > div.about-reason-copy p,
.about-reason-grid > .about-reason-copy p {
  max-width: none;
  width: 100%;
  margin-top: clamp(22px, 3vw, 42px);
  column-count: auto;
  column-gap: normal;
  text-align: left;
}

.about-benefits-block {
  margin-top: clamp(42px, 6vw, 82px);
}

.about-benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-benefit-card {
  padding: clamp(22px, 2vw, 32px);
}

@media (max-width: 1480px) {
  .archive-artist-card-grid,
  .archive-work-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .craft-search-results .archive-artist-card-grid,
  .craft-search-results .archive-work-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .archive-artist-card-grid,
  .archive-work-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .craft-search-results .archive-artist-card-grid,
  .craft-search-results .archive-work-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .archive-information-row {
    grid-template-columns: minmax(140px, 0.6fr) minmax(220px, 1fr);
  }

  .archive-story-row {
    grid-template-columns: minmax(128px, 0.55fr) minmax(240px, 1fr);
  }

  .archive-information-row > span:last-child {
    justify-self: start;
  }

  .archive-story-row > span:last-child {
    justify-self: start;
  }

  .prefecture-region-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-design .section-inner {
    max-width: none;
    width: min(100% - 32px, 1500px);
  }

  .home-band {
    padding: 42px 0;
  }

  .home-band-paper .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-band-paper .artist-card {
    min-width: 0;
  }

  .home-band-paper .card-media {
    aspect-ratio: 3 / 4;
  }

  .home-band-paper .card-body {
    padding: 12px 10px 14px;
  }

  .home-band-paper .artist-card .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .home-band-paper .card-body h2 {
    margin-bottom: 6px;
    font-size: 1.06rem;
    line-height: 1.35;
    word-break: normal;
  }

  .home-band-paper .card-body p:not(.eyebrow) {
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .site-header .site-nav ul {
    justify-content: flex-start;
  }

  .site-header .site-nav a {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.75rem;
  }

  .site-header .brand-logo {
    width: min(72vw, 260px);
    max-height: 70px;
  }

  .site-footer .brand-logo {
    width: min(72vw, 260px);
  }

  .legal-content {
    padding: 22px 18px;
  }

  .archive-artist-card-grid,
  .archive-work-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-search-results .archive-artist-card-grid,
  .craft-search-results .archive-work-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-contact-activity-checks {
    grid-template-columns: 1fr;
  }

  .about-reason-grid > .about-reason-copy p {
    column-count: 1;
  }

  .about-benefit-grid {
    grid-template-columns: 1fr;
  }

  .archive-artist-card-grid .card-body {
    padding: 10px 11px 12px;
  }

  .archive-artist-card-grid .card-body h2 {
    font-size: 0.94rem;
  }

  .archive-information-artist-link {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .home-craft-search-toggle summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .prefecture-region-selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .archive-artist-card-grid,
  .archive-work-card-grid {
    grid-template-columns: 1fr;
  }

  .craft-search-results .archive-artist-card-grid,
  .craft-search-results .archive-work-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .about-flow {
    text-align: left;
  }

  .about-flow .about-inner {
    width: min(100% - 28px, 620px);
  }

  .about-flow h2 {
    text-align: center;
  }

  .about-flow-line {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 4px 14px 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .about-flow-line section {
    flex: 0 0 min(76vw, 260px);
    min-width: 0;
    padding: 18px 16px 20px;
    border: 1px solid rgba(170, 134, 65, 0.18);
    background: rgba(255, 255, 255, 0.42);
    text-align: left;
    scroll-snap-align: start;
  }

  .about-flow-line section + section::before {
    display: none;
  }

  .about-flow-line span {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }

  .about-flow-line h3 {
    font-size: 1rem;
    line-height: 1.48;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .about-flow-line p {
    font-size: 0.86rem;
    line-height: 1.78;
    text-align: left;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

.sakka-gallery-manager {
  max-width: 1180px;
  margin: clamp(28px, 5vw, 64px) auto;
}

.sakka-portal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 24px;
}

.sakka-portal-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(77, 89, 94, 0.28);
  background: rgba(255, 255, 255, 0.48);
  color: #383b3c;
  text-decoration: none;
}

.sakka-portal-switch a.is-current {
  border-color: #d68f94;
  background: #d68f94;
  color: #fff;
}

.sakka-form-note {
  margin: 14px 0 0;
  color: #8a7c6a;
  font-size: 0.9rem;
  line-height: 1.8;
}

.sakka-portal-auth {
  max-width: 1180px;
  margin: clamp(28px, 5vw, 56px) auto 0;
  padding: clamp(22px, 3vw, 34px);
  background: #fffaf2;
  border: 1px solid rgba(32, 25, 20, 0.12);
}

.sakka-portal-auth h2 {
  margin: 6px 0 18px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
}

.sakka-portal-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(14px, 3vw, 28px);
}

.sakka-portal-auth label {
  display: block;
  color: #4f463d;
  font-weight: 700;
}

.sakka-portal-auth label span {
  display: block;
  margin: 4px 0 6px;
  color: #8a7c6a;
  font-size: 0.82rem;
  font-weight: 400;
}

.sakka-portal-auth input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid #ddd2c3;
  background: #fff;
  color: #211b15;
  font: inherit;
}

.sakka-work-count {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #b08a45;
  background: rgba(176, 138, 69, 0.08);
  color: #4f463d;
  font-weight: 700;
  line-height: 1.7;
}

.sakka-auth-check-form {
  margin-top: 4px;
}

.sakka-portal-page .artist-book-button {
  background: #1f1a14;
  color: #fffaf2;
  border-color: rgba(176, 138, 69, 0.72);
}

.sakka-portal-page .artist-book-button:hover,
.sakka-portal-page .artist-book-button:focus-visible {
  background: #f4ead8;
  color: #1f1a14;
  border-color: #b08a45;
}

.sakka-gallery-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: 24px;
}

.sakka-work-bulk-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.sakka-portal-panel-wide {
  grid-column: 1 / -1;
}

.sakka-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 3vw, 32px);
}

.sakka-work-bulk-item {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(32, 25, 20, 0.12);
  background: rgba(255, 255, 255, 0.5);
}

.sakka-work-bulk-item legend {
  padding: 0 8px;
  color: #b08a45;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.15rem;
}

.sakka-gallery-manager-card {
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(32, 25, 20, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

.sakka-gallery-manager-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  color: #5f5549;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1rem;
  font-weight: 600;
}

.sakka-gallery-manager-number span {
  color: #b08a45;
  font-size: 1.55rem;
}

.sakka-gallery-manager-card figure {
  margin: 0 0 18px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #efe8dc;
}

.sakka-gallery-manager-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sakka-delete-form {
  margin-top: 12px;
}

.sakka-portal-panel .artist-book-button.is-subtle {
  background: transparent;
  color: #5f5549;
  border-color: rgba(95, 85, 73, 0.28);
}

.sakka-portal-panel .artist-book-button.is-subtle:hover,
.sakka-portal-panel .artist-book-button.is-subtle:focus-visible {
  background: #f4ead8;
  color: #1f1a14;
  border-color: #b08a45;
}

@media (max-width: 760px) {
  .sakka-portal-hero-inner {
    display: block;
    min-height: 500px;
    padding: 48px 20px 150px;
  }

  .sakka-portal-hero-copy {
    padding: 0;
  }

  .sakka-portal-hero h1 {
    font-size: 30px;
  }

  .sakka-portal-hero p {
    max-width: 92%;
    font-size: 13px;
  }

  .sakka-portal-hero-rika {
    position: absolute;
    right: 18px;
    bottom: 0;
    width: 125px;
    max-height: 170px;
  }

  .sakka-portal-switch {
    gap: 8px;
  }

  .sakka-portal-switch a {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .sakka-portal-auth-grid {
    grid-template-columns: 1fr;
  }

  .sakka-form-grid {
    grid-template-columns: 1fr;
  }

  .sakka-gallery-manager-grid {
    grid-template-columns: 1fr;
  }
}

.story-book {
  background:
    radial-gradient(circle at 18% 8%, rgba(176, 138, 69, 0.1), transparent 24rem),
    radial-gradient(circle at 82% 28%, rgba(120, 147, 153, 0.08), transparent 28rem),
    #11100d;
  color: #f7f0e5;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.story-book-hero {
  min-height: clamp(360px, 54vh, 620px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(120deg, rgba(22, 19, 15, 0.92), rgba(22, 19, 15, 0.5) 48%, rgba(22, 19, 15, 0.1)),
    radial-gradient(circle at 28% 22%, rgba(176, 138, 69, 0.16), transparent 24rem),
    #211b15;
  background-position: center;
  background-size: cover;
}

.story-book-hero.has-image {
  background-blend-mode: normal;
}

.story-book-hero-inner {
  width: min(1180px, calc(100vw - 64px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 106px) 0;
  color: #fffaf2;
}

.story-book-kicker,
.story-book-heading span,
.story-book-section-number,
.archive-story-card p {
  margin: 0 0 12px;
  color: #b08a45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.story-book-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.9rem, 4.1vw, 3.7rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0;
}

.story-book-subtitle {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(0.92rem, 1.18vw, 1.08rem);
  line-height: 1.85;
}

.story-book-inner {
  width: min(1160px, calc(100vw - 64px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) 0 clamp(62px, 8vw, 108px);
}

.story-book-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(38px, 5vw, 70px);
  border-bottom: 1px solid rgba(255, 250, 242, 0.16);
}

.story-book-lead > p,
.story-book-intro,
.story-book-content,
.story-book-section-copy {
  color: rgba(247, 240, 229, 0.72);
  font-size: clamp(0.88rem, 1.02vw, 1rem);
  line-height: 1.95;
}

.story-book-lead > p {
  margin: 0;
  color: rgba(247, 240, 229, 0.88);
  font-size: clamp(1rem, 1.26vw, 1.16rem);
  line-height: 1.9;
}

.story-book-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.story-book-meta div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 250, 242, 0.14);
}

.story-book-meta dt {
  color: #789399;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.story-book-meta dd {
  margin: 0;
  color: rgba(247, 240, 229, 0.7);
  line-height: 1.75;
}

.story-book-intro,
.story-book-content {
  max-width: 820px;
  margin: clamp(42px, 6vw, 82px) auto;
}

.story-book-intro p,
.story-book-content p,
.story-book-section-copy p {
  margin: 0 0 1.15em;
}

.story-book-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  margin-top: clamp(34px, 5vw, 70px);
  background: rgba(255, 250, 242, 0.04);
  border: 1px solid rgba(255, 250, 242, 0.08);
}

.story-book-section-left .story-book-section-image {
  order: -1;
}

.story-book-section-full {
  grid-template-columns: 1fr;
}

.story-book-section-full .story-book-section-image {
  aspect-ratio: 16 / 9;
}

.story-book-section-image {
  min-height: clamp(280px, 34vw, 460px);
  margin: 0;
  overflow: visible;
  background: transparent;
  padding: clamp(12px, 1.7vw, 22px);
}

.story-book-section-image img,
.story-book-artist img,
.archive-story-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.story-book-section-image figcaption,
.story-book-gallery figcaption,
.story-book-photo-break figcaption {
  min-height: 3.2em;
  padding: 12px 6px 0;
  color: rgba(247, 240, 229, 0.55);
  font-size: 0.8rem;
  line-height: 1.6;
  box-sizing: border-box;
}

.story-book-section-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.4vw, 58px);
}

.story-book-section-copy h2,
.story-book-heading h2 {
  margin: 0 0 18px;
  color: #fffaf2;
  font-size: clamp(1.12rem, 1.55vw, 1.55rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.story-book-section-number {
  color: rgba(176, 138, 69, 0.56);
  font-size: clamp(1.05rem, 1.55vw, 1.42rem);
  letter-spacing: 0.1em;
}

.story-book-gallery {
  margin-top: clamp(58px, 8vw, 110px);
}

.story-book-photo-break {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(220px, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: end;
  width: min(920px, 88%);
  margin: clamp(28px, 4vw, 58px) auto 0;
}

.story-book-photo-break-2 {
  margin-left: 0;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.62fr);
}

.story-book-photo-break-3 {
  margin-right: 0;
  grid-template-columns: minmax(160px, 0.58fr) minmax(260px, 1fr);
}

.story-book-photo-break figure {
  min-width: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
  padding: clamp(12px, 1.7vw, 22px);
}

.story-book-photo-break figure:nth-child(1) img {
  aspect-ratio: 3 / 4;
}

.story-book-photo-break figure:nth-child(2) img {
  aspect-ratio: 16 / 10;
}

.story-book-photo-break img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.story-book-heading {
  margin-bottom: 26px;
}

.story-book-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(14px, 2vw, 24px);
}

.story-book-gallery figure {
  min-width: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
  padding: clamp(12px, 1.7vw, 22px);
}

.story-book-gallery figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.story-book-gallery figure:nth-child(4n + 1) {
  grid-column: span 2;
}

.story-book-gallery figure:nth-child(4n + 1) img {
  aspect-ratio: 16 / 10;
}

.story-book-gallery figure:nth-child(5n + 3) {
  grid-row: span 2;
}

.story-book-gallery figure:nth-child(5n + 3) img {
  aspect-ratio: 3 / 5;
}

.story-book-artist {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  margin-top: clamp(58px, 8vw, 110px);
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(176, 138, 69, 0.34);
  background: rgba(255, 250, 242, 0.045);
  color: #fffaf2;
}

.story-book-artist img {
  aspect-ratio: 4 / 5;
}

.story-book-artist span {
  color: #789399;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-book-artist h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.18rem, 1.8vw, 1.8rem);
  font-weight: 400;
}

.story-book-artist p {
  margin: 0 0 22px;
  color: rgba(255, 250, 242, 0.72);
}

.story-book-artist a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(176, 138, 69, 0.72);
  color: #fffaf2;
  text-decoration: none;
}

.story-book-artist a:hover,
.story-book-artist a:focus-visible {
  background: #f4ead8;
  color: #1f1a14;
}

.archive-story-page {
  background: #fbf7ef;
}

.archive-story-grid {
  width: min(1500px, calc(100vw - 72px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 82px) 0 clamp(70px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}

.archive-story-card {
  min-width: 0;
  border: 1px solid rgba(32, 25, 20, 0.13);
  background: #fffaf2;
}

.archive-story-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.archive-story-card figure {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1f1a14;
}

.archive-story-card figure span {
  color: rgba(255, 250, 242, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.archive-story-card div {
  padding: clamp(18px, 2vw, 26px);
}

.archive-story-card h2 {
  margin: 0 0 12px;
  color: #17130f;
  font-size: clamp(1.2rem, 1.45vw, 1.55rem);
  font-weight: 400;
  line-height: 1.55;
}

.archive-story-card span,
.archive-story-card small {
  display: block;
  color: #6c6257;
  font-size: 0.9rem;
  line-height: 1.8;
}

.archive-story-card small {
  margin-top: 16px;
  color: #b08a45;
}

@media (max-width: 980px) {
  .story-book-lead,
  .story-book-section,
  .story-book-artist {
    grid-template-columns: 1fr;
  }

  .story-book-section-left .story-book-section-image {
    order: 0;
  }

  .story-book-gallery-grid,
  .archive-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-book-photo-break,
  .story-book-photo-break-2,
  .story-book-photo-break-3 {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 620px) {
  .story-book-hero-inner,
  .story-book-inner,
  .archive-story-grid {
    width: min(100% - 32px, 1120px);
  }

  .story-book-section-copy {
    padding: 24px 20px 30px;
  }

  .story-book-gallery-grid,
  .archive-story-grid {
    grid-template-columns: 1fr;
  }

  .story-book-photo-break,
  .story-book-photo-break-2,
  .story-book-photo-break-3 {
    grid-template-columns: 1fr;
  }

  .story-book-gallery figure:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
}
