/* ====================================
   会社情報ページ
   ==================================== */

/* ページヒーロー背景 */
.page-company .page-hero::before {
    --hero-bg-image: url('../images/fv-03.webp');
}

/* ========================================
   店舗情報ページ専用タイトルカラー
======================================== */
/* あいさつセクションの英語タイトルをグラデーションに */
.company-greeting-section .section-title-en {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-greeting-section .section-title-en::before {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* 概要セクションの英語タイトルを青色に */
.company-overview-section .section-title-en--gr {
    color: var(--color-primary);
}

.company-overview-section .section-title-en--gr::before {
    background: var(--color-primary);
}

/* ========================================
   あいさつセクション
======================================== */
.company-greeting-section {
    padding: 4rem 1.25rem;
    background: var(--color-contact-bg);
    border-top-right-radius: var(--border-radius-section);
    border-bottom-right-radius: var(--border-radius-section);
    z-index: 1;
    position: relative;
}

@media (min-width: 576px) {
    .company-greeting-section {
        padding: 4rem 2rem;
    }
}

@media (min-width: 768px) {
    .company-greeting-section {
        padding: 4.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .company-greeting-section {
        padding: 6rem 2rem;
    }
}

.company-greeting-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .company-greeting-content {
        gap: 2rem;
    }
}

/* 挨拶テキストラッパー - 点線の罫線付き背景 */
.company-greeting-text-wrapper {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (min-width: 576px) {
    .company-greeting-text-wrapper {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 768px) {
    .company-greeting-text-wrapper {
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .company-greeting-text-wrapper {
        padding: 3.5rem 3rem;
        gap: 2rem;
    }
}

/* 代表者からのメッセージラベル */
.company-greeting-label {
    display: inline-block;
    width: fit-content;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2px 90px 90px 90px;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .company-greeting-label {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}

/* メインメッセージ */
.company-greeting-main-message {
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0;
    text-align: center;
}

@media (min-width: 576px) {
    .company-greeting-main-message {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .company-greeting-main-message {
        font-size: 1.4rem;
        line-height: 1.8;
    }
}

@media (min-width: 1024px) {
    .company-greeting-main-message {
        font-size: 1.5rem;
    }
}

/* 挨拶テキスト - 各行に破線罫線を自動表示 */
.company-greeting-text {
    color: var(--color-text);
    font-size: var(--body-font-size-sp);
    line-height: 36px;
    letter-spacing: var(--body-letter-spacing);
    margin: 0;
    font-weight: 500;
    
    /* 2つのグラデーションを組み合わせて罫線を実現 */
    background-image: 
        linear-gradient(90deg, transparent, transparent 50%, var(--color-white) 0, var(--color-white)),
        linear-gradient(180deg, rgba(102, 193, 141, 0.8) 1.5px, transparent 0);
    background-size: 8px 100%, 100% 36px;
    padding-bottom: 1px;
}

@media (min-width: 768px) {
    .company-greeting-text {
        font-size: var(--body-font-size-pc);
        line-height: 40px;
        background-size: 8px 100%, 100% 40px;
    }
}

/* 挨拶ロゴ画像 */
.company-greeting-logo {
    display: flex;
    justify-content: flex-end;
    opacity: 0.75;
}

.company-greeting-logo img {
    width: 172px;
    height: auto;
}

@media (min-width: 576px) {
    .company-greeting-logo img {
        width: 192px;
    }
}

@media (min-width: 768px) {
    .company-greeting-logo img {
        width: 200px;
    }
}

@media (min-width: 1024px) {
    .company-greeting-logo img {
        width: 240px;
    }
}

.company-greeting-signature {
    color: var(--color-title);
    font-size: var(--body-font-size-sp);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    text-align: right;
    margin-top: 1rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .company-greeting-signature {
        font-size: var(--body-font-size-pc);
        line-height: var(--body-line-height-pc);
        margin-top: 1.5rem;
    }
}

/* ========================================
   概要セクション
======================================== */
.company-overview-section {
    padding: 4rem 1.25rem;
    background: var(--color-section-light-blue);
    border-top-left-radius: var(--border-radius-section);
    border-bottom-left-radius: var(--border-radius-section);
    z-index: 2;
    position: relative;
    margin-top: -4rem;
}

@media (min-width: 576px) {
    .company-overview-section {
        padding: 4rem 2rem;
    }
}

@media (min-width: 768px) {
    .company-overview-section {
        padding: 4.5rem 2rem;
        margin-top: -4.5rem;
    }
}

@media (min-width: 1024px) {
    .company-overview-section {
        padding: 6rem 2rem;
        margin-top: -6rem;
    }
}

.company-overview-table {
    width: 100%;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-collapse: collapse;
}

.company-overview-table th,
.company-overview-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.company-overview-table th {
    width: 35%;
    background: var(--color-primary);
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.95rem;
    letter-spacing: var(--body-letter-spacing);
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.company-overview-table tr:last-child th {
    border-bottom: none;
}

.company-overview-table td {
    width: 65%;
    color: var(--color-title);
    font-size: 1rem;
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    border-bottom: 1px solid rgba(58, 139, 201, 0.1);
}

.company-overview-table tr:last-child td {
    border-bottom: none;
}

.company-overview-table .tel-number {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.company-overview-table .tel-number:hover {
    opacity: 0.7;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .company-overview-table th,
    .company-overview-table td {
        padding: 1.25rem 1.5rem;
    }
    
    .company-overview-table th {
        width: 30%;
        font-size: 1rem;
    }
    
    .company-overview-table td {
        width: 70%;
        padding-left: 2rem;
        font-size: 1.1rem;
        line-height: var(--body-line-height-pc);
    }
}

@media (min-width: 1024px) {
    .company-overview-table td {
        padding-left: 2.5rem;
    }
}

/* ========================================
   アクセスMAPセクション
======================================== */
.company-map-section {
    padding: 4rem 1.25rem;
    background: var(--color-section-light-green);
    border-radius: var(--border-radius-section);
    position: relative;
    z-index: 3;
    margin-top: -4rem;
}

@media (min-width: 576px) {
    .company-map-section {
        padding: 4rem 2rem;
    }
}

@media (min-width: 768px) {
    .company-map-section {
        padding: 4.5rem 2rem;
        margin-top: -4.5rem;
    }
}

@media (min-width: 1024px) {
    .company-map-section {
        padding: 6rem 2rem;
        margin-top: -6rem;
    }
}

.company-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .company-map-wrapper {
        flex-direction: row;
        gap: 2rem;
        align-items: stretch;
        min-height: 300px;
    }
}

@media (min-width: 1024px) {
    .company-map-wrapper {
        gap: 2rem;
    }
}

.company-map-info {
    background: var(--color-white);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--color-secondary);
}

@media (min-width: 768px) {
    .company-map-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.company-map-info-address {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    position: relative;
    background: var(--color-secondary);
    border-radius: 0.75rem 0.75rem 0 0;
}



.company-map-info-address i {
    color: var(--color-secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
    background: var(--color-white);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.company-map-info-address p {
    color: var(--color-white);
    font-size: var(--body-font-size-sp);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    font-weight: 500;
}

@media (min-width: 768px) {
    .company-map-info-address p {
        font-size: var(--body-font-size-pc);
        line-height: var(--body-line-height-pc);
    }
}

.company-map-access-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
}

@media (min-width: 768px) {
    .company-map-access-list {
        justify-content: space-between;
        height: 100%;
        gap: 0;
    }
}

.company-map-access-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative; /* 疑似要素の基準にする */
}

.company-map-access-item:not(:last-child) {
    /* border-bottom は削除 */
    padding-bottom: 0.75rem; /* 線の分、少し余白を広げると綺麗です */
    margin-bottom: 0.75rem;
}

/* 疑似要素で線を引く */
.company-map-access-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;       /* 線の長さ */
    height: 2px;       /* 線の太さ */
    background-color: rgba(102, 193, 142, 0.25); /* 線の色 */
    border-radius: 2px; /* ここで角丸にする（太さと同じ値にすると完全な丸） */
}

.company-map-access-item i {
    color: var(--color-white);
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--color-secondary);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.company-map-access-item p {
    color: var(--color-title);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
}

@media (min-width: 768px) {
    .company-map-access-item p {
        line-height: var(--body-line-height-pc);
    }
}

.company-map-container {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
    border: 2px solid transparent;
}

.company-map-container:hover {
    border-color: var(--color-secondary);
}

@media (min-width: 768px) {
    .company-map-container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.company-map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    border-radius: 1rem;
    display: block;
}

@media (min-width: 768px) {
    .company-map-container iframe {
        min-height: 360px;
    }
}

/* アクセスMAPセクションのタイトルを緑に */
.company-map-section .section-title-en {
    color: var(--color-tertiary);
}

.company-map-section .section-title-en::before {
    background: var(--color-tertiary);
}
