/* 会社概要ページ（/about） */

/* ---------------------------------------------------------------
   会社理念
   PC: 左＝メイン＋サブ、右＝本文（三角装飾）
   SP: 縦積み
--------------------------------------------------------------- */
.about-philosophy {
    padding-bottom: var(--space-12xl);
}

.about-philosophy__inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: var(--content-inner-padding-inline);
}

.content-section--after-hero-image.about-philosophy {
    padding-top: 400px;
}

.about-philosophy__main {
    font-size: var(--fs-section-heading);
    font-weight: 900;
    color: var(--color-corporate);
    margin: 0 0 var(--space-sm);
    line-height: var(--lh-tight);
}

.about-philosophy__main-line {
    display: block;
}

.about-philosophy__sub {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    margin: 0;
    line-height: var(--lh-normal);
}

.about-philosophy__body {
    position: relative;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--color-accent3);
}

.corner-right-top {
    top: 0;
    right: 0;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.corner-left-bottom {
    bottom: 0;
    left: 0;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.about-philosophy__body-inner {
    position: relative;
    padding: var(--space-lg);
    font-size: var(--fs-md);
    color: var(--color-text);
    line-height: var(--lh-loose);
}

.about-philosophy__body-inner p {
    margin: 0 0 var(--space-md);
}

.about-philosophy__body-inner p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .content-section--after-hero-image.about-philosophy {
        padding-top: 64px;
    }

    .about-philosophy__sub {
        font-size: var(--fs-sm);
    }

    .about-philosophy__inner {
        display: flex;
        flex-direction: column;
        gap: var(--space-xl);
    }
}

@media (min-width: 768px) {
    .about-philosophy__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
        align-items: start;
    }
}

/* ---------------------------------------------------------------
   共通フレーム（左：見出し / 右：コンテンツ）
   会社概要・代表メッセージ・沿革で共通利用
--------------------------------------------------------------- */
.about-section__inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: var(--content-inner-padding-inline);
}

.about-section__heading {
    font-size: var(--fs-section-heading-sm);
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 var(--space-md);
    padding-bottom: 0;
    line-height: var(--lh-normal);
}

.about-section__heading::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--color-corporate);
    margin-top: var(--space-xs);
}

.about-section__heading--light {
    color: var(--color-text-white);
}

.about-section__heading--light::after {
    background: var(--color-text-white);
}

.about-section__content {
    letter-spacing: 0.05em;
}

/* 会社概要・沿革のコンテンツ（dl / ul） */
.about-section__content > .about-overview__dl,
.about-section__content > .about-history__list {
    margin: 0;
}

@media (min-width: 768px) {
    .about-section__inner {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: var(--space-4xl);
        align-items: start;
    }
    .about-section__heading {
        grid-column: 1;
        white-space: nowrap;
    }
    .about-section__content {
        grid-column: 2;
    }
}

@media (max-width: 767px) {
    .about-section__inner {
        display: flex;
        flex-direction: column;
        gap: var(--space-xl);
    }
}

/* ---------------------------------------------------------------
   セクション種別モディファイア：会社概要
--------------------------------------------------------------- */
.about-section--overview {
    background: var(--color-bg-sub);
    padding: var(--space-12xl) 0;
}

.about-overview__dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-overview__row {
    display: grid;
    grid-template-columns: minmax(0, 6em) 1fr;
    gap: var(--space-lg);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 52, 154, 0.12);
}

.about-overview__row:last-child {
    border-bottom: none;
}

.about-overview__dt {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 0;
}

.about-overview__dd {
    font-size: var(--fs-md);
    color: var(--color-text);
    margin: 0;
    line-height: var(--lh-normal);
}

@media (max-width: 767px) {
    .about-section--overview {
        padding: var(--space-4xl) 0;
    }

    .about-overview__row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .about-overview__dt {
        font-size: var(--fs-sm);
    }
    
    .about-overview__dd {
        font-size: var(--fs-sm);
    }
}

/* ---------------------------------------------------------------
   セクション種別モディファイア：代表メッセージ
--------------------------------------------------------------- */
.about-section--rep-message {
    overflow-x: hidden;
    background: var(--gradient-hero);
    background-image: url('../../images/back-grad.avif');
    background-size: cover;
    background-position: center;
    padding: var(--space-12xl) 0;
}

.about-rep-message__card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
.page-about .about-section--rep-message .about-rep-message__card {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.about-rep-message__body {
    font-size: var(--fs-md);
    color: var(--color-text);
    line-height: var(--lh-loose);
    letter-spacing: 0.05em;
}

.about-rep-message__body p {
    margin: 0 0 var(--space-md);
}

.about-rep-message__body p:last-child {
    margin-bottom: 0;
}

.about-rep-message__figure {
    margin: 0 0 var(--space-md);
}

.about-rep-message__image {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.about-rep-message__title {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-sm);
    line-height: 0.8;
    white-space: pre-line;
}

.about-rep-message__name {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* 代表メッセージのみ 991px 以下で縦積み（768px 手前でテキストが狭くならないよう早めに SP レイアウトへ） */
@media (max-width: 991px) {
    .about-rep-message__card {
        padding: var(--space-md);
    }

    .about-section--rep-message {
        padding: var(--space-4xl) 0;
        background-image: url('../../images/back-grad-v.avif');
    }
    .about-section--rep-message .about-rep-message__card {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-radius: var(--radius-md);
    }
    .page-about .about-section--rep-message .about-rep-message__card {
        border-top-right-radius: var(--radius-md);
        border-bottom-right-radius: var(--radius-md);
    }

    .about-rep-message__image {
        max-width: 100%;
    }
    .about-section--rep-message .about-rep-message__profile {
        order: -1;
    }
    .about-section--rep-message .about-rep-message__content {
        margin-top: var(--space-lg);
    }
}

/* 代表メッセージのみ 992px 以上でカード内 2 カラム */
@media (min-width: 992px) {
    .about-section--rep-message .about-rep-message__card {
        display: grid;
        grid-template-columns: 0.9fr minmax(220px, 360px);
        gap: 0;
        align-items: stretch;
        width: calc(100% + 50vw - 50%);
        min-width: 100%;
    }
    .about-section--rep-message .about-rep-message__content {
        grid-column: 1;
        padding-right: var(--space-2xl);
    }
    .about-section--rep-message .about-rep-message__profile {
        grid-column: 2;
        padding: var(--space-2xl);
        padding-left: var(--space-lg);
        padding-right: max(var(--content-inner-padding-inline), var(--space-2xl));
    }
}

/* ---------------------------------------------------------------
   セクション種別モディファイア：沿革
--------------------------------------------------------------- */
.about-section--history {
    padding: var(--space-12xl) 0;
}

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

.about-history__item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-bg-gray);
}

.about-history__item:last-child {
    border-bottom: none;
}

.about-history__year {
    font-family: var(--font-english);
    font-size: var(--fs-lg);
    font-weight: 400;
    color: var(--color-corporate);
    flex-shrink: 0;
    min-width: 4em;
    line-height: var(--lh-normal);
}

.about-history__line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--color-corporate);
    flex-shrink: 0;
    align-self: center;
    margin-right: var(--space-md);
}

.about-history__text {
    font-size: var(--fs-md);
    font-weight: 400;
    color: var(--color-text-sub);
    line-height: 2;
    white-space: pre-line;
}

@media (max-width: 767px) {
    .about-history__item {
        gap: 0;
    }
    .about-section--history {
        padding: var(--space-4xl) 0;
    }
    .about-history__year {
        font-size: var(--fs-md);
    }
    .about-history__line {
        width: 30px;
    }
    .about-history__text {
        font-size: var(--fs-sm);
    }
}
