.company-page {
    background:
        radial-gradient(1200px 500px at 8% 0%, rgba(193, 236, 236, 0.32), transparent 55%),
        radial-gradient(800px 400px at 92% 10%, rgba(249, 223, 235, 0.32), transparent 50%),
        #f7fcfc;
    padding: 56px 20px 88px;
}

.company-page__container {
    max-width: 1040px;
    margin: 0 auto;
}

.company-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fcffff 100%);
    border: 1px solid rgba(80, 156, 156, 0.16);
    border-radius: 20px;
    box-shadow:
        0 18px 46px rgba(56, 99, 114, 0.12),
        0 3px 10px rgba(56, 99, 114, 0.08);
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 100% at 85% 20%, rgba(244, 215, 238, 0.34), transparent 52%),
        radial-gradient(100% 90% at 65% 45%, rgba(214, 233, 255, 0.3), transparent 58%),
        radial-gradient(100% 90% at 88% 68%, rgba(226, 244, 219, 0.3), transparent 60%);
    pointer-events: none;
}

/* タイトル＋ブランドロゴ（「会社概要」の直後に横並び） */
.company-card__title-bar {
    margin: 0;
    padding: 16px 22px 16px 28px;
    position: relative;
    z-index: 1;
    background: linear-gradient(96deg, #e6b8cf 0%, #eeddbb 56%, #d9eecb 100%);
}

.company-card__title-with-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 18px;
}

.company-card__title {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(1.8rem, 3.1vw, 2.55rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(120, 77, 97, 0.35);
}

.company-card__brand-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    flex: 0 1 auto;
}

.company-card__brand-logo {
    display: block;
    height: auto;
    max-height: 72px;
    width: auto;
    max-width: min(160px, 38vw);
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.company-card__brand-logo--cute {
    max-height: 76px;
}

.company-card__brand-logo--cool {
    max-height: 70px;
}

.company-card__list {
    margin: 0;
    padding: 22px;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.company-card__row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 18px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(103, 180, 180, 0.16);
    backdrop-filter: blur(1.5px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.company-card__row:hover {
    transform: translateY(-1px);
    border-color: rgba(93, 173, 173, 0.32);
    box-shadow: 0 8px 20px rgba(64, 126, 126, 0.1);
}

.company-card__row dt,
.company-card__row dd {
    margin: 0;
    color: #1f2a30;
    line-height: 1.45;
}

.company-card__row dt {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2b6666;
    padding-top: 2px;
}

.company-card__row dd {
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #263238;
}

/* 所在地：Googleマップ */
.company-card__location-text {
    margin: 0 0 16px;
    line-height: 1.55;
}

.company-card__map {
    margin-top: 4px;
    max-width: 360px;
}

.company-card__map-frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(103, 180, 180, 0.35);
    box-shadow:
        0 8px 24px rgba(56, 99, 114, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    background: linear-gradient(145deg, rgba(230, 248, 248, 0.9), rgba(255, 250, 252, 0.95));
    aspect-ratio: 4 / 3;
    min-height: 0;
    max-height: 200px;
}

.company-card__map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.company-card__map-caption {
    margin: 12px 0 0;
    font-size: 0.95rem;
    text-align: right;
}

.company-card__map-caption a {
    color: #2b6666;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(43, 102, 102, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.company-card__map-caption a:hover {
    color: #1a4d4d;
    border-bottom-color: rgba(26, 77, 77, 0.55);
}

.company-card__row--location {
    align-items: start;
}

@media (max-width: 1024px) {
    .company-page {
        padding-top: 44px;
    }

    .company-card__title-bar {
        padding: 14px 18px 14px 22px;
    }

    .company-card__title-with-logos {
        gap: 8px 14px;
    }

    .company-card__brand-logo {
        max-height: 58px;
        max-width: min(130px, 34vw);
    }

    .company-card__map {
        max-width: 320px;
    }

    .company-card__map-frame {
        max-height: 180px;
    }

    .company-card__list {
        padding: 18px;
    }

    .company-card__row {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .company-card__row dt {
        font-size: 0.94rem;
    }

    .company-card__row dd {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .company-page {
        padding: 28px 14px 56px;
    }

    .company-card {
        border-radius: 14px;
    }

    .company-card__title-bar {
        padding: 14px 16px;
    }

    .company-card__title-with-logos {
        justify-content: center;
        gap: 10px 12px;
    }

    .company-card__title {
        font-size: clamp(1.35rem, 7.6vw, 1.9rem);
        text-align: center;
    }

    .company-card__brand-logos {
        justify-content: center;
    }

    .company-card__brand-logo {
        max-height: 52px;
        max-width: min(42vw, 140px);
    }

    .company-card__map {
        max-width: 100%;
    }

    .company-card__map-frame {
        max-height: 200px;
        border-radius: 10px;
    }

    .company-card__map-caption {
        text-align: center;
    }

    .company-card__list {
        padding: 12px;
        gap: 8px;
    }

    .company-card__row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px 10px 11px;
    }

    .company-card__row dt {
        font-size: 0.9rem;
        letter-spacing: 0.08em;
    }

    .company-card__row dd {
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

.company-history {
    margin-top: 28px;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(247, 255, 255, 0.9) 100%);
    border: 1px solid rgba(80, 156, 156, 0.16);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(56, 99, 114, 0.1);
    padding: 24px 24px 30px;
    overflow: hidden;
}

.company-history::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 300px at 100% 0%, rgba(255, 214, 231, 0.25), transparent 58%);
    pointer-events: none;
}

.company-history__title {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(95deg, #e6b8cf 0%, #eeddbb 58%, #d9eecb 100%);
    text-shadow: 0 2px 10px rgba(120, 77, 97, 0.35);
}

.company-history__lead {
    margin: 12px 2px 0;
    font-size: 1rem;
    color: #3b5f5f;
    position: relative;
    z-index: 1;
}

.company-timeline {
    --line-width: 4px;
    margin-top: 20px;
    position: relative;
    padding-left: 34px;
}

.company-timeline__line {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: var(--line-width);
    border-radius: 999px;
    background: rgba(107, 181, 181, 0.25);
    overflow: hidden;
}

.company-timeline__line-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    border-radius: 999px;
    background: linear-gradient(180deg, #f4abc4 0%, #7dc7c7 55%, #64b5b5 100%);
    box-shadow: 0 0 12px rgba(124, 199, 199, 0.45);
    transition: height 0.18s linear;
}

.company-timeline__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.company-timeline__item {
    position: relative;
    padding: 14px 16px 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(98, 173, 173, 0.17);
    box-shadow: 0 6px 18px rgba(52, 105, 105, 0.08);
    opacity: 0.22;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.company-timeline__item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(116, 193, 193, 0.65);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(235, 250, 250, 0.88);
}

.company-timeline__item.is-visible {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 12px 28px rgba(52, 105, 105, 0.14);
}

.company-timeline__item.is-visible::before {
    background: linear-gradient(180deg, #f4abc4, #67bebe);
    border-color: #67bebe;
}

.company-timeline__date {
    margin: 0 0 6px;
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: #2d6e6e;
}

.company-timeline__content {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #263238;
}

.company-timeline__brand-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(98, 173, 173, 0.22);
}

.company-timeline__brand-logo {
    display: block;
    height: auto;
    max-height: 56px;
    width: auto;
    max-width: min(150px, 44vw);
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.1));
}

.company-timeline__brand-logo--cute {
    max-height: 58px;
}

.company-timeline__brand-logo--cool {
    max-height: 54px;
}

.company-timeline__media {
    margin: 12px 0 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(94, 170, 170, 0.22);
    box-shadow: 0 8px 24px rgba(44, 95, 95, 0.18);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.company-timeline__item.is-visible .company-timeline__media {
    opacity: 1;
    transform: scale(1);
}

.company-timeline__media img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.02);
    transform: scale(1.02);
    transition: transform 0.55s ease;
}

.company-timeline__media--h2104 {
    max-width: 68%;
    margin-left: auto;
    margin-right: auto;
}

.company-timeline__media--h2104 img {
    height: 480px;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.company-timeline__media--h301 {
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
}

.company-timeline__media--h301 img {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: auto;
    max-height: min(420px, 72vw);
    background: #f7faf9;
    /* 共通の scale とホバー拡大は枠からはみ出して横が欠けるため無効化 */
    transform: none;
    transition: opacity 0.4s ease;
}

.company-timeline__item:hover .company-timeline__media img {
    transform: scale(1.06);
}

.company-timeline__item:hover .company-timeline__media--h301 img {
    transform: none;
}

@media (max-width: 767px) {
    .company-history {
        margin-top: 20px;
        border-radius: 14px;
        padding: 14px 12px 16px;
    }

    .company-history__title {
        font-size: clamp(1.2rem, 6.4vw, 1.55rem);
        padding: 12px 14px;
        border-radius: 10px;
    }

    .company-history__lead {
        font-size: 0.92rem;
    }

    .company-timeline {
        margin-top: 14px;
        padding-left: 26px;
    }

    .company-timeline__line {
        left: 6px;
    }

    .company-timeline__item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 10px;
        padding: 11px 11px 11px 12px;
    }

    .company-timeline__item::before {
        left: -20px;
        top: 20px;
        width: 10px;
        height: 10px;
    }

    .company-timeline__date {
        font-size: 0.88rem;
        margin-bottom: 4px;
    }

    .company-timeline__content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .company-timeline__media {
        margin-top: 10px;
        border-radius: 9px;
    }

    .company-timeline__media img {
        max-height: 220px;
    }

    .company-timeline__media--h2104 {
        max-width: 82%;
    }

    .company-timeline__media--h2104 img {
        height: 260px;
    }

    .company-timeline__media--h301 {
        max-width: 94%;
    }

    .company-timeline__media--h301 img {
        max-height: min(320px, 65vw);
    }
}
