/* リセットCSS - ブラウザのデフォルトスタイルを統一 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Sans", sans-serif;
    line-height: 1.8;
    color: #4a5568;
    background: #fafafa;
    overflow-x: hidden;
}

/* コンテナ - コンテンツの最大幅を制限 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== アニメーション定義 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* フェードイン要素の初期状態 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ヘッダー ========== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5a8fa3;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #5a8fa3;
}

nav a:hover::after {
    width: 100%;
}

/* ========== セクション共通 ========== */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background: #f7fafc;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #5a8fa3;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #5a8fa3, #7db88f);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* ========== ヒーローセクション ========== */
.hero {
    min-height: 100vh;
    background: #0a0a0a;
    color: #ffffff;
    padding: 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* 幾何学的背景 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    opacity: 0.15;
}

/* ダイヤモンド形 */
.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, #5a8fa3, #7db88f);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: -200px;
    right: -100px;
    animation: rotate 20s linear infinite;
}

/* 八角形 */
.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #d4a5a5, #b08585);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    bottom: -100px;
    left: -50px;
    animation: rotate -15s linear infinite;
}

/* ぼかし円 */
.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(90deg, #5a8fa3, #d4a5a5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.3;
}

/* 三角形 */
.shape-4 {
    width: 200px;
    height: 200px;
    background: #7db88f;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 30%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

/* 六角形 */
.shape-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(60deg, #5a8fa3, #d4a5a5);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 60%;
    right: 5%;
    animation: rotate 25s linear infinite reverse;
    opacity: 0.1;
}

/* 星形 */
.shape-6 {
    width: 250px;
    height: 250px;
    background: linear-gradient(180deg, #7db88f, #5a8fa3);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    bottom: 20%;
    right: 30%;
    animation: pulse 4s ease-in-out infinite;
    opacity: 0.12;
}

/* 正方形（回転） */
.shape-7 {
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, #d4a5a5, #b08585);
    top: 15%;
    right: 40%;
    animation: rotateSquare 15s linear infinite;
    opacity: 0.08;
}

/* 半円 */
.shape-8 {
    width: 300px;
    height: 150px;
    background: linear-gradient(90deg, #5a8fa3, #7db88f);
    border-radius: 150px 150px 0 0;
    bottom: 0;
    left: 20%;
    animation: sway 8s ease-in-out infinite;
    opacity: 0.1;
}

/* グリッドパターン */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(90, 143, 163, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 143, 163, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* パーティクル */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #5a8fa3;
    border-radius: 50%;
    opacity: 0.5;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(2) {
    top: 30%;
    left: 80%;
    animation: particleFloat 20s linear infinite reverse;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 10%;
    animation: particleFloat 18s linear infinite;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation: particleFloat 22s linear infinite reverse;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 20%;
    left: 50%;
    animation: particleFloat 16s linear infinite;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    top: 70%;
    left: 30%;
    animation: particleFloat 19s linear infinite reverse;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    top: 40%;
    left: 60%;
    animation: particleFloat 17s linear infinite;
    animation-delay: 2.5s;
}

.particle:nth-child(8) {
    top: 90%;
    left: 40%;
    animation: particleFloat 21s linear infinite reverse;
    animation-delay: 4.5s;
}

/* 波形パターン */
.wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    fill: rgba(90, 143, 163, 0.1);
    animation: waveMove 10s linear infinite;
}

/* アニメーション定義 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateSquare {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes sway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(30px) rotate(5deg); }
    75% { transform: translateX(-30px) rotate(-5deg); }
}

@keyframes gridMove {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

@keyframes particleFloat {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(100px, -100px) rotate(360deg);
    }
}

@keyframes waveMove {
    from { transform: translateX(0); }
    to { transform: translateX(-1200px); }
}

/* ヒーローコンテナ */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
}

/* タイポグラフィスタイル */
.hero-text {
    text-align: left;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    overflow: hidden;
}

.line-1 {
    font-size: 0.7em;
    color: #666;
    margin-bottom: 10px;
    animation: slideInLeft 0.8s ease-out;
}

.line-2 {
    color: #fff;
    margin-bottom: 10px;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.line-3 {
    color: #fff;
    position: relative;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.highlight {
    color: #5a8fa3;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10px;
    right: -10px;
    height: 30%;
    background: linear-gradient(90deg, #5a8fa3, #7db88f);
    opacity: 0.3;
    z-index: -1;
    transform: skewY(-2deg);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* サブタイトル */
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.subtitle-accent {
    display: block;
    font-size: 0.9em;
    color: #999;
    margin-bottom: 5px;
}

.subtitle-main {
    display: block;
    font-size: 1.1em;
    color: #ccc;
}

/* CTA ボタン */
.hero-cta {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, #5a8fa3, #7db88f);
    color: white;
    border: none;
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.cta-button.primary:hover::before {
    left: 100%;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(90, 143, 163, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #5a8fa3;
    border: 2px solid #5a8fa3;
}

.cta-button.secondary:hover {
    background: #5a8fa3;
    color: white;
    transform: translateY(-3px);
}

/* ビジュアル部分 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 300px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.logo-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 2px solid rgba(90, 143, 163, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.logo-decoration::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid rgba(125, 184, 143, 0.2);
    border-radius: 50%;
    animation: rotate -15s linear infinite;
}

/* モダンな統計表示 */
.stats-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item.featured {
    transform: scale(1.1);
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stat-prefix {
    font-size: 1rem;
    color: #666;
}

.stat-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5a8fa3;
}

.stat-number-large {
    font-size: 3rem;
    font-weight: 900;
    color: #5a8fa3;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.2rem;
    color: #999;
}

.stat-desc {
    font-size: 0.9rem;
    color: #666;
}

/* スクロールインジケーター */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    width: 30px;
    height: 50px;
    position: relative;
}

.scroll-down span {
    display: block;
    width: 3px;
    height: 3px;
    background: #5a8fa3;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    animation: scrollDown 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ========== セクションタイトル共通 ========== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .title-main {
    display: block;
    font-size: 1.8rem;
    color: #666;
    font-weight: 400;
}

.section-title .title-accent {
    display: block;
    font-size: 3rem;
    color: #5a8fa3;
    font-weight: 900;
    margin-top: 10px;
}

/* ========== 問題提起セクション ========== */
.problem {
    background: #f7fafc;
}

/* 国際比較 */
.comparison-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.comparison-visual {
    position: relative;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar {
    position: relative;
    height: 50px;
    background: #f0f0f0;
    border-radius: 25px;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #5a8fa3, #7db88f);
    border-radius: 25px;
    transition: width 2s ease-out;
    width: 0;
}

.bar.japan .bar-fill {
    width: 16%;
    background: #d4a5a5;
}

.bar.usa .bar-fill {
    width: 100%;
}

.bar.china .bar-fill {
    width: 72%;
}

.bar.germany .bar-fill {
    width: 28%;
}

.bar-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #333;
    z-index: 2;
}

.bar-value {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #333;
    z-index: 2;
}

.comparison-content {
    text-align: left;
}

.subsection-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subsection-title span {
    color: #5a8fa3;
    font-weight: 900;
}

.subsection-title.center {
    text-align: center;
    margin-bottom: 50px;
}

.comparison-text {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.comparison-text strong {
    color: #d4a5a5;
    font-weight: 700;
}

/* 学年別の悩み - タイムライン */
.grade-problems {
    margin-top: 80px;
    position: relative;
    padding: 50px 0;
}

/* 背景の大きな矢印 */
.grade-problems::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 48%, rgba(90, 143, 163, 0.3) 48%, rgba(90, 143, 163, 0.3) 52%, transparent 52%);
    background-size: 100% 100%;
    z-index: 1;
    pointer-events: none;
}

/* 矢印の先端部分 */
.grade-problems::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(90, 143, 163, 0.2);
    transform: rotate(135deg);
    z-index: 1;
    pointer-events: none;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.timeline-item {
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* 各アイテムの位置調整 */
.timeline-item:nth-child(1) {
    transform: translateY(100px);
}

.timeline-item:nth-child(2) {
    transform: translateY(50px);
}

.timeline-item:nth-child(3) {
    transform: translateY(0);
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: #5a8fa3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 3;
    box-shadow: 0 5px 20px rgba(90, 143, 163, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(90, 143, 163, 0.4);
}

.timeline-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 2;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.problem-visual {
    flex-shrink: 0;
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-wrapper .icon {
    width: 60px;
    height: 60px;
}

.problem-text {
    text-align: center;
}

.problem-text h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.problem-text p {
    color: #666;
    line-height: 1.6;
}

/* 矢印は不要になったので削除 */
.timeline-arrow {
    display: none;
}

/* ========== 解決策セクション ========== */
.solution {
    background: white;
}

.barriers-container {
    display: flex;
    gap: 60px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.barrier-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.barrier-visual {
    text-align: center;
}

.barrier-icon {
    position: relative;
    display: inline-block;
}

.barrier-icon svg {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 2;
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(90, 143, 163, 0.1), rgba(125, 184, 143, 0.1));
    border-radius: 50%;
    z-index: 1;
}

.barrier-content h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

.barrier-content h3 span {
    color: #5a8fa3;
    font-weight: 900;
}

.solution-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.point {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.point:hover {
    background: #e8f4f8;
    transform: translateX(10px);
}

.point-number {
    font-size: 2rem;
    font-weight: 900;
    color: #5a8fa3;
    opacity: 0.3;
}

.point p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.point strong {
    color: #333;
    font-weight: 700;
}

.barrier-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.barrier-divider span {
    font-size: 2rem;
    font-weight: 900;
    color: #d4a5a5;
    padding: 20px;
    background: white;
    border: 3px solid #d4a5a5;
    border-radius: 50%;
}

/* ========== 3つの価値セクション ========== */
.features {
    background: #f7fafc;
}

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

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(90, 143, 163, 0.1);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-icon {
    text-align: center;
}

.feature-icon svg {
    width: 70px;
    height: 70px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-text h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.feature-text h3 span {
    color: #5a8fa3;
    font-weight: 900;
}

.feature-question {
    font-size: 1.1rem;
    color: #d4a5a5;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-answer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.big-number {
    font-size: 4rem;
    font-weight: 900;
    color: #5a8fa3;
    line-height: 1;
}

.answer-icon {
    width: 50px;
    height: 50px;
}

.answer-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.4;
}

/* ========== 解決策セクション ========== */
.barriers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.barrier {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.barrier::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(90, 143, 163, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.barrier:hover::before {
    opacity: 1;
    animation: float 3s ease-in-out infinite;
}

.barrier:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.barrier .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.barrier:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

.barrier ul {
    list-style: none;
    text-align: left;
}

.barrier li {
    padding: 10px 0;
    position: relative;
    padding-left: 25px;
    transition: transform 0.3s ease;
}

.barrier li:hover {
    transform: translateX(5px);
}

.barrier li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7db88f;
    font-weight: bold;
    transition: all 0.3s ease;
}

.barrier li:hover::before {
    transform: scale(1.3);
}

/* ========== 3つの価値セクション ========== */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5a8fa3, #7db88f);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover::after {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature .icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature:hover .icon {
    transform: scale(1.2) rotate(360deg);
}

.feature h3 {
    color: #5a8fa3;
    margin-bottom: 10px;
}

.feature .subtitle {
    color: #b08585;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ========== 実績セクション ========== */
.result-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.result {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.result:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.big-number {
    font-size: 3rem;
    font-weight: bold;
    color: #5a8fa3;
    margin: 20px 0;
    display: inline-block;
}

.status {
    font-size: 2rem;
    font-weight: bold;
    color: #7db88f;
    margin: 20px 0;
    position: relative;
}

.status::after {
    content: '✓';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.result:hover .status::after {
    opacity: 1;
    right: -40px;
}

/* ========== FAQセクション ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.qa {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.qa:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.qa h3 {
    color: #5a8fa3;
    margin: 0;
    padding: 30px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.qa h3::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.qa.active h3::after {
    transform: translateY(-50%) rotate(45deg);
}

.qa h3:hover {
    background: #f7fafc;
}

.qa p {
    color: #718096;
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.qa.active p {
    padding: 0 30px 30px;
    max-height: 200px;
}

/* ========== お問い合わせセクション ========== */
.contact {
    text-align: center;
}

.contact .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.contact-list {
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-item {
    background: #f7fafc;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(90, 143, 163, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: #5a8fa3;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 24px;
    height: 24px;
}

.contact-item a {
    color: #5a8fa3;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5a8fa3;
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: #7db88f;
}

.contact-item a:hover::after {
    width: 100%;
}

.hashtag {
    background: linear-gradient(135deg, rgba(90, 143, 163, 0.1), rgba(212, 165, 165, 0.1));
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hashtag:hover {
    transform: scale(1.02);
}

.hashtag strong {
    color: #5a8fa3;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ========== フッター ========== */
footer {
    background: #4a5568;
    color: #e2e8f0;
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5a8fa3, transparent);
    animation: float 3s ease-in-out infinite;
}

.footer-logo {
    height: 30px;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ========== スクロールインジケーター ========== */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #5a8fa3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator:hover {
    background: #7db88f;
    transform: translateY(-5px);
}

.scroll-indicator::after {
    content: '↑';
    color: white;
    font-size: 1.5rem;
}

/* ========== ローディングアニメーション ========== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5a8fa3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== レスポンシブ対応 ========== */
@media (max-width: 768px) {
    /* ナビゲーション */
    nav {
        display: none;
    }
    
    /* ヒーロー */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-logo {
        width: 200px;
    }
    
    .logo-decoration {
        width: 250px;
        height: 250px;
    }
    
    /* 統計 */
    .stats-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item.featured {
        transform: scale(1);
    }
    
    /* セクションタイトル */
    h2 {
        font-size: 2rem;
    }
    
    /* グリッドレイアウト */
    .problems,
    .barriers,
    .feature-list,
    .result-list {
        grid-template-columns: 1fr;
    }
    
    /* FAQ */
    .qa h3 {
        padding: 20px;
        font-size: 1.2rem;
    }
    
    .qa h3::after {
        right: 20px;
    }
}
