/* =============================================
   総合トップページ専用スタイルシート (top.css)
   ============================================= */

:root {
    /* 色彩豊かで力強いポップなカラーパレット */
    --bg-primary: #fcd34d;
    /* 鮮やかなイエロー背景 */
    --bg-secondary: #fef08a;
    --bg-glass: #ffedd5;
    /* 温かみのあるオレンジ（白を排除） */
    --bg-glass-hover: #fed7aa;

    /* テキストカラー（視認性重視） */
    --text-primary: #1c1917;
    /* 極めて濃いチャコール */
    --text-secondary: #44403c;
    --text-muted: #78350f;
    /* 濃いブラウン系 */

    /* 力強いアクセントカラー */
    --accent-1: #ea580c;
    /* 濃いオレンジ */
    --accent-2: #0284c7;
    /* 濃いブルー */
    --accent-gold: #f59e0b;
    --accent-glow: rgba(234, 88, 12, 0.3);

    /* カードデザイン用 */
    --card-border-grad: linear-gradient(135deg, #ea580c, #f59e0b);
    --card-border-hover: linear-gradient(135deg, #ea580c, #0284c7);

    --border-glass: #f97316;
    --shadow-pop: 0 20px 40px rgba(120, 53, 15, 0.15);
    --shadow-glow-strong: 0 0 30px rgba(234, 88, 12, 0.25);

    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(234, 88, 12, 0.15), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(2, 132, 199, 0.1), transparent 45%),
        radial-gradient(circle at 30% 80%, rgba(245, 158, 11, 0.1), transparent 45%),
        linear-gradient(to bottom, #fcd34d, #fde68a);
}

/* 背景のドット */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(234, 88, 12, 0.15) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ヘッダー */
.top-header {
    background: var(--bg-glass);
    border-bottom: 2px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(120, 53, 15, 0.05);
    transition: transform 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.site-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.2);
    border: 2px solid var(--border-glass);
}

.site-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.site-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5em;
    margin-top: 5px;
    text-transform: uppercase;
}

/* メインコンテンツ */
.main-content {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px 140px;
    width: 100%;
}

.intro-section {
    text-align: center;
    margin-bottom: 100px;
}

.intro-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 64px);
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.intro-desc {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    background: rgba(254, 243, 199, 0.5);
    /* 薄いアンバー背景を敷いて視認性向上 */
    padding: 10px 20px;
    border-radius: 12px;
}

/* ツールグリッド */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 48px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fffdf9;
    border: 1px solid rgba(120, 53, 15, 0.08);
    /* 非常に繊細な境界線 */
    border-radius: 48px;
    padding: 60px 48px 48px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.05);
    /* 柔らかい影 */
    position: relative;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(120, 53, 15, 0.08);
    background: #ffffff;
}

.tool-card-icon {
    width: 240px;
    height: 240px;
    border-radius: 56px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fffdf0;
    /* アイコン背後の薄いクリーム色 */
    position: relative;
    z-index: 1;
}

.tool-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 40px;
    /* アイコンを角丸にする */
}

.tool-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a1a1a;
}

.tool-desc {
    color: #666;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 320px;
}

.tool-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tool-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f9f4;
    /* ごく薄いグリーン */
    color: #059669;
    /* 濃いグリーン */
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.tool-tag svg {
    width: 14px;
    height: 14px;
}

.tool-btn {
    width: 100%;
    background: #0f172a;
    /* 非常に濃いネイビー */
    color: #fff;
    padding: 18px 32px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-btn {
    background: #1e293b;
    transform: scale(1.02);
}

.tool-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-btn svg {
    transform: translateX(4px);
}

/* ヘッダー flex 対応（フォローボタン配置用） */
.header-inner--flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* X フォローボタン（共通） */
.x-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.x-follow-btn:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.x-follow-btn svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    flex-shrink: 0;
}

/* --- メニューボタンとメニュー --- */
.menu-toggle {
    background: var(--text-primary);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 200;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active {
    background: var(--accent-1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(252, 211, 77, 0.95); /* var(--bg-primary) に合わせる */
    backdrop-filter: blur(15px);
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu-list {
    list-style: none;
    text-align: center;
}

.nav-menu-item {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.nav-overlay.active .nav-menu-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for items */
.nav-overlay.active .nav-menu-item:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-menu-item:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.active .nav-menu-item:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.active .nav-menu-item:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay.active .nav-menu-item:nth-child(5) { transition-delay: 0.3s; }
.nav-overlay.active .nav-menu-item:nth-child(6) { transition-delay: 0.35s; }
.nav-overlay.active .nav-menu-item:nth-child(7) { transition-delay: 0.4s; }
.nav-overlay.active .nav-menu-item:nth-child(8) { transition-delay: 0.45s; }
.nav-overlay.active .nav-menu-item:nth-child(9) { transition-delay: 0.5s; }

.nav-menu-link {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.nav-menu-link:hover {
    color: var(--accent-1);
    transform: scale(1.1);
}

.nav-menu-link .emoji {
    font-size: 32px;
}

body.menu-open {
    overflow: hidden;
}

/* フッター */
.top-footer {
    text-align: center;
    padding: 60px 24px 80px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: var(--accent-1);
}

.copyright {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
}


/* =============================================
   追記：セクション別スタイル
   ============================================= */

/* セキュリティ理念セクション */
.about-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.45); /* 視認性を高めるため、少し不透明度を上げる */
    border: 2px solid var(--border-glass);
    border-radius: 32px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-pop);
}

.about-section__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-section__title svg {
    color: var(--accent-1);
}

.about-section__text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
}

.about-section__text strong {
    color: var(--accent-1);
    font-weight: 800;
}

.about-section__text:last-child {
    margin-bottom: 0;
}

/* コラムセクション */
.home-columns {
    margin-top: 120px;
    padding: 80px 0;
    border-top: 2px solid var(--border-glass);
}

.home-columns__header {
    text-align: center;
    margin-bottom: 60px;
}

.home-columns__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

.home-columns__subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.home-columns__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

/* デスクトップで2列表記（横のスペースを埋める） */
@media (min-width: 900px) {
    .home-columns__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.column-card {
    background: #fffdf9;
    border: 1px solid rgba(120, 53, 15, 0.1);
    border-radius: 32px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.column-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(120, 53, 15, 0.12);
    background: #ffffff;
    border-color: var(--accent-1);
}

.column-card__emoji {
    font-size: 40px;
}

.column-card__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-primary);
}

.column-card__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-columns__footer {
    text-align: center;
    margin-top: 60px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--accent-1);
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.view-all-link:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .top-header {
        position: static;
    }

    .nav-menu-link {
        font-size: 22px;
    }

    .nav-menu-item {
        margin: 15px 0;
    }

    .intro-title {
        font-size: 42px;
    }

    .site-title {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .site-title .site-subtitle {
        margin-top: 2px;
    }

    .main-content {
        padding: 60px 20px;
    }

    .tools-grid {
        gap: 32px;
    }

    .tool-card {
        padding: 50px 16px 40px;
        border-radius: 48px;
    }

    .tool-card-icon {
        width: 180px;
        height: 180px;
        margin-bottom: 40px;
    }

    .tool-title {
        font-size: 26px;
    }

    .tool-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .tool-tags {
        margin-bottom: 32px;
        gap: 8px;
    }

    .tool-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .tool-btn {
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 16px;
    }
}