/* sub.css - サブページ用スタイル */

/* ページタイトルヘッダー */
.page-title-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(240,248,255,0.8)), url('../images/sub/amma_top.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0 80px;
    text-align: center;
    border-bottom: 1px solid #e8f4f8;
    margin-top: 80px; /* ヘッダーの高さ分の余白 */
    position: relative;
}

.page-title-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(240,248,255,0.7));
    z-index: 1;
}

.page-title-header .container {
    position: relative;
    z-index: 2;
}

.page-title-header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    font-family: var(--heading-jp);
}

.page-title-header .subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* パンくずナビ */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 300;
    font-family: var(--heading-jp);
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 新聞スタイルコンテナ */
.newspaper-container {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin: 3rem auto;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newspaper-header {
    text-align: center;
    border-bottom: 3px double #333;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.newspaper-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    font-family: var(--heading-jp);
}

.newspaper-subtitle {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.newspaper-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* メイン記事 */
.main-article {
    border-right: 1px solid #ddd;
    padding-right: 2rem;
}

.article-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    font-family: var(--heading-jp);
}

.article-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.lead-text {
    font-size: 1.1rem;
    color: #333;
    background: #f8f8f8;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1rem;
}

.quote {
    background: #f0f8f0;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* サイドバー */
.sidebar {
    padding-left: 1rem;
}

.sidebar-section {
    background: #f8f8f8;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: bold;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
    font-family: var(--heading-jp);
}

.sidebar-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.sidebar-content ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-content li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.sidebar-content li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.guest-voice {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-style: italic;
}

/* 次号予告 */
.next-preview {
    background: var(--accent-color);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    border-radius: 5px;
    margin-top: 2rem;
}

.next-preview h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-family: var(--heading-jp);
}

.next-preview p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* サイトに戻るボタン */
.back-to-site {
    text-align: center;
    margin: 3rem 0;
}

.back-to-site a {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-family: var(--body-jp);
}

.back-to-site a:hover {
    background: #005166;
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .page-title-header {
      padding: 120px 0 60px;
      margin-top: 70px;
      background-image: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(240,248,255,0.2)), url('../images/sub/amma_top.jpg');
      background-position: center center;
      background-size: cover;
  }

  .page-title-header::before {
      background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(240,248,255,0.2));
  }

    .page-title-header h1 {
        font-size: 2rem;
    }

    .newspaper-container {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    .newspaper-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-article {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 2rem;
    }

    .sidebar {
        padding-left: 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }
}
