:root {
    /* カラーパレット */
    --primary-color: #003366;
    --secondary-color: #005a9e;
    --accent-color: #ff6b00;
    --accent-secondary: #ff8c00;
    
    /* ステータスカラー */
    --success-color: #28a745;
    
    /* ニュートラルカラー */
    --text-color: #333333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    
    /* 装飾要素 */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    
    /* アニメーション */
    --transition: all 0.3s ease;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    
    /* レイアウト */
    --container-max-width: 1400px;
    
    /* アイコンサイズ */
    --icon-size-normal: 24px;
    --icon-size-large: 32px;
    --icon-size-xlarge: 48px;
    --icon-size-xxlarge: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    position: relative;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    padding-top: 0;
    font-display: swap;
}

/* ==================== ヘッダースタイル ==================== */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 9999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 5%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* ロゴ */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 48px;
    width: auto;
    max-width: 280px;
    display: block;
    object-fit: contain;
}

/* ==================== ハンバーガーボタン ==================== */
/* デスクトップでは非表示 */
.menu-btn {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    padding: 0;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    z-index: 10000;
}

.menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #003366;
    left: 0;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 10px; }
.menu-btn span:nth-child(3) { top: 20px; }

.menu-btn.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.menu-btn.active span:nth-child(2) { opacity: 0 !important; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

/* ==================== ナビゲーション（デスクトップ） ==================== */
.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* メインコンテンツ - 共通レイアウト設定 */
main {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
    margin-top: 0;
    overflow-x: hidden;
}

/* コンテンツラッパー - 共通コンテナ */
.content-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box;
}

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 800px;
    display: flex;
    align-items: center;
    padding: 0;
    margin-top: 80px;
    background: url('../images/heroimage.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 51, 102, 0.9) 50%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 5%;
    margin-left: 8%;
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-key-message {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-key-message .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.primary-btn {
    background: var(--gradient-accent);
    color: var(--white);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid var(--white);
}

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

/* 信頼性指標 */
.trust-indicators {
    background-color: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* セクション共通スタイル */
section {
    padding: 4rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

section.hero {
    background-color: transparent;
}

section.contact {
    background: var(--gradient-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-title-small {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin: 4rem 0 2rem;
    font-weight: 700;
}

@media screen and (min-width: 1025px) {
    .team .section-subtitle {
        white-space: nowrap;
    }
}

/* デスクトップサイズでのヒーローテキスト調整 */
@media screen and (min-width: 1301px) {
    .hero-content h1 {
        white-space: nowrap;
    }
    
    .hero-key-message {
        white-space: nowrap;
    }
    
    .hero-subtitle {
        white-space: nowrap;
    }
}

/* なぜ東京海上ディーアールなのか？ */
.points-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.points-container .point-card:nth-child(3) {
    grid-column: 1 / -1;
}

.point-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.point-card-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.point-card-header > .material-icons {
    font-size: 2.2rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.point-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
    padding: 0;
}

.point-header-sub {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0.3rem 0 0;
    line-height: 1.5;
    font-weight: 400;
}

.point-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.point-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.point-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.point-body p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.point-body .point-benefits {
    padding: 0;
    margin-top: auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}



/* フローセクション */
.flow {
    background-color: var(--light-bg);
}

.flow-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.flow-step {
    background: var(--white);
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.step-header {
    margin-bottom: 0;
    background: var(--gradient-primary);
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: 0;
}

.step-header h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.step-header h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.step-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.step-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 3 / 2;
}

.step-content {
    text-align: left;
    padding: 0 1.5rem 1.5rem;
}

.step-content p {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0 0 1rem 0;
    padding: 1.5rem 0 0;
    line-height: 1.6;
}

.step-content .point-benefits {
    padding: 0;
}

.step-content .benefit-item {
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-content .benefit-item i {
    margin-top: 0.25rem;
}

.step-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.step-content li {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    padding-left: 1.2rem;
    position: relative;
}

.step-content li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.5rem;
    top: 0.35rem;
}



/* ケーススタディ */
.case-studies {
    margin-bottom: 4rem;
}

.case-studies h3 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.case-study-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--light-bg);
    border: 1px solid var(--light-gray);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.case-study-content {
    background: var(--light-bg);
    padding: 0;
    border-radius: var(--border-radius);
    position: relative;
    width: 90%;
    height: 350px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.case-image {
    width: 100%;
    height: 350px;
    border-radius: 0;
    overflow: hidden;
    background: var(--white);
    box-shadow: none;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 12 / 7;
}

.case-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    background-color: #f8fbff;
}

.case-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    font-size: 0.85rem;
}

.label {
    font-weight: 600;
    min-width: 80px;
    color: var(--gray);
}

.value {
    color: var(--text-color);
}

.case-results h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}



/* お客様の声 */
.testimonials {
    margin-top: 4rem;
}

.testimonials h2,
.testimonials h3 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-gray);
    position: relative;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    aspect-ratio: 4 / 3;
}

.image-note {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.testimonial-content {
    padding: 1.5rem;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, var(--primary-color), var(--secondary-color)) 1;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.testimonial-author {
    padding: 0 1.5rem 1.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
}

.author-title {
    font-size: 0.9rem;
    color: var(--gray);
}

/* チームセクション */
.team-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.team-stat {
    text-align: center;
}

.team-stat .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.team-stat .stat-label {
    font-size: 1rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.team-showcase {
    display: flex;
    flex-direction: column;
    margin: 2rem 0 4rem;
    width: 100%;
}

.team-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9), transparent);
    padding: 4rem 2rem 2rem;
    color: white;
}

.team-overlay-content p.team-overlay-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.team-overlay-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.team-caption {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.caption-icon {
    color: var(--primary-color);
    font-size: 2rem;
}

.caption-icon .material-icons {
    font-size: var(--icon-size-large);
}

.team-caption p {
    flex: 1;
    margin: 0;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-color);
}

.consultant-intro-button {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
}

.consultant-intro-button .cta-button {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.consultant-intro-button .cta-button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--white);
}

@media screen and (max-width: 768px) {
    .team-image-container {
        height: 280px;
    }
    
    .team-photo-overlay {
        top: 0;
        bottom: auto;
        padding: 1rem 1rem 2rem;
        background: linear-gradient(to bottom, rgba(0, 51, 102, 0.9) 0%, rgba(0, 51, 102, 0.6) 70%, transparent 100%);
    }
    
    .team-overlay-content p.team-overlay-title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .team-overlay-content p {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    
    .consultant-intro-button {
        bottom: 1rem;
        right: 50%;
        transform: translateX(50%);
    }
    
    .consultant-intro-button .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
}

@media screen and (max-width: 480px) {
    .team-image-container {
        height: 300px;
    }
    
    .team-photo-overlay {
        padding: 3rem 1rem 1.5rem;
    }
    
    .team-overlay-content p.team-overlay-title {
        font-size: 1.3rem;
    }
    
    .team-caption {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
    }
    
    .caption-icon {
        margin: 0 auto 1rem;
    }
}



/* FAQセクション */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
}

.faq-question:hover {
    background: rgba(0, 51, 102, 0.05);
}

.faq-question-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    contain: layout;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.7;
}



/* プロジェクトセクション */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    width: 70%;
    margin: 0 auto;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    flex: 1;
}

.project-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status.ongoing {
    background: var(--success-color);
    color: var(--white);
}

.project-status.completed {
    background: var(--gray);
    color: var(--white);
}

.project-details {
    background: var(--white);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.detail-row {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-row .label {
    font-weight: 600;
    min-width: 80px;
    color: var(--gray);
}

.detail-row .value {
    color: var(--text-color);
}

.project-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    border: none;
    cursor: pointer;
    width: fit-content;
    margin: 0 auto;
}

.project-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.project-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

/* レポートセクション */
.reports {
    position: relative;
}

.reports-grid-wrapper {
    overflow: hidden;
    width: 100%;
}

.reports-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    transition: transform 0.5s ease;
    flex-wrap: nowrap;
}

.report-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: calc((100% - 4rem) / 3);
}

.report-card:hover {
    transform: translateY(-5px);
}

/* カルーセルコントロール */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: var(--light-gray);
    color: var(--gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-btn .material-icons {
    font-size: 28px;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: var(--secondary-color);
}

.report-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.report-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.report-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.report-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.report-link:hover {
    color: var(--accent-color);
}

.reports-cta {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.reports-cta p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.report-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.report-all-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* お問い合わせセクション（強化） */
.contact {
    position: relative;
    padding: 0;
    background: var(--gradient-primary);
}

.contact-overlay {
    width: 100%;
    padding: 4rem 0;
    background-image: url('https://www.tokio-dr.jp/shared/images/bg-pattern-dot.png');
    background-repeat: repeat;
}

.contact .section-header h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact .section-header h2::after {
    background-color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-method {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-method p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.contact-btn.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.contact-btn.secondary {
    background: var(--gradient-accent);
    color: var(--white);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.phone-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.phone-note {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.phone-hours {
    font-size: 0.9rem;
    color: var(--gray);
}

.phone-hours p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 固定CTAボタン */
.fixed-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fixed-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.fixed-cta-btn::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.fixed-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
}

/* Material Icons用のサイズ調整 */
.material-icons {
    vertical-align: middle;
}



/* お問い合わせセクションのアイコン大きさ調整 */
.contact-icon .material-icons {
    font-size: var(--icon-size-xlarge);
}

/* レポートや固定CTAボタンのアイコン調整 */
.report-all-link .material-icons,
.contact-btn .material-icons {
    font-size: var(--icon-size-normal);
}

/* アニメーション定義 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}


/* 1920px以上でヒーローセクションの幅を固定 */
@media screen and (min-width: 1920px) {
    .hero {
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* レスポンシブデザイン */
@media screen and (max-width: 1024px) {
    .hero {
        overflow: hidden;
    }
    
    .hero-content {
        margin-left: 0;
        margin-right: 0;
        padding: 0 5%;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-key-message {
        font-size: 1.8rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-stats {
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .case-study-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 450px;
    }
    
    .case-image {
        grid-column: 1;
        grid-row: 1;
        height: 250px;
    }
    
    .case-info {
        grid-column: 1;
        grid-row: 2;
        padding: 1.5rem;
    }
}

/* タブレット・モバイル向けスタイル */
@media screen and (max-width: 1300px) {
    /* ヘッダー・ナビゲーション */
    .logo img {
        max-width: 200px;
    }

    .menu-btn {
        display: block !important;
    }

    /* nav-menu自体は常に存在、ulを隠す */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        z-index: 9998;
        flex-grow: 0;
        display: block;
    }

    .nav-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .nav-menu.active ul {
        display: flex !important;
    }

    .nav-menu li {
        margin: 0;
        border-top: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 5%;
        width: 100%;
        text-align: center;
    }

    /* コンポーネント調整 */
    .hero {
        height: 650px;
        background-position: 80% center;
    }
    
    .hero::before {
        background: rgba(0, 51, 102, 0.85);
    }
    
    .hero-content {
        margin: 0 auto;
        margin-left: 0;
        text-align: center;
        padding: 0 5%;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-key-message {
        font-size: 1.6rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cta-button {
        justify-content: center;
    }
    
    /* レイアウト調整 */
    .flow-steps-grid,
    .points-container {
        grid-template-columns: 1fr;
    }
    
    /* カードスタイル調整 */
    .team-stats {
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* 導入事例スタイル調整 */
    .case-study-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .case-study-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* 固定CTA */
    .fixed-cta {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        height: 550px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    /* 調査研究プロジェクトカード調整 */
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-header {
        flex-direction: column;
    }
    
    .project-header h3 {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }
    
    .project-status {
        align-self: flex-start;
    }
    
    /* 導入事例モバイル表示調整 */
    .case-studies h3 {
        font-size: 1.6rem;
    }
    
    .case-study-content {
        min-height: auto;
    }
    
    .case-image {
        height: 180px;
    }
    
    .case-info {
        padding: 1rem;
    }
    
    .case-info h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .case-details {
        gap: 0.5rem;
    }
    
    .detail-item {
        font-size: 0.8rem;
    }
    
    .label {
        min-width: 70px;
    }
    
    .hero-key-message {
        font-size: 1.3rem;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        white-space: normal;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .phone-number {
        font-size: 2rem;
    }
    
    .contact-method {
        padding: 2rem 1.5rem;
    }
}

/* フッター（既存のスタイルを維持） */
#footer {
    font-size: 10px !important; 
    background-color: #002656;
}

#footer .nav-footer-global li a {
    font-size: 14px !important; 
    color: #fff;
}

#footer .footer-bland__copy small {
    font-size: 14px !important; 
    color: #fff;
}

/* 関連情報セクション（プロジェクトカード内） */
.project-card .related-info-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.project-card .related-info-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: left;
}

.related-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-info-card {
    background: #e8f4ff;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.related-info-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.related-info-card p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.related-info-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.3rem;
    transition: var(--transition);
}

.related-info-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* タブレット表示での調査研究プロジェクトカード調整 */
@media screen and (max-width: 1024px) {
    .project-card {
        width: 100%;
    }
    
    .related-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .related-info-cards {
        grid-template-columns: 1fr;
    }
    
    .project-card .related-info-title {
        font-size: 1.1rem;
    }
    
    .related-info-card {
        padding: 1rem;
    }
    
    .related-info-date {
        font-size: 0.8rem;
    }
    
    .related-info-card p {
        font-size: 0.85rem;
    }
}

/* カルーセル レスポンシブ対応 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .report-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        min-width: calc((100% - 2rem) / 2);
    }
}

@media screen and (max-width: 768px) {
    .report-card {
        flex: 0 0 calc(100% - 10%);
        min-width: calc(100% - 10%);
        max-width: calc(100% - 10%);
    }
    
    .reports-grid {
        gap: 2rem;
    }
    
    .carousel-controls {
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn .material-icons {
        font-size: 24px;
    }
}
