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

:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --primary-color: #f5a623; /* Friendly Orange/Gold */
    --primary-hover: #e5941c;
    --text-main: #333333;
    --text-muted: #666666;
    --accent-blue: #4a90e2;
    --accent-green: #2ecc71;
    --border-color: #e1e4e8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Quicksand', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f6 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 30px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: var(--shadow);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Sidebar Layout (Guide Section) */
.layout-sidebar {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sidebar-menu {
    flex: 0 0 260px;
    position: sticky;
    top: 90px;
    padding: 20px;
}

.sidebar-content {
    flex: 1;
    min-width: 0;
}

.guide-menu {
    list-style: none;
}

.guide-menu li {
    margin-bottom: 10px;
}

.guide-menu li:last-child {
    margin-bottom: 0;
}

.guide-menu a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.guide-menu a:hover,
.guide-menu a.active {
    background-color: #f0f2f5;
    color: var(--primary-color);
}

.guide-section {
    display: none;
}

.guide-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

@media (max-width: 768px) {
    .layout-sidebar {
        flex-direction: column;
    }
    .sidebar-menu {
        flex: none;
        width: 100%;
        position: static;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: var(--shadow);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Stats Section */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Section Common */
section {
    padding: 70px 0;
}

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

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 20px;
}

/* Blog/News Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* ホバーエフェクトはリンク要素に限定するため、.card全体への適用は削除しました */

.card-img {
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #d1d5db;
    border-bottom: 1px solid var(--border-color);
}

.card-content {
    padding: 25px;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text-main);
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    background: #f0f2f5;
    color: var(--text-muted);
    font-weight: 500;
}

/* Step Card Specific */
.step-number {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 8px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
}

/* ===== リファクタリング用 共通ユーティリティ ===== */
.text-muted { color: var(--text-muted); }
.text-main { color: var(--text-main); }
.text-center { text-align: center; }
.text-danger { color: #ff4757; }

/* ===== FAQ・ガイドセクション用 ===== */
.faq-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.guide-title {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.guide-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.guide-list {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
}

.guide-link {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* ===== ヒント・注意書きボックス ===== */
.hint-box {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.hint-box-info {
    background-color: #f0f8ff;
    border-left: 4px solid var(--accent-blue);
}

.hint-box-warning {
    background-color: #fff3cd;
    color: #856404;
}

.card-danger {
    border-left: 4px solid #ff4757;
}
