﻿/* =========================================
   ABOUT US
   ======================================= */
body {
    opacity: 1;
}

.about-us-detail {
    padding-block: 60px 0;
    height: auto;
    overflow: hidden;
    text-align: left;
}

.section-title {
    margin-inline: 60px;
    margin-bottom: 40px;
}

.about-us-detail .container {
    max-width: 1120px;
    width: auto;
    margin: unset;
    padding: unset;
    padding-inline: 60px;
    margin-inline: auto;
}

    .about-us-detail .container + .section-title {
        margin-top: 110px;
    }

/* -------------------------------
   セクションヘッダー（左ラベル＋点線）
   ※重なり対策：ヘッダー自身に高さ(padding)を持たせ、
     ラベルはrelative、線はabsoluteで背景に回す
---------------------------------*/
.section-header {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 30px;
    /* ★ここが重要：absolute要素だけだと高さが潰れるので確保 */
    padding-block: 14px;
}

* + .section-header {
    margin-top: 80px;
}

.section-header__label {
    /* ★absoluteをやめて通常フローに戻す（重なり/潰れ防止） */
    position: relative;
    z-index: 1;
    padding-right: 30px;
    background: #fff;
    white-space: nowrap;
    font-weight: 700;
    font-size: 26px;
    left: 0; /* 既存維持（relativeでも無害） */
}

.excited {
    font-weight: 500;
}

.section-header__line {
    position: absolute;
    top: 50%; /* ラベル中央に寄せる */
    left: 0; /* 左端からスタート */
    right: 0; /* 右端まで */
    transform: translateY(-50%);
    border-top: 1px dotted #999;
    margin: 0; /* flex:1 は外す */
    z-index: 0;
}

/* -------------------------------
   PHILOSOPHY ブロック
---------------------------------*/
.section-logo {
    display: block;
    max-width: 240px;
    margin: 0; /* 左寄せ：左側のautoを0に変更 */
}

.inner-divider {
    border: none;
    border-top: 1px solid #ccc;
    width: 90%;
    margin: 16px auto;
}

.philosophy p {
    max-width: 760px;
    margin: 0;
    line-height: 1.6;
}

/* -------------------------------
   PURPOSE
---------------------------------*/
.purpose-logo-wrap {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 40px;
}

    .purpose-logo-wrap img {
        max-width: 400px;
        min-width: 300px;
        margin: 0;
    }

/* -------------------------------
   MISSION
---------------------------------*/
.mission {
    margin-top: 20px;
}

.excited {
    font-size: 25px;
}

.mission h3 {
    font-size: 30px;
    margin-bottom: 12px;
}

.mission p {
    max-width: 760px;
    line-height: 1.6;
}

/* -------------------------------
   ACTIONS
---------------------------------*/
.actions-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
    /* 縦並びに */
    display: flex;
    flex-direction: column;
    gap: 16px; /* 各項目間の垂直間隔。お好みで調整 */
}

    .actions-list li {
        display: flex;
        align-items: center;
        gap: 32px;
    }

.action-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.action-fair {
    background: #ff6b6b;
}

.action-open {
    background: #ffd93d;
}

.action-clean {
    background: #53c2ff;
}

.action-desc {
    color: #555;
}

/* -------------------------------
   LICENSE POLICY
---------------------------------*/
.license-policy p {
    max-width: 860px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* -------------------------------
   LICENSING DIRECTION
---------------------------------*/
.direction-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 40px;
    line-height: 1.8;
}

    .direction-list li:first-child {
        margin-bottom: 8px;
    }

/* -------------------------------
   BRANDS
---------------------------------*/
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.brand-item {
    text-align: center;
}

    .brand-item img {
        width: 130px;
        height: 130px;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        margin: 0 auto 8px;
    }

    .brand-item p {
        font-size: 14px;
        font-weight: 600;
    }

    .brand-item.static-grey {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: #999;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
    }

/* -------------------------------
   SERVICES
---------------------------------*/
.services-grid {
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
    margin-top: 60px;
}

    .services-grid a {
        text-decoration: none;
    }

.service-shape {
    width: 130px;
    height: 130px;
    background: #ddd;
    transform: rotate(45deg);
    display: flex;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none; /* 下線を消す */
    color: #393939;
}

    .service-shape a {
        color: #fff;
        text-decoration: none;
    }

    .service-shape:hover,
    .service-shape:focus,
    .service-shape:active {
        background: #fbf151;
    }

    .service-shape span {
        transform: rotate(-45deg);
    }

/* -------------------------------
   10 ACTIONS
---------------------------------*/
.ten-actions {
    counter-reset: ta;
    list-style: none;
    padding: 0;
    margin: 40px 0 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .ten-actions > li {
        position: relative;
        padding-left: 56px; /* 番号バッジ分の余白 */
    }

        .ten-actions > li::before {
            counter-increment: ta;
            content: counter(ta, decimal-leading-zero) ".";
            position: absolute;
            left: 0;
            top: 2px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-weight: 700;
            border: 1px solid #ddd;
            background: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }

.ta-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.ta-body {
    margin: 0;
    max-width: 820px;
    line-height: 1.65;
    color: #444;
}

/* -------------------------------
   レスポンシブ調整
---------------------------------*/
@media (max-width: 768px) {
    .about-us-detail {
        padding-block: 60px 0;
    }

    .section-title {
        margin-inline: 30px;
        margin-bottom: 30px;
    }

    .about-us-detail .container {
        max-width: unset;
        padding-inline: 30px;
    }

        .about-us-detail .container + .section-title {
            margin-top: 100px;
        }

    .brand-item img {
        width: 120px;
        height: 120px;
    }

    .services-grid {
        gap: 50px;
    }

    .service-shape {
        width: 110px;
        height: 110px;
        border-radius: 16px;
        transform: rotate(45deg);
        font-size: 13px;
    }

    /* ★ヘッダー高さも少し最適化（任意） */
    .section-header {
        padding-block: 12px;
    }
}

@media (max-width: 600px) {
    .about-us-detail {
        padding-block: 30px 0;
    }

    .section-title {
        margin-inline: 20px;
        margin-bottom: 30px;
    }

    .about-us-detail .container {
        padding-inline: 20px;
    }

        .about-us-detail .container + .section-title {
            margin-top: 100px;
        }

    .section-header {
        align-items: flex-start;
        margin-top: 0;
        margin-bottom: 30px;
        padding-top: 15px;
        padding-inline: unset;
        /* ★スマホは元の挙動を維持しつつ高さ確保 */
        padding-bottom: 10px;
    }

    .section-header__label {
        position: relative;
        padding-right: unset;
        white-space: normal;
        font-weight: 700;
        font-size: 22px;
        background-color: unset;
    }

    .section-header__line {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border-top: 1px dotted #999;
        margin: 0;
        z-index: 0;
        transform: none; /* top:0 の時は不要 */
    }

    * + .section-header {
        margin-top: 60px;
    }

    .brands-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .brand-item img {
        width: 90px;
        height: 90px;
    }

    .brand-item p {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: unset;
    }

    .services-grid {
        /* Flex を無効化して Grid に */
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* 2列 */
        grid-auto-rows: auto; /* 高さは内容に合わせる */
        gap: 40px 0;
        justify-items: center; /* 各アイテムを中央寄せ */
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .service-shape {
        /* サイズは必要なら調整 */
        width: 100px;
        height: 100px;
        border-radius: 16px;
        transform: rotate(45deg);
        font-size: 12px; /* 文字サイズを一段下げ */
    }

        /* ラベル文字だけ回転補正 */
        .service-shape span {
            display: block;
            transform: rotate(-45deg);
            width: 100%; /* 横幅いっぱいに */
            text-align: center;
            font-size: 12px; /* 文字サイズを一段下げ */
        }

    .section-logo {
        margin: 0;
    }

    .actions-list li {
        display: flex;
        align-items: flex-start;
        gap: 16px;
    }

    .ten-actions > li {
        padding-left: 48px;
    }

        .ten-actions > li::before {
            width: 38px;
            height: 38px;
            font-size: 14px;
        }

    .ta-title {
        font-size: 16px;
    }
}
