/*
 * ともトレ Custom Styles（完全版）
 */

/* ========================================
   共通スタイル
======================================== */
.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
    border-left: 4px solid #3498db;
    padding-left: 12px;
}

.section h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
}

.section ul,
.section ol {
    margin: 15px 0;
    padding-left: 30px;
}

.section li {
    margin-bottom: 8px;
}

.update-date {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.new-section {
    background-color: #e8f8f5;
    border-left: 4px solid #27ae60;
    padding: 15px;
    margin: 20px 0;
}

/* ========================================
   Product Home ページ専用
======================================== */
.product-home-page {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.product-home-page .site-main {
    padding: 0;
}

/* アイキャッチ画像 */
.product-hero-image {
    width: 100%;
    margin: 0;
    line-height: 0;
}

.product-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* コンテンツエリア */
.product-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* タイトルセクション */
.product-title-section {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-title-section h1 {
    font-size: 48px;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.product-tagline {
    font-size: 24px;
    color: #555;
    margin: 0;
}

/* ダウンロードセクション */
.download-section {
    text-align: center;
    padding: 30px 20px 60px;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 15px 40px;
    margin: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    text-decoration: none;
}

.btn-cta {
    background-color: white;
    color: #667eea;
    border: 2px solid white;
}

.btn-cta:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

/* イントロセクション */
.intro-section {
    text-align: center;
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.intro-section h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

.intro-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

/* 機能紹介セクション */
.features-section {
    background-color: #f8f9fa;
    padding: 80px 20px;
    margin: 0;
}

.features-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    border: none;
    padding: 0;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.feature-item h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 22px;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* 使い方セクション */
.how-to-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.how-to-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    border: none;
    padding: 0;
}

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

.step-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: #3498db;
    color: white;
    font-size: 28px;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
}

.step-item h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.step-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* スクリーンショットセクション */
.screenshots-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.screenshots-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    border: none;
    padding: 0;
}

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

.screenshot-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.screenshot-image:hover {
    transform: scale(1.05);
}

/* CTAセクション */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
}

.cta-section h2 {
    font-size: 36px;
    margin: 0 0 15px 0;
    border: none;
    padding: 0;
    color: white;
}

.cta-section p {
    font-size: 20px;
    margin: 0 0 40px 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   利用規約・プライバシーポリシー
======================================== */
.terms-page ol,
.privacy-page ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.terms-page ol > li,
.privacy-page ol > li {
    counter-increment: item;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.terms-page ol > li:before,
.privacy-page ol > li:before {
    content: counter(item) ". ";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: #3498db;
}

.important {
    background-color: #ffe6e6;
    padding: 20px;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    margin: 20px 0;
}

.important strong {
    color: #e74c3c;
    font-size: 18px;
}

.contact-info {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.contact-info p {
    margin: 5px 0;
}

/* ========================================
   ヘルプページ
======================================== */
.help-page .toc {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.help-page .toc h2 {
    margin-top: 0;
    font-size: 20px;
    border: none;
    padding: 0;
}

.help-page .toc ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 0 0;
}

.help-page .toc li {
    margin-bottom: 8px;
}

.help-page .toc a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.help-page .toc a:hover {
    text-decoration: underline;
}

.faq-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.faq-item h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

.faq-item p {
    margin-bottom: 0;
}

/* ========================================
   ガイドページ（グループ機能）
======================================== */
.guide-section {
    margin-bottom: 50px;
}

.step-item {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.step-item h3 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.step-item h4 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
}

.screenshot-wrapper {
    margin: 20px 0;
    text-align: center;
}

.screenshot {
    max-width: 600px;
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.screenshot.mobile {
    max-width: 375px;
}

.screenshot.small {
    max-width: 400px;
}

.screenshot.medium {
    max-width: 600px;
}

.screenshot.large {
    max-width: 800px;
}

.screenshot-caption {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
    font-style: italic;
}

.tip-box,
.note-box,
.info-box,
.success-box {
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid;
}

.tip-box {
    background-color: #e8f4f8;
    border-color: #3498db;
}

.tip-box strong {
    color: #3498db;
}

.note-box {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.note-box strong {
    color: #856404;
}

.info-box {
    background-color: #d1ecf1;
    border-color: #17a2b8;
}

.info-box strong {
    color: #0c5460;
}

.success-box {
    background-color: #d4edda;
    border-color: #28a745;
}

.success-box strong {
    color: #155724;
}

.message-template {
    margin-bottom: 30px;
}

.message-template h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.template-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.template-box p {
    margin: 10px 0;
}

.related-links {
    list-style: none;
    padding-left: 0;
}

.related-links li {
    margin-bottom: 12px;
    font-size: 16px;
}

.related-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.related-links a:hover {
    text-decoration: underline;
}

/* ========================================
   お問い合わせフォーム（Contact Form 7）
======================================== */
.contact-form-wrapper {
    max-width: 600px;
    margin: 30px auto;
}

.contact-form-cf7 label {
    display: block;
    margin-bottom: 25px;
}

.contact-form-cf7 .required {
    color: #e74c3c;
}

.contact-form-cf7 input[type="text"],
.contact-form-cf7 input[type="email"],
.contact-form-cf7 select,
.contact-form-cf7 textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    margin-top: 8px;
    transition: border-color 0.3s;
}

.contact-form-cf7 input[type="text"]:focus,
.contact-form-cf7 input[type="email"]:focus,
.contact-form-cf7 select:focus,
.contact-form-cf7 textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-form-cf7 textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-cf7 input[type="submit"] {
    background-color: #3498db;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.contact-form-cf7 input[type="submit"]:hover {
    background-color: #2980b9;
}

.wpcf7-response-output {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.form-help {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 8px;
    line-height: 1.6;
}

.contact-info-section,
.faq-link-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-info-section h2,
.faq-link-section h2 {
    margin-top: 0;
    font-size: 20px;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    .site-main {
    }

    .product-home-page .site-main {
        padding: 0;
    }

    .section h2 {
        font-size: 20px;
    }

    .section h3 {
        font-size: 18px;
    }

    .product-title-section h1 {
        font-size: 32px;
    }

    .product-tagline {
        font-size: 18px;
    }

    .btn {
        display: block;
        margin: 10px auto;
        max-width: 300px;
    }

    .features-grid,
    .steps-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .help-page .toc ul {
        padding-left: 15px;
    }

    .screenshot {
        max-width: 100%;
    }
}

/* ========================================
   印刷スタイル
======================================== */
@media print {
    .site-header,
    .site-footer,
    .site-navigation {
        display: none;
    }

    .site-main {
        box-shadow: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
