/* ====================================
   SEO Page Styles
   テーマ：Graph, Data, Tech, Ascension
   ==================================== */

/* --- Base Layout & Background --- */
.seo-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 背景：上昇する粒子とライン */
.seo-bg-graph {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 120%, rgba(76, 175, 80, 0.1), transparent 70%);
}

.seo-bg-graph__lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100%;
}

.seo-bg-graph__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.seo-bg-graph__particles::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 20%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to top, transparent, #4CAF50, transparent);
    animation: particleUp 5s infinite;
}
.seo-bg-graph__particles::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 80%;
    width: 2px;
    height: 150px;
    background: linear-gradient(to top, transparent, rgba(76, 175, 80, 0.5), transparent);
    animation: particleUp 7s infinite 2s;
}

@keyframes particleUp {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-120vh); opacity: 0; }
}


/* --- Breadcrumb --- */
.seo-breadcrumb {
    padding-top: 120px;
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
}
.seo-breadcrumb__nav {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
}
.seo-breadcrumb__link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.seo-breadcrumb__link:hover { color: #4CAF50; }
.seo-breadcrumb__current { color: #4CAF50; }
.seo-breadcrumb__separator { margin: 0 10px; font-size: 0.7em; }


/* --- Hero Section --- */
.seo-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.seo-hero__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-hero__content {
    width: 50%;
    position: relative;
    z-index: 2;
}

.seo-hero__label {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: #4CAF50;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    font-weight: bold;
}

.seo-hero__title {
    margin-bottom: 3rem;
}

.seo-hero__title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    color: #fff;
}

.seo-hero__desc {
    font-size: 1rem;
    line-height: 2;
    color: #fff;
}

/* Visual Animation (Rank Ascension) */
.seo-hero__visual {
    width: 45%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-rank-visual {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.seo-rank-bar {
    width: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    transform-origin: bottom;
    animation: growBar 2s ease-out forwards;
}
.seo-rank-bar--1 { height: 30%; animation-delay: 0.2s; }
.seo-rank-bar--2 { height: 60%; animation-delay: 0.4s; }
.seo-rank-bar--3 { height: 100%; animation-delay: 0.6s; background: linear-gradient(to top, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.6)); border-top-color: #4CAF50; }

.seo-rank-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}
.seo-rank-line::after {
    content: '';
    position: absolute;
    bottom: 0; left: 30px;
    width: 0; height: 0;
    border-top: 2px solid #4CAF50;
    border-right: 2px solid #4CAF50;
    width: 20px; height: 20px;
    transform: rotate(-45deg);
    opacity: 0;
    animation: arrowUp 2s ease-out 1s forwards;
    left: auto; right: 20px; top: -10px; bottom: auto;
}

.seo-rank-badge {
    position: absolute;
    top: -40px;
    right: 0;
    background: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatBadge 3s ease-in-out infinite;
    opacity: 0;
    animation: badgeAppear 0.5s ease-out 1.2s forwards, floatBadge 3s ease-in-out infinite 1.7s;
}
.seo-rank-badge .rank { font-size: 1.5rem; font-weight: bold; line-height: 1; }
.seo-rank-badge .label { font-size: 0.7rem; letter-spacing: 0.1em; }

@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes arrowUp { from { opacity: 0; transform: translateY(20px) rotate(-45deg); } to { opacity: 1; transform: translateY(0) rotate(-45deg); } }
@keyframes badgeAppear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


/* --- Common Section Styles --- */
.seo-section {
    padding: 100px 0;
    position: relative;
}

.seo-section__header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.seo-section__title {
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.seo-section__subtitle {
    font-size: 1rem;
    color: #4CAF50;
    letter-spacing: 0.1em;
}


/* --- Problems --- */
.seo-problems__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.seo-problem-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    border-radius: 8px;
}
.seo-problem-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #4CAF50;
    transform: translateY(-5px);
}

.seo-problem-card__icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}
.seo-problem-card:hover .seo-problem-card__icon { color: #4CAF50; }

.seo-problem-card__title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: bold;
}
.seo-problem-card__text {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.8;
}


/* --- Logic --- */
.seo-logic__inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 4rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.seo-logic__content { flex: 1; }

.seo-logic__title {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1rem;
}
.seo-logic__subtitle {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.4;
}
.seo-logic__text {
    color: #ddd;
    line-height: 2;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.seo-logic__visual { flex: 1; display: flex; justify-content: center; }

.seo-code-visual {
    width: 200px;
    height: 150px;
    background: #333;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.seo-code-line {
    height: 10px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 10px;
    border-radius: 2px;
}
.seo-code-line:nth-child(1) { width: 80%; }
.seo-code-line:nth-child(2) { width: 60%; }
.seo-code-line:nth-child(3) { width: 90%; }
.seo-search-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    animation: pulseIcon 2s infinite;
}
@keyframes pulseIcon { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }


/* --- Details (修正箇所：改行対策・1カラム) --- */
.seo-details__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.seo-detail-item {
    display: flex;
    flex-direction: column; /* 縦並びに変更してタイトル幅を確保 */
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    border-radius: 8px;
    align-items: flex-start;
}
.seo-detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #4CAF50;
    transform: translateY(-5px);
}

.seo-detail-item__icon {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.seo-detail-item__content {
    width: 100%;
}

.seo-detail-item__title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.4;
}
.seo-detail-item__text {
    color: #ccc;
    line-height: 1.8;
}


/* --- Pricing (MEOと同スタイル) --- */
.seo-pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.seo-pricing__card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.seo-pricing__card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

.seo-pricing__card--featured {
    border: 2px solid rgba(76, 175, 80, 0.5);
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.1);
}

.seo-pricing__badge {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.seo-pricing__head {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.seo-pricing__name { font-size: 1.5rem; color: #4CAF50; margin-bottom: 0.8rem; font-weight: bold; letter-spacing: 0.1em; }
.seo-pricing__desc { font-size: 0.9rem; color: #ccc; }

.seo-pricing__body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.seo-pricing__price { text-align: center; margin-bottom: 2rem; color: #fff; }
.seo-pricing__price .amount { font-size: 3rem; font-weight: bold; }
.seo-pricing__price .tax { font-size: 0.9rem; }
.seo-pricing__price .type { font-size: 1rem; color: #888; }

.seo-pricing__include-box {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.seo-pricing__list { list-style: none; padding: 0; margin-bottom: 2rem; }
.seo-pricing__list li { font-size: 0.95rem; color: #ddd; margin-bottom: 1rem; padding-left: 1.5rem; position: relative; line-height: 1.6; }
.seo-pricing__list li::before { content: '✓'; position: absolute; left: 0; color: #4CAF50; font-weight: bold; }
.seo-pricing__list li strong { color: #fff; }
.seo-pricing__list .sub-list { display: block; font-size: 0.8rem; color: #888; margin-top: 2px; }

.seo-pricing__btn {
    margin-top: auto; display: block; background: #4CAF50; color: #fff; text-align: center; padding: 1.2rem;
    text-decoration: none; font-weight: bold; border-radius: 4px; transition: all 0.3s;
}
.seo-pricing__btn:hover { background: #45a049; box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3); color: #fff; transform: translateY(-2px); }

.seo-pricing__note { text-align: center; color: #888; font-size: 0.9rem; line-height: 1.6; }

/* --- FAQ --- */
.seo-faq__list { max-width: 800px; margin: 0 auto; }

/* --- CTA --- */
.seo-cta {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(76, 175, 80, 0.1) 100%);
}
.seo-cta__title { font-size: 3rem; margin-bottom: 1.5rem; color: #fff; }
.seo-cta__text { font-size: 1.1rem; line-height: 2; color: #fff; margin-bottom: 3rem; }
.seo-cta__btn {
    display: inline-block; padding: 1.2rem 4rem; background: #4CAF50; color: #fff;
    text-decoration: none; font-size: 1.1rem; border-radius: 50px; transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}
.seo-cta__btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(76, 175, 80, 0.5); color: #fff; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .seo-hero { min-height: auto; padding: 6rem 0 4rem; }
    .seo-hero__container { flex-direction: column; text-align: center; gap: 3rem; }
    .seo-hero__content { width: 100%; }
    .seo-hero__visual { width: 100%; height: 350px; }
    .seo-hero__label { margin-left: auto; margin-right: auto; display: block; width: fit-content; }
    
    .seo-problems__grid { grid-template-columns: 1fr; }
    
    .seo-logic__inner { flex-direction: column; padding: 2rem; }
    
    /* 1カラムレイアウト適用 */
    .seo-details__grid { grid-template-columns: 1fr; }
    
    .seo-pricing__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .seo-hero__title-sub { font-size: 1.6rem !important; }
    .seo-section__title { font-size: 2rem; }
}