/* guide.css */

:root {
    --guide-bg-light: #f8fafc; /* slate-50 */
    --guide-bg-white: #ffffff;
    --guide-text-primary: #1e293b; /* slate-800 */
    --guide-text-secondary: #475569; /* slate-600 */
    --guide-border-color: #e2e8f0; /* slate-200 */
    --guide-primary-color: var(--primary-color, #3b82f6);
    --guide-primary-light: #dbeafe; /* blue-100 */
    --guide-primary-dark: #1e40af; /* blue-900 */
    --text-color-dark: #333;
    --text-color-light: #555;
    --background-color-light: #f9f9f9;
    --accent-color: #007bff;
    --accent-color-light: #e6f2ff;
}

/* Base and Typography */
body {
    background-color: var(--guide-bg-white);
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: var(--guide-text-secondary);
    line-height: 1.7;
    background: radial-gradient(ellipse at top, var(--guide-bg-light), var(--guide-bg-white) 60%);
}

.text-nowrap {
    white-space: nowrap;
}

.guide-main {
    width: 100%;
    overflow-x: hidden; /* For animations */
    line-height: 1.3;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--guide-text-primary);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-wrap: balance;
}

/* Header & Footer removed, styles are now in header.css */

.site-footer {
    background-color: var(--guide-text-primary);
    color: #94a3b8;
    padding: 2.5rem 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
    background: radial-gradient(circle, var(--guide-bg-light) 0%, var(--guide-bg-white) 70%);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--guide-text-primary);
    line-height: 1.2;
    background: linear-gradient(45deg, var(--guide-primary-color) 30%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: var(--guide-text-secondary);
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.hero-content {
    flex: 1 1 50%;
    text-align: left;
    padding-right: 2rem;
}
.hero-content p {
    text-align: left;
}

.hero-image-container {
    flex: 1 1 50%;
    margin-top: 0;
    text-align: center;
}
.hero-image {
    max-width: 100%;
    width: 500px;
    margin: 0;
}

.hero-description {
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--guide-primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg, 8px);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(0, 118, 255, 0.39);
}

.cta-button:hover {
    background-color: var(--primary-hover, #2563eb);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(0, 118, 255, 0.23);
}

/* Problem Section */
.problem-section {
    padding: 8rem 0;
    position: relative;
}

.section-top-image {
    display: block;
    max-width: 120px;
    margin: -1rem auto 2rem;
    opacity: 0.7;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    z-index: -1;
}

.problem-card {
    background-color: var(--guide-bg-light);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl, 12px);
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--guide-primary-light);
    background-color: var(--guide-bg-white);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.07);
}

.problem-card i {
    font-size: 2.5rem;
    color: var(--guide-primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.problem-card h3 {
    font-size: 1.35rem;
    color: var(--guide-text-primary);
    margin-bottom: 0.75rem;
}
.problem-card p,
.feature-card p {
    text-align: left;
}

/* Persona Section */
.persona-section {
    padding: 8rem 0;
    background-color: var(--guide-bg-light);
    position: relative;
    overflow: hidden;
}
.persona-deco-1, .persona-deco-2 {
    position: absolute;
    z-index: 0;
    opacity: 0.1;
}
.persona-deco-1 {
    width: 200px;
    top: 5%;
    left: -50px;
    transform: rotate(-25deg);
}
.persona-deco-2 {
    width: 150px;
    bottom: 5%;
    right: -30px;
    transform: rotate(20deg);
}
.persona-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

.persona-card {
    background: var(--guide-bg-white);
    border-radius: var(--radius-xl, 12px);
    padding: 2.5rem;
    border: 1px solid var(--guide-border-color);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px -5px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.persona-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -15px rgba(0,0,0,0.1);
}

.persona-header {
    margin-bottom: 1.5rem;
}
.persona-tag {
    display: inline-block;
    background-color: var(--guide-primary-light);
    color: var(--guide-primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full, 99px);
    font-size: 0.875rem;
    font-weight: 600;
}
.persona-name {
    font-size: 1.6rem;
    color: var(--guide-text-primary);
    margin-top: 0.75rem;
}

.persona-comment {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.persona-comment::before {
    content: '“';
    position: absolute;
    left: -5px;
    top: -15px;
    font-size: 3rem;
    color: var(--guide-primary-light);
    font-family: serif;
}
.persona-comment p:last-child {
    margin-top: 0.75rem;
}

.persona-solution {
    margin-top: auto;
    background-color: #e0f2fe; /* light-blue-100 */
    color: #0c4a6e; /* light-blue-900 */
    padding: 1.25rem;
    border-radius: var(--radius-lg, 8px);
}
.persona-solution p {
    margin: 0;
    line-height: 1.6;
}
.persona-solution i {
    color: #0284c7; /* light-blue-600 */
    margin-right: 0.75rem;
}

/* Explanation Section */
.explanation-section {
    background-color: transparent;
    padding: 8rem 0;
}
.small-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.explanation-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}
.explanation-conclusion {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--guide-bg-white);
    border-radius: var(--radius-lg, 8px);
    border: 1px solid var(--guide-primary-light);
    color: var(--guide-text-primary);
}
.explanation-conclusion .section-title {
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 8rem 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.feature-card {
    border: 1px solid var(--guide-border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl, 12px);
    text-align: center;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--guide-primary-light);
    background-color: var(--guide-bg-white);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.07);
}
.feature-card i {
    font-size: 2.5rem;
    color: var(--guide-primary-color);
    margin-bottom: 1.5rem;
    display: block;
}
.feature-card h4 {
    font-size: 1.25rem;
    color: var(--guide-text-primary);
    margin-bottom: 0.5rem;
}

/* Services Section */
.services-section {
    background-color: var(--guide-bg-light);
    padding: 8rem 0;
}
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}
.service-logo {
    background-color: var(--guide-bg-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg, 8px);
    border: 1px solid var(--guide-border-color);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--guide-text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}
.service-logo:hover {
    transform: translateY(-5px);
    color: var(--guide-text-primary);
    border-color: var(--guide-border-color);
    box-shadow: 0 15px 25px -10px rgba(0,0,0,0.07);
}
.service-logo i {
    font-size: 1.6rem;
    color: var(--guide-bg-white);
    background-color: var(--guide-primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.service-logo:hover i {
    background-color: var(--guide-primary-dark);
}

/* Closing CTA */
.closing-cta {
    background: linear-gradient(45deg, var(--guide-primary-dark) 0%, var(--guide-primary-color) 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
}
.closing-cta .section-title {
    color: white;
}
.closing-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #dbeafe; /* blue-100 */
}
.cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}
.cta-button i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease-in-out;
}
.cta-button:hover i {
    transform: translateX(4px);
}

.free-assurance-text {
    font-size: 0.875rem;
    margin-top: 1rem;
    color: var(--guide-text-secondary);
}
.free-assurance-text i {
    color: #22c55e; /* green-500 */
    margin-right: 0.25rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
}
.faq-item {
    border-bottom: 1px solid var(--guide-border-color);
    padding: 1.5rem 0;
}
.faq-item:first-of-type {
    border-top: 1px solid var(--guide-border-color);
}
.faq-item h4 {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-right: 2rem; /* space for icon */
    margin: 0;
}
.faq-item h4::before {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    color: var(--guide-primary-color);
    transition: transform 0.2s ease-in-out;
}
.faq-item.active h4::before {
    transform: rotate(45deg);
}
.faq-item p {
    margin: 0;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
    color: var(--guide-text-secondary);
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 1rem;
}

/* Animations */
.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animated.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .persona-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .text-nowrap {
        white-space: normal;
    }

    .hero-grid {
        flex-direction: column;
        gap: 3rem;
    }
    .hero-content {
        text-align: center;
        padding-right: 0;
    }
    .hero-image-container {
        order: -1;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .faq-item h4 {
        font-size: 1.1rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem; /* 縦と横のgapを調整 */
    }
    .footer-links a {
        margin-left: 0;
    }
}

/* =================================
Legal Documents (Terms, Privacy Policy)
==================================== */
.page-title-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--background-color-light);
}

.page-title-section h2 {
    font-size: 2.5rem;
    color: var(--text-color-dark);
    font-weight: 700;
}

.legal-document-container {
    max-width: 800px;
    margin: -2rem auto 4rem;
    padding: 0 1.5rem;
}

.legal-document {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem 3rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.effective-date {
    text-align: right;
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.legal-document h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color-light);
    color: var(--text-color-dark);
}

.legal-document p,
.legal-document ol {
    line-height: 1.8;
    color: var(--text-color-light);
}

.legal-document ol {
    padding-left: 1.5rem;
}

.legal-document li {
    margin-bottom: 0.75rem;
}

.legal-document strong {
    color: var(--accent-color);
    font-weight: 600;
}

.legal-document h2, .legal-document h3 {
    text-align: left;
}
.legal-document p,
.legal-document ul,
.legal-document ol {
    text-align: left;
    margin-bottom: 1em;
}
.legal-document ul, .legal-document ol {
    padding-left: 1.5em;
}
.legal-document li {
    margin-bottom: 0.5em;
}
.legal-document strong {
    font-weight: 700;
    color: var(--guide-text-primary);
}

@media (max-width: 768px) {
    .legal-document-container {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 0;
    }
    .legal-document {
        padding: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .page-title-section h2 {
        font-size: 2rem;
    }
}

/* twitter-search-commands.html specific styles */
.commands-list-section {
    padding: 6rem 0;
    background-color: var(--guide-bg-light);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: var(--guide-text-secondary);
}

.command-category {
    margin-bottom: 4rem;
}

.command-category h3 {
    font-size: 1.75rem;
    color: var(--guide-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--guide-primary-light);
    display: flex;
    align-items: center;
}

.command-category h3 i {
    margin-right: 1rem;
    color: var(--guide-primary-color);
}

.command-card {
    background-color: var(--guide-bg-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg, 8px);
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border: 1px solid var(--guide-border-color);
    transition: all 0.2s ease-in-out;
}

.command-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.05);
}


.command-card h4 {
    font-size: 1.2rem;
    color: var(--guide-text-primary);
    margin-bottom: 0.5rem;
}

.command-card p {
    margin: 0.5rem 0 0;
    color: var(--guide-text-secondary);
}

.command-card code {
    background-color: var(--guide-primary-light);
    color: var(--guide-primary-dark);
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.95em;
}

.command-card .example {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--guide-border-color);
    font-style: italic;
    color: #64748b; /* slate-500 */
}

.cta-section {
    background-color: var(--guide-text-primary);
    color: var(--guide-bg-light);
    padding: 5rem 0;
    text-align: center;
}

.cta-section .section-title {
    color: white;
}

.cta-section p {
    max-width: 600px;
    margin: 1rem auto 2rem;
    color: #94a3b8; /* slate-400 */
}

/* Guides Section for index.html */
.guides-section {
    padding: 6rem 0;
    background-color: var(--guide-bg-white);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guide-card {
    display: flex;
    align-items: flex-start;
    background-color: var(--guide-bg-light);
    padding: 2rem;
    border-radius: var(--radius-xl, 12px);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--guide-primary-light);
    background-color: var(--guide-bg-white);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.07);
}

.guide-card-icon {
    font-size: 2rem;
    color: var(--guide-primary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--guide-primary-light);
    border-radius: 50%;
}

.guide-card-content h4 {
    font-size: 1.25rem;
    color: var(--guide-text-primary);
    margin: 0 0 0.5rem;
}

.guide-card-content p {
    margin: 0;
    color: var(--guide-text-secondary);
    line-height: 1.6;
}