:root {
  color-scheme: light;
  --ink: #222421;
  --muted: #666960;
  --ground: #ece8dc;
  --paper: #fffdf6;
  --wood: #936a43;
  --wood-dark: #60452f;
  --green: #284e42;
  --green-light: #dbe5df;
  --red: #a63434;
  --line: #c8beab;
  --shadow: 0 16px 36px rgba(57, 48, 33, 0.12);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--ground);
  color: var(--ink);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--ground);
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #17699a;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 12px;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header {
  min-height: 78px;
  border-bottom: 1px solid rgba(74, 65, 50, 0.25);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0.08em;
}
.wordmark > span {
  position: relative;
  display: flex;
  width: 38px;
  height: 32px;
  align-items: end;
  justify-content: center;
  gap: 2px;
  border-bottom: 3px solid var(--wood-dark);
}
.wordmark > span i {
  width: 7px;
  border: 1px solid var(--green);
  background: var(--green-light);
}
.wordmark > span i:first-child,
.wordmark > span i:last-child {
  height: 13px;
}
.wordmark > span i:nth-child(2) {
  height: 19px;
}
.wordmark b {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 19px;
}
.site-header nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}
.site-header nav a {
  color: #4f514c;
  font-size: 13px;
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--green);
}

.home,
.content-page,
.not-found {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.search-chamber {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.25fr);
  grid-template-rows: auto auto;
  gap: 22px 55px;
  padding: 55px 4% 42px;
}
.product-heading {
  align-self: center;
}
.product-heading > p {
  margin: 0 0 8px;
  color: var(--green);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  letter-spacing: 0.13em;
}
.product-heading h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 4vw, 39px);
  letter-spacing: 0.11em;
}
.coverage-mark {
  display: grid;
  width: 153px;
  grid-template-columns: auto 1fr;
  margin-top: 26px;
  border: 1px solid var(--green);
  padding: 11px 12px;
  color: var(--green);
  transform: rotate(-2deg);
}
.coverage-mark b {
  font-family: Georgia, serif;
  font-size: 19px;
}
.coverage-mark span {
  align-self: end;
  margin-left: 6px;
  font-size: 10px;
}
.coverage-mark i {
  grid-column: 1 / -1;
  margin-top: 4px;
  border-top: 1px solid rgba(40, 78, 66, 0.35);
  padding-top: 4px;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.05em;
}

.chamber {
  position: relative;
  align-self: center;
  aspect-ratio: 1.65;
  width: min(100%, 520px);
  justify-self: end;
  overflow: hidden;
  border: 1px solid #b3a58e;
  border-radius: 260px 260px 12px 12px;
  background: #e5ddcc;
  box-shadow: var(--shadow);
}
.chamber::before {
  position: absolute;
  inset: 18px 24px 14px;
  border: 1px solid rgba(91, 67, 43, 0.2);
  border-radius: 220px 220px 7px 7px;
  content: "";
}
.seat-row {
  position: absolute;
  left: 50%;
  display: flex;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}
.seat-row i {
  width: 22px;
  height: 13px;
  border: 1px solid #173b32;
  border-radius: 3px 3px 7px 7px;
  background: var(--green);
  box-shadow: 0 3px 0 #183329;
}
.row-a {
  bottom: 34px;
  width: 90%;
}
.row-b {
  bottom: 76px;
  width: 72%;
}
.row-c {
  bottom: 117px;
  width: 54%;
}
.row-a i:nth-child(1),
.row-a i:nth-child(11),
.row-b i:nth-child(1),
.row-b i:nth-child(9) {
  transform: translateY(-9px);
}
.row-a i:nth-child(2),
.row-a i:nth-child(10),
.row-b i:nth-child(2),
.row-b i:nth-child(8) {
  transform: translateY(-4px);
}
.podium {
  position: absolute;
  left: 50%;
  top: 20px;
  display: grid;
  width: 72px;
  height: 78px;
  place-items: center;
  border: 2px solid var(--wood-dark);
  background: #b18355;
  color: white;
  transform: translateX(-50%);
}
.podium::before {
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: -9px;
  height: 8px;
  border: 1px solid var(--wood-dark);
  background: var(--wood);
  content: "";
}
.podium span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 2px;
  background: #6b4d34;
}
.podium b {
  margin-top: 9px;
  font-family: "Yu Mincho", serif;
  font-size: 22px;
}
.podium i {
  position: absolute;
  bottom: 11px;
  width: 28px;
  height: 2px;
  background: #6b4d34;
}
.chamber-line {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 16px;
  height: 1px;
  background: #9e8b70;
}

.search-form {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  border: 1px solid #aea087;
  border-top: 5px solid var(--wood-dark);
  padding: 21px 24px 17px;
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 8px 20px rgba(56, 46, 30, 0.09);
}
.main-query > label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.query-slot {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}
.query-slot > span {
  color: var(--green);
  font-family: "Yu Mincho", serif;
  font-size: 31px;
}
.query-slot input {
  min-width: 0;
  border: 0;
  padding: 13px 5px 11px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 24px);
  outline: 0;
}
.query-slot input::placeholder {
  color: #9a978f;
  font-size: clamp(14px, 1.7vw, 18px);
}
.query-slot button,
.page-cta,
.not-found > a {
  border: 1px solid #1b3d34;
  padding: 10px 23px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.query-slot button:hover,
.page-cta:hover {
  background: #17382f;
}
.query-slot button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.filter-grid label {
  display: grid;
  gap: 5px;
}
.filter-grid label > span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
}
.filter-grid input,
.filter-grid select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.examples button {
  border: 1px solid #beb39f;
  padding: 5px 9px;
  background: transparent;
  color: #5c5b54;
  cursor: pointer;
  font-size: 11px;
}
.examples button:hover {
  border-color: var(--green);
  color: var(--green);
}
.search-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.is-loading .search-status::before {
  content: "速 ";
  color: var(--red);
  font-family: "Yu Mincho", serif;
}

.source-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border-block: 1px solid rgba(83, 72, 52, 0.22);
  padding: 12px 4%;
  color: #5f5b52;
  font-size: 12px;
}
.source-strip > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: "Yu Mincho", serif;
  font-size: 12px;
}
.source-strip p {
  margin: 0;
}
.source-strip a {
  white-space: nowrap;
  text-underline-offset: 3px;
}

.work-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  padding: 42px 0 70px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.section-heading h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  letter-spacing: 0.09em;
}
.section-heading span {
  color: var(--muted);
  font-size: 11px;
}
.result-list {
  display: grid;
  gap: 14px;
}
.empty-result,
.no-result {
  min-height: 235px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 19px;
  border: 1px dashed #b6ab98;
  background: rgba(255, 253, 246, 0.42);
  color: var(--muted);
  text-align: center;
}
.empty-result p,
.no-result p,
.no-result h3 {
  margin: 0;
}
.empty-podium {
  position: relative;
  display: grid;
  width: 66px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--wood-dark);
  background: #b18355;
  color: white;
}
.empty-podium::after {
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: -8px;
  height: 6px;
  border: 1px solid var(--wood-dark);
  background: var(--wood);
  content: "";
}
.empty-podium b {
  font-family: "Yu Mincho", serif;
  font-size: 21px;
}
.empty-podium span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 1px;
  background: var(--wood-dark);
}
.no-result > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: "Yu Mincho", serif;
  font-size: 20px;
}
.no-result h3 {
  font-family: "Yu Mincho", serif;
  font-size: 18px;
}

.speech-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #c2b7a3;
  border-left: 5px solid var(--green);
  padding: 19px 21px 17px 27px;
  background: var(--paper);
  box-shadow: 0 5px 13px rgba(58, 49, 34, 0.06);
}
.speech-seat {
  position: absolute;
  left: -1px;
  top: 18px;
  display: grid;
  width: 23px;
  height: 31px;
  place-items: center;
  background: var(--green);
  color: white;
  font-family: "Yu Mincho", serif;
  font-size: 11px;
  writing-mode: vertical-rl;
}
.speech-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 11px;
}
.speech-meta time {
  font-family: ui-monospace, monospace;
  color: var(--green);
  font-weight: 700;
}
.speech-card h3 {
  margin: 12px 0 2px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.speaker-role {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.speech-card blockquote {
  position: relative;
  margin: 15px 0 0;
  border-block: 1px solid #ddd5c5;
  padding: 14px 14px 14px 25px;
  color: #393b37;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  line-height: 1.85;
}
.speech-card blockquote::before {
  position: absolute;
  left: 5px;
  top: 7px;
  color: #8c9f96;
  content: "「";
  font-size: 22px;
}
.speech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.speech-actions a,
.speech-actions button {
  border: 1px solid #a9a18f;
  padding: 7px 10px;
  background: transparent;
  color: #454740;
  cursor: pointer;
  font-size: 11px;
  text-decoration: none;
}
.speech-actions a {
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.speech-actions button:hover,
.speech-actions .is-saved {
  border-color: var(--red);
  color: var(--red);
}
.speech-actions .is-done {
  border-color: var(--green);
  color: var(--green);
}

.saved-box {
  position: sticky;
  top: 20px;
  align-self: start;
  min-height: 230px;
  border: 1px solid #a99d88;
  border-top: 5px solid var(--wood-dark);
  padding: 0 15px 16px;
  background: #ded5c2;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.22);
}
.box-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin: 0 -4px 12px;
  border-bottom: 1px solid #b9ad97;
  padding: 11px 5px 10px;
}
.box-tab > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: "Yu Mincho", serif;
  font-size: 12px;
}
.box-tab h2 {
  margin: 0;
  font-family: "Yu Mincho", serif;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.box-tab b {
  min-width: 25px;
  border-radius: 50%;
  padding: 4px;
  background: var(--green);
  color: white;
  font-size: 11px;
  text-align: center;
}
.saved-stack {
  display: grid;
  gap: 9px;
}
.empty-saved {
  margin: 24px 6px;
  color: #666158;
  font-size: 12px;
  line-height: 1.8;
}
.saved-note {
  position: relative;
  border: 1px solid #c4b9a4;
  padding: 10px 11px;
  background: #fff8ad;
  transform: rotate(-0.5deg);
}
.saved-note p {
  margin: 0 26px 5px 0;
  color: #686254;
  font-family: ui-monospace, monospace;
  font-size: 9px;
}
.saved-note a {
  color: var(--green);
  font-family: "Yu Mincho", serif;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}
.saved-note blockquote {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: #4d4a41;
  font-family: "Yu Mincho", serif;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.remove-saved {
  position: absolute;
  right: 6px;
  top: 6px;
  border: 0;
  background: transparent;
  color: #6f695c;
  cursor: pointer;
  font-size: 10px;
}
.clear-button {
  margin-top: 14px;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 2px 0;
  background: transparent;
  color: #665f52;
  cursor: pointer;
  font-size: 11px;
}

.content-page {
  padding: 52px 0 80px;
}
.content-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.content-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: "Yu Mincho", serif;
  font-size: 18px;
}
.content-heading h1 {
  margin: 0;
  font-family: "Yu Mincho", serif;
  font-size: 30px;
  letter-spacing: 0.1em;
}
.instruction-grid,
.source-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.instruction-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.instruction-grid section,
.source-grid section,
.privacy-grid section {
  border: 1px solid #c6baa5;
  padding: 25px;
  background: var(--paper);
}
.instruction-grid section > b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: "Yu Mincho", serif;
}
.instruction-grid h2,
.source-grid h2,
.privacy-grid h2 {
  margin: 13px 0 9px;
  font-family: "Yu Mincho", serif;
  font-size: 18px;
}
.source-grid h2,
.privacy-grid h2 {
  margin-top: 0;
}
.instruction-grid p,
.source-grid p,
.privacy-grid p {
  margin: 0 0 10px;
  color: #5c5e57;
  font-size: 13px;
  line-height: 1.85;
}
.source-grid a {
  color: var(--green);
  font-size: 13px;
  text-underline-offset: 4px;
}
.source-ledger dl {
  margin: 0 0 16px;
}
.source-ledger dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #ddd4c2;
  padding: 8px 0;
}
.source-ledger dt {
  color: var(--muted);
  font-size: 12px;
}
.source-ledger dd {
  margin: 0;
  font-size: 12px;
  text-align: right;
}
.page-cta {
  display: inline-block;
  margin-top: 28px;
}
.not-found {
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: 68px 0 90px;
  text-align: center;
}
.not-found .chamber {
  width: min(430px, 92%);
}
.not-found h1 {
  margin: 10px 0 0;
  font-family: "Yu Mincho", serif;
  font-size: 26px;
}
.not-found p {
  margin: 0 0 12px;
  color: var(--muted);
}
.site-footer {
  min-height: 80px;
  border-top: 1px solid rgba(74, 65, 50, 0.25);
  color: #62645d;
  font-size: 11px;
}
.site-footer a {
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .search-chamber {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-inline: 3%;
  }
  .chamber {
    grid-row: 2;
    justify-self: center;
    width: min(520px, 96%);
  }
  .search-form {
    grid-column: 1;
  }
  .work-area {
    grid-template-columns: 1fr;
  }
  .saved-box {
    position: static;
  }
  .instruction-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .home,
  .content-page,
  .not-found {
    width: min(100% - 24px, 1180px);
  }
  .site-header {
    min-height: 68px;
  }
  .wordmark b {
    font-size: 17px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav a {
    font-size: 11px;
  }
  .search-chamber {
    padding: 38px 0 31px;
  }
  .product-heading h1 {
    font-size: 30px;
  }
  .seat-row {
    gap: 5px;
  }
  .seat-row i {
    width: 16px;
    height: 10px;
  }
  .row-c {
    bottom: 89px;
  }
  .row-b {
    bottom: 60px;
  }
  .row-a {
    bottom: 29px;
  }
  .podium {
    top: 13px;
    width: 54px;
    height: 59px;
  }
  .search-form {
    padding: 16px 13px 14px;
  }
  .query-slot > span {
    font-size: 23px;
  }
  .query-slot input {
    padding-inline: 1px;
    font-size: 17px;
  }
  .query-slot button {
    padding: 9px 14px;
  }
  .filter-grid {
    grid-template-columns: 1fr 0.8fr;
  }
  .source-strip {
    grid-template-columns: auto 1fr;
    padding-inline: 2px;
  }
  .source-strip a {
    grid-column: 2;
  }
  .work-area {
    padding-top: 32px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }
  .speech-card {
    padding: 17px 14px 15px 25px;
  }
  .speech-actions a,
  .speech-actions button {
    flex: 1 1 calc(50% - 7px);
    text-align: center;
  }
  .instruction-grid,
  .source-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .content-heading h1 {
    font-size: 27px;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
