/* ========================================
   CSS Reset & Base Styles
   ========================================
   ページ全体の基本設定とリセットCSS
   フォント、色、レイアウトの基本設定を定義
======================================== */

/* 全要素のマージン・パディングをリセット、ボックスサイジングを統一 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTMLの基本設定：スムーズスクロール、フォントサイズの基準値 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ボディの基本スタイル：フォント、行間、色、背景色、横スクロール防止 */
body {
    font-family: 'Noto Serif JP', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

/* 画像の基本設定：レスポンシブ対応、ブロック要素化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* リンクの基本設定：装飾なし、色継承、トランジション効果 */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* リストの基本設定：リストマーカーを非表示 */
ul {
    list-style: none;
}

/* ボタンの基本設定：ボーダー・背景なし、カーソル設定、フォント継承 */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* コンテナクラス：最大幅設定、中央配置、左右パディング */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Typography - タイポグラフィ設定
   ========================================
   見出しと本文のフォント設定
======================================== */

/* 見出し全般の設定：フォントファミリー、ウェイト、行間、下マージン */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* 各見出しレベルのフォントサイズ：レスポンシブ対応のclamp関数使用 */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* 段落の設定：下マージン、行間 */
p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ========================================
   Section Styles - セクション共通スタイル
   ========================================
   各セクションのヘッダー部分の共通デザイン
======================================== */

/* セクションヘッダーの基本レイアウト */
.sectionHeader {
    text-align: center;
    margin-bottom: 4rem;
    
    /* セクションタイトルのスタイル：色設定、下線装飾 */
    .sectionTitle {
        color: #9370DB;
        margin-bottom: 1rem;
        position: relative;
        
        /* タイトル下の装飾線：疑似要素で作成 */
        &::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, #D4AF37, #9370DB);
        }
    }
    
    /* セクションサブタイトルのスタイル */
    .sectionSubtitle {
      margin-top: 10px;
        color: #666;
        font-size: 1.3rem;
        font-weight: 300;
    }
}

/* ========================================
   Animations - アニメーション定義
   ========================================
   ページ内で使用するキーフレームアニメーション
======================================== */

/* 下から上にフェードインするアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左から右にフェードインするアニメーション */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 右から左にフェードインするアニメーション */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Breakpoints - レスポンシブ対応
   ========================================
   モバイル端末向けのスタイル調整
======================================== */

/* タブレット・スマートフォン向けの調整 */
@media (max-width: 768px) {
    /* コンテナの左右パディングを縮小 */
    .container {
        padding: 0 15px;
    }
    
    /* セクションヘッダーの下マージンを縮小 */
    .sectionHeader {
        margin-bottom: 2rem;
    }
}