/* --- Apple-inspired Modern Layout Styles --- */

:root {
    --brand-blue: #0088DB;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

/* ブランドカラー用ユーティリティ */
.text-brand { color: var(--brand-blue); }
.bg-brand { background-color: var(--brand-blue); }
.border-brand { border-color: var(--brand-blue); }

/* Apple風カードデザイン */
.apple-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.apple-card:hover {
    transform: scale(1.015);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

/* グラデーション・背景エフェクト */
.gradient-text {
    background: linear-gradient(135deg, #1d1d1f 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ヒーローセクション専用スタイル */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    /* object-fitをcoverに変更してブラウザ幅いっぱいに表示 */
    object-fit: cover;
    object-position: center bottom;
}

/* 上部を白くぼかしてテキストを読みやすくする */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0) 60%);
    z-index: 1;
}

/* ヒーローボタン（事業内容を見る）のカスタムスタイル */
.btn-hero {
    background-color: var(--brand-blue);
    color: white !important;
    padding: 1.25rem 3rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 136, 219, 0.25);
    font-size: 1.125rem;
}

.btn-hero:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 136, 219, 0.35);
    opacity: 0.95;
}

.btn-hero i {
    transition: transform 0.3s ease;
}

.btn-hero:hover i {
    transform: translateX(4px);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

/* 会社概要のテーブルスタイル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.company-table th {
    background-color: #ffffff;
    color: #4b5563;
    font-weight: normal; /* 太字を解除 */
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid #e5e7eb;
    width: 30%;
    min-width: 160px;
}

.company-table td {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    vertical-align: middle;
    font-weight: normal; /* 太字を解除 */
}

/* WordPress Contact Form 7 Styling */
.wp-contact-form input[type="text"],
.wp-contact-form input[type="email"],
.wp-contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.wp-contact-form input:focus,
.wp-contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 136, 219, 0.1);
}

.wp-contact-form input[type="submit"] {
    background-color: var(--brand-blue);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
    margin-top: 1rem;
}

.wp-contact-form input[type="submit"]:hover {
    opacity: 0.9;
}

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

.animate-fade-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .apple-card {
        border-radius: 20px;
    }
    .btn-hero {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .company-table th {
        width: 35%;
        padding: 1rem 0.5rem;
        font-size: 0.875rem;
    }
    .company-table td {
        padding: 1rem;
        font-size: 0.875rem;
    }
}