/* css/page-specific.css */

/* ==========================================================================
   General Subpage Styles (Moved from inline styles)
   ========================================================================== */

/* Disable parallax for hero image on tablets and below */
@media (max-width: 1024px) {
    .subpage-hero-parallax,
    .subpage-hero-parallax[style] {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}

/* ==========================================================================
   About Page Specific Styles (from about.html)
   ========================================================================== */

/* --- Container Width Control for About Page --- */
/* Styles for main > .container on general subpages like about.html */
main > .container { /* This was a general rule in about.html inline styles. */
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* About Page Content Sections */
.about-content-section {
    margin-bottom: 80px; /* Default margin */
}
.about-content-section:last-child {
    margin-bottom: 0;
}

/* Section Title for About Page (aligned with home.css titles) */
.about-content-section .section-title {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-size: 34px;
    color: #686966;
    margin-top: 38px;
    margin-bottom: 25px; /* ボーダーと本文の間のマージンを調整 */
    text-align: center;
    font-weight: 300;
    letter-spacing: 1px;
    padding-bottom: 10px; /* テキストとボーダーの間のスペース */
    border-bottom: 1px solid #cccccc; /* タイトルの下に1pxのボーダーを追加 */
}

.about-content-section .section-text {
    font-family: 'Roboto', sans-serif;
    padding-top: 0px;
    font-size: 1rem;
    line-height: 1.5;
    color: #555555;
}
.about-content-section .section-text p {
    margin-bottom: 1em;
}
.about-content-section .section-text p:last-child {
    margin-bottom: 0;
}

/* --- Tablet and Mobile Styles for About Page (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Apply to main > .container on About page and similar pages if structure is consistent */
    main > .container {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
        margin-bottom: 0px;
    }

    .about-content-section .section-title {
        font-size: 1.6em; /* Adjust title size for mobile */
    }
    .about-content-section .section-text {
        font-size: 0.95em; /* Adjust text size for mobile */
        line-height: 1.7;
    }
    .about-content-section {
        margin-bottom: 0px; /* Mobile specific margin */
    }
}

/* ==========================================================================
   Manual Page (manual/index.html) Specific 3-Column Layout
   ========================================================================== */
body.manual-page main > .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3つの均等な幅のカラムを作成します */
    gap: 40px; /* カラム間の隙間です。必要に応じて調整してください */
    padding-top: 0px; /* manual/index.htmlのインラインスタイルから移動 */
    padding-bottom: 60px; /* manual/index.htmlのインラインスタイルから移動 */
}

/* Manual Page: コンテナ内の直接の子要素の数に応じて配置を調整 */
/* 要素が1つだけの場合: 中央の列(2番目)に配置 */
body.manual-page main > .container > *:only-child {
    grid-column: 2 / span 1;
}

body.manual-page main > .container .about-content-section .section-title {
    font-size: 1.6rem; /* 現在のサイズより少し小さくします。適宜調整してください。 */
    text-align: left;
    letter-spacing: normal;
}

/* Oswaldフォントを適用するスタイル */
.oswald-font-style {
    font-family: 'Oswald', sans-serif;
}

/* Manual Page: モデル名とサブタイトルのスタイル */
.model-name {
    /* font-weight: 400; */ /* Oswaldフォントは200, 400ウェイトが読み込まれています */
    font-size: 1.3rem; /* 少し大きくしました */
    margin-top: 0; /* 上部のマージンをリセット */
    margin-bottom: 0; /* サブタイトルとのマージンは0 */
    line-height: 1.2; /* 行間を詰める */
}

.model-subtitle {
    /* font-weight: 200; */
    font-size: 1.15rem; /* 少し大きくしました */
    font-weight: 300;
    margin-top: 0; /* モデル名とのマージンは0 */
    margin-bottom: 20px; /* 次のモデル名との間隔を確保 */
    line-height: 1.2; /* 行間を詰める */
}

/* Manual Page: PDFリンクのスタイル */
.manual-link {
    text-decoration: none; /* 下線を消す */
    color: inherit;       /* 親要素の色を継承する (h3.model-name の色) */
}

.manual-link:hover {
    text-decoration: underline; /* 例: ホバー時に下線を表示したい場合 */
}

/* Manual Page: 画面幅が狭い場合（例：768px以下）は、1カラムレイアウトに戻します。 */
@media (max-width: 768px) {
    body.manual-page main > .container {
        grid-template-columns: 1fr; /* セクションを縦に積みます */
        grid-gap: 10px
    }
}

/* ==========================================================================
   Artist Page Specific Styles (from artist.html)
   ========================================================================== */

/* --- Tablet and Mobile Styles for Artist Page (max-width: 768px) --- */
@media (max-width: 768px) {
    .artist-grid-section { /* Was .content-section-alternating in artist.html inline */
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .artist-grid-section .container { /* Was .content-section-alternating .container in artist.html inline */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Styles for .product-category-title and .product-category-description within .artist-grid-section */
    .artist-grid-section .product-category-title {
        font-size: 28px !important;
    }
    .artist-grid-section .product-category-description {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    .artist-grid { /* Mobile specific margin for artist grid */
        margin-bottom: 20px;
    }
}

/* Hero image background for artist page (if used, path relative to css folder) */
.artist-page-hero-bg {
    background-image: url('../images/artists/artist_hero_placeholder.jpg');
}

/* Artist Grid Styles */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding-top: 20px;
    margin-bottom: 50px; /* Default margin */
}

.artist-item {
    position: relative;
    overflow: hidden;
}

.artist-item-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.artist-item:hover .artist-item-image {
    transform: scale(1.1);
}

.artist-item-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artist-item:hover .artist-item-overlay-text {
    opacity: 1;
}

/* Artist Grid PC Layout */
@media (min-width: 960px) {
    .artist-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}