/* ========================================
   会社概要　設定
======================================== */
:root {
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, #e02020 0%, #ff6b6b 100%);
}


.about-intro {
    padding: 100px 0;
    text-align: center;
}

.about-intro .section-header {
    margin-bottom: 40px;
}

.about-intro .section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.about-intro-body p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
    text-align: center;
    line-height: 2.0;
    margin-bottom: 2em;
}

.about-intro-body strong {
    font-size: 1.4em;
}

/* 会社概要カード */
.company-overview {
    padding: 100px 0;
}

.company-card {
    background-color: var(--light-color);
    border-radius: 15px;
    padding: 50px;
    box-shadow: var(--box-shadow);
    max-width: 1000px;
    margin: 0 auto;
    transition: var(--transition);
}

.company-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.company-logo {
    text-align: center;
    margin-bottom: 40px;
}

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

.company-details-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.company-detail-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
}

.company-detail-item h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    width: 150px;
    min-width: 150px;
    margin: 0;
    padding-top: 3px;
}

.company-detail-item p {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

/* 沿革（タイムライン） */
.history {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(224, 32, 32, 0.3);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 15px;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    text-align: left;
    padding-right: 40px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.timeline-content {
    margin-left: 52%;
    background-color: var(--light-color);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--light-color);
    transform: rotate(45deg);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-item.future .timeline-content {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(224, 32, 32, 0.3);
}

.timeline-item.future::before {
    background-color: rgba(224, 32, 32, 0.5);
}

.exec-bio h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--light-color);
}

.exec-bio p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.exec-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.exec-expertise span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.management-team {
    padding: 20px 0;
}

a.text-link {
  color: #e02020;
  text-decoration: underline; 
  transition: color 0.3s ease;
}

a.text-link:hover {
  color: #c01010;
  text-decoration: none;
}


/* アクセス（オフィスタブ） */
.access {
    padding: 100px 0;
    background-color: var(--light-color);
}

.office-tab-nav {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.office-tab-button {
    background: none;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.office-tab-button.active {
    color: var(--primary-color);
}

.office-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.office-tab-content {
    position: relative;
    overflow: hidden;
}

.office-tab-pane {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.office-tab-pane.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
}

.office-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.office-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.office-address {
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.access-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.access-item h4 {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
  .office-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .office-map iframe {
    width: 100% !important;
    height: 300px;
  }

  .office-address {
    padding-left: 12px;
  }
}


/* グループ企業（ミニカード） */
.group-companies {
    padding: 100px 0;
}

.group-message {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.6;
    color: var(--dark-gray);
}

.group-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 0 16px; 
}

.group-card-mini {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;

}

.group-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.group-logo-mini {
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.group-logo-mini img {
    max-height: 40px;
    width: auto;
}

.group-card-mini h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.group-desc {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.5;
}

.group-link-mini {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: var(--transition);
    margin-top: auto;
}

.group-link-mini:hover {
    gap: 6px;
}


@media (max-width: 768px) {
    .group-cards-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .group-card-mini {
        width: 220px;
        max-width: 100%;
    }

    .group-card-mini h4 {
        font-size: 0.9rem;
    }

    .group-desc {
        font-size: 0.8rem;
    }
}

.group-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.group-logo img {
    max-height: 60px;
    width: auto;
}

.group-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.group-card p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    flex: 1;
}

.group-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    margin-top: auto;
}

.group-link:hover {
    gap: 10px;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {

    .tab-grid,
    .office-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tab-image {
        order: -1;
    }
}

@media (max-width: 992px) {

    .timeline::before {
        left: 40px;
    }

    .timeline-item::before {
        left: 40px;
    }

    .timeline-date {
        position: relative;
        width: 100%;
        text-align: left;
        padding-left: 70px;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .timeline-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }

    .timeline-content::before {
        left: -10px;
    }

    .exec-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}


.exec-card-mini {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exec-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.exec-photo img {
    width: 100%;
    max-width: 140px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.exec-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.exec-title {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 8px;
}

.exec-desc {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.exec-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.exec-card-mini {
    width: 260px;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exec-card-mini:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.exec-photo img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
}

.exec-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.exec-title {
    font-size: 0.95rem;
    color: #666;
}

.text-center {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.group-carousel-section {
    padding: 100px 0;
}

.group-carousel-track {
    display: flex;
    width: max-content;
    animation: scrollLeft 55s linear infinite;
}

.group-card-mini {
    width: 220px;
    padding: 20px;
    height: auto;
    text-align: center;
}

.group-desc {
    font-size: 0.85rem;
    color: var(--dark-gray);
    flex-grow: 1;
    margin-bottom: 12px;
}

.group-link-mini {
    margin-top: auto;
}

.group-card-mini:hover {
    transform: translateY(-4px);
}

.group-logo-mini {
    height: 50px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-logo-mini img {
    max-height: 40px;
    width: auto;
}

.group-card-mini h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.group-desc {
    font-size: 0.85rem;
    color: var(--dark-gray);
}


@media (max-width: 1024px) {

    .tab-button,
    .office-tab-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .company-card {
        padding: 30px 20px;
    }

    .company-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-detail-item h3 {
        width: auto;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .company-detail-item p {
        font-size: 1rem;
        line-height: 1.7;
        word-break: break-word;
        /* 長い住所対策 */
    }

    .company-logo img {
        height: 40px;
    }
}