/* =========================================
   基本設定
   ========================================= */
body {
    /* 読みやすく美しいゴシック体を指定 */
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: #444; /* 真っ黒より少しグレーの方が上品 */
    background-color: #f9f9f9;
    line-height: 1.8; /* 全体の行間を少し広めに */
}

a { text-decoration: none; color: #555; transition: 0.3s; }
a:hover { color: #000; opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   レイアウト枠
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   ヘッダー
   ========================================= */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 50px;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 24px; font-weight: bold; letter-spacing: 2px; }
nav ul { list-style: none; display: flex; padding: 0; margin: 0; }
nav li { margin-left: 20px; }
nav a { font-weight: bold; font-size: 14px; }

/* =========================================
   メインレイアウト（2カラム）
   ========================================= */
.main-layout {
    display: flex;
    gap: 40px; /* メインとサイドの間隔 */
    margin-bottom: 80px;
    align-items: flex-start; /* 高さが違っても上揃えにする */
}
/* 左側（75%） */
.content-area {
    flex: 3;
    /* 溢れ出し防止 */
    min-width: 0; 
}
/* 右側（25%） */
.sidebar-area {
    flex: 1;
}

/* =========================================
   スタイリッシュなコンセプトエリア（修正版）
   ========================================= */

/* タイトル */
.content-area h2 {
    text-align: center;
    font-size: 26px;
    font-weight: normal;
    letter-spacing: 0.2em;
    margin-top: 20px;
    margin-bottom: 50px;
}
.content-area h2 rt { font-size: 0.5em; color: #999; }

/* 本文（重要：幅を制限して中央に寄せる） */
.content-area > p {
    max-width: 640px;         
    margin: 0 auto 60px auto; /* 上 左右(自動) 下(60px) */
    line-height: 2.2;         
    font-size: 15px;          
    text-align: justify;      
    padding: 0 10px;          
}

/* 「しおり【枝折】」の強調 */
.content-area > p strong {
    display: block;
    font-size: 18px;
    color: #222;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    letter-spacing: 0.1em;
    font-weight: normal;
}

/* 辞書的な定義部分のデザイン */
.content-area .definition {
    border-left: 4px solid #ddd; /* 左側に薄いグレーの線 */
    padding-left: 20px;          /* 線との間隔 */
    font-style: italic;          /* 少し斜体にして雰囲気を変える */
    color: #666;
    background-color: #fafafa;   /* ほんのり背景色をつける */
    padding: 20px;               /* 内側の余白 */
    border-radius: 4px;          /* 角を少し丸く */
}

/* 定義のタイトル部分 */
.concept-text .definition strong {
    display: block;           /* 一行使う */
    font-style: normal;       /* 斜体を戻す */
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

/* --- メインビジュアル（大きなイメージフォト） --- */
.main-visual {
    width: 100%;
    margin-bottom: 50px;/* 下の文章との間隔 */
}

.main-visual img {
    width: 75%;          /* 横幅を75%に */
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    display: block;      /* ブロック要素として扱う（基本設定で入っていますが念のため） */
    margin: 0 auto;      /* 上下は0、左右は「自動(auto)」＝これで中央に来ます */
}

/* =========================================
   3枚の画像エリア（修正版）
   ========================================= */
.three-images {
    display: flex;
    justify-content: space-between; /* 均等配置 */
    gap: 15px;
    margin-bottom: 60px;
}
.img-box {
    width: 32%; /* 【修正】固定300pxをやめ、3分割（約32%）にする */
}
.img-box img {
    width: 100%;
    /* ▼ここから追加・変更▼ */
    aspect-ratio: 3 / 2;  /* 300x200の比率（3:2）の枠を強制的に作る */
    object-fit: cover;    /* 枠に合わせて画像を拡大縮小し、はみ出た部分をトリミングする */
    /* ▲ここまで▲ */
    border-radius: 4px;
}
.img-box p {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
}

/* =========================================
   YouTubeエリア & その他
   ========================================= */
hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 60px 0;
}

.content-area h3 {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.1em;
    font-weight: normal;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #666;
}

.youtube-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
}
.youtube-box iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* =========================================
   サイドバー
   ========================================= */
.sidebar-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}
.sidebar-box h3 {
    font-size: 15px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-top: 0;
    letter-spacing: 0.1em;
}
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box li {
    margin-bottom: 15px;
    font-size: 13px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 10px;
}

/* =========================================
   フッター
   ========================================= */
footer {
    background: #333;
    color: #fff;
    padding: 50px 0;
    text-align: center;
    font-size: 14px;
}
footer a { color: #fff; }
.sns-links { margin-bottom: 30px; }
.sns-links a {
    display: inline-block;
    margin: 0 10px;
    border: 1px solid #fff;
    padding: 8px 16px;
    border-radius: 50px; /* 丸くする */
    font-size: 12px;
}

/* =========================================
   作品詳細ページ & ギャラリー
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.gallery-item {
    border: 1px solid #eee; background: #fff; padding: 15px;
}

.work-header { text-align: center; margin-bottom: 60px; }
.work-header h1 { font-size: 28px; margin-bottom: 10px; font-weight: normal; }
.work-header .meta { color: #999; font-size: 13px; }

.process-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}
.process-section:last-child { border-bottom: none; }
.process-img { flex: 1.5; }
.process-text { flex: 1; padding-top: 10px; }
.process-text h3 { margin-top: 0; font-size: 18px; margin-bottom: 20px; }

.back-btn-area { text-align: center; margin: 60px 0; }
.button {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #ccc;
    color: #555;
}

/* =========================================
   スマホ対応（レスポンシブ）
   ========================================= */
@media (max-width: 768px) {
    /* 縦並びにする */
    .main-layout { flex-direction: column; }
    header .container { flex-direction: column; gap: 15px; }
    
    /* 画像エリア */
    .three-images {
        flex-direction: column; /* スマホでは縦に並べる */
        gap: 30px;
    }
    .img-box { width: 100%; }

    /* 詳細ページ */
    .process-section { flex-direction: column; }
    
    /* 文字サイズ調整 */
    .content-area h2 { font-size: 22px; }
    .content-area > p { font-size: 14px; line-height: 2.0; }
}

/* --- 作品詳細ページの新しいレイアウト --- */

/* タイトルとスペック情報 */
.work-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.work-header h1 {
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}
.work-header .meta {
    color: #888;
    font-size: 14px;
}

/* 画像と文章の横並びセクション */
.process-section {
    display: flex;       /* 横並びにする */
    align-items: center; /* 上下中央揃え */
    gap: 50px;           /* 画像と文章の間隔 */
    margin-bottom: 80px; /* 次のセクションとの間隔 */
}



.process-img {
    flex: 1;             /* 幅の比率 */
}
.process-img img {
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* うっすら影をつける */
}

.process-text {
    flex: 1;             /* 幅の比率 */
}
.process-text h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #333; /* 左にアクセント線 */
    padding-left: 15px;
    letter-spacing: 0.1em;
}
.process-text p {
    font-size: 15px;
    line-height: 2;
    text-align: justify; /* 両端揃え */
}

/* 戻るボタン */
.back-btn-area {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}
.button {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #333;
    color: #333;
    transition: 0.3s;
}
.button:hover {
    background: #333;
    color: #fff;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .process-section,
    .process-section:nth-child(even) {
        flex-direction: column; /* 常に縦並び */
        gap: 20px;
    }
    .process-text h3 {
        font-size: 18px;
    }
}

/* --- Material Provenance用のリンクボタン --- */
.prov-links {
    margin-top: 20px;
}
.prov-links a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 6px 12px;
    font-size: 12px;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
}
.prov-links a:hover {
    background: #555;
    color: #fff;
    border-color: #555;
}