/* ============================================
   シンセイ建設 Webサイト - メインスタイル
   ============================================ */

@import './variables.css';
@import './base.css';
@import './components.css';
@import './layout.css';

/* ============================================
   ヒーローセクション
   ============================================ */
.hero {
    /* フォールバック画像を最初に設定（モバイル対応） */
    background-image: url('../../material/shinsei/images/top.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* WebP対応ブラウザ用（image-set がサポートされていない場合のフォールバック） */
    background-image:
        -webkit-image-set(url('../../material/shinsei/images/top.webp') type('image/webp'),
            url('../../material/shinsei/images/top.png') type('image/png'));
    /* 標準的な image-set（モダンブラウザ用） */
    background-image:
        image-set(url('../../material/shinsei/images/top.webp') type('image/webp'),
            url('../../material/shinsei/images/top.png') type('image/png'));
    color: white;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.7) 0%, rgba(37, 99, 235, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 1;
    letter-spacing: 0.1em;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    line-height: 1.4;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.6);
}

.hero-unique {
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-legacy {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 1;
    font-style: italic;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-company {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 旧スタイルとの互換性のため */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 2;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 5px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ヒーローセクション内のアウトラインボタンのスタイル改善 */
.hero-section .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.hero-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.hero-scroll i {
    font-size: var(--font-size-2xl);
    color: var(--white);
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   セクション共通
   ============================================ */
section {
    padding: 5rem 2rem;
    scroll-margin-top: 80px;
    /* 固定ヘッダーに隠れないようにする */
    padding-top: 2rem;
    /* セクションタイトルが隠れないようにする */
    padding-bottom: 2.5rem;
    /* 下側のマージンを半分に */
}

/* ============================================
   セクションタイトル
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-top: 0.5rem;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.section-title-en {
    font-family: var(--font-en);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.section-title-jp {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-md);
    margin-bottom: 0;
}

.section-title-jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
}

/* ============================================
   カウントアップアニメーション
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-4xl) 0;
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-en);
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
}

/* ============================================
   実績ギャラリー
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-4xl) 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    color: var(--white);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: 1;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ============================================
   タイムライン
   ============================================ */
.timeline {
    position: relative;
    padding: var(--spacing-4xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-blue);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-4xl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: var(--spacing-4xl);
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }
}

/* ============================================
   レスポンシブ調整
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        min-height: 500px;
        padding: 4rem 2rem;
        /* タブレットでも background-attachment: fixed を削除 */
        background-attachment: scroll;
    }

    .hero-section {
        min-height: 500px;
        padding: 4rem 2rem;
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }
}

/* iPhone5sなど (320px-339px) */
@media (min-width: 320px) and (max-width: 339px) {
    .hero h1 {
        font-size: 1.3rem;
    }
}

/* 340px-359px */
@media (min-width: 340px) and (max-width: 359px) {
    .hero h1 {
        font-size: 1.4rem;
    }
}

/* iPhoneXSなど (360px-380px) */
@media (min-width: 360px) and (max-width: 380px) {
    .hero h1 {
        font-size: 1.5rem;
    }
}

/* iPhone 14 Proなど (381px-401px) */
@media (min-width: 381px) and (max-width: 401px) {
    .hero h1 {
        font-size: 1.6rem;
    }
}

/* iPhone 16 Proなど (402px-422px) */
@media (min-width: 402px) and (max-width: 422px) {
    .hero h1 {
        font-size: 1.7rem;
    }
}

/* iPhone13 Pro MAXなど (423px-443px) */
@media (min-width: 423px) and (max-width: 443px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* 444px-463px */
@media (min-width: 444px) and (max-width: 463px) {
    .hero h1 {
        font-size: 1.9rem;
    }
}

/* 464px-768px */
@media (min-width: 464px) and (max-width: 768px) {
    .hero h1 {
        font-size: 2.0rem;
    }
}

/* ============================================
   .group-badge モバイル用フォントサイズ設定
   ============================================ */
/* 320px-323px */
@media (min-width: 320px) and (max-width: 323px) {
    .group-badge {
        font-size: 0.55rem;
    }
}

/* 324px-329px */
@media (min-width: 324px) and (max-width: 329px) {
    .group-badge {
        font-size: 0.60rem;
    }
}

/* 330px-335px */
@media (min-width: 330px) and (max-width: 335px) {
    .group-badge {
        font-size: 0.65rem;
    }
}

/* 336px-342px */
@media (min-width: 336px) and (max-width: 342px) {
    .group-badge {
        font-size: 0.70rem;
    }
}

/* 343px以上 */
@media (min-width: 343px) {
    .group-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 4rem 1.5rem;
        /* iOS Safariで背景画像が表示されない問題を修正 */
        background-attachment: scroll;
        /* モバイル用に背景画像を再設定 */
        background-image: url('../../material/shinsei/images/top.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-unique {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .hero-section {
        min-height: 400px;
        padding: 4rem 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   代表メッセージセクション（エンタープライズスタイル）
   ============================================ */
.ceo-section {
    background: var(--secondary-light);
}

.ceo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.ceo-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.ceo-icon {
    width: 180px;
    height: 180px;
    min-width: 180px;
    max-width: 180px;
    min-height: 180px;
    max-height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    box-sizing: border-box;
}

.ceo-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 180px !important;
    max-height: 180px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.ceo-icon-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.ceo-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ceo-name-ja {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.ceo-name-en {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.ceo-message {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ceo-message-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
    padding-left: 1rem;
}

.ceo-message p {
    margin-bottom: 1.5rem;
    line-height: 2;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.ceo-highlight {
    background: linear-gradient(transparent 60%, rgba(37, 99, 235, 0.3) 60%);
    font-weight: bold;
}

.ceo-signature {
    text-align: right;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.ceo-signature-company {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.ceo-signature-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
}

/* ============================================
   代表メッセージセクション モバイル用フォントサイズ設定
   ============================================ */
/* .ceo-message-title フォントサイズ設定 */
/* 320px */
@media (min-width: 320px) and (max-width: 320px) {
    .ceo-message-title {
        font-size: 1.0rem;
    }
}

/* 321px-333px */
@media (min-width: 321px) and (max-width: 333px) {
    .ceo-message-title {
        font-size: 1.1rem;
    }
}

/* 334px-346px */
@media (min-width: 334px) and (max-width: 346px) {
    .ceo-message-title {
        font-size: 1.2rem;
    }
}

/* 347px-359px */
@media (min-width: 347px) and (max-width: 359px) {
    .ceo-message-title {
        font-size: 1.3rem;
    }
}

/* 360px-371px */
@media (min-width: 360px) and (max-width: 371px) {
    .ceo-message-title {
        font-size: 1.4rem;
    }
}

/* 372px-384px */
@media (min-width: 372px) and (max-width: 384px) {
    .ceo-message-title {
        font-size: 1.5rem;
    }
}

/* 385px-397px */
@media (min-width: 385px) and (max-width: 397px) {
    .ceo-message-title {
        font-size: 1.6rem;
    }
}

/* 398px-410px */
@media (min-width: 398px) and (max-width: 410px) {
    .ceo-message-title {
        font-size: 1.7rem;
    }
}

/* 411px以上 */
@media (min-width: 411px) {
    .ceo-message-title {
        font-size: 1.8rem;
    }
}

/* .ceo-message p フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .ceo-message p {
        font-size: 0.8rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .ceo-message p {
        font-size: 0.9rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .ceo-message p {
        font-size: 1.0rem;
    }
}

/* .ceo-signature-company フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .ceo-signature-company {
        font-size: 0.7rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .ceo-signature-company {
        font-size: 0.8rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .ceo-signature-company {
        font-size: 0.9rem;
    }
}

/* .ceo-signature-name フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .ceo-signature-name {
        font-size: 0.8rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .ceo-signature-name {
        font-size: 0.9rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .ceo-signature-name {
        font-size: 1.0rem;
    }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .ceo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ceo-card {
        position: static;
        max-width: 100%;
    }

    .ceo-icon {
        width: 180px;
        height: 180px;
        max-width: 180px;
        max-height: 180px;
    }
}

/* ============================================
   アクセシビリティ: スキップリンク
   ============================================ */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: bold;
    transition: top 0.3s;
    clip-path: inset(50%);
}

.skip-link:focus {
    top: 0;
    clip-path: none;
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ============================================
   トップに戻るボタン
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ============================================
   Strengthsセクション（エンタープライズスタイル）
   ============================================ */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.strength-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 3px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.strength-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.strength-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.strength-card:nth-child(1) .strength-icon {
    color: var(--primary-blue);
}

.strength-card:nth-child(2) .strength-icon {
    color: var(--primary-blue);
}

.strength-card:nth-child(3) .strength-icon {
    color: var(--accent-yellow);
}

.strength-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.strength-card .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.strength-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.benefits-title {
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-primary);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.strength-link {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
}

.strength-link-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.strength-link-button:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.strength-link-button:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

.strength-link-button i {
    margin-right: 0.5rem;
}

/* ============================================
   Serviceセクション（エンタープライズスタイル）
   ============================================ */
.service-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.service-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2332 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon {
    font-size: 4rem;
    color: white;
}

.service-body {
    padding: 1.5rem;
}

.service-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-link-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-link-button:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-link-button:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

.service-link-button i {
    margin-right: 0.5rem;
}

/* ============================================
   Visionセクション（エンタープライズスタイル）
   ============================================ */
.vision-section {
    background: linear-gradient(135deg, var(--secondary-light) 0%, #FFFFFF 100%);
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.vision-lead {
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.vision-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--text-secondary);
}

.vision-highlight {
    background: linear-gradient(transparent 60%, rgba(37, 99, 235, 0.3) 60%);
    font-weight: bold;
}

/* ============================================
   Legacy/Historyセクション（エンタープライズスタイル）
   ============================================ */
.legacy-section {
    background: linear-gradient(135deg, var(--secondary-light) 0%, #FFFFFF 100%);
    text-align: center;
}

.legacy-highlight {
    display: inline-block;
    font-size: 5rem;
    font-weight: bold;
    color: var(--accent-yellow);
    margin: 0.5rem 0 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.legacy-text {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 2rem;
}

.legacy-text i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.legacy-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
}

/* ============================================
   Vision/Legacyセクション モバイル用フォントサイズ設定
   ============================================ */
/* .vision-text フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .vision-text {
        font-size: 0.9rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .vision-text {
        font-size: 1.0rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .vision-text {
        font-size: 1.1rem;
    }
}

/* .legacy-highlight フォントサイズ設定 */
/* 320px-332px */
@media (min-width: 320px) and (max-width: 332px) {
    .legacy-highlight {
        font-size: 2.0rem;
    }
}

/* 333px-345px */
@media (min-width: 333px) and (max-width: 345px) {
    .legacy-highlight {
        font-size: 2.1rem;
    }
}

/* 346px-358px */
@media (min-width: 346px) and (max-width: 358px) {
    .legacy-highlight {
        font-size: 2.2rem;
    }
}

/* 359px-371px */
@media (min-width: 359px) and (max-width: 371px) {
    .legacy-highlight {
        font-size: 2.3rem;
    }
}

/* 372px-383px */
@media (min-width: 372px) and (max-width: 383px) {
    .legacy-highlight {
        font-size: 2.4rem;
    }
}

/* 384px-396px */
@media (min-width: 384px) and (max-width: 396px) {
    .legacy-highlight {
        font-size: 2.5rem;
    }
}

/* 397px以上 */
@media (min-width: 397px) {
    .legacy-highlight {
        font-size: 2.6rem;
    }
}

/* .legacy-text フォントサイズ設定 */
/* 320px-340px */
@media (min-width: 320px) and (max-width: 340px) {
    .legacy-text {
        font-size: 1.1rem;
    }
}

/* 341px-362px */
@media (min-width: 341px) and (max-width: 362px) {
    .legacy-text {
        font-size: 1.2rem;
    }
}

/* 363px-385px */
@media (min-width: 363px) and (max-width: 385px) {
    .legacy-text {
        font-size: 1.3rem;
    }
}

/* 386px以上 */
@media (min-width: 386px) {
    .legacy-text {
        font-size: 1.4rem;
    }
}

/* .legacy-description フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .legacy-description {
        font-size: 0.9rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .legacy-description {
        font-size: 1.0rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .legacy-description {
        font-size: 1.1rem;
    }
}

/* ============================================
   Companyセクション（エンタープライズスタイル）
   ============================================ */
.company-overview-section {
    background: white;
}

.company-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.company-card {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.company-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.company-card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--primary-blue);
    opacity: 0.3;
}

.company-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.company-info-row {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-light);
    padding-bottom: 0.8rem;
}

.company-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.company-info-label {
    min-width: 100px;
    font-weight: bold;
    color: var(--text-secondary);
}

.company-info-value {
    color: var(--primary-dark);
    flex: 1;
}

.company-info-section {
    margin-bottom: 1.5rem;
}

.company-info-section:last-child {
    margin-bottom: 0;
}

.company-info-section p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.bank-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.bank-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.bank-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ============================================
   Companyセクション モバイル用フォントサイズ設定
   ============================================ */
/* .company-info-label フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .company-info-label {
        font-size: 0.8rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .company-info-label {
        font-size: 0.9rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .company-info-label {
        font-size: 1.0rem;
    }
}

/* .company-info-value フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .company-info-value {
        font-size: 0.8rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .company-info-value {
        font-size: 0.9rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .company-info-value {
        font-size: 1.0rem;
    }
}

/* .company-info-section フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .company-info-section {
        font-size: 0.8rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .company-info-section {
        font-size: 0.9rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .company-info-section {
        font-size: 1.0rem;
    }
}

/* ============================================
   Recruitセクション（エンタープライズスタイル）
   ============================================ */
#recruit {
    background: var(--secondary-light);
    padding: 5rem 2rem;
}

.recruit-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recruit-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.recruit-slogan {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.recruit-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   Recruitセクション モバイル用フォントサイズ設定
   ============================================ */
/* .recruit-title フォントサイズ設定 */
/* 320px-326px */
@media (min-width: 320px) and (max-width: 326px) {
    .recruit-title {
        font-size: 0.7rem;
    }
}

/* 327px-347px */
@media (min-width: 327px) and (max-width: 347px) {
    .recruit-title {
        font-size: 0.8rem;
    }
}

/* 348px-367px */
@media (min-width: 348px) and (max-width: 367px) {
    .recruit-title {
        font-size: 0.9rem;
    }
}

/* 368px-388px */
@media (min-width: 368px) and (max-width: 388px) {
    .recruit-title {
        font-size: 1.0rem;
    }
}

/* 389px以上 */
@media (min-width: 389px) {
    .recruit-title {
        font-size: 1.1rem;
    }
}

/* .recruit-slogan フォントサイズ設定 */
/* 320px-326px */
@media (min-width: 320px) and (max-width: 326px) {
    .recruit-slogan {
        font-size: 0.7rem;
    }
}

/* 327px-347px */
@media (min-width: 327px) and (max-width: 347px) {
    .recruit-slogan {
        font-size: 0.8rem;
    }
}

/* 348px-367px */
@media (min-width: 348px) and (max-width: 367px) {
    .recruit-slogan {
        font-size: 0.9rem;
    }
}

/* 368px-388px */
@media (min-width: 368px) and (max-width: 388px) {
    .recruit-slogan {
        font-size: 1.0rem;
    }
}

/* 389px以上 */
@media (min-width: 389px) {
    .recruit-slogan {
        font-size: 1.1rem;
    }
}

/* .recruit-text フォントサイズ設定 */
/* 320px-326px */
@media (min-width: 320px) and (max-width: 326px) {
    .recruit-text {
        font-size: 0.7rem;
    }
}

/* 327px-347px */
@media (min-width: 327px) and (max-width: 347px) {
    .recruit-text {
        font-size: 0.8rem;
    }
}

/* 348px-367px */
@media (min-width: 348px) and (max-width: 367px) {
    .recruit-text {
        font-size: 0.9rem;
    }
}

/* 368px-388px */
@media (min-width: 368px) and (max-width: 388px) {
    .recruit-text {
        font-size: 1.0rem;
    }
}

/* 389px以上 */
@media (min-width: 389px) {
    .recruit-text {
        font-size: 1.1rem;
    }
}

.recruit-link-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.recruit-link-button:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.recruit-link-button:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

.recruit-link-button i {
    margin-right: 0.5rem;
}

/* .recruit-link-button フォントサイズ設定 */
/* 320px-326px */
@media (min-width: 320px) and (max-width: 326px) {
    .recruit-link-button {
        font-size: 0.7rem;
    }
}

/* 327px-347px */
@media (min-width: 327px) and (max-width: 347px) {
    .recruit-link-button {
        font-size: 0.8rem;
    }
}

/* 348px-367px */
@media (min-width: 348px) and (max-width: 367px) {
    .recruit-link-button {
        font-size: 0.9rem;
    }
}

/* 368px-388px */
@media (min-width: 368px) and (max-width: 388px) {
    .recruit-link-button {
        font-size: 1.0rem;
    }
}

/* 389px以上 */
@media (min-width: 389px) {
    .recruit-link-button {
        font-size: 1.1rem;
    }
}

/* ============================================
   Access/Mapセクション（エンタープライズスタイル）
   ============================================ */
.company-map-section {
    background: white;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.map-item h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-item h4 i {
    color: var(--primary-blue);
}

.map-address {
    background: var(--secondary-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================
   Mapセクション モバイル用フォントサイズ設定
   ============================================ */
/* .map-address フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .map-address {
        font-size: 0.8rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .map-address {
        font-size: 0.9rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .map-address {
        font-size: 1.0rem;
    }
}

.map-embed {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
    border-radius: 8px;
}

/* アクセス注釈 */
.map-access-notes {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--secondary-light);
    border-radius: 6px;
    border-left: 3px solid var(--primary-blue);
}

.map-access-notes-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-access-notes-title i {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.map-access-notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.map-access-note-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.map-access-ic-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.map-access-time {
    color: var(--primary-blue);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.85rem;
}

.map-access-time::before {
    content: '→';
    color: var(--text-secondary);
    font-weight: normal;
    margin-right: 0.25rem;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .company-cards-grid {
        grid-template-columns: 1fr;
    }

    .map-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .map-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-embed iframe {
        min-height: 300px;
    }
}

/* ============================================
   モーダルダイアログ
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s;
    display: flex;
    flex-direction: column;
}

/* スクロール可能なコンテンツ用の要素 */
.modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    /* スクロールバーのスタイルをカスタマイズして角を丸くする */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    /* スクロールバーのスペースを確保 */
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

/* Webkit系ブラウザ（Chrome、Safari、Edge）用のスクロールバースタイル */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: none;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.modal-close,
button.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: var(--secondary-light);
    color: var(--primary-blue);
}

.modal-service-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-service-title i {
    color: var(--primary-blue);
}

.modal-service-info {
    background: var(--secondary-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-service-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.modal-service-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-service-badges .badge {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .modal-service-info {
        padding: 1rem;
    }

    .modal-service-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   フッターセクション モバイル用フォントサイズ設定
   ============================================ */
/* .footer-content フォントサイズ設定 */
/* 320px-359px */
@media (min-width: 320px) and (max-width: 359px) {
    .footer-content {
        font-size: 0.8rem;
    }
}

/* 360px-397px */
@media (min-width: 360px) and (max-width: 397px) {
    .footer-content {
        font-size: 0.9rem;
    }
}

/* 398px以上 */
@media (min-width: 398px) {
    .footer-content {
        font-size: 1.0rem;
    }
}
