@charset "utf-8";

/* ==========================================================================
   Column common
========================================================================== */
.column-page {
  padding: 0 0 4rem;
}

/* WordPress resets body padding; only standalone column pages need this offset. */
body:not(#frontpage) {
  padding-top: 7rem;
}

.column-shell.post-block {
  width: 100%;
  max-width: 97.5rem;
  margin: 0 auto;
  padding: 3.5rem 0 6.5rem;
  overflow: hidden;
  border-radius: 1.5rem;
}

.column-shell__inner {
  max-width: none;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.column-single__inner {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.column-heading {
  margin-bottom: 2.75rem;
}

@media screen and (max-width: 767px) {
  .column-page {
    /* Let the footer background sit behind the shell's rounded bottom edge. */
    padding-bottom: 0;
  }

  .column-page + .footer::after {
    /* Keep the decorative gradient within this page's footer. */
    max-height: 100%;
  }
}

@media screen and (min-width: 768px) {
  .column-page {
    padding-bottom: 5.5rem;
  }

  .column-shell.post-block {
    width: 88%;
    padding-top: 5rem;
    padding-bottom: 8rem;
    border-radius: 2.5rem;
  }

  .column-shell__inner,
  .column-single__inner {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .column-heading {
    margin-bottom: 4.5rem;
  }
}

/* ==========================================================================
   Column archive
========================================================================== */
.column-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem 1.5rem;
}

.column-card {
  width: 100%;
  margin: 0;
  min-width: 0;
}

.column-card__link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.column-card__link:focus-visible {
  outline: none;
}

.column-card__image {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.1rem;
  background: #d9d9d9;
}

.column-card__thumbnail,
.column-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.column-card__thumbnail {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.column-card__link:hover .column-card__thumbnail {
  transform: scale(1.03);
}

.column-card__body {
  padding: 0.9rem 0.25rem 0;
}

.column-card .column-card__title {
  display: -webkit-box;
  margin: 0 0 0.5rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--color-main-dark);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.6rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.column-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.column-more {
  margin-top: 4.5rem;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.column-more.is-complete {
  margin-top: 0;
}

.column-more__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

[data-column-pagination] {
  /* Appending above the control must not pull the reader down with it. */
  overflow-anchor: none;
}

.column-more[hidden],
.column-more [hidden] {
  display: none;
}

.column-more__label[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.65;
}

.column-more__label:focus-visible,
.column-more__fallback:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid rgba(1, 28, 130, 0.5);
  outline-offset: 4px;
}

.column-more__status {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.column-more__status:empty {
  margin: 0;
}

.column-more__status.is-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.column-more__fallback {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: var(--color-main-dark);
  text-decoration: underline;
}

.column-empty {
  margin: 4rem 0;
  text-align: center;
  font-size: 0.95rem;
}

@media screen and (max-width: 767px) {
  .column-shell.post-block {
    padding-top: 3.75rem;
    padding-bottom: 8.8125rem;
    border-radius: 2.5rem;
    background: #fbfbfb;
  }

  .column-page--archive .column-shell {
    padding-bottom: 8.803125rem;
  }

  .column-shell__inner {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .column-heading {
    margin-bottom: 3.75rem;
  }

  .column-heading .title01__text {
    font-weight: 700;
  }

  .column-heading::before {
    height: 3.009375rem;
  }

  .column-grid {
    row-gap: 2.5rem;
  }

  .column-card__image {
    /* Match the mobile frame's 326 x 183px image bounds. */
    aspect-ratio: 326 / 183;
    border-radius: 1.5rem;
  }

  .column-card__body {
    padding: 1.25rem 0 0;
  }

  .column-card .column-card__title {
    min-height: 1.625rem;
  }

  .column-more {
    margin-top: 5rem;
  }

  .column-more__label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.75rem;
    letter-spacing: 0.0625rem;
    text-decoration-thickness: from-font;
    text-decoration-skip-ink: none;
    text-underline-offset: auto;
    text-underline-position: from-font;
    transform: translateX(0.3125rem);
  }
}

@media screen and (min-width: 600px) {
  .column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1024px) {
  body:not(#frontpage) {
    padding-top: 12.75rem;
  }

  .column-page--archive .column-shell {
    padding-bottom: 9.75rem;
    background: #fbfbfb;
  }

  .column-shell__inner {
    padding-right: clamp(4rem, 5.208333vw, 6.25rem);
    padding-left: clamp(4rem, 5.208333vw, 6.25rem);
  }

  .column-heading {
    margin-bottom: 2.5rem;
    padding-left: 5.125rem;
  }

  .column-heading .title01__en {
    margin-bottom: 0;
    margin-left: 0.25rem;
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: 0.125rem;
  }

  .column-heading .title01__text {
    font-size: 2.375rem;
    font-weight: 700;
    line-height: 3.75rem;
    letter-spacing: 0.125rem;
  }

  .column-heading::before {
    top: 0.75rem;
    width: 3.75rem;
    height: 3.76175rem;
    margin-bottom: 0;
  }

  .column-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.75rem 1.25rem;
  }

  .column-card__image {
    aspect-ratio: 55 / 32;
    border-radius: 1.875rem;
  }

  .column-card__body {
    padding: 1.5rem 0.5rem 0;
  }

  .column-card .column-card__title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .column-card__excerpt {
    font-size: 1.125rem;
    line-height: 2rem;
  }

  .column-more {
    display: flex;
    justify-content: center;
    margin-top: 6.25rem;
  }

  .column-more__label {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.75rem;
    letter-spacing: 0.0625rem;
    text-decoration-thickness: from-font;
    text-decoration-skip-ink: none;
    text-underline-offset: auto;
    text-underline-position: from-font;
  }
}

/* ==========================================================================
   Column single: header
========================================================================== */
.column-single__inner {
  max-width: 75rem;
}

.column-single__header {
  display: grid;
  gap: 1.5rem;
}

.column-single__eyecatch {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.1rem;
  background: #d9d9d9;
}

.column-single__thumbnail,
.column-single__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.column-single__thumbnail {
  object-fit: cover;
}

.column-single__intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.column-single__title {
  margin: 0 0 1rem;
  color: var(--color-main-dark);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.6rem;
}

.column-single__date {
  display: block;
  margin-bottom: 0.9rem;
  color: #8b8b8b;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.column-single__divider {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  border-bottom: 1px solid #bdbdbd;
}

/* ==========================================================================
   Native share icon
========================================================================== */
.column-share {
  --column-share-size: 28px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}

.column-share[hidden],
.column-share__manual[hidden] {
  display: none;
}

.column-share__button {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: var(--column-share-size);
  height: var(--column-share-size);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* Enlarge the hit area without moving or enlarging the artwork. */
.column-share__button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.column-share__button:hover {
  opacity: 0.75;
}

.column-share__button:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 6px;
}

.column-share__button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.5;
}

.column-share__icon {
  display: block;
  width: 100%;
  height: 100%;
}

.column-share__feedback {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  width: max-content;
  max-width: min(16rem, calc(100vw - 4rem));
  color: var(--color-main);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  pointer-events: none;
}

.column-share__manual {
  box-sizing: border-box;
  width: 16rem;
  max-width: 100%;
  min-height: 2.25rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--color-text);
  border-radius: 0.25rem;
  background: #fff;
  color: var(--color-text);
  font-size: 1rem;
}

.column-share__manual:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
}

/* ==========================================================================
   Column single: entry content
========================================================================== */
.column-entry__content {
  margin-top: 3rem;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75rem;
}

.column-entry__content::after {
  content: "";
  display: block;
  clear: both;
}

.column-entry__content > :first-child {
  margin-top: 0;
}

.column-entry__content > :last-child {
  margin-bottom: 0;
}

.column-entry__content p {
  margin: 0 0 1.8em;
  line-height: inherit;
}

.column-entry__content h2,
.column-entry__content h3,
.column-entry__content h4 {
  clear: both;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.75;
}

.column-entry__content h2 {
  margin: 3.25em 0 1em;
  font-size: 1.35em;
}

.column-entry__content h3 {
  margin: 2.75em 0 0.9em;
  padding-left: 0.8em;
  border-left: 3px solid var(--color-main);
  font-size: 1.18em;
}

.column-entry__content h4 {
  margin: 2.25em 0 0.8em;
  font-size: 1.05em;
}

.column-entry__content a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.column-entry__content strong {
  font-weight: 700;
}

.column-entry__content ul,
.column-entry__content ol {
  margin: 0 0 2em;
  padding-left: 1.6em;
}

.column-entry__content li + li {
  margin-top: 0.45em;
}

.column-entry__content blockquote {
  margin: 2.5em 0;
  padding: 1.25em 1.5em;
  border-left: 4px solid var(--color-main);
  background: #f3f4f8;
}

.column-entry__content blockquote > :last-child {
  margin-bottom: 0;
}

.column-entry__content table {
  display: block;
  width: 100%;
  margin: 2.5em 0;
  overflow-x: auto;
  border-collapse: collapse;
  white-space: nowrap;
}

.column-entry__content th,
.column-entry__content td {
  padding: 0.8em 1em;
  border: 1px solid #d7d7d7;
  text-align: left;
}

.column-entry__content th {
  background: #f3f4f8;
  font-weight: 700;
}

.column-entry__content img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.column-entry__content p > img,
.column-entry__content > img,
.column-entry__content .wp-caption {
  display: block;
  margin: 2.5rem auto;
}

.column-entry__content .aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.column-entry__content .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.column-entry__content .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.column-entry__content .wp-caption {
  max-width: 100%;
}

.column-entry__content .wp-caption img {
  display: block;
  margin: 0 auto;
}

.column-entry__content .wp-caption-text {
  margin: 0.65rem 0 0;
  color: #777;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   Column single: footer
========================================================================== */
.column-single__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
}

.column-single__footer .column-share {
  --column-share-size: 33.6px;
  align-items: center;
}

.column-single__footer .column-share__feedback {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.column-single__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  min-height: 3.1rem;
  margin-top: 0;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: #555;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.column-single__back:hover {
  background: var(--color-main);
}

.column-single__back:focus-visible {
  outline: 3px solid rgba(1, 28, 130, 0.35);
  outline-offset: 4px;
}

@media screen and (max-width: 599px) {
  .column-entry__content .alignleft,
  .column-entry__content .alignright {
    float: none;
    margin: 2.5rem auto;
  }
}

/* ==========================================================================
   Column single: mobile Figma layout (390px reference)
========================================================================== */
@media screen and (max-width: 1023px) {
  .column-page--single .column-shell {
    padding-top: 3rem;
    padding-bottom: 7.5rem;
    border-radius: 2.5rem;
    background: #fbfbfb;
  }

  .column-single__inner {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .column-single__header {
    gap: 1.25rem;
  }

  .column-single__eyecatch {
    aspect-ratio: 326 / 183;
    border-radius: 1.5rem;
  }

  .column-single__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .column-single__title {
    grid-column: 1 / -1;
    margin-bottom: 1.75rem;
    line-height: 2.25rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .column-single__date {
    margin: 0;
    color: #858585;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .column-single__divider {
    grid-column: 1 / -1;
    margin-top: 2.5rem;
    border-color: #858585;
  }

  .column-single__intro > .column-share {
    justify-self: end;
    align-items: flex-end;
  }

  .column-single__intro > .column-share.is-manual-copy {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }

  .column-single__intro .column-share__feedback {
    right: 0;
    left: auto;
    text-align: right;
  }

  .column-entry__content {
    margin-top: 2.5rem;
    font-size: 0.875rem;
    line-height: 1.75rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .column-entry__content p {
    margin-bottom: 1.25rem;
  }

  .column-entry__content h2 {
    margin: 1.25rem 0 0.75rem;
    color: var(--color-text);
    font-size: 1.125rem;
    line-height: 2.125rem;
    letter-spacing: 0.0625rem;
  }

  .column-entry__content img {
    border-radius: 1.5rem;
  }

  .column-entry__content > img:where(:not(.alignleft):not(.alignright):not(.aligncenter)),
  .column-entry__content p > img:where(:not(.alignleft):not(.alignright):not(.aligncenter)) {
    width: 100%;
    margin: 3.75rem 0 1.25rem;
  }

  /* The desktop two-up image row becomes a vertical stack on mobile. */
  .column-entry__content p:has(> img + img) {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 3.75rem 0 1.25rem;
  }

  .column-entry__content p:has(> img + img) > img {
    float: none;
    width: 100%;
    margin: 0;
  }

  .column-single__footer .column-share:not([hidden]) + .column-single__back {
    margin-top: 2.5rem;
  }

  .column-single__back {
    width: 100%;
    min-width: 0;
    min-height: 4.25rem;
    border-radius: 4.375rem;
    background: var(--color-text);
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: 0.0625rem;
  }
}

/* ==========================================================================
   Column single: desktop Figma layout (1920px reference)
========================================================================== */
@media screen and (min-width: 1024px) {
  .column-page--single .column-shell {
    padding-top: 6.25rem;
    padding-bottom: 12.5rem;
    background: #fbfbfb;
  }

  .column-single__inner {
    width: calc(100% - 6rem);
    max-width: 75rem;
    padding: 0;
  }

  .column-single__header {
    grid-template-columns: minmax(0, 49fr) minmax(0, 46fr);
    gap: clamp(2rem, 3.125vw, 3.75rem);
    align-items: stretch;
  }

  .column-single__eyecatch {
    align-self: start;
    aspect-ratio: 588 / 330;
    border-radius: 1.875rem;
  }

  .column-single__intro {
    position: relative;
    justify-content: center;
    /* Keep long titles and the share icon clear of the bottom divider. */
    padding: 2.125rem 0 1.75rem;
  }

  .column-single__title {
    margin-bottom: 1.25rem;
    font-size: 1.375rem;
    line-height: 2.25rem;
    letter-spacing: 0.1375rem;
    overflow-wrap: anywhere;
  }

  .column-single__date {
    margin-bottom: 1.75rem;
    color: #858585;
    font-size: 1rem;
    font-weight: 500;
    line-height: 2.0625rem;
    letter-spacing: 0.1rem;
  }

  .column-single__divider {
    position: absolute;
    right: 0;
    bottom: -0.03125rem;
    margin: 0;
    border-color: #858585;
  }

  .column-entry__content {
    margin-top: 3rem;
    font-size: 1rem;
    line-height: 2rem;
    letter-spacing: 0.1rem;
    overflow-wrap: anywhere;
  }

  .column-entry__content p {
    margin-bottom: 1.75rem;
  }

  .column-entry__content h2 {
    margin: 1.75rem 0 0.75rem;
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 2.25rem;
    letter-spacing: 0.125rem;
  }

  .column-entry__content img {
    border-radius: 1.875rem;
  }

  .column-entry__content > img:where(:not(.alignleft):not(.alignright):not(.aligncenter)),
  .column-entry__content p > img:where(:not(.alignleft):not(.alignright):not(.aligncenter)) {
    width: min(100%, 36.75rem);
    margin: 3.75rem 0 1.75rem;
  }

  /* Classic-editor paragraphs containing adjacent images form a two-up row. */
  .column-entry__content p:has(> img + img) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 3.75rem 0 1.75rem;
  }

  .column-entry__content p:has(> img + img) > img {
    float: none;
    width: calc((100% - 1.5rem) / 2);
    margin: 0;
  }

  .column-single__footer {
    margin-top: 5rem;
  }

  .column-single__footer .column-share:not([hidden]) + .column-single__back {
    margin-top: 5rem;
  }

  .column-single__back {
    width: 22.0625rem;
    max-width: 100%;
    min-height: 5rem;
    border-radius: 4.375rem;
    background: var(--color-text);
    font-size: 1.375rem;
    line-height: 1.75rem;
    letter-spacing: 0.0625rem;
  }
}
