@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Noto+Sans+JP:wght@400;700&family=Outfit:wght@500;700&display=swap');

/* 
   Brand-Kaitori Premium Design System
   Aesthetics: Clean, Premium, Trustworthy (Navy and Gold base)
*/

:root {
    --primary: #1c2833; /* Deep Navy */
    --accent: #b08d57; /* Elegant Gold */
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-sub: #555555;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.layout-2col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

@media (max-width: 900px) {
    .layout-2col {
        grid-template-columns: 1fr;
    }
}

header {
    background: var(--white);
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--accent);
}

.hero {
    background: linear-gradient(135deg, #1c2833 0%, #2c3e50 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    color: white !important;
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

header p {
    color: var(--text-sub);
    font-size: 1.1rem;
}

/* Typography */
h1.article-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
    color: var(--primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

h2 {
    font-size: 1.6rem;
    margin: 50px 0 25px;
    padding: 15px 20px;
    border-left: 5px solid var(--accent);
    color: var(--primary);
    background: linear-gradient(to right, #fcfcfc, transparent);
}

h3 {
    font-size: 1.3rem;
    margin: 40px 0 20px;
    color: var(--text-main);
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

p {
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Components */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-label {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card h3 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    border: none;
    padding: 0;
    color: var(--primary);
    line-height: 1.4;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin: 0;
}

.cta-button {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: var(--accent);
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(176,141,87,0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #8e7042;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(176,141,87,0.4);
}

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

/* Sidebar / Sidebar Widgets */
.sidebar-area {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    line-height: 1.4;
}

.sidebar-widget a:hover {
    color: var(--accent);
}

/* Specific styling for article pages */
.article-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    margin: 40px auto; 
    max-width: 1200px; 
    padding: 0 20px; 
}
.article-content { 
    flex: 1 1 700px; 
    background: #fff; 
    padding: 50px; 
    border-radius: 12px; 
    box-shadow: var(--shadow); 
}
.article-sidebar { 
    flex: 0 1 320px; 
}

.pr-label {
    font-size: 0.8rem;
    color: #666;
    border: 1px solid #ddd;
    background: #fdfdfd;
    padding: 4px 12px;
    display: inline-block;
    border-radius: 3px;
    margin-bottom: 20px;
}

.highlight { background: linear-gradient(transparent 60%, rgba(176,141,87,0.2) 60%); font-weight: bold; }
.ng-box { background: #fff5f5; border: 1px solid #ffcccc; padding: 20px; border-radius: 5px; margin-bottom: 20px; position:relative; }
.ng-box::before { content: "NG"; font-weight:bold; color:#d9534f; position:absolute; top:-10px; left:10px; background:#fff; padding:0 5px; font-size:1.2rem; border-radius:3px; }
.step-list { counter-reset: step-counter; list-style: none; padding: 0; }
.step-list li { position: relative; padding-left: 40px; margin-bottom: 20px; }
.step-list li::before { content: counter(step-counter); counter-increment: step-counter; position: absolute; left: 0; top: 0; background: var(--primary); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .article-content {
        padding: 30px 20px;
    }
}