/* Styles for the "とぅむぶたとは" page template (page-templates/about.php) only. */

.about-page__section {
    padding-block: clamp(70px, 10vw, 160px);
}

.about-page__section--intro {
    background-color: var(--color-bg-base);
}

.about-page__section--field {
    background-color: var(--color-bg-sub);
}

.about-page__section--pause {
    background-color: var(--color-bg-base);
    padding-block: clamp(96px, 14vw, 200px);
}

.about-page__section--details {
    background-color: var(--color-bg-base);
}

.about-page__section--closing {
    background-color: var(--color-bg-base);
    padding-block: clamp(96px, 14vw, 200px);
}

.about-page__inner {
    max-width: 640px;
    margin-inline: auto;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    text-align: center;
}

.about-page__heading {
    margin: 0 0 24px;
    font-size: clamp(24px, 4vw, 32px);
}

.about-page__body {
    margin: 0 0 24px;
}

.about-page__body:last-of-type {
    margin-bottom: 0;
}

.about-page__body--loose {
    line-height: 2.2;
}

.about-page__image {
    margin-top: 40px;
}

.about-page__image img {
    margin-inline: auto;
}

/* Intro character stays modest in width (~60-65% of the padded
   container) so it doesn't fill the mobile screen edge to edge;
   the field image below (no max-width override) is allowed to
   reach the container's own 20px side padding, which is what makes
   it read as larger than the intro image. */
.about-page__image--basic img {
    max-width: 62%;
}

.about-page__closing {
    margin: 0 0 32px;
    font-size: clamp(18px, 3.5vw, 22px);
}

.about-page__link {
    margin: 0;
}

.about-page__link a {
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
}

.about-page__link a:hover,
.about-page__link a:focus-visible {
    color: var(--color-pink);
}

/*
 * The closing section above already ends with a generous
 * padding-bottom (clamp(96px, 14vw, 200px)); reusing that as the gap
 * before this link keeps the "十分な余白" without stacking two large
 * gaps. padding-top is zeroed here so the base .about-page__section
 * rule doesn't add its own top padding on top of that.
 */
.about-page__section--back-home {
    background-color: var(--color-bg-base);
    padding-top: 0;
    padding-bottom: clamp(64px, 10vw, 120px);
}
