@charset "UTF-8";

/* 基本色とページ全体 */
:root {
    --orange: #ff921a;
    --brown: #774617;
    --gray: #62544b;
    --about-background: #faf7f4;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body.about-page {
    background: var(--about-background);
    color: var(--gray);
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: normal;
}

.about-page main {
    overflow: clip;
}

/* サイド項目おすとそのエリアへ */
.about-page main [id] {
    scroll-margin-top: -25px;
}

.about-page a:focus-visible,
.about-page button:focus-visible,
.history-scroll:focus-visible {
    outline: 3px solid #a66b40;
    outline-offset: 5px;
}

/* 法人紹介エリアを通る左帯。お問い合わせ以降は白背景。 */
.about-introduction {
    background: linear-gradient(to right, #f6d1b7 0, #f6d1b7 13.85%, transparent 13.85%);
}

/* ページタイトルと円形写真 */
.about-hero {
    height: 20.5vw;
    position: relative;
    background: radial-gradient(ellipse at 50% 70%, #ffffff88 0, transparent 55%);
}

.about-breadcrumb {
    position: relative;
    z-index: 2;
    padding: 2.5vw 0 0 20vw;
    font-size: .85vw;
    color: #a4876e;
}

.about-hero h1 {
    position: relative;
    z-index: 2;
    margin: 7vw 0 0 26vw;
    font-size: 2.4vw;
    font-weight: 700;
    color: var(--brown);
}

.about-hero-photo {
    position: absolute;
    z-index: 1;
    width: 43vw;
    height: 43vw;
    right: -6vw;
    top: -13vw;
    border: 2.5vw solid #f8e6d7;
    border-radius: 50%;
    outline: 1px solid #f5d7be;
    outline-offset: 2vw;
    overflow: hidden;
}

.about-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* 左ナビと縦書き見出し */
.about-layout {
    display: grid;
    grid-template-columns: 18.2% 81.8%;
}

.about-sidebar nav {
    position: sticky;
    top: calc(17.4vw + 25px);
    width: 13.85vw;
    padding: 0 2.5vw 2vw 3.8vw;
}

.about-sidebar a {
    display: block;
    margin: .7vw 0;
    font-size: 1.05vw;
    color: #987e6c;
    letter-spacing: .25em;
    white-space: nowrap;
}

.about-sidebar a:hover,
.about-sidebar a[aria-current] {
    color: #d88d55;
}

.about-content {
    min-width: 0;
}

.about-detail-section {
    position: relative;
    padding-left: 7.8vw;
    padding-right: 3vw;
}

.about-detail-section-title {
    position: absolute;
    top: 3vw;
    left: 1.6vw;
    margin: 0;
    writing-mode: vertical-rl;
    font-size: 1.65vw;
    font-weight: 500;
    letter-spacing: .45em;
    line-height: 1;
}

.about-detail-section-title::after {
    content: "";
    width: 1px;
    height: 8vw;
    display: block;
    margin-top: 2vw;
    background: #c9b7a8;
}

/* 理事長挨拶 */
.about-greeting {
    z-index: 2;
    margin-right: 3vw;
    padding-top: 3vw;
    padding-right: 2.2vw;
    padding-bottom: 3vw;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #ffe6ca;
    box-shadow: 0 0 12px #efc99e66;
}

.about-greeting .about-detail-section-title {
    top: 20vw;
}

.greeting-content {
    display: grid;
    grid-template-columns: 33% minmax(0, 1fr);
    gap: 2vw;
    align-items: start;
}

.greeting-video {
    padding-top: 6.5vw;
}

.greeting-play {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #b4aaa4;
}

.greeting-play img {
    height: 100%;
    width: 50%;
    object-fit: cover;
    object-position: top;
    margin-left: 30%;
}

.greeting-play::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #62544b33;
    transition: background .2s;
}

.greeting-play:hover::after {
    background: transparent;
}

.play-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 5.5vw;
    height: 4vw;
    border-radius: 1.4vw;
    background: linear-gradient(#e34962, #eea086);
    color: #fff;
    font-size: 2.6vw;
}

.greeting-copy {
    font-size: 1.05vw;
    line-height: 1.8;
}

.greeting-copy p {
    margin: 0 0 .6em;
}

.greeting-copy .chairperson-name {
    text-align: right;
    font-size: 2.1vw;
    margin-top: 2vw;
}

.chairperson-name span {
    display: block;
    font-size: 1.1vw;
}

/* めざす未来 */
.about-future {
    padding-top: 20vw;
    padding-bottom: 14vw;
    background: radial-gradient(ellipse, #fff 30%, transparent 72%);
}

.about-future .about-detail-section-title {
    top: 22vw;
}

.future-message {
    position: relative;
    text-align: center;
    padding: 3vw 0;
}

.future-watermark {
    position: absolute;
    width: 29vw;
    height: 29vw;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .12;
    filter: grayscale(1);
}

.future-message p {
    position: relative;
    margin: 0;
    font-size: 1.2vw;
    line-height: 1.8;
}

.future-message .future-catch {
    font-size: 2.5vw;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 3vw;
    text-align: left;
    padding-left: 10vw;
}

.future-catch span {
    padding-left: 13vw;
}

/* 5つの心：文章は画像化せずHTMLで表示 */
.about-hearts {
    padding-top: 5vw;
    padding-bottom: 18vw;
}

.about-hearts .about-detail-section-title {
    top: 20vw;
}

.hearts-diagram {
    width: 57vw;
    height: 56.5vw;
    position: relative;
    margin: 0 auto;
}

.hearts-diagram::before {
    content: "";
    position: absolute;
    inset: 10vw 8vw 7vw;
    border: 1px solid #f1d1b6;
    border-radius: 50%;
}

.hearts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.heart {
    position: absolute;
    z-index: 2;
    width: 23vw;
    height: 23vw;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2vw 1vw;
}

.heart h3 {
    font-size: 2.7vw;
    letter-spacing: .15em;
    font-weight: 600;
    margin: 0 0 .7vw;
}

.heart p {
    font-size: 1.05vw;
    line-height: 1.5;
    margin: 0;
}

.heart-number {
    font-size: 4vw;
    line-height: 1;
    color: white;
    -webkit-text-stroke: 1px #b9afa4;
    margin-bottom: 1.5vw;
}

.heart-spring {
    top: 0;
    left: 17vw;
    background: #f9e3d2cc;
}

.heart-spring .heart-number {
    order: 1;
    margin: 2vw 0 0;
}

.heart-service {
    padding-left: 4vw;
    top: 13.5vw;
    right: 0;
    background: #ffdfb9bb;
}

.heart-gratitude {
    bottom: 0;
    right: 5.5vw;
    background: #edb180aa;
}

.heart-respect {
    bottom: 0;
    left: 6vw;
    background: #ffcc75bb;
}

.heart-professional {
    padding-right: 4vw;
    top: 13.5vw;
    left: 0;
    background: #f4ba94aa;
}

/* 外側の見出しと内側の数字を、PDFの花形配置に合わせる */
.heart-service .heart-number,
.heart-professional .heart-number,
.heart-gratitude .heart-number,
.heart-respect .heart-number {
    position: absolute;
    margin: 0;
}

.heart-service .heart-number {
    left: 1.5vw;
    top: 9vw;
}

.heart-professional .heart-number {
    right: 1.5vw;
    top: 9vw;
}

.heart-gratitude .heart-number {
    left: 3vw;
    top: 4vw;
}

.heart-respect .heart-number {
    right: 3vw;
    top: 4vw;
}

.heart-gratitude h3,
.heart-respect h3 {
    margin-top: 5vw;
}

.hearts-center {
    isolation: isolate;
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2vw;
    font-weight: 700;
    white-space: nowrap;
    z-index: 1;
}

/* 中央の文字は鮮明なまま、背面の色だけを柔らかくぼかす */
.hearts-center::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 25vw;
    height: 17vw;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 72% 40%, #f4c5c299 0%, transparent 65%),
        radial-gradient(ellipse at 25% 55%, #ffe5bfbb 0%, transparent 65%),
        radial-gradient(ellipse at 50% 70%, #fff3e5cc 0%, transparent 70%);
    filter: blur(1.2vw);
    pointer-events: none;
}

.hearts-promise {
    margin: 9vw 0 0;
    text-align: center;
    font-size: 1.05vw;
    line-height: 2;
}

/* 沿革と法人概要 */
.about-history {
    padding-right: 0;
    padding-top: 4vw;
    padding-bottom: 17vw;
}

.history-panel {
    position: relative;
    margin-left: 7vw;
    background: white;
    border: 1px solid #ffe6ca;
    box-shadow: 0 0 12px #efc99e88;
    border-radius: 4vw 0 0 4vw;
    padding: 8vw 4vw 3vw;
}

.history-panel h3 {
    position: absolute;
    top: 4vw;
    left: -1.5vw;
    background: #5e4d42;
    color: white;
    padding: .7vw 2vw;
    margin: 0;
    font-size: 1.4vw;
}

.history-scroll {
    max-height: 20vw;
    padding-right: 3vw;
    overflow-y: auto;
    scrollbar-color: #efb07f #e8e2dc;
    scrollbar-width: thin;
}

.history-list {
    margin: 0;
}

.history-list > div {
    display: grid;
    grid-template-columns: 13vw 1fr;
    gap: 2vw;
    margin-bottom: 1.5vw;
    font-size: 1.45vw;
    line-height: 1.9;
}

.history-list dt {
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: .8vw;
}

.history-list dt::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #b5a99e;
}

.history-list dd {
    margin: 0;
}

.about-overview {
    padding-right: 0;
    padding-top: 4vw;
    padding-bottom: 8vw;
}

.organization-details {
    margin: 0 0 0 7vw;
    border-top: 1px solid #8b7c70;
    font-size: 1.35vw;
    background: white;
}

.organization-details > div {
    display: grid;
    grid-template-columns: 14vw 1fr;
    border-bottom: 1px solid #8b7c70;
}

.organization-details dt {
    background: #5e4d42;
    color: white;
    text-align: center;
    font-weight: 500;
    padding: 2vw 1vw;
}

.organization-details dd {
    padding: 2vw;
    margin: 0;
    line-height: 2.2;
}

.organization-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 情報公開とお問い合わせ */
.about-contact {
    position: relative;
    min-height: 53vw;
    padding: 11.5vw 0 15vw;
    background: #fff;
    overflow: hidden;
    text-align: center;
}

.about-disclosure {
    padding: 5vw 0 8vw;
    text-align: center;
}

.disclosure-link {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: #5e4d42;
    color: #fff;
    padding: .7vw 5vw;
    font-size: 1.8vw;
    margin-bottom: 0;
}

.disclosure-link:hover {
    color: white;
}

.about-contact-card {
    position: relative;
    z-index: 1;
    width: 75vw;
    margin: auto;
    padding: 5vw 6vw;
    background: #fff;
    border-radius: 3vw;
    box-shadow: 0 0 30px #f3c89a77;
}

.about-contact-card h2 {
    display: flex;
    align-items: center;
    gap: 3vw;
    font-size: 1.7vw;
    margin: 0 0 2vw;
}

.about-contact-card h2::before,
.about-contact-card h2::after {
    content: "";
    height: 1px;
    background: #8a7b73;
    flex: 1;
}

.about-contact-card > p {
    font-size: 1.3vw;
    margin: 0;
}

.about-phone {
    display: block;
    font-size: 5.4vw;
    line-height: 1.8;
    font-weight: 600;
    white-space: nowrap;
}

.about-phone small {
    font-size: 2.4vw;
}

.about-contact-card .about-hours {
    width: max-content;
    margin: 1vw auto 0;
    padding: .4vw 4.5vw;
    background: #5e4d42;
    color: white;
    font-size: 1.6vw;
}

.about-bubble {
    position: absolute;
    border-radius: 50%;
    width: 28vw;
    height: 28vw;
    pointer-events: none;
}

.about-bubble::after {
    content: "";
    position: absolute;
    inset: -1vw 1vw 0 -1vw;
    border: 1px solid;
    border-radius: 50%;
}

.about-bubble.bubble-peach {
    background: #fae8d5;
    right: -3vw;
    top: 3vw;
}

.about-bubble.bubble-peach::after {
    border-color: #ffbc82;
}

.about-bubble.bubble-pink {
    background: #fceef1;
    left: -15vw;
    bottom: -7vw;
    width: 39vw;
    height: 39vw;
}

.about-bubble.bubble-pink::after {
    border-color: #ffb6d8;
}

.about-bubble.bubble-green {
    background: #f2f6e5;
    right: 17vw;
    bottom: 6vw;
    width: 26vw;
    height: 26vw;
}

.about-bubble.bubble-green::after {
    border-color: #b8dc95;
}

/* タブレット */
@media (max-width: 991.98px) {
    .about-page main [id] {
        scroll-margin-top: 70px;
    }

    .about-sidebar nav {
        top: 170px;
        width: 16vw;
        padding: 14px;
    }

    .about-sidebar a {
        font-size: 12px;
        letter-spacing: .05em;
    }

    .greeting-copy,
    .future-message p,
    .hearts-promise {
        font-size: 12px;
    }
}

/* スマートフォン */
@media (max-width: 767.98px) {
    html {
        scroll-padding-top: 20px;
    }

    .about-page main [id] {
        scroll-margin-top: 140px;
    }

    .about-hero {
        height: 290px;
    }

    .about-breadcrumb {
        padding: 75px 20px 0;
        font-size: 11px;
    }

    .about-hero h1 {
        margin: 90px 0 0 24px;
        font-size: 26px;
    }

    .about-hero-photo {
        width: 270px;
        height: 270px;
        right: -80px;
        top: -100px;
        border-width: 16px;
        outline-offset: 10px;
        opacity: .8;
    }

    .about-layout {
        display: block;
    }

    .about-introduction {
        background: var(--about-background);
    }

    .about-sidebar {
        padding: 0 22px 30px;
    }

    .about-sidebar nav {
        position: static;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: 14px;
        background: #f6d1b7;
        text-align: center;
        gap: 10px;
    }

    .about-sidebar a {
        font-size: 14px;
        margin: 0;
        padding: 8px;
    }

    .about-detail-section {
        padding: 35px 24px;
    }

    .about-greeting {
        margin-right: 0;
    }

    .about-detail-section-title {
        position: static;
        writing-mode: horizontal-tb;
        font-size: 21px;
        letter-spacing: .15em;
        margin: 0 0 30px;
        border-left: 3px solid #dba979;
        padding-left: 12px;
    }

    .about-detail-section-title::after {
        display: none;
    }

    .greeting-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .greeting-video {
        padding: 0;
        max-width: 400px;
        width: 100%;
        margin: auto;
    }

    .play-icon {
        width: 70px;
        height: 50px;
        border-radius: 15px;
        font-size: 30px;
    }

    .greeting-copy {
        font-size: 14px;
        line-height: 2;
    }

    .greeting-copy .chairperson-name {
        font-size: 24px;
        margin-top: 20px;
    }

    .chairperson-name span {
        font-size: 13px;
    }

    .about-future {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .future-watermark {
        width: 240px;
        height: 240px;
    }

    .future-message {
        padding: 20px 0;
    }

    .future-message .future-catch {
        padding: 0;
        font-size: 20px;
        margin-bottom: 25px;
        text-align: center;
    }

    .future-catch span {
        padding: 0;
    }

    .future-message p {
        font-size: 13px;
        line-height: 2;
    }

    .about-desktop-break {
        display: none;
    }

    .about-hearts {
        padding-bottom: 60px;
    }

    .hearts-diagram {
        width: 100%;
        height: auto;
    }

    .hearts-diagram::before {
        display: none;
    }

    .hearts-center {
        position: static;
        transform: none;
        font-size: 21px;
        text-align: center;
        margin-bottom: 20px;
    }

    .hearts-center::before {
        display: none;
    }

    .hearts-list {
        display: grid;
        gap: 18px;
        justify-items: center;
    }

    .heart {
        position: static;
        width: min(100%, 290px);
        height: auto;
        aspect-ratio: 1;
        padding: 25px 15px;
    }

    .heart-service .heart-number,
    .heart-professional .heart-number,
    .heart-gratitude .heart-number,
    .heart-respect .heart-number {
        position: static;
        margin-bottom: 18px;
    }

    .heart-gratitude h3,
    .heart-respect h3 {
        margin-top: 0;
    }

    .heart h3 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .heart p {
        font-size: 13px;
    }

    .heart-number {
        font-size: 40px;
        margin-bottom: 18px;
    }

    .heart-spring .heart-number {
        order: 0;
        margin: 0 0 18px;
    }

    .hearts-promise {
        font-size: 13px;
        margin-top: 35px;
    }

    .history-panel {
        margin: 0;
        padding: 65px 20px 25px;
        border-radius: 25px;
    }

    .history-panel h3 {
        top: 20px;
        left: -5px;
        padding: 8px 20px;
        font-size: 15px;
    }

    .history-scroll {
        max-height: 340px;
    }

    .history-list > div {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 13px;
        margin-bottom: 22px;
    }

    .history-list dt {
        font-weight: 700;
    }

    .history-list dt::after {
        display: none;
    }

    .about-disclosure {
        padding: 20px 0 40px;
    }

    .organization-details {
        margin: 0;
        font-size: 13px;
    }

    .organization-details > div {
        grid-template-columns: 1fr;
    }

    .organization-details dt {
        text-align: left;
        padding: 12px 18px;
    }

    .organization-details dd {
        padding: 18px;
        line-height: 1.9;
    }

    .organization-details li + li {
        margin-top: 9px;
    }

    .about-contact {
        min-height: 430px;
        padding: 40px 0 80px;
    }

    .disclosure-link {
        font-size: 16px;
        padding: 8px 35px;
        margin-bottom: 25px;
    }

    .about-contact-card {
        width: calc(100% - 36px);
        padding: 30px 17px;
        border-radius: 22px;
    }

    .about-contact-card h2 {
        font-size: 16px;
        gap: 15px;
        margin-bottom: 20px;
    }

    .about-contact-card > p {
        font-size: 11px;
    }

    .about-phone {
        font-size: clamp(24px, 7.5vw, 45px);
        line-height: 2;
    }

    .about-phone small {
        font-size: 14px;
    }

    .about-contact-card .about-hours {
        font-size: 13px;
        padding: 7px 20px;
        margin-top: 10px;
    }

    .about-bubble {
        min-width: 170px;
        min-height: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .greeting-play::after {
        transition: none;
    }
}
