/* ===========================
   基本設定
   =========================== */
:root {
    /* カラーパレット - 深い青をテーマに */
    --primary-color: #153158;
    --primary-dark: #0f2550;
    --primary-light: #4a7bc8;
    --secondary-color: #153158;
    --secondary-dark: #0f2550;
    --accent-color: #4a7bc8;
    
    /* グレースケール */
    --text-primary: #212121;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-lighter: #fafafa;
    --border-color: #e0e0e0;
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* トランジション */
    --transition: all 0.3s ease;
    
    /* スペーシング */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   ヒーローセクション
   =========================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #153158 0%, #0f2550 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path fill="rgba(255,255,255,0.05)" d="M0 300c100-50 200-50 300 0s200 50 300 0 200-50 300 0 200 50 300 0V600H0z"/></svg>');
    background-size: cover;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-600px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 10;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* ===========================
   ボタン
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===========================
   セクション共通
   =========================== */
.section {
    padding: var(--section-padding);
}

.section:nth-child(even) {
    background: var(--bg-lighter);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===========================
   企業理念セクション
   =========================== */
.philosophy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-main {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
}

.philosophy-quote {
    text-align: center;
    margin-bottom: 30px;
}

.philosophy-quote i {
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.philosophy-quote h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
    line-height: 1.5;
}

.philosophy-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    text-align: center;
}

.philosophy-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   代表挨拶セクション
   =========================== */
.message-content {
    max-width: 900px;
    margin: 0 auto 50px;
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.message-profile {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.profile-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-image i {
    font-size: 3.5rem;
    color: white;
}

.profile-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.profile-reading {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.profile-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.message-text p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: var(--text-primary);
}

.message-intro p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.message-signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.signature-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 10px;
}

.ceo-background {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-lighter);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.ceo-background h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.background-list {
    list-style: none;
}

.background-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.7;
}

.background-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===========================
   事業内容セクション
   =========================== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.business-card {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.business-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.business-icon i {
    font-size: 3rem;
    color: white;
}

.business-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.business-card > p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.business-features {
    list-style: none;
}

.business-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.business-features i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.business-benefits {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.business-benefits h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: var(--bg-lighter);
    transition: var(--transition);
}

.benefit-item:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.benefit-item:hover i,
.benefit-item:hover h5,
.benefit-item:hover p {
    color: white;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.benefit-item h5 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: var(--transition);
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

/* ===========================
   会社概要セクション
   =========================== */
.company-info {
    max-width: 900px;
    margin: 0 auto 50px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.info-table tbody tr:last-child {
    border-bottom: none;
}

.info-table th {
    width: 200px;
    padding: 25px 30px;
    background: var(--bg-lighter);
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    vertical-align: top;
}

.info-table td {
    padding: 25px 30px;
    color: var(--text-primary);
    line-height: 1.8;
}

.info-table th i {
    margin-right: 8px;
}

.info-table .sub-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-table a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.info-table a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.language-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.language-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.company-map {
    max-width: 900px;
    margin: 0 auto;
}

.company-map h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.map-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-lighter);
    color: var(--text-secondary);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.map-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===========================
   お問い合わせセクション
   =========================== */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--bg-lighter);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    font-size: 1.8rem;
    color: white;
}

.method-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.method-info p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 5px;
}

.method-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.method-info a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===========================
   トップへ戻るボタン
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   レスポンシブデザイン
   =========================== */

@media (max-width: 992px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .info-table th {
        width: 150px;
        padding: 20px;
    }
    
    .info-table td {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .philosophy-main {
        padding: 30px;
    }
    
    .philosophy-quote h3 {
        font-size: 1.5rem;
    }
    
    .philosophy-values {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        padding: 30px;
    }
    
    .message-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .ceo-background {
        padding: 30px;
    }
    
    .business-card {
        padding: 30px;
    }
    
    .business-benefits {
        padding: 30px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .info-table {
        display: block;
    }
    
    .info-table tbody,
    .info-table tr {
        display: block;
    }
    
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }
    
    .info-table th {
        background: var(--primary-color);
        color: white;
        border-bottom: none;
    }
    
    .info-table td {
        border-bottom: 1px solid var(--border-color);
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .method-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
