﻿@charset "utf-8";

/* ===============================================
   1. 基本設定 & 変数
   =============================================== */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --text-color: #343a40;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden; /* 横スクロール防止 */
}

.lp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ユーティリティクラス（背景色など） */
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.text-center-btn { text-align: center; margin-top: 50px; }

/* ===============================================
   2. ヘッダー
   =============================================== */
.lp-header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.lp-header .lp-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    margin: 0;
    padding: 0;
    padding-left: 10px;
}

#logo img {
    display: block;
    width: 280px;
}

.header-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background-color: var(--primary-dark);
}

/* ===============================================
   3. ヒーローエリア (トップ)
   =============================================== */
.hero {
    background-color: var(--bg-white);
    text-align: center;
    padding: 140px 0 60px;
}

.main-catchcopy {
    font-size: 3.2em;
    font-weight: 900;
    margin: 0 0 20px;
    line-height: 1.4;
    color: #111;
}

.main-catchcopy .highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #fff;
    padding: 20px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.4);
}

.cta-subtext {
    font-size: 1.1em;
    line-height: 1.8;
    margin: 20px 0 30px;
}

.app-showcase {
    width: 100%;
    max-width: 900px;
    margin: 80px auto 0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.image-caption {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 10px;
    text-align: center;
}

/* ===============================================
   4. 共通セクションスタイル
   =============================================== */
.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 60px;
}

/* ===============================================
   5. 機能・特徴 (Features)
   =============================================== */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

/* ===============================================
   6. ギャラリー & テンプレート一覧
   =============================================== */
.gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none; /* リンクの下線を消す */
    display: block;
    color: var(--text-color);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover h3 {
    color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* テンプレート画像の個別調整（枠内に収める） */
.gallery-item img.template-preview {
    height: 250px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.gallery-item h3 {
    text-align: center;
    padding: 20px 10px;
    margin: 0;
    font-size: 1.1em;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* ===============================================
   7. 人気のテーマセクション (NEW)
   =============================================== */
#popular-themes {
    background: #f4f8fb;
    padding: 80px 0 120px 0;
    border-top: 1px solid #eee;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    column-gap: 30px;
    row-gap: 60px; /* 上下の重なり防止のために広く */
}

.theme-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 2;
}

.emoji-icon {
    display: block;
    font-size: 60px !important; /* 強制サイズ指定 */
    line-height: 1;
    margin-bottom: 20px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.theme-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.theme-desc {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.theme-link {
    font-weight: bold;
    font-size: 0.9em;
    margin-top: auto;
    color: inherit;
}

/* ===============================================
   8. 使い方ガイド (Steps)
   =============================================== */
.how-to-use {
    padding: 80px 0;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    text-align: center;
}

.guide-step h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===============================================
   9. FAQ & コンテンツスタイル
   =============================================== */
.faq-item {
    border: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fff;
}

.faq-item summary {
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1em;
}

.faq-item p {
    margin-top: 10px;
    line-height: 1.6;
}

/* 詳細ページ (guide.html / terms.html) 用 */
.guide-content, .terms-content {
    padding: 80px 0;
    line-height: 1.9;
}

.guide-content h1, .terms-content h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.guide-content h2, .terms-content h2 {
    font-size: 1.8rem;
    margin-top: 60px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

.guide-content h3 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px dotted var(--border-color);
    padding-bottom: 10px;
}

.guide-content ul, .terms-content ul {
    list-style: none;
    padding-left: 0;
}

/* ガイド内のリスト装飾 */
.guide-content li {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="%23007bff"><path d="M10 17l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') no-repeat left center;
    padding-left: 35px;
    background-size: 24px;
    margin-bottom: 15px;
}

.guide-content .screen-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    background-color: #e9e9e9;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
}

/* ===============================================
   10. 姉妹サイト紹介
   =============================================== */
.sister-sites {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.sister-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

/* ★追加：1枚だけのカードを中央に幅制限して配置（ファビコン用）★ */
.grid-single-limit {
    display: grid;
    grid-template-columns: minmax(280px, 480px); /* 幅制限 */
    justify-content: center; /* 中央寄せ */
    gap: 30px;
    margin-top: 40px;
}

.sister-site-item {
    display: block;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sister-site-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.sister-site-item .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.sister-site-item .icon img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.sister-site-item h3 {
    font-size: 1.3em;
    margin: 0 0 10px;
    color: var(--primary-dark);
}

/* ===============================================
   11. フッター
   =============================================== */
.final-cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.final-cta h2 {
    font-size: 2.2em;
    font-weight: 900;
    margin: 0 0 30px;
}

.lp-footer {
    background-color: #212529;
    color: #adb5bd;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

.lp-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.lp-footer a:hover {
    text-decoration: underline;
}

/* ===============================================
   12. アニメーション (Fade-in & Stagger)
   =============================================== */
/* より滑らかで高級感のある動き */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延用クラス */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ===============================================
   13. レスポンシブ設定 (スマホ対応)
   =============================================== */
@media (max-width: 768px) {
    .main-catchcopy {
        font-size: 2.2em;
    }
    .section-title {
        font-size: 2em;
    }
    .features-grid,
    .guide-steps {
        grid-template-columns: 1fr;
    }
    .theme-grid {
        row-gap: 40px; /* スマホ時は間隔を少し詰める */
    }
    .emoji-icon {
        font-size: 50px !important;
    }
}
/* ===============================================
   14. 記事・コラム詳細ページ (Columns)
   =============================================== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 60px 24px;
    line-height: 2;
    font-size: 1.05rem;
}

.article-content h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 900;
    line-height: 1.4;
}

.article-content h2 {
    font-size: 1.6rem;
    margin-top: 60px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #eee;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    color: #555;
}

/* 画像プレースホルダー（実際の運用ではimgタグに置き換わる想定） */
.img-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    margin: 30px 0;
    border: 2px dashed #ccc;
}

/* 強調ボックス（ポイント解説用） */
.highlight-box {
    background-color: #f4f8fb;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 5px solid var(--primary-color);
}

.check-point {
    font-weight: bold;
    color: var(--primary-color);
}

/* ===============================================
   SNS埋め込み用スタイル
   =============================================== */
.social-embed-wrapper {
    display: flex;
    justify-content: center; /* 左右中央寄せ */
    align-items: center;     /* 上下中央寄せ */
    flex-wrap: wrap;         
    gap: 20px;               
    margin: 30px 0;          /* 上下の余白 */
    width: 100%;
}

/* スマホでiframeが画面からはみ出さないようにする安全策 */
.social-embed-wrapper iframe,
.social-embed-wrapper span, 
.social-embed-wrapper a {
    max-width: 100% !important;
    border-radius: 12px; /* 角丸で少しおしゃれに */
}