/* 統合CSSファイル - エックスサーバー用 */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS変数定義 */
:root {
    --primary-color: #232f3e;
    --secondary-color: #37475a;
    --accent-color: #ff9900;
    --text-color: #0f1111;
    --light-bg: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --border-color: #eaeded;
    --link-color: #0066cc;
    --link-hover-color: #004499;
}

/* 基本レイアウト */
html, body {
    height: 100%;
    min-height: 100%;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* グローバルリンクスタイル */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* ボタンスタイルのリンクは除外 */
a.btn,
a.partner-link,
.nav-links a {
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: none;
}

/* メインコンテンツ */
main {
    padding-top: 80px;
    flex: 1 0 auto;
}

/* 共通コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ヒーローセクション */
.hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center center/cover no-repeat;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 40, 60, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    word-break: keep-all;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.5;
    letter-spacing: 0.01em;
    margin-bottom: 0;
}

/* 事業内容セクション（3カラム） */
.services-section {
    padding: 4rem 0;
    background: white;
}

.services-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-content p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* 担当者紹介セクション */
.team-section {
    padding: 4rem 0;
    background: white;
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.member-image {
    flex-shrink: 0;
    width: 240px;
}

.member-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid var(--border-color);
}

.member-info {
    flex: 1;
}

.member-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.member-description > p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.member-vision,
.member-message {
    margin-bottom: 2rem;
}

.member-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.member-expertise,
.member-achievement {
    margin-bottom: 0;
}

.member-vision h4,
.member-message h4,
.member-expertise h4,
.member-achievement h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.member-vision p,
.member-message p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0;
}

.member-expertise ul,
.member-achievement ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-expertise li,
.member-achievement li {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
    border-left: 3px solid var(--border-color);
    padding-left: 1rem;
}

.member-expertise li:hover,
.member-achievement li:hover {
    border-left-color: var(--accent-color);
    transition: border-left-color 0.3s ease;
}

/* パートナー企業セクション */
.partners-section {
    padding: 4rem 0;
    background: oklch(0.9551 0 0);
}

.partners-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.partner-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.partner-logo {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid var(--border-color);
}

.partner-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.partner-content {
    padding: 2rem;
}

.partner-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.partner-content p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid #0066cc;
    border-radius: 6px;
    background: rgba(0, 102, 204, 0.05);
}

.partner-link:hover {
    color: #004499;
    background: rgba(0, 102, 204, 0.1);
    border-color: #004499;
}

.partner-link i {
    font-size: 0.9rem;
}

/* 会社沿革セクション */
.timeline-section {
    padding: 4rem 0;
    background: oklch(0.9551 0 0);
}

.timeline-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-grid {
    display: flex;
    gap: 2rem;
    padding: 0 1rem 1rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.timeline-grid::-webkit-scrollbar {
    height: 8px;
}

.timeline-grid::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.timeline-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.timeline-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-shrink: 0;
    width: 320px;
    min-width: 320px;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.timeline-card.active {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.15);
}

.timeline-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-card.active .timeline-header {
    background: linear-gradient(135deg, var(--accent-color), #ff7700);
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.timeline-status {
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-body {
    padding: 2rem;
}

.timeline-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.timeline-body p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-metrics {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ナビゲーション */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* フッター */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 5% 1rem;
    margin-top: 4rem;
}

.footer-content.footer-horizontal {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 1rem 0;
}

.footer-section {
    flex: 1 1 0;
    min-width: 180px;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.social-links { display: none; }

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    padding: 1rem 0 0.5rem 0;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links a:not(:last-child)::after {
    content: '/';
    margin: 0 1.2rem;
    color: rgba(255,255,255,0.5);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* ヒーロー */
    .hero {
        min-height: 30vh;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }

    .hero-break {
        display: block;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* サービスセクション */
    .services-section {
        padding: 2.5rem 0;
    }

    .services-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-image {
        height: 160px;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-content h3 {
        font-size: 1.2rem;
    }

    /* 担当者セクション */
    .team-section {
        padding: 2rem 0;
    }
    
    .team-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .team-member {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }
    
    .member-image {
        width: 180px;
        margin: 0 auto;
    }
    
    .member-image img {
        height: 240px;
    }
    
    .member-info h3 {
        font-size: 1.5rem;
    }
    
    .member-title {
        font-size: 1rem;
    }
    
    .member-description > p {
        font-size: 1rem;
        text-align: left;
    }
    
    .member-vision,
    .member-message,
    .member-expertise,
    .member-achievement {
        text-align: left;
    }

    .member-skills {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* パートナー・沿革セクション */
    .partners-section,
    .timeline-section {
        padding: 2rem 0;
        margin: 1.5rem 0;
    }
    
    .partners-section h2,
    .timeline-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partner-logo {
        height: 100px;
    }
    
    .logo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .partner-content {
        padding: 1.5rem;
    }
    
    .timeline-grid {
        gap: 1.5rem;
        padding: 0 1rem 1rem 1rem;
    }
    
    .timeline-card {
        width: 280px;
        min-width: 280px;
    }
    
    .timeline-header {
        padding: 1.2rem;
    }
    
    .timeline-body {
        padding: 1.5rem;
    }
    
    .timeline-body h3 {
        font-size: 1.2rem;
    }

    /* フッター */
    .footer-content.footer-horizontal {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0 0.5rem 0;
    }
    .footer-section {
        min-width: 0;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.95rem;
        padding: 0.7rem 0 0.3rem 0;
    }
    .footer-links a:not(:last-child)::after {
        content: '';
        margin: 0;
    }

    /* ナビゲーション */
    .nav-links {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        margin: 0;
        padding: 0 2rem;
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .member-image {
        width: 120px;
    }
    
    .member-image img {
        height: 160px;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .member-expertise h4,
    .member-achievement h4 {
        font-size: 1.1rem;
    }
    
    .member-expertise li,
    .member-achievement li {
        font-size: 0.9rem;
    }

    .services-section {
        padding: 2rem 0;
    }

    .service-image {
        height: 140px;
    }

    .service-content {
        padding: 1.2rem;
    }

    .service-content h3 {
        font-size: 1.1rem;
    }

    .service-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .timeline-card {
        width: 260px;
        min-width: 260px;
    }
    
    .timeline-header {
        padding: 1rem;
    }
    
    .timeline-body {
        padding: 1.2rem;
    }
    
    .timeline-body h3 {
        font-size: 1.1rem;
    }
    
    .timeline-date {
        font-size: 1rem;
    }
    
    .timeline-status {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .partner-logo {
        height: 80px;
    }
    
    .logo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .partner-content {
        padding: 1.2rem;
    }

    .partner-item h3 {
        font-size: 1.1rem;
    }

    .logo a {
        font-size: 1.2rem;
    }
    .navbar {
        padding: 0.7rem 2%;
    }
    footer {
        margin-top: 1rem;
    }
}
