/* =============================================

   1. ページ全体

   ============================================= */

.breadcrumb {
    padding: 240px 5% 15px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 1rem;
    line-height: 1.5;
}

.breadcrumb ul li {
    display: flex;
    align-items: center;
}

.breadcrumb ul li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    font-size: 1rem;
}

.breadcrumb ul li a {
    color: #79AD70;
    text-decoration: none;
    font-weight: 500;
}

.about-page {
    position: relative;
    overflow: hidden;
}

.about-page::before {
    content: "";
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 4200px;
    background-image: url("../svg/haikei_blue.svg"), url("../svg/haikei_green.svg"), url("../svg/haikei_Yellow.svg");
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: left -160px top 140px, right -180px top 1890px, right -260px top 3060px;
    background-size: 84%, 54%, 84%;
    z-index: -1;
    pointer-events: none;
}

.about-page main {
    padding: 0 5% 120px;
}

.about-page section {
    position: relative;
    margin-bottom: 140px;
}

.about-page section h2 {
    margin-bottom: 50px;
}

.about-page .section-intro {
    font-size: clamp(18px, 3.8vw, 28px);
    line-height: 1.8;
    margin: 0 auto 35px;
}

.greeting-card,
.process-index,
.feature-slider,
.about-page .section-intro {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================

   2. ヒーロー

   ============================================= */

.about-hero {
    padding: 30px 0 90px;
    margin-left: -5%;
    margin-right: -5%;
}

.about-hero .bg-svg {
    background-image: url("../svg/green.svg");
}

.about-local-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 10px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5%;
    box-sizing: border-box;
}

.about-local-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    padding: 8px 30px 8px 0;
    color: #333;
    text-decoration: none;
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    line-height: 1.5;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

.about-local-nav a::after {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 3px solid #9AD37F;
    border-right: 3px solid #9AD37F;
    transform: rotate(45deg);
    position: absolute;
    right: 4px;
    top: 50%;
    margin-top: -7px;
    transition: transform 0.3s ease;
}

.about-local-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 1px;
    border-bottom: 1px solid #79AD70;
    transition: width 0.3s ease;
}

.about-local-nav a:hover {
    transform: translateY(-2px);
    color: #79AD70;
}

.about-local-nav a:hover::before {
    width: calc(100% - 28px);
}

.about-local-nav a:hover::after {
    transform: rotate(45deg) scale(1.15);
}

/* =============================================

   3. 下層見出し

   ============================================= */

.about-subheading {
    max-width: 1000px;
    margin: 0 auto 34px;
}

.about-subheading h2 {
    display: inline-block;
    width: auto;
    margin: 0;
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: #333;
}

/* =============================================

   4. ごあいさつ

   ============================================= */

.greeting-card {
    display: grid;
    gap: 28px;
    padding: 0;
}

.greeting-photo img {
    width: 100%;
    display: block;
    border-radius: 22px;
    object-fit: cover;
}

.greeting-photo {
    width: min(92%, 420px);
    margin: 0 auto;
}

.doctor-role {
    color: #333;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 6px auto -6px;
    width: min(92%, 420px);
    text-align: center;
}

.doctor-name {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    color: #333;
    margin: 0 auto 8px;
    width: min(92%, 420px);
    text-align: center;
}

.doctor-message {
    font-size: clamp(1.08rem, 4.2vw, 1.28rem);
    line-height: 1.95;
    margin-bottom: 18px;
}

.greeting-meta {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.greeting-meta-block {
    padding: 0;
}

.greeting-meta-block h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 2px dashed #ccc;
}

.greeting-meta-block ul {
    display: grid;
    gap: 10px;
    padding-left: 1.3em;
    line-height: 1.8;
}

/* =============================================

   5. 受診のながれ

   ============================================= */

.process-index {
    display: grid;
    gap: 0;
}

.process-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 0 0;
    position: relative;
    z-index: 2;
}

.process-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 70px;
    padding: 13px 18px 14px;
    border: none;
    border-radius: 18px 18px 0 0;
    background: #E7EEF7;
    color: #35516E;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.process-tab.is-active {
    background: #F6E8B1;
    color: #5B4A18;
    min-height: 90px;
    padding-top: 17px;
    padding-bottom: 18px;
    margin-bottom: -3px;
}

.tab-step {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 700;
}

.process-tab.is-active .tab-step {
    color: #8A6B12;
}

.tab-label {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    font-weight: 700;
}

.tab-label br {
    display: inline;
}

.process-panels {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.process-panel {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-self: stretch;
    align-self: stretch;
    padding: 40px 24px 28px;
    min-height: 30rem;
    background: #fff;
    border-radius: 28px;
}

.process-panel[hidden] {
    display: none !important;
}

.process-panel.is-active {
    background: #F6E8B1;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.process-panel h3 {
    font-size: clamp(1.7rem, 6vw, 2.1rem);
    margin-bottom: 18px;
    color: #333;
}

.process-panel p,
.process-panel li {
    font-size: clamp(0.98rem, 3.7vw, 1.08rem);
    line-height: 1.9;
}

.process-panel ul {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-left: 1.3em;
}

.process-items-box {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 18px 18px 18px 20px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 22px;
}

.process-items-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.process-items-copy p {
    margin: 0;
    font-weight: 700;
}

.process-items-box ul {
    margin-top: 10px;
}

.process-items-figure {
    flex: 0 0 auto;
}

.process-items-bird {
    display: block;
    width: clamp(60px, 15vw, 96px);
    height: auto;
}

.process-panel a {
    color: #4D8E83;
}

.process-panel-bird {
    display: flex;
    margin-top: 12px;
    pointer-events: none;
}

.process-panel-bird-left {
    justify-content: flex-start;
}

.process-panel-bird-right {
    justify-content: flex-end;
}

.process-panel-bird-image {
    width: clamp(68px, 16vw, 112px);
    height: auto;
}

.process-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 14px auto 10px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 22px;
}

.process-contact-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0 78px 0 18px;
    color: #35516E;
    text-decoration: none;
}

.process-contact-number {
    position: relative;
    z-index: 1;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.3s ease;
}

.process-contact-link:hover .process-contact-number {
    color: #79AD70;
    transform: scale(1.05);
}

.process-contact-icon-tel {
    position: absolute;
    left: 0;
    bottom: -8px;
    width: clamp(52px, 11vw, 88px);
    height: auto;
    transform: rotate(-8deg);
}

.process-contact-icon-bird {
    position: absolute;
    right: -6px;
    top: 50%;
    width: clamp(48px, 10vw, 74px);
    height: auto;
    transform: translateY(-44%);
}

.process-contact-text {
    margin: 2px 0 0;
    text-align: center;
    font-size: clamp(0.92rem, 3.6vw, 1.02rem);
    line-height: 1.7;
    color: #35516E;
}

#process-panel-1 strong {
    color: #c53b3b;
    text-decoration: underline;
    text-decoration-color: #c53b3b;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

/* =============================================

   6. 当院の特徴

   ============================================= */

.feature-slider {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.feature-viewport {
    position: relative;
    min-height: 620px;
    display: grid;
}

.feature-slide {
    display: none;
}

.feature-slide.is-active {
    display: grid;
    gap: 24px;
    align-items: start;
}

.feature-slide.is-active .feature-slide-image {
    animation: feature-image-reveal 0.9s cubic-bezier(0.25, 0.9, 0.3, 1) both;
}

.feature-slide.is-active .feature-slide-body {
    animation: feature-body-reveal 0.85s cubic-bezier(0.25, 0.9, 0.3, 1) both;
    animation-delay: 0.12s;
}

.feature-slide-image img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.feature-slide-image-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4 / 3;
}

.feature-slide-image-portrait img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 22px;
    clip-path: inset(0 round 22px);
}

.feature-kicker {
    color: #4D8E83;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.feature-slide-body h3 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    margin-bottom: 18px;
}

.feature-slide-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    padding: 22px 20px;
    min-height: 250px;
    border-radius: 24px;
    background: rgba(214, 236, 205, 0.78);
}

.feature-slide-body p {
    font-size: clamp(1rem, 3.8vw, 1.08rem);
    line-height: 1.9;
}

@keyframes feature-image-reveal {
    0% {
        opacity: 0;
        transform: translateX(-10px) scale(0.992);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes feature-body-reveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 14px;
}

.feature-nav {
    border: none;
    background: #79AD70;
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 1.8rem;
    cursor: pointer;
}

.feature-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.feature-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #C5D9C0;
    cursor: pointer;
}

.feature-dot.is-active {
    background: #79AD70;
    transform: scale(1.15);
}

/* =============================================

   7. PC版

   ============================================= */

@media (min-width: 1200px) {
    .about-page::before {
        top: 160px;
        height: 3600px;
        background-position: left -240px top 180px, right -300px top 1440px, right -360px top 2520px;
        background-size: 54%, 40%, 56%;
    }

    .breadcrumb {
        padding-top: 300px;
    }

    .about-page main {
        padding-bottom: 150px;
    }

    .about-page section {
        margin-bottom: 180px;
    }

    .about-hero {
        padding-top: 10px;
        padding-bottom: 110px;
    }

    .about-hero .bg-svg {
        width: 30vw;
    }

    .about-hero .en {
        font-size: 30px;
    }

    .about-hero img {
        width: 4vw;
    }

    .about-hero .jp {
        font-size: 40px;
    }

    .about-local-nav {
        justify-content: center;
        gap: 24px 40px;
    }

    .about-local-nav a {
        font-size: 20px;
    }

    .greeting-photo {
        max-width: 400px;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .greeting-meta {
        gap: 28px;
        grid-column: 1 / -1;
        margin-top: 12px;
    }

    .greeting-card {
        grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
        column-gap: 42px;
        row-gap: 18px;
        align-items: start;
    }

    .doctor-message {
        grid-column: 2;
        align-self: start;
        grid-row: 1 / span 2;
    }

    .doctor-name {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 400px;
        align-self: start;
        margin: 0 0 6px;
        text-align: center;
    }

    .doctor-message {
        margin-bottom: 0;
        font-size: 1.22rem;
    }

    .process-index {
        gap: 0;
        max-width: 880px;
        margin: 0 auto;
    }

    .process-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 880px;
        margin: 0 auto;
    }

    .process-tab {
        border-radius: 22px 22px 0 0;
        min-height: 82px;
        padding: 12px 14px 14px;
        gap: 12px;
    }

    .process-tab.is-active {
        min-height: 94px;
        margin-bottom: -2px;
    }

    .tab-label br {
        display: none;
    }

    .tab-label-nowrap {
        white-space: nowrap;
    }

    .process-panel {
        min-height: 420px;
        padding: 36px 32px 32px;
        border-radius: 28px;
    }

    .process-panel.is-active {
        border-top-left-radius: 0;
    }

    .feature-slider {
        padding: 0;
    }

    .feature-viewport {
        min-height: auto;
    }

    .feature-slide.is-active {
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
        align-items: start;
        gap: 38px;
    }

    .feature-slide-body {
        padding: 28px 26px;
        min-height: 360px;
    }

    .feature-slide-image img {
        aspect-ratio: 16 / 11;
    }

    .feature-slide-image-portrait img {
        width: auto;
        height: 100%;
        aspect-ratio: auto;
        object-fit: contain;
        border-radius: 22px;
        clip-path: inset(0 round 22px);
    }

    .feature-slide-image-portrait {
        aspect-ratio: 16 / 11;
    }

    .feature-slider-controls {
        justify-content: space-between;
        max-width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 1199px) {

    .about-page p,
    .about-page li,
    .about-page dd,
    .about-page dt,
    .about-page a,
    .about-page span,
    .about-page strong,
    .about-page em,
    .about-page b,
    .about-page label {
        font-size: 2rem;
    }

    .tab-label {
        font-size: 1.05rem;
        display: none;
    }

    .breadcrumb ul {
        font-size: max(2rem, 1rem);
    }

    .breadcrumb ul li:not(:last-child)::after {
        font-size: max(2rem, 1rem);
    }

    .about-page .section-intro {
        font-size: max(2rem, clamp(18px, 3.8vw, 28px));
    }

    .doctor-role {
        font-size: max(2rem, 0.85rem);
    }

    .doctor-name {
        font-size: max(2rem, clamp(1.35rem, 5vw, 1.8rem));
    }

    .doctor-message {
        font-size: max(2rem, clamp(1.08rem, 4.2vw, 1.28rem));
    }

    .greeting-meta-block h4 {
        font-size: max(2rem, 1.1rem);
    }

    .tab-step {
        font-size: max(2rem, 0.95rem);
    }

    .process-panel h3 {
        font-size: max(2rem, clamp(1.7rem, 6vw, 3rem));
    }

    .process-panel p,
    .process-panel li {
        font-size: max(2rem, clamp(0.98rem, 3.7vw, 1.08rem));
    }

    .process-contact-number {
        font-size: max(2rem, clamp(1.9rem, 7vw, 2.6rem));
    }

    .process-contact-text {
        font-size: max(2rem, clamp(0.92rem, 3.6vw, 1.02rem));
    }

    .feature-kicker {
        font-size: max(2rem, 0.9rem);
    }

    .feature-slide-body h3 {
        font-size: max(2rem, clamp(1.7rem, 6vw, 2.2rem));
    }

    .feature-slide-body p {
        font-size: max(2rem, clamp(1rem, 3.8vw, 1.08rem));
    }
}