/* Content structure additions for the Knowledge OS rewrite. */
.ot-boundaries {
  background: #173f33;
  color: #fff;
}

.ot-boundaries h2 {
  color: #fff;
}

.ot-commitment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #ffffff2b;
  border: 1px solid #ffffff2b;
}

.ot-commitment-grid article {
  min-height: 190px;
  padding: 38px 34px;
  background: #173f33;
}

.ot-commitment-grid h3 {
  margin: 0 0 12px;
  color: #e5c47d;
  font-size: 21px;
}

.ot-commitment-grid p {
  margin: 0;
  color: #d4dfd7;
  line-height: 1.9;
}

.ot-page-action {
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
}

.ot-page-action.ot-buttons {
  align-items: center;
}

.ot-page-note {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: #fff;
  color: #647068;
  font-size: 12px;
  line-height: 1.9;
}

/* Keep milestone copy readable on the sage timeline background. */
.ot-page-body .ot-deep-timeline h2 {
  color: #fffdf6;
}

.ot-page-body .ot-deep-timeline .ot-timeline-v3 p {
  color: #f6f7f3;
}

.ot-page-body .ot-deep-timeline .ot-timeline-v3 h3 {
  margin: 0 0 7px;
  color: #fffdf6;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .04em;
}

.ot-page-body .ot-deep-timeline .ot-timeline-copy {
  min-width: 0;
}

.ot-page-body .ot-deep-timeline .ot-timeline-v3 time {
  color: #f4dda5;
}

.ot-page-body .ot-deep-timeline .ot-source-note {
  color: #f0f3ec !important;
}

.ot-photo-note-real:after {
  content: "実写アーカイブ";
  background: #596653c7;
}

.ot-photo-note-concept:after {
  content: "品質評価イメージ";
  background: #596653c7;
}

@media (max-width: 800px) {
  .ot-commitment-grid {
    grid-template-columns: 1fr;
  }

  .ot-commitment-grid article {
    min-height: 0;
  }

  .ot-page-action.ot-buttons {
    flex-direction: column;
  }

  .ot-page-action.ot-buttons .ot-btn {
    width: 100%;
    max-width: 340px;
  }

  .ot-page-body .ot-deep-timeline .ot-timeline-v3 h3 {
    font-size: 18px;
  }
}

/* Brand results: independently managed numbers for OTAKAYUKi TEA and the association. */
.ot-brand-results {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 3%, rgba(196, 169, 108, .16), transparent 31%),
    linear-gradient(180deg, #f5f3ec 0%, #ebece4 100%);
}

.ot-brand-results:before {
  content: "2004—2025";
  position: absolute;
  top: 16px;
  right: -28px;
  color: rgba(95, 110, 88, .055);
  font-family: var(--serif);
  font-size: clamp(76px, 13vw, 180px);
  line-height: 1;
  pointer-events: none;
}

.ot-results-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 58px;
}

.ot-page-body .ot-results-heading h2 {
  margin: 7px 0 0;
  border: 0;
  padding: 0;
  color: #314334;
  font-size: clamp(34px, 4.5vw, 54px);
}

.ot-page-body .ot-results-heading > p {
  margin: 0;
  color: #5f695f;
  font-size: 14px;
  line-height: 2;
}

.ot-results-owner {
  position: relative;
  margin-top: 28px;
  border: 1px solid rgba(89, 104, 83, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 22px 55px rgba(54, 64, 49, .08);
  overflow: hidden;
}

.ot-results-owner + .ot-results-owner {
  margin-top: 42px;
}

.ot-results-owner-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 360px);
  gap: 32px;
  align-items: center;
  padding: 34px 38px;
  border-bottom: 1px solid rgba(89, 104, 83, .16);
}

.ot-results-owner-head > img {
  width: 100%;
  max-width: 360px;
  max-height: 72px;
  object-fit: contain;
  object-position: right center;
}

.ot-results-wordmark {
  justify-self: end;
  display: grid;
  gap: 5px;
  width: min(100%, 360px);
  padding: 15px 20px;
  border: 1px solid rgba(89, 104, 83, .24);
  border-radius: 4px;
  background: #fff;
  color: #263c30;
  text-align: left;
}

.ot-results-wordmark strong {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: .04em;
}

.ot-results-wordmark small {
  color: #8b743f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.ot-results-owner-copy > span {
  color: #a58545;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.ot-page-body .ot-results-owner-copy h3 {
  margin: 5px 0 7px;
  color: #37483a;
  font-size: 24px;
  font-weight: 500;
}

.ot-page-body .ot-results-owner-copy p {
  margin: 0;
  color: #687269;
  font-size: 13px;
}

.ot-results-grid {
  display: grid;
  gap: 1px;
  background: rgba(89, 104, 83, .16);
}

.ot-results-grid-business {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ot-results-grid-association {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ot-result-card {
  position: relative;
  min-width: 0;
  min-height: 430px;
  padding: 30px 30px 27px;
  background: #fff;
}

.ot-results-owner-business .ot-result-card {
  background:
    radial-gradient(circle at 85% 12%, rgba(223, 199, 139, .12), transparent 25%),
    linear-gradient(145deg, #52614f 0%, #33483a 100%);
}

.ot-result-card-logo {
  display: flex;
  align-items: center;
  height: 52px;
  margin-bottom: 25px;
}

.ot-result-card-logo img {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 48px;
  object-fit: contain;
}

.ot-results-owner-business .ot-result-card-logo {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 3px;
  background: #fff;
}

.ot-result-wordmark {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 10px;
  align-items: baseline;
  color: #263c30;
  font-family: var(--serif);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}

.ot-result-wordmark small {
  color: #8b743f;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .12em;
}

.ot-page-body .ot-result-label h4 {
  margin: 0;
  color: #3e5142;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .03em;
}

.ot-page-body .ot-result-label p {
  margin: 3px 0 0;
  color: #768077;
  font-size: 11px;
}

.ot-page-body .ot-results-owner-business .ot-result-label h4 {
  color: #fffef8;
}

.ot-page-body .ot-results-owner-business .ot-result-label p {
  color: #d9e0d8;
}

.ot-page-body .ot-result-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 0;
  color: #405641;
  line-height: 1;
}

.ot-result-value strong {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -.03em;
}

.ot-result-value span {
  font-size: 16px;
  font-weight: 700;
}

.ot-page-body .ot-results-owner-business .ot-result-value {
  color: #f1d99f;
}

.ot-page-body .ot-result-period {
  margin: 8px 0 0;
  color: #9b7b3d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.ot-page-body .ot-results-owner-business .ot-result-period {
  color: #dfc98f;
}

.ot-result-trend {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  align-items: end;
  height: 112px;
  margin-top: 25px;
  padding-top: 10px;
  border-bottom: 1px solid #d8ddd5;
}

.ot-results-owner-business .ot-result-trend {
  border-color: rgba(255, 255, 255, .25);
}

.ot-result-bar {
  display: grid;
  grid-template-rows: 1fr 18px;
  align-items: end;
  height: 100%;
  min-width: 0;
}

.ot-result-bar i {
  display: block;
  width: 100%;
  height: var(--ot-result-height);
  min-height: 10px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #9dad8f 0%, #61745e 100%);
}

.ot-result-bar:last-child i {
  background: linear-gradient(180deg, #c8ad6c 0%, #9f7d38 100%);
}

.ot-results-owner-business .ot-result-bar i {
  background: linear-gradient(180deg, #bbc5b1 0%, #87977f 100%);
}

.ot-results-owner-business .ot-result-bar:last-child i {
  background: linear-gradient(180deg, #f0d99f 0%, #c19b4b 100%);
}

.ot-result-bar b {
  align-self: end;
  color: #849084;
  font-size: 9px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

.ot-results-owner-business .ot-result-bar b {
  color: #cbd5ca;
}

.ot-page-body .ot-results-note {
  margin: 24px 0 0;
  color: #6e786f;
  font-size: 11px;
  line-height: 1.9;
}

@media (max-width: 980px) {
  .ot-results-grid-association {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ot-results-heading,
  .ot-results-owner-head {
    grid-template-columns: 1fr;
  }

  .ot-results-heading {
    gap: 20px;
    margin-bottom: 38px;
  }

  .ot-results-owner-head {
    gap: 20px;
    padding: 28px 22px;
  }

  .ot-results-owner-head > img {
    max-width: 310px;
    max-height: 62px;
    object-position: left center;
  }

  .ot-results-grid-business,
  .ot-results-grid-association {
    grid-template-columns: 1fr;
  }

  .ot-result-card {
    min-height: 405px;
    padding: 27px 22px 24px;
  }

  .ot-result-value strong {
    font-size: clamp(40px, 13vw, 54px);
  }
}

/* Full legacy-content migration: current explanation + historical archive. */
.ot-heritage-section {
  padding: 100px 0;
  background: #f3f4ee;
}

.ot-heritage-section + .ot-heritage-section {
  border-top: 1px solid #dfe4d9;
}

.ot-heritage-paper {
  background: #fffdf8;
}

.ot-heritage-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}

.ot-page-body .ot-heritage-head h2,
.ots-school .ot-heritage-head h2 {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  color: #596653;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .05em;
}

.ot-heritage-head > p {
  margin: 0;
  color: #667164 !important;
  font-size: 14px;
  line-height: 2;
}

.ot-heritage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ot-heritage-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 38px 38px 34px;
  border-top: 3px solid #b89c64;
  background: #fff;
  box-shadow: 0 18px 45px rgba(81, 94, 75, .07);
}

.ot-heritage-card > span {
  display: block;
  margin-bottom: 15px;
  color: #a98644;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .12em;
}

.ot-page-body .ot-heritage-card h3,
.ots-school .ot-heritage-card h3 {
  margin: 0 0 19px;
  color: #596653;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.55;
}

.ot-heritage-card p {
  margin: 0 0 15px;
  color: #5f695f !important;
  font-size: 13px;
  line-height: 2;
}

.ot-heritage-card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ot-heritage-card li {
  padding: 9px 0 9px 18px;
  border-top: 1px solid #e3e6de;
  color: #556356 !important;
  font-size: 12px;
  line-height: 1.7;
}

.ot-heritage-card li:before {
  content: "◆";
  float: left;
  margin-left: -18px;
  color: #b08b49;
  font-size: 7px;
}

.ot-heritage-card small {
  display: block;
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 2px solid #b89c64;
  background: #f6f3eb;
  color: #747b70;
  font-size: 10px;
  line-height: 1.8;
}

.ot-heritage-quote {
  padding: 85px 0;
  background: linear-gradient(135deg, #71806c, #929d89);
  color: #fff;
  text-align: center;
}

.ot-heritage-quote p {
  max-width: 930px;
  margin: 0 auto 20px;
  color: #fffdf7 !important;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 37px);
  line-height: 1.8;
  letter-spacing: .05em;
}

.ot-heritage-quote small {
  color: #f4dfac;
  font-size: 10px;
  letter-spacing: .17em;
}

.ot-book-record {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ot-book-record > article {
  padding: 40px;
  border: 1px solid #dedfd8;
  background: #fff;
}

.ot-book-record article > span {
  color: #a17e3f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.ot-page-body .ot-book-record h3 {
  margin: 13px 0 25px;
  color: #596653;
  font-size: 25px;
  line-height: 1.6;
}

.ot-book-record dl {
  margin: 0 0 24px;
}

.ot-book-record dl > div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid #e4e4de;
}

.ot-book-record dt {
  color: #8b7650;
  font-size: 11px;
}

.ot-book-record dd {
  margin: 0;
  color: #4f5b51;
  font-size: 12px;
}

.ot-book-record p,
.ot-book-record li {
  color: #5e695f !important;
  font-size: 12px;
  line-height: 1.9;
}

.ot-book-record ul {
  margin: 0;
  padding-left: 20px;
}

.ot-book-record li {
  margin-bottom: 11px;
}

.ot-archive-notice {
  margin: 0 0 28px;
  padding: 21px 24px;
  border-left: 4px solid #b18c4b;
  background: #f6f0e2;
  color: #59645b !important;
  font-size: 12px;
  line-height: 1.9;
}

.ot-year-archive {
  border-top: 1px solid #d8ddd4;
}

.ot-year-details {
  border-bottom: 1px solid #d8ddd4;
  background: #fff;
}

.ot-year-details summary,
.ot-archive-details summary {
  cursor: pointer;
  list-style: none;
}

.ot-year-details summary::-webkit-details-marker,
.ot-archive-details summary::-webkit-details-marker {
  display: none;
}

.ot-year-details summary {
  display: grid;
  grid-template-columns: 145px 1fr auto;
  align-items: center;
  min-height: 88px;
  padding: 0 28px;
}

.ot-year-details summary:after,
.ot-archive-details summary:after {
  content: "+";
  justify-self: end;
  color: #a27d3d;
  font-family: var(--serif);
  font-size: 26px;
}

.ot-year-details[open] summary:after,
.ot-archive-details[open] summary:after {
  content: "−";
}

.ot-year-details time {
  color: #9f7c3c;
  font-family: var(--serif);
  font-size: 30px;
}

.ot-year-details summary span {
  color: #667164;
  font-size: 12px;
}

.ot-year-details ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 50px;
  margin: 0;
  padding: 0 42px 35px 193px;
}

.ot-year-details li {
  padding: 12px 0 12px 6px;
  border-top: 1px dotted #dfe2da;
  color: #536054 !important;
  font-size: 12px;
  line-height: 1.75;
}

.ot-archive-details {
  margin: 0 0 14px;
  border: 1px solid #dce0d7;
  background: #fff;
}

.ot-archive-details summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 0 28px;
}

.ot-archive-details summary span {
  color: #596653;
  font-family: var(--serif);
  font-size: 20px;
}

.ot-archive-details summary small {
  color: #9b7b43;
  font-size: 10px;
  letter-spacing: .08em;
}

.ot-archive-description {
  margin: 0 28px 18px;
  padding: 18px 20px;
  background: #f3f5ef;
  color: #687268 !important;
  font-size: 11px;
}

.ot-archive-details ul {
  margin: 0;
  padding: 0 45px 35px;
  list-style: none;
}

.ot-archive-details li {
  padding: 9px 0;
  border-bottom: 1px dotted #dfe2db;
  color: #566157 !important;
  font-size: 11px;
  line-height: 1.7;
  break-inside: avoid;
}

.ot-archive-columns ul {
  columns: 3 260px;
  column-gap: 42px;
}

.ot-simple-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #dfe1da;
  background: #dfe1da;
}

.ot-simple-record-grid div {
  min-height: 74px;
  padding: 24px;
  background: #fff;
  color: #59655b;
  font-family: var(--serif);
  font-size: 14px;
}

.ot-course-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: #dfe1da;
  list-style: none;
}

.ot-course-archive li {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
}

.ot-course-archive span {
  flex: 0 0 auto;
  color: #a17e40;
  font-family: var(--serif);
  font-size: 13px;
}

.ot-course-archive b {
  color: #596653;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .ot-heritage-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ot-book-record,
  .ot-year-details ol {
    grid-template-columns: 1fr;
  }

  .ot-course-archive,
  .ot-simple-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ot-heritage-section {
    padding: 70px 0;
  }

  .ot-heritage-grid,
  .ot-course-archive,
  .ot-simple-record-grid {
    grid-template-columns: 1fr;
  }

  .ot-heritage-card,
  .ot-book-record > article {
    min-height: 0;
    padding: 28px 23px;
  }

  .ot-year-details summary {
    grid-template-columns: 90px 1fr auto;
    padding: 0 18px;
  }

  .ot-year-details time {
    font-size: 25px;
  }

  .ot-year-details ol {
    padding: 0 23px 25px 48px;
  }

  .ot-archive-details summary {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 0 18px;
  }

  .ot-archive-details summary small {
    display: none;
  }

  .ot-archive-details ul {
    padding: 0 23px 25px;
  }

  .ot-archive-description {
    margin: 0 18px 18px;
  }

  .ot-book-record dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ot-heritage-quote {
    padding: 65px 0;
  }
}
