/* ==========================================================================
   NEXUS HOLDINGS Portal Design System (Vanilla CSS)
   ========================================================================== */

/* 1. CSS Variables & Reset */
:root {
    /* Colors (Inspired by ReForms brand colors) */
    --color-brand-light: #f0fdf4;       /* 淡いエメラルド (emerald-50) */
    --color-brand-primary: #065f46;     /* メインのエメラルド (emerald-800) */
    --color-brand-dark: #022c22;        /* 深いエメラルド (emerald-950) */
    --color-brand-accent: #f97316;      /* アクセントオレンジ (orange-500) */
    --color-brand-accent-hover: #ea580c;/* アクセントオレンジホバー (orange-600) */
    
    /* Neutrals */
    --color-bg-stone: #f5f5f4;          /* 背景色 (stone-50) */
    --color-text-dark: #1c1917;         /* テキストメイン (stone-900) */
    --color-text-muted: #57534e;        /* テキストサブ (stone-600) */
    --color-white: #ffffff;
    --color-border: #e7e5e4;            /* ボーダー (stone-200) */
    
    /* Fonts */
    --font-primary: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(2, 44, 34, 0.08), 0 8px 10px -6px rgba(2, 44, 34, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-stone);
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 2. Layout & Base Components */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Background Decorations */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.circle-1 {
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background-color: var(--color-brand-light);
}

.circle-2 {
    top: 600px;
    left: -150px;
    width: 400px;
    height: 400px;
    background-color: #e0f2fe; /* 淡いブルー */
}

/* Typography Helpers */
.text-accent {
    color: var(--color-brand-accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--color-brand-primary);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brand-dark);
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-brand-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn-primary, .btn-secondary, .nav-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-brand-accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-brand-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-brand-primary);
    border: 2px solid var(--color-brand-primary);
    margin-left: 16px;
}

.btn-secondary:hover {
    background-color: var(--color-brand-light);
    transform: translateY(-2px);
}

.nav-btn {
    padding: 8px 24px;
    background-color: var(--color-brand-primary);
    color: var(--color-white);
    font-size: 0.85rem;
}

.nav-btn:hover {
    background-color: var(--color-brand-dark);
    transform: translateY(-1px);
}

/* 3. Header Styling */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-contain: fit;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-brand-dark);
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-brand-primary);
}

/* 4. Hero Section */
.hero {
    position: relative;
    padding: 120px 24px 80px 24px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-brand-light);
    color: var(--color-brand-primary);
    border: 1px solid rgba(6, 95, 70, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--color-brand-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 5. Business Areas (Cards) */
.services {
    background-color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(6, 95, 70, 0.15);
}

.card-image-placeholder {
    height: 140px;
    background: linear-gradient(135deg, var(--color-brand-light) 0%, rgba(255, 255, 255, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

/* 各事業に応じた色合いのグラデーション */
.card-reform .card-image-placeholder {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.card-yakitori .card-image-placeholder {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.card-agency .card-image-placeholder {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.card-icon {
    width: 48px;
    height: 48px;
    transition: var(--transition-smooth);
}

.card-reform .card-icon {
    color: var(--color-brand-primary);
}

.card-yakitori .card-icon {
    color: #c2410c; /* 深いオレンジ・ブラウン系 */
}

.card-agency .card-icon {
    color: #0369a1; /* 深いブルー系 */
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(3deg);
}

.card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.card-tag-wrapper .card-tag {
    margin-bottom: 0;
}

.tag-reform {
    background-color: #dcfce7;
    color: var(--color-brand-primary);
}

.tag-yakitori {
    background-color: #ffedd5;
    color: #c2410c;
}

.tag-agency {
    background-color: #e0f2fe;
    color: #0369a1;
}

.tag-status {
    background-color: var(--color-brand-accent);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-dark);
    margin-bottom: 16px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-brand-primary);
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    transition: var(--transition-smooth);
}

.card-reform .card-link:hover {
    color: var(--color-brand-primary);
}

.card-yakitori .card-link:hover {
    color: #c2410c;
}

.card-link.btn-disabled {
    color: var(--color-text-muted);
    cursor: default;
}

.link-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.card-link:hover .link-arrow {
    transform: translateX(6px);
}

.card-link.btn-disabled:hover .link-arrow {
    transform: translateY(3px); /* coming soon の矢印は下に少し動かす */
}

/* 6. About Section */
.about {
    background-color: var(--color-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-table-wrapper {
    background-color: var(--color-bg-stone);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
}

.about-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.about-table th, .about-table td {
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.about-table tr:last-child th, .about-table tr:last-child td {
    border-bottom: none;
}

.about-table th {
    width: 25%;
    font-weight: 700;
    color: var(--color-brand-primary);
    background-color: rgba(6, 95, 70, 0.02);
    vertical-align: top;
}

.about-table td {
    color: var(--color-text-dark);
    line-height: 1.8;
}

/* 7. Contact Section */
.contact {
    background-color: var(--color-bg-stone);
}

.contact-card {
    background: linear-gradient(135deg, var(--color-brand-dark) 0%, #022c22 100%);
    color: var(--color-white);
    border-radius: 32px;
    padding: 60px 48px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    max-width: 900px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.contact-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-method-divider {
    width: 1px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.15);
}

.method-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand-light);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.method-value {
    font-size: 2.25rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.method-value:hover {
    color: var(--color-brand-accent-hover) !important;
}

.method-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 8px;
}

.method-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 320px;
}

/* 8. Footer Section */
.footer {
    background-color: var(--color-brand-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 9. Responsive Styling */
@media (max-width: 1024px) {
    .card-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .nav-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-table th, .about-table td {
        padding: 16px;
    }
    
    .about-table th {
        width: 35%;
    }
    
    .contact-card {
        padding: 40px 24px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 32px;
    }
    
    .contact-method-divider {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }
}
