/* Figma-derived editorial, contact, and policy layouts. Natural content flow only. */
.editorial-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.editorial-section {
  position: relative;
  isolation: isolate;
  padding-block: 70px;
  overflow: clip;
}

.editorial-container {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 12px;
}

.editorial-card {
  min-width: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 220ms ease;
}

.editorial-card__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  padding: 32px 24px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}

.editorial-card__image {
  display: grid;
  place-items: center;
  height: 200px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 4px;
  background: #d9d9d9;
}

.editorial-card__image img {
  width: 36px;
  height: 36px;
}
.editorial-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.editorial-tag {
  padding: 4px 12px;
  border-radius: 4px;
  background: #eef2ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
}
.editorial-date {
  flex-shrink: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 14px;
}
.editorial-card__title {
  display: block;
  min-height: 52px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
.editorial-card__title > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.editorial-card__button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.editorial-pagination {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: center;
  width: min(348px, 100%);
  gap: 6px;
  margin: 26px auto -6px;
}

.editorial-pagination button {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e1e1e;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.editorial-pagination button::before {
  position: absolute;
  z-index: -1;
  width: min(32px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  transition: background-color 180ms ease;
}
.editorial-pagination button[aria-current="page"] {
  color: #fff;
}
.editorial-pagination button[aria-current="page"]::before {
  background: var(--navy);
}
.editorial-pagination button:disabled {
  opacity: 0.38;
  cursor: default;
}
.editorial-pagination img {
  width: 20px;
  height: 20px;
}
.editorial-pagination button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.editorial-empty {
  padding: 100px 24px;
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}
.editorial-empty h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(18px, 3vw, 24px);
}
.editorial-empty p {
  margin: 0;
}
.editorial-grid[hidden],
.editorial-news-list[hidden],
.editorial-empty[hidden] {
  display: none;
}

.editorial-decoration,
.editorial-news-decoration {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.editorial-decoration img {
  position: absolute;
  max-width: none;
}
.editorial-decoration__left {
  width: 776px;
  height: 689px;
  top: 110px;
  left: calc(50% - 1060px);
}
.editorial-decoration__right {
  width: 408px;
  height: 362px;
  top: 827px;
  right: calc(50% - 811px);
}
.editorial-decoration__bottom {
  width: 599px;
  height: 532px;
  bottom: -190px;
  left: calc(50% - 944px);
}
.editorial-decoration__dots {
  width: 113px;
  height: 86px;
  top: 254px;
  right: calc(50% - 599px);
}
.editorial-section--download .editorial-decoration__bottom {
  display: none;
}
.download-list-preview {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
}

.editorial-section--news {
  padding-bottom: 70px;
}
.editorial-news-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.editorial-news-item {
  min-width: 0;
}
.editorial-news-row {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 100px;
  padding: 22px 24px;
  border: 0;
  border-radius: 7px;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.editorial-news-row__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.editorial-news-date {
  display: flex;
  flex-direction: column;
  width: 72px;
  color: var(--ink);
  font-weight: 400;
}
.editorial-news-date span:first-child {
  margin-bottom: -2px;
  font-size: 12px;
  line-height: 16px;
}
.editorial-news-date span:last-child {
  font-size: 25px;
  line-height: 32px;
}
.editorial-news-tag {
  width: 120px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.editorial-news-row__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}
.editorial-news-row__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}
.editorial-news-row:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.editorial-news-decoration img {
  position: absolute;
  max-width: none;
  height: 14px;
}
.editorial-news-decoration img:first-child {
  width: 1753px;
  top: 56px;
  left: calc(50% - 688px);
  transform: rotate(36deg);
  transform-origin: 0 50%;
}
.editorial-news-decoration img:last-child {
  width: 1520px;
  top: 725px;
  left: calc(50% + 690px);
  transform: rotate(159deg);
  transform-origin: 0 50%;
}

.contact-section {
  padding: 70px 24px;
  margin-bottom: 70px;
  background: var(--surface);
}
.contact-form {
  width: min(960px, 100%);
  margin-inline: auto;
}
.contact-fields {
  display: grid;
  gap: 24px;
}
.contact-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}
.contact-field label {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.05em;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 16px 25px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.05em;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}
.contact-field textarea {
  height: 150px;
  min-height: 150px;
  resize: vertical;
}
.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.contact-field [aria-invalid="true"],
.contact-consent [aria-invalid="true"] {
  border-color: #bd3434;
  outline: 2px solid #bd3434;
  outline-offset: 2px;
}
.contact-select {
  position: relative;
}
.contact-select select {
  appearance: none;
  padding-right: 56px;
}
.contact-select img {
  position: absolute;
  top: 18px;
  right: 25px;
  width: 12px;
  height: 24px;
  pointer-events: none;
  transform: rotate(90deg);
}
.contact-field__error {
  margin: 5px 0 0;
  color: #a92323;
  font-size: 14px;
  line-height: 1.5;
}
.contact-notes {
  margin-top: 32px;
  padding-inline: 14px;
  color: #1e1e1e;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
.contact-notes p {
  margin: 0;
}
.contact-notes ul {
  margin: 0;
  padding-left: 1.5em;
  list-style: disc;
}
.contact-reference-email,
.privacy-document__reference-email {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
}
.contact-consent {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 42px;
  color: #1e1e1e;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  cursor: pointer;
}
.contact-consent input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 9px;
  accent-color: var(--navy);
  cursor: pointer;
}
.contact-consent input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.contact-consent a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-consent__suffix {
  white-space: nowrap;
}
.contact-submit {
  width: min(400px, 100%);
  min-height: 70px;
  padding: 17px 24px;
  border: 1px solid #306db6;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}
.contact-submit:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.contact-submit:disabled {
  cursor: not-allowed;
}
.contact-form-status {
  width: min(640px, 100%);
  margin: 0;
  padding: 20px;
  border: 1px solid #b5d9ee;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}
.contact-field__error[hidden],
.contact-form-status[hidden] {
  display: none;
}

.privacy-document {
  padding-block: 70px 140px;
  color: #1e1e1e;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}
.privacy-document p {
  margin: 0;
}
.privacy-document__intro {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
}
.privacy-document section {
  margin-top: 30px;
}
.privacy-document h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.privacy-document ol {
  margin: 0;
  padding-left: 1.5em;
  list-style: decimal;
}
.privacy-document .privacy-document__spaced-list {
  margin-top: 24px;
}
.privacy-document__contact {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.privacy-document__contact li::before {
  content: "- ";
}
.privacy-document .privacy-document__dates {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.4em;
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #8dbae8;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .editorial-card:hover {
    box-shadow:
      inset 0 0 0 1px #bbcce4,
      0 10px 30px #05194e0d;
  }
  .editorial-news-row:hover {
    background: #edf3f9;
  }
  .editorial-news-row:hover .editorial-news-row__arrow {
    transform: translateX(4px);
  }
  .editorial-pagination
    button:not(:disabled):not([aria-current="page"]):hover::before {
    background: #eef2ff;
  }
  .contact-submit:not(:disabled):hover {
    background: #163779;
    box-shadow: 0 6px 20px #05194e1a;
  }
}

@media (max-width: 1023px) {
  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .editorial-news-row {
    gap: 18px;
  }
  .editorial-news-row__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
  .privacy-document {
    padding-bottom: 100px;
  }
}

@media (max-width: 639px) {
  .editorial-section {
    padding-block: 48px;
  }
  .editorial-container {
    width: calc(100% - 40px);
  }
  .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .editorial-card__button {
    padding: 24px 20px;
  }
  .editorial-card__image {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.58;
    margin-bottom: 20px;
  }
  .editorial-card__title {
    min-height: 0;
    line-height: 1.6;
    letter-spacing: 0.02em;
    line-break: strict;
  }
  .editorial-card__title > span {
    -webkit-line-clamp: 3;
  }
  .editorial-card__meta {
    flex-wrap: wrap;
  }
  .editorial-pagination {
    gap: 2px;
    margin-top: 24px;
  }
  .editorial-decoration__left {
    left: -530px;
    opacity: 0.7;
  }
  .editorial-decoration__right {
    right: -290px;
    opacity: 0.7;
  }
  .editorial-news-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 14px 12px;
    padding: 20px;
  }
  .editorial-news-row__meta {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .editorial-news-date {
    width: auto;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .editorial-news-date span:first-child {
    margin: 0;
  }
  .editorial-news-date span:last-child {
    font-size: 22px;
    line-height: 28px;
  }
  .editorial-news-tag {
    width: auto;
    min-width: 104px;
  }
  .editorial-news-row__title {
    -webkit-line-clamp: 3;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    line-break: strict;
  }
  .contact-section {
    padding: 48px 20px;
    margin-bottom: 24px;
  }
  .contact-fields {
    gap: 22px;
  }
  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    padding-inline: 16px;
    letter-spacing: 0.02em;
  }
  .contact-select select {
    padding-right: 40px;
    font-size: 14px;
    letter-spacing: 0;
  }
  .contact-select img {
    right: 16px;
  }
  .contact-notes {
    padding: 0;
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    line-break: strict;
  }
  .contact-actions {
    margin-top: 36px;
  }
  .contact-consent {
    gap: 4px;
    font-size: 14px;
  }
  .contact-consent input {
    margin-left: 0;
  }
  .contact-submit {
    font-size: 18px;
    min-height: 60px;
  }
  .privacy-document {
    padding-block: 40px 56px;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.025em;
    line-break: strict;
  }
  .privacy-document__intro {
    font-size: 16px;
    line-height: 1.8;
  }
  .privacy-document h2 {
    font-size: 18px;
    line-height: 1.6;
  }
  .privacy-document section {
    margin-top: 32px;
  }
  .privacy-document ol li + li {
    margin-top: 8px;
  }
  .privacy-document .privacy-document__dates {
    margin-top: 36px;
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-card,
  .editorial-news-row,
  .editorial-news-row__arrow,
  .editorial-pagination button::before,
  .contact-field input,
  .contact-field select,
  .contact-field textarea,
  .contact-submit {
    transition: none;
  }
}
