/* ========================================
   Company Page
======================================== */

.c-companyPage {
    background: transparent;
    color: #111;
}

/* 共通 */
.c-companySectionHead {
    text-align: center;
    margin-bottom: 42px;
}

.c-companySectionHead--left {
    text-align: left;
}

.c-companySectionHead__sub {
    margin: 0 0 8px;
    color: #11a8b5;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.c-companySectionHead__title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.c-companySectionHead__lead {
    margin: 16px 0 0;
    max-width: 720px;
    color: #555;
    line-height: 1.9;
    font-size: 0.98rem;
}

/* Hero */
.c-companyHero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 80px;
    background:
        linear-gradient(135deg, rgba(255, 211, 0, 0.92), rgba(255, 224, 77, 0.92));
}

.c-companyHero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.12) 0,
            rgba(255, 255, 255, 0.12) 8px,
            transparent 8px,
            transparent 16px);
    pointer-events: none;
}

.c-companyHero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.c-companyHero__eyebrow {
    margin: 0 0 10px;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: #0d7680;
    text-transform: uppercase;
}

.c-companyHero__title {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
}

.c-companyHero__lead {
    margin: 18px auto 0;
    max-width: 760px;
    line-height: 1.9;
    font-size: 1rem;
}

/* Philosophy */
.c-companyPhilosophy {
    padding: 90px 0 40px;
}

.c-companyPhilosophy__box {
    max-width: 900px;
    margin: 0 auto;
    padding: 54px 40px;
    border-radius: 34px;
    background: linear-gradient(180deg, #ffffff, #f6f6f6);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
}

.c-companyPhilosophy__box::before,
.c-companyPhilosophy__box::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(17, 168, 181, 0.08);
    z-index: 0;
}

.c-companyPhilosophy__box::before {
    top: -20px;
    left: -20px;
}

.c-companyPhilosophy__box::after {
    right: -20px;
    bottom: -20px;
}

.c-companyPhilosophy__text {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 2;
    font-weight: 700;
}

/* ========================================
   Message
======================================== */

.c-companyMessage {
    padding: 40px 0 110px;
}

.c-companyMessage__layout {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(50px, 7vw, 100px);
    align-items: center;

    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 60px 60px 105px;

    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 60px;
}

.c-companyMessage__layout::after {
    content: "Message";
    position: absolute;
    z-index: 1;
    left: -18px;
    bottom: 26px;

    color: #11a8b5;
    font-size: clamp(3.8rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    writing-mode: vertical-rl;
    opacity: 0.9;
    pointer-events: none;
}

/* 左側：文章 */
.c-companyMessage__content {
    position: relative;
    z-index: 2;
    padding-left: 34px;
}

.c-companyMessage__content::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;

    width: 5px;
    height: 120px;
    border-radius: 999px;
    background: #ffc800;
}

.c-companyMessage__catch {
    max-width: 680px;
    margin: 0 0 32px;

    color: #111;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    line-height: 1.65;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.c-companyMessage__text {
    max-width: 720px;
}

.c-companyMessage__text p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 2.15;
}

.c-companyMessage__text p+p {
    margin-top: 24px;
}

.c-companyMessage__signature {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 18px;

    margin: 38px 0 0;
    color: #111;
}

.c-companyMessage__signature span {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.c-companyMessage__signature strong {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* 右側：写真 */
.c-companyMessage__visual {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 340px;
    margin-left: auto;
}

.c-companyMessage__photo {
    position: relative;
    z-index: 2;

    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.1);
}

.c-companyMessage__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;

    object-fit: cover;
    object-position: center;
}

.c-companyMessage__circle {
    position: absolute;
    z-index: 1;
    right: -50px;
    bottom: 20px;

    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(17, 168, 181, 0.85);
}

.c-companyMessage__caption {
    position: relative;
    z-index: 3;

    margin: 18px 6px 0 0;
    color: #11a8b5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-align: right;
}

/* Service */
.c-companyService {
    padding: 0 0 100px;
}

.c-companyService__panel {
    position: relative;
    overflow: hidden;
    background: #dcdcdc;
    border-radius: 72px;
    padding: 72px 60px 80px;
}

.c-companyService__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.35;
    pointer-events: none;
}

.c-companyService__label {
    position: absolute;
    right: -30px;
    top: 160px;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    color: #11a8b5;
    line-height: 0.9;
    letter-spacing: -0.04em;
    writing-mode: vertical-rl;
    opacity: 0.9;
}

.c-companyService__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 40px;
    margin-top: 36px;
}

.c-companyServiceCard {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 28px 24px 26px;
    min-height: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.c-companyServiceCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}

.c-companyServiceCard__num {
    display: inline-block;
    margin-bottom: 18px;
    color: #333;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.c-companyServiceCard__title {
    margin: 0 0 16px;
    font-size: 1.45rem;
    line-height: 1.4;
    font-weight: 800;
}

.c-companyServiceCard__text {
    margin: 0;
    line-height: 1.95;
    color: #444;
}

/* History */
.c-companyHistory {
    padding: 0 0 100px;
}

.c-companyHistory__list {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.c-companyHistory__list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 224px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(17, 168, 181, 0.15), rgba(17, 168, 181, 0.7), rgba(17, 168, 181, 0.15));
}

.c-companyHistory__item {
    display: grid;
    grid-template-columns: 190px 24px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 0 0 34px;
}

.c-companyHistory__year {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 800;
    color: #222;
}

.c-companyHistory__year span {
    font-size: 0.95rem;
    font-weight: 700;
}

.c-companyHistory__dot {
    position: relative;
    width: 24px;
    height: 24px;
    margin-top: 8px;
}

.c-companyHistory__dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #11a8b5;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 6px rgba(17, 168, 181, 0.12);
}

.c-companyHistory__body {
    padding: 2px 0 0;
}

.c-companyHistory__body p {
    margin: 0;
    line-height: 1.9;
    color: #333;
}

/* Overview */
.c-companyOverview {
    padding: 0 0 100px;
}

.c-companyOverview__panel {
    background: linear-gradient(180deg, #d8d8d8, #cfcfcf);
    border-radius: 72px;
    padding: 70px 54px 60px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.c-companyOverview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    gap: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.c-companyOverview__table {
    width: 100%;
    border-collapse: collapse;
}

.c-companyOverview__table th,
.c-companyOverview__table td {
    padding: 20px 22px;
    border-bottom: 1px solid #e7e7e7;
    text-align: left;
    vertical-align: top;
    line-height: 1.8;
}

.c-companyOverview__table th {
    width: 160px;
    font-weight: 700;
    background: #fafafa;
}

.c-companyOverview__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
}

/* Access */
.c-companyAccess {
    padding: 0 0 100px;
}

.c-companyAccess__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.c-companyAccessCard {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.c-companyAccessCard__map iframe {
    display: block;
    width: 100%;
    height: 280px;
}

.c-companyAccessCard__body {
    padding: 24px 24px 28px;
}

.c-companyAccessCard__title {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.c-companyAccessCard__text {
    margin: 0;
    line-height: 1.9;
    color: #444;
}

.c-companyAccessCard__link {
    display: inline-block;
    margin-top: 14px;
    color: #0c9aa6;
    text-decoration: none;
    font-weight: 700;
}


/* Responsive */
@media (max-width: 1100px) {
    .c-companyMessage__layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 44px;
        padding: 54px 54px 54px 90px;
    }

    .c-companyMessage__visual {
        max-width: 300px;
    }

    .c-companyMessage__circle {
        right: -35px;
        width: 120px;
        height: 120px;
    }

    .c-companyService__grid {
        grid-template-columns: 1fr;
    }

    .c-companyOverview__grid {
        grid-template-columns: 1fr;
    }

    .c-companyOverview__map iframe {
        min-height: 360px;
    }

    .c-companyAccess__grid {
        grid-template-columns: 1fr;
    }

    .c-companyHistory__list::before {
        left: 170px;
    }

    .c-companyHistory__item {
        grid-template-columns: 130px 24px 1fr;
    }

}

@media (max-width: 900px) {
    .c-companyMessage__layout {
        grid-template-columns: 1fr;
        gap: 46px;
        padding: 54px 54px 78px 90px;
    }

    .c-companyMessage__content {
        padding-left: 28px;
    }

    .c-companyMessage__visual {
        width: min(100%, 340px);
        max-width: 340px;
        margin: 0 auto;
    }

    .c-companyMessage__circle {
        right: -40px;
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 767px) {
    .c-companyHero {
        padding: 70px 0 58px;
    }

    .c-companyPhilosophy,
    .c-companyMessage,
    .c-companyService,
    .c-companyHistory,
    .c-companyOverview,
    .c-companyAccess {
        padding-bottom: 72px;
    }

    .c-companyPhilosophy__box,
    .c-companyService__panel,
    .c-companyOverview__panel {
        border-radius: 24px;
    }

    .c-companyPhilosophy__box {
        padding: 34px 20px;
    }

    .c-companyService__panel {
        padding: 48px 22px 54px;
        border-radius: 42px;
    }

    .c-companyService__label {
        display: none;
    }

    .c-companyServiceCard {
        min-height: auto;
        padding: 22px 18px;
    }

    .c-companyHistory__list::before {
        left: 15px;
    }

    .c-companyHistory__item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 34px;
        position: relative;
    }

    .c-companyHistory__dot {
        position: absolute;
        left: 4px;
        top: 0;
        margin-top: 0;
    }

    .c-companyHistory__year {
        font-size: 1.2rem;
    }

    .c-companyOverview__panel {
        padding: 44px 18px 22px;
        border-radius: 42px;
    }

    .c-companyOverview__table,
    .c-companyOverview__table tbody,
    .c-companyOverview__table tr,
    .c-companyOverview__table th,
    .c-companyOverview__table td {
        display: block;
        width: 100%;
    }

    .c-companyOverview__table tr {
        border-bottom: 1px solid #e7e7e7;
    }

    .c-companyOverview__table th,
    .c-companyOverview__table td {
        padding: 14px 16px;
        border-bottom: 0;
    }

    .c-companyOverview__table th {
        width: auto;
        padding-bottom: 4px;
    }

    .c-companyAccessCard__map iframe {
        height: 220px;
    }

    .c-companyMessage {
        padding-top: 20px;
        padding-bottom: 72px;
    }

    .c-companyMessage__layout {
        display: flex;
        flex-direction: column;
        gap: 38px;

        padding: 38px 22px 72px;
        border-radius: 36px;
    }

    .c-companyMessage__layout::after {
        left: 18px;
        right: auto;
        bottom: 4px;

        font-size: 3.2rem;
        line-height: 1;
        writing-mode: horizontal-tb;
        opacity: 0.2;
    }

    .c-companyMessage__content {
        width: 100%;
        padding-left: 20px;
    }

    .c-companyMessage__content::before {
        top: 3px;
        width: 4px;
        height: 94px;
    }

    .c-companyMessage__catch {
        margin-bottom: 26px;
        font-size: 1.35rem;
        line-height: 1.7;
    }

    .c-companyMessage__catch br {
        display: none;
    }

    .c-companyMessage__text p {
        font-size: 0.94rem;
        line-height: 2;
    }

    .c-companyMessage__text p+p {
        margin-top: 20px;
    }

    .c-companyMessage__signature {
        flex-wrap: wrap;
        margin-top: 28px;
        gap: 10px 14px;
    }

    .c-companyMessage__signature span {
        font-size: 0.85rem;
    }

    .c-companyMessage__signature strong {
        font-size: 1.15rem;
    }

    .c-companyMessage__visual {
        width: min(90%, 340px);
        max-width: 340px;
        margin: 0 auto;
    }

    .c-companyMessage__photo {
        border-radius: 24px;
    }

    .c-companyMessage__circle {
        right: -28px;
        bottom: 18px;
        width: 105px;
        height: 105px;
    }

    .c-companyMessage__caption {
        margin-top: 14px;
        font-size: 0.7rem;
    }
}

/* Message・Service共通 */
.c-companyMessage__frame,
.c-companyService__frame {
    position: relative;
    isolation: isolate;
}

.c-companyMessage__frame {
    max-width: 1180px;
    margin: 0 auto;
}

.c-companyMessage__frame::after,
.c-companyService__frame::after {
    position: absolute;
    z-index: 0;
    color: #11a8b5;
    font-weight: 800;
    line-height: 0.9;
    writing-mode: vertical-rl;
    opacity: 0.25;
    pointer-events: none;
}

/* Message */
.c-companyMessage__frame::after {
    content: "Message";
    left: -17px;
    bottom: 27px;
    font-size: clamp(3.8rem, 6vw, 6rem);
    letter-spacing: -0.05em;
}

/* Service */
.c-companyService__frame::after {
    content: "Service";
    right: -30px;
    top: 160px;
    font-size: clamp(4rem, 8vw, 7rem);
    letter-spacing: -0.04em;
}

.c-companyMessage__frame>.c-companyMessage__layout,
.c-companyService__frame>.c-companyService__panel {
    z-index: 1;
}

@media (max-width: 767px) {

    .c-companyMessage__frame::after,
    .c-companyService__frame::after {
        display: none;
    }
}

/* 会社概要：右下のOverview */
.c-companyOverview__frame {
    position: relative;
    isolation: isolate;
}

.c-companyOverview__panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* 内側・外側の文字の位置を揃える */
.c-companyOverview__frame::after,
.c-companyOverview__panel::after {
    content: "Overview";
    position: absolute;
    right: 40px;
    bottom: -20px;

    color: #11a8b5;
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    pointer-events: none;
}

/* 枠の外は薄く */
.c-companyOverview__frame::after {
    z-index: 0;
    opacity: 0.25;
}

/* 枠の中は濃く */
.c-companyOverview__panel::after {
    opacity: 0.9;
}

@media (min-width: 768px) {
    .c-companyOverview__panel {
        padding-bottom: 100px;
    }
}

/* スマホでは飾り文字を非表示 */
@media (max-width: 767px) {

    .c-companyOverview__frame::after,
    .c-companyOverview__panel::after {
        display: none;
    }
}

/* 社長挨拶：見出しを上段いっぱいに配置 */
.c-companyMessage__layout {
    row-gap: 32px;
}

.c-companyMessage__catch {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    padding-left: 34px;
    font-size: clamp(20px, 2vw, 28px);
}

/* 黄色いラインを本文から見出しへ移動 */
.c-companyMessage__content::before {
    display: none;
}

.c-companyMessage__catch::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 5px;
    border-radius: 999px;
    background: #ffc800;
}

@media (min-width: 901px) {
    .c-companyMessage__catch {
        white-space: nowrap;
    }
}

/* スマホでは画面幅に合わせて折り返す */
@media (max-width: 767px) {
    .c-companyMessage__catch {
        padding-left: 20px;
        font-size: 1.35rem;
        line-height: 1.7;
        white-space: normal;
    }

    .c-companyMessage__catch::before {
        width: 4px;
    }
}