/* Loaded only by template/stsr-page.php. Match the shared #common layout on #top. */
#top #wrapper {
    background: url(../image/common/bg_wrapper.jpg) no-repeat center top;
}

#top #container {
    width: 980px;
    margin: 0 auto;
}

/* Match #locator without using the ID removed by current.js on draft previews. */
#stsr-locator {
    width: 980px;
    margin: 9px 0;
    font-size: 11px;
    line-height: 12px;
    color: #6E9447;
}

#stsr-locator a {
    color: #6E9447;
}

#top .stsr-page #contents_right {
    margin-top: 70px;
}

@media only screen and (max-width: 1024px) {
    #top #wrapper {
        background-position: -545px -70px;
    }

    #top #container {
        width: 100%;
    }

    #stsr-locator {
        width: auto;
        margin: 60px 0 0 8px;
    }

    #top .stsr-page #contents_right {
        margin-top: 144px;
    }
}

@media only screen and (max-width: 979px) {
    #top .stsr-page #contents_right {
        float: none;
        margin-top: 40px;
    }
}

@media only screen and (max-width: 690px) {
    #stsr-locator {
        font-size: 8px;
    }
}

/* --------------------------------------------------------------------------
   STSR body foundation: variables, scoped resets and shared components.
   -------------------------------------------------------------------------- */
.stsr-content {
    --stsr-green: #6E9447;
    --stsr-green-dark: #3D5A23;
    --stsr-green-mid: #557A33;
    --stsr-btn: #6C9E3F;
    --stsr-border: #DDE9CF;
    --stsr-bg: #F4F8EE;
    --stsr-bg-gray: #F9FAF6;
    --stsr-text: #404040;
    --stsr-note: #666;
    font-size: 14px;
    line-height: 1.8;
    color: var(--stsr-text);
    overflow-wrap: anywhere;
}

.stsr-content,
.stsr-content::before,
.stsr-content::after,
.stsr-content *,
.stsr-content *::before,
.stsr-content *::after {
    box-sizing: border-box;
}

.stsr-content p,
.stsr-content ul,
.stsr-content ol,
.stsr-content figure {
    margin: 0;
    padding: 0;
}

.stsr-content img {
    max-width: 100%;
    height: auto;
}

.stsr-content .stsr-section {
    margin-top: 64px;
}

.stsr-content > .stsr-section:first-of-type {
    margin-top: 0;
}

.stsr-content .stsr-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--stsr-green);
    font-size: 20px;
    font-weight: bold;
    color: var(--stsr-text);
}

.stsr-content .stsr-heading svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--stsr-green);
}

.stsr-content .stsr-lead {
    margin-bottom: 16px;
    font-size: 14px;
}

.stsr-content .stsr-box {
    border: 1px solid var(--stsr-border);
    padding: 24px;
    background: #fff;
}

.stsr-content .stsr-box--tint {
    background: var(--stsr-bg);
}

.stsr-content .stsr-box__title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--stsr-green-dark);
}

.stsr-content .stsr-note {
    font-size: 12px;
    color: var(--stsr-note);
}

.stsr-content .stsr-grid {
    display: grid;
    gap: 16px;
    list-style: none;
}

.stsr-content .stsr-grid > * {
    min-width: 0;
}

.stsr-content .stsr-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stsr-content .stsr-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Set --stsr-photo-ratio on each photo group when implementing its section. */
.stsr-content .stsr-photo img {
    display: block;
    width: 100%;
    aspect-ratio: var(--stsr-photo-ratio, 3 / 2);
    object-fit: cover;
}

.stsr-content .stsr-photo figcaption {
    margin-top: 8px;
    border: 1px solid var(--stsr-border);
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
}

.stsr-content .stsr-list {
    list-style: disc;
    padding-left: 1.4em;
}

/* utility.css sets list-style:none on li, so restore markers on each item. */
.stsr-content .stsr-list > li {
    list-style: disc;
}

.stsr-content .stsr-list > li + li {
    margin-top: 4px;
}

/* The title background occupies 100px; shared height:auto otherwise collapses it.
   Keep the existing 30px bottom margin and the independently positioned sidebar. */
.stsr-page .subtitle02 {
    min-height: 100px;
}

/* S1: main photo and introductory copy. */
.stsr-content .stsr-hero__image img {
    display: block;
    width: 100%;
    aspect-ratio: 712 / 360;
    object-fit: cover;
    object-position: center;
}

.stsr-content .stsr-hero__copy {
    margin-top: 18px;
    border: 1px solid var(--stsr-border);
    padding: 22px 24px;
    background: var(--stsr-bg-gray);
}

.stsr-content .stsr-hero__catch {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
    color: var(--stsr-green-dark);
}

.stsr-content .stsr-hero__sub {
    margin-top: 8px;
    font-size: 15px;
    font-weight: bold;
    color: var(--stsr-green);
}

@media only screen and (max-width: 1024px) {
    .stsr-content .stsr-hero__catch {
        font-size: 22px;
    }
}

@media only screen and (max-width: 690px) {
    .stsr-content .stsr-hero__copy {
        padding: 20px 16px;
    }

    .stsr-content .stsr-hero__catch {
        font-size: 20px;
    }
}

/* Preserve the calibrated title geometry when shared CSS loads in theme order. */
.stsr-page .subtitle02 {
    padding-top: 32px;
    margin-bottom: 30px;
    text-indent: 20px;
}

/* S1–S9 body components. Existing title, hero and sidebar spacing stays above. */
.stsr-content .stsr-icon-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.stsr-content .stsr-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stsr-content .stsr-heading {
    line-height: 1.5;
}

.stsr-content .stsr-heading > span {
    min-width: 0;
}

.stsr-content .stsr-stack {
    margin-top: 16px;
}

.stsr-content .stsr-text-gap {
    margin-top: 8px;
}

.stsr-content .stsr-note--spaced {
    margin-top: 12px;
}

.stsr-content .stsr-hero__scenes {
    margin-top: 18px;
}

.stsr-content .stsr-photo--aomori img {
    object-position: center 65%;
}

.stsr-content .stsr-photo--niigata img {
    object-position: center 40%;
}

.stsr-content .stsr-about__intro .stsr-box__title {
    color: var(--stsr-green-mid);
}

.stsr-content .stsr-title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stsr-content .stsr-title-with-icon .stsr-icon {
    color: var(--stsr-green);
}

.stsr-content .stsr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.stsr-content .stsr-tags > li {
    flex: 0 0 auto;
    border: 1px solid var(--stsr-green);
    padding: 6px 16px;
    font-size: 16px;
    font-weight: bold;
    color: var(--stsr-green-dark);
    text-align: center;
    white-space: nowrap;
}

.stsr-content .stsr-tags sup {
    font-size: .6em;
}

.stsr-content .stsr-partner {
    border: 1px solid var(--stsr-border);
    border-top: 3px solid var(--stsr-green);
    padding: 16px;
}

.stsr-content .stsr-partner__role {
    font-size: 12px;
    font-weight: bold;
    color: var(--stsr-green);
}

.stsr-content .stsr-partner__name {
    margin: 4px 0;
    font-size: 15px;
    font-weight: bold;
    color: var(--stsr-text);
}

.stsr-content .stsr-goals {
    grid-auto-rows: 1fr;
}

.stsr-content .stsr-goal__icon {
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    color: var(--stsr-green);
}

.stsr-content .stsr-goal__icon--water {
    color: #3A78B5;
}

.stsr-content .stsr-goal__icon--mountain {
    color: #8A5A2B;
}

.stsr-content .stsr-fields {
    --stsr-photo-ratio: 7 / 4;
}

.stsr-content .stsr-fields img {
    object-position: center 75%;
}

/* The reference panel takes approximately 36% of the feature card. */
.stsr-content .stsr-feature--stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
    padding: 0;
}

.stsr-content .stsr-stat__body {
    min-width: 0;
    padding: 24px;
}

.stsr-content .stsr-stat__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px;
    background: var(--stsr-bg);
    text-align: center;
}

.stsr-content .stsr-stat__label {
    font-size: 13px;
    font-weight: bold;
    color: var(--stsr-green);
}

.stsr-content .stsr-stat__value {
    margin: 4px 0;
    font-size: 40px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--stsr-green-dark);
}

.stsr-content .stsr-stat__value span {
    font-size: 18px;
}

.stsr-content .stsr-machine {
    padding: 0;
    overflow: hidden;
}

.stsr-content .stsr-machine__image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #fff;
    overflow: hidden;
}

.stsr-content .stsr-machine__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.stsr-content .stsr-machine__image--temporary img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.stsr-content .stsr-machine__image--field img {
    object-fit: cover;
}

.stsr-content .stsr-machine__body {
    padding: 16px 18px 20px;
}

.stsr-content .stsr-machine__name {
    margin: 6px 0 12px;
    font-size: 18px;
    font-weight: bold;
    color: var(--stsr-green-dark);
}

.stsr-content .stsr-machine__target {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: bold;
    color: var(--stsr-green);
}

.stsr-content .stsr-machine__description {
    font-size: 13px;
}

.stsr-content .stsr-callout {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--stsr-bg);
    font-weight: bold;
    color: var(--stsr-green-dark);
}

.stsr-content .stsr-steps {
    border: 1px solid var(--stsr-border);
    list-style: none;
}

.stsr-content .stsr-steps > li {
    display: grid;
    grid-template-columns: minmax(0, 100px) minmax(0, 1fr);
}

.stsr-content .stsr-steps > li + li {
    border-top: 1px solid var(--stsr-border);
}

.stsr-content .stsr-steps__label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: var(--stsr-bg);
    font-weight: bold;
    color: var(--stsr-green-dark);
}

.stsr-content .stsr-steps__body {
    min-width: 0;
    padding: 14px 20px;
}

.stsr-content .stsr-steps__body h4 {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: bold;
    color: var(--stsr-green-dark);
}

.stsr-content .stsr-checklist {
    margin-top: 20px;
    border: 1px solid var(--stsr-border);
    padding: 20px 24px;
    background: var(--stsr-bg-gray);
}

.stsr-content .stsr-checklist__title {
    margin-bottom: 8px;
    font-weight: bold;
}

.stsr-content .stsr-checklist .stsr-list {
    columns: 2;
    column-gap: 24px;
}

.stsr-content .stsr-checklist li {
    break-inside: avoid;
}

.stsr-content .stsr-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.stsr-content .stsr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 260px;
    max-width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.stsr-content .stsr-btn .stsr-icon {
    width: 18px;
    height: 18px;
}

.stsr-content .stsr-btn--primary {
    background: var(--stsr-btn);
    color: #fff;
}

.stsr-content .stsr-btn--outline {
    border: 2px solid var(--stsr-btn);
    background: #fff;
    color: var(--stsr-green-dark);
}

.stsr-content a.stsr-btn:hover {
    opacity: .85;
    text-decoration: none;
}

.stsr-content a.stsr-btn:focus-visible {
    outline: 2px solid var(--stsr-green-dark);
    outline-offset: 3px;
}

.stsr-content .stsr-btn--unavailable {
    border-color: var(--stsr-border);
    background: var(--stsr-bg-gray);
    color: var(--stsr-note);
}

.stsr-content .stsr-instagram-status {
    margin-top: 12px;
    text-align: center;
}

.stsr-content .stsr-consultation {
    padding-bottom: 64px;
}

/* PC vertical rhythm measured from the 2x reference at a 1280px viewport.
   The last frame to the next heading rule is about 91px: 52px gap + 40px
   heading content. Keep S1 and all existing tablet/mobile rules unchanged. */
@media only screen and (min-width: 1025px) {
    .stsr-content > .stsr-section:not(.stsr-hero) {
        margin-top: 52px;
    }

    .stsr-content .stsr-box {
        padding: 20px 24px;
        font-size: 13px;
    }

    .stsr-content .stsr-box__title {
        line-height: 1.4;
    }

    .stsr-content .stsr-about__intro {
        font-size: 14px;
    }

    /* The reference material tags are approximately 35px high. */
    .stsr-content .stsr-tags > li {
        line-height: 1.3;
    }

    .stsr-content .stsr-partner__role {
        line-height: 1.2;
    }

    .stsr-content .stsr-partner__name {
        font-size: 14px;
        line-height: 1.5;
    }

    .stsr-content .stsr-partner .stsr-note {
        line-height: 1.4;
    }

    .stsr-content .stsr-goals > .stsr-box {
        padding: 16px;
    }

    .stsr-content .stsr-goals .stsr-box__title {
        font-size: 14px;
        line-height: 1.5;
    }

    .stsr-content .stsr-goal__icon {
        margin-bottom: 8px;
    }

    .stsr-content .stsr-goals .stsr-note {
        margin-top: 8px;
        line-height: 1.6;
    }

    /* 16px text + 12px padding + 2px border matches the 30px captions. */
    .stsr-content .stsr-fields .stsr-photo figcaption {
        line-height: 16px;
    }

    .stsr-content .stsr-stat__body {
        padding: 20px 24px;
    }

    .stsr-content .stsr-feature--stat,
    .stsr-content .stsr-machine {
        padding: 0;
    }

    .stsr-content .stsr-machine__name {
        line-height: 1.5;
    }

    .stsr-content .stsr-callout {
        padding: 10px 16px;
    }

    .stsr-content .stsr-section[aria-labelledby="stsr-preparation"] .stsr-list {
        line-height: 1.7;
    }

    /* Content-driven rows: approximately 69px for one description line,
       93px for two, including the separator. No fixed heights or clipping. */
    .stsr-content .stsr-steps__body {
        padding: 10px 20px;
        font-size: 13px;
    }

    .stsr-content .stsr-steps__body h4 {
        line-height: 1.4;
    }

    .stsr-content .stsr-checklist {
        padding: 16px 24px;
        font-size: 13px;
        line-height: 1.7;
    }

    .stsr-content .stsr-checklist__title {
        margin-bottom: 6px;
    }

    .stsr-content .stsr-checklist .stsr-list > li + li {
        margin-top: 2px;
    }
}

@media only screen and (max-width: 1024px) {
    .stsr-content .stsr-box,
    .stsr-content .stsr-stat__body {
        padding: 16px;
    }

    .stsr-content .stsr-feature--stat,
    .stsr-content .stsr-machine {
        padding: 0;
    }
}

@media only screen and (max-width: 690px) {
    .stsr-content .stsr-section {
        margin-top: 48px;
    }

    .stsr-content > .stsr-section:first-of-type {
        margin-top: 0;
    }

    .stsr-content .stsr-heading {
        font-size: 18px;
    }

    .stsr-content .stsr-goals {
        grid-auto-rows: auto;
    }

    .stsr-content .stsr-grid--3,
    .stsr-content .stsr-goals,
    .stsr-content .stsr-feature--stat {
        grid-template-columns: minmax(0, 1fr);
    }

    .stsr-content .stsr-stat__panel {
        padding: 20px 16px;
    }

    .stsr-content .stsr-machine__image {
        aspect-ratio: 16 / 9;
    }

    .stsr-content .stsr-checklist {
        padding: 20px 16px;
    }
}

@media only screen and (max-width: 480px) {
    .stsr-content {
        font-size: 13.5px;
    }

    .stsr-content .stsr-grid--2,
    .stsr-content .stsr-steps > li {
        grid-template-columns: minmax(0, 1fr);
    }

    .stsr-content .stsr-steps__label {
        justify-content: flex-start;
        padding: 6px 16px;
    }

    .stsr-content .stsr-steps__body {
        padding: 14px 16px;
    }

    .stsr-content .stsr-checklist .stsr-list {
        columns: 1;
    }

    .stsr-content .stsr-cta {
        flex-direction: column;
        align-items: center;
    }

    .stsr-content .stsr-btn {
        width: 100%;
        max-width: 360px;
    }

    .stsr-content .stsr-consultation {
        padding-bottom: 48px;
    }
}
