/* ヒーローセクション */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, var(--bg-blue-light) 0%, var(--bg-blue-lighter) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 8rem 0 4rem;
}

.hero-title {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    color: var(--text);
    font-weight: 600;
}

.concerns {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 3.5rem;
}

.concerns h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.concern-list {
    display: grid;
    gap: 1.5rem;
}

.concern-item {
    display: flex;
    align-items: flex-start;
}

.concern-icon {
    color: var(--accent);
    font-size: 1.8rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.concern-item p {
    margin: 3px 0 0 0;
    font-size: 1.6rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.hero-decoration-1 {
    width: 120px;
    height: 120px;
    background-color: rgba(45, 91, 157, 0.15);
    top: -30px;
    right: -40px;
}

.hero-decoration-2 {
    width: 80px;
    height: 80px;
    background-color: rgba(248, 160, 26, 0.15);
    bottom: 40px;
    left: -30px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    flex: 1;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-light);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* サービス紹介セクション */
/* サービス説明部分のスタイル改善 */
.service-intro {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--bg-blue-light) 0%, var(--bg-blue-lighter) 100%);
}

.service-content {
    max-width: 1000px;
    margin: 0 auto;
}

.service-highlight {
    margin: 3rem 0 5rem;
    position: relative;
    text-align: center;
}

.highlight-text {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    display: inline-block;
    position: relative;
    padding: 0 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(transparent 70%, rgba(189, 239, 115, 0.5) 70%);
}

/* カード型レイアウト */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(45, 91, 157, 0.08);
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    /* width: 87%; */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(45, 91, 157, 0.12);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-blue-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.feature-card p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 0;
}

/* CTA部分 */
.service-cta {
    margin-top: 5rem;
    text-align: center;
}

.cta-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text);
    line-height: 1.5;
}

/* アニメーション */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(248, 160, 26, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(248, 160, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 160, 26, 0); }
}

.animated {
    animation: highlight-pulse 2s infinite;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .highlight-text {
        font-size: 2rem;
    }
    
    .card-icon {
        height: 60px;
        width: 60px;
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 1.8rem;
    }
}

.service-details {
    font-size: 1.7rem;
    color: var(--text);
    margin-bottom: 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.local-support {
    max-width: 1000px;
    margin: 8rem auto 0;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 4rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow);
}

.support-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.support-content h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.support-content p {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.support-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 250px;
}

/* 特徴セクション */
.features {
    background-color: var(--bg-light);
    padding: 12rem 0;
}

.features-tabs {
    margin-top: 6rem;
}

.tabs-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tabs-content {
    position: relative;
    min-height: 400px;
}

.panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.panel-text h3 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
}

.feature-list {
    display: grid;
    gap: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.6rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
}

.panel-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 料金プランセクション */
.pricing {
    padding: 12rem 0;
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 6rem 0;
}

.writing-support {
    max-width: 900px;
    margin: 6rem auto 0;
    background-color: var(--bg-light);
    padding: 4rem;
    border-radius: var(--radius);
}

.writing-support h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.support-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.support-type {
    background-color: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.support-type h4 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}


/* デモセクション */
.demo {
    padding: 10rem 0;
    background: var(--primary-darker);
    color: white;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.demo-text h2 {
    font-size: 3.6rem;
    margin-bottom: 2.5rem;
    color: white;
}

.demo-text p {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-message {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.demo-image {
    position: relative;
    width: 95%;
}

.demo-image img {
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
}

.demo-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    background-color: rgba(248, 160, 26, 0.2);
    border-radius: var(--radius);
    z-index: -1;
}

/* FAQセクション */
.faq {
    padding: 12rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 5rem auto 0;
}

/* CTAセクション */
.cta-section {
    background-color: var(--bg-light);
    padding: 10rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 3.6rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

/* .cta-section p {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text);
} */

/* アニメーションクラス */
.reveal-text {
    opacity: 0;
}

.reveal-text.visible {
    opacity: 1;
}
/* プラン比較の安定化用CSS */
.writing-plans-side-by-side {
    opacity: 0.98; /* 軽微な透明度でレンダリングを強制 */
    will-change: opacity; /* ブラウザにレンダリングの最適化を指示 */
    transition: opacity 0.3s ease;
}

.writing-plans-side-by-side.visible {
    opacity: 1;
}

/* プロセスステップのコンテナ */
.process-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;           /* 折り返しを防止 */
  width: 100%;
  position: relative;
}

/* 日本語テキスト用の追加スタイル */
.step-description {
  /* 上記のスタイルに加えて */
  line-break: strict;          /* 日本語の禁則処理を厳密に */
  word-wrap: break-word;       /* 長い単語を折り返す */
}