/* ========================================
   学校ノート風・創設者ページ専用デザイン
======================================== */

body.page-story {
    background: #E8DCC4 !important;
}

/* ========================================
   イントロセクション（証明写真風）
======================================== */
.founder-intro {
    max-width: 1000px;
    margin: 3rem auto 2rem;
    padding: 3rem 2rem;
    background: #FFFEF7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

/* マスキングテープ装飾 */
.founder-intro::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 150px;
    height: 30px;
    background: rgba(255, 200, 150, 0.7);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.intro-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

/* 証明写真風 */
.founder-photo-box {
    position: relative;
}

.founder-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #f0f0f0;
}

/* クリップ装飾 */
.founder-photo-box::before {
    content: '📎';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
    transform: rotate(45deg);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.intro-text {
    padding-top: 1rem;
}

.intro-label {
    display: inline-block;
    background: #FFB6C1;
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.intro-title {
    font-family: 'Klee One', 'Noto Serif JP', serif;
    font-size: 2rem;
    color: #000;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.intro-description {
    font-family: 'Klee One', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    color: #000;
    line-height: 2;
    margin-bottom: 1rem;
}

.intro-description strong {
    color: #000;
}

/* ========================================
   メインノートエリア
======================================== */
.story-notebook {
    max-width: 1000px;
    margin: 2rem auto 3rem;
    padding: 3rem 2rem;
    background: #FFFEF7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

/* ノートの罫線 */
.story-notebook::after {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #FFB6C1;
    opacity: 0.3;
}

/* ノートの穴 */
.notebook-holes {
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    z-index: 1;
}

.notebook-hole {
    width: 20px;
    height: 20px;
    background: #E8DCC4;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.story-content {
    padding-left: 60px;
    font-family: 'Klee One', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    color: #000;
    position: relative;
    z-index: 2;
}

.story-title {
    font-family: 'Klee One', 'Noto Serif JP', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px double #000;
}

/* ========================================
   タイムラインセクション
======================================== */
.timeline-section {
    margin: 3rem 0;
}

.timeline-item {
    position: relative;
    padding: 2rem 0 2rem 3rem;
    border-left: 3px solid #FFB6C1;
    margin-left: 1rem;
}

.timeline-item::before {
    content: '●';
    position: absolute;
    left: -12px;
    top: 2rem;
    font-size: 1.5rem;
    color: #FFB6C1;
}

.timeline-period {
    display: inline-block;
    background: #FFB6C1;
    color: #fff;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-family: 'Klee One', 'Noto Serif JP', serif;
    font-size: 1.8rem;
    color: #dc2626 !important;
    margin-bottom: 1rem;
    font-weight: 700;
    display: inline-block;
    padding: 0 0.5rem;
}

.story-section {
    margin-bottom: 2.5rem;
}

.story-section p {
    margin-bottom: 1.5rem;
    line-height: 2.2;
    color: #000;
}

/* ========================================
   装飾要素
======================================== */

/* 強調（赤字） */
.highlight-red {
    color: #dc2626;
    font-weight: 600;
    position: relative;
}

/* 手書き風アンダーライン */
.highlight-red::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #dc2626;
    opacity: 0.5;
}

/* 引用ボックス */
.quote-box {
    background: rgba(255, 182, 193, 0.15);
    border-left: 4px solid #FFB6C1;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    position: relative;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: #FFB6C1;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.emotion {
    color: #000;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 区切り線（手書き風） */
.divider {
    border: none;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #ccc 0px,
        #ccc 10px,
        transparent 10px,
        transparent 15px
    );
    margin: 3rem 0;
}

/* ========================================
   付箋メモ風
======================================== */
.sticky-note {
    background: #FFFEF7;
    border: 2px solid #FFB6C1;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: rotate(-1deg);
    position: relative;
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background: rgba(200, 200, 200, 0.4);
    border-radius: 2px;
}

.sticky-note p {
    color: #000;
    font-size: 1.1rem;
    margin: 0;
}

/* ========================================
   最終メッセージ
======================================== */
.final-message {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF4E5 100%);
    padding: 3rem 2rem;
    margin-top: 3rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.final-message::before {
    content: '✨';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
}

.final-message p {
    color: #000;
    font-size: 1.3rem;
    line-height: 2;
    margin: 0;
}

.final-message strong {
    color: #000;
    font-size: 1.5rem;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    body.page-story {
        overflow-x: hidden !important;
    }
    
    .founder-intro,
    .story-notebook {
        margin: 0.5rem !important;
        padding: 1.5rem 0.75rem !important;
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
    }
    
    .intro-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    .founder-photo-box {
        max-width: 180px !important;
        margin: 0 auto !important;
    }
    
    .founder-photo {
        width: 100% !important;
    }
    
    .intro-label {
        font-size: 0.75rem !important;
        padding: 0.4rem 1rem !important;
    }
    
    .intro-title {
        font-size: 1.4rem !important;
        line-height: 1.6 !important;
        padding: 0 !important;
    }
    
    .intro-description {
        font-size: 0.9rem !important;
        line-height: 1.9 !important;
        padding: 0 !important;
    }
    
    .story-notebook::after {
        left: 20px !important;
    }
    
    .notebook-holes {
        left: 8px !important;
    }
    
    .notebook-hole {
        width: 12px !important;
        height: 12px !important;
    }
    
    .story-content {
        padding-left: 10px !important;
        padding-right: 5px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
    }
    
    .story-title {
        font-size: 1.5rem !important;
        padding-bottom: 0.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .timeline-section {
        width: 100% !important;
        margin: 2rem 0 !important;
    }
    
    .timeline-item {
        padding-left: 1.2rem !important;
        margin-left: 0.3rem !important;
        margin-bottom: 2rem !important;
    }
    
    .timeline-item::before {
        left: -8px !important;
        font-size: 1rem !important;
    }
    
    .timeline-period {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.75rem !important;
        display: inline-block !important;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem !important;
        line-height: 1.5 !important;
        padding: 0 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .story-section {
        width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    .story-section p {
        font-size: 0.9rem !important;
        line-height: 2 !important;
        margin-bottom: 1rem !important;
        padding: 0 !important;
    }
    
    .story-section h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .quote-box {
        padding: 1rem !important;
        margin: 1.5rem 0 !important;
        width: 100% !important;
    }
    
    .quote-box::before {
        font-size: 2.5rem !important;
    }
    
    .emotion {
        font-size: 0.85rem !important;
        line-height: 1.7 !important;
    }
    
    .divider {
        margin: 2rem 0 !important;
    }
    
    .sticky-note {
        padding: 1rem !important;
        margin: 1.5rem 0 !important;
        width: 100% !important;
    }
    
    .sticky-note p {
        font-size: 0.9rem !important;
        line-height: 1.8 !important;
    }
    
    .final-message {
        padding: 1.5rem 1rem !important;
        margin-top: 2rem !important;
    }
    
    .final-message p {
        font-size: 1rem !important;
        line-height: 1.9 !important;
    }
    
    .final-message strong {
        font-size: 1.15rem !important;
    }
    
    .highlight-red {
        display: inline !important;
        word-break: keep-all !important;
    }
}
