/* --- 基本設定 & リセット --- */
:root {
    --primary-color: #800000; /* FPC Red */
    --text-color: #343a40;
    --text-secondary: #495057;
    --bg-color: #ffffff;
    --bg-light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --header-border-color: #495057;
    --container-width: 1100px;
    --font-family-base: 'Noto Sans JP', sans-serif;

    /* Explicit heights for calculations */
    --header-height-pc: 80px;       /* PCヘッダー高さ (元々のCSSから調整) */
    --header-height-tablet: 70px;   /* Tabletヘッダー高さ (元々のCSSから調整) */
    --nav-height-explicit: 50px;    /* グローバルナビ高さ (元々のCSSから調整) */

    /* Mobile heights */
    --header-height-mobile: 60px; /* 不要なら削除可 */

    /* Section Padding (共通化) */
    --section-padding: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex; /* footerを一番下に固定するため */
    flex-direction: column; /* footerを一番下に固定するため */
    min-height: 100vh; /* footerを一番下に固定するため */
}
#wrapper { /* footerを一番下に固定するため */
    flex: 1;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; color: #660000; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: var(--section-padding) 0; }
.bg-light { background-color: var(--bg-light-gray); }

/* --- 見出しスタイル (共通 + ページタイトル調整) --- */
.section-title, .page-title {
    display: block;
    width: fit-content;
    margin: 0 auto 50px auto;
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    border-bottom: none;
    border-left: none;
    padding-left: 0;
}

.section-title::after, .page-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-title-bordered {
    display: block;
    width: auto;
    margin: 0 0 40px 0;
    text-align: left;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
    border-bottom: none;
}
.section-title-bordered::after {
    display: none;
}

.section-description { text-align: center; margin-bottom: 40px; color: var(--text-secondary); font-size: 1rem; }

/* --- ボタン (汎用) --- */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.button:hover {
    background-color: #660000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.more-link { text-align: center; margin-top: 40px; }

/* --- ヘッダー --- */
.site-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height-pc);
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}
.logo img {
    max-height: 45px;
    height: auto;
    display: block;
}
.header-info { text-align: right; }
.header-info .catchphrase { font-size: 1rem; color: var(--text-secondary); font-weight: 700; font-family: serif; margin-bottom: 3px; }
.header-info .contact-info {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: serif;
    color: var(--text-color);
    margin-bottom: 2px;
}
.header-info .email-info {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: serif;
    margin-bottom: 0;
}
.header-info .contact-info a,
.header-info .email-info a {
    color: var(--text-color);
}
.header-search {
    margin-top: 0;
    width: auto;
    max-width: 400px;
    margin-left: 20px;
}

/* --- Google Custom Search Styles --- */
.gcse-search {}
.cse .gsc-control-cse, .gsc-control-cse { padding: 0 !important; border: none !important; background-color: transparent !important; margin-bottom: 0 !important; }
.cse .gsc-search-button input.gsc-search-button-v2, input.gsc-search-button-v2 {
    padding: 8px 15px !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: 0 4px 4px 0 !important;
    cursor: pointer;
    height: 36px !important;
    box-sizing: border-box !important;
 }
.cse .gsc-input-box, .gsc-input-box {
    border-color: var(--border-color) !important;
    border-radius: 4px 0 0 4px !important;
    height: 36px !important;
    box-sizing: border-box !important;
}
.cse .gsc-input-box input.gsc-input {
    padding: 8px 10px !important;
    background: none !important;
    height: 100% !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

/* --- グローバルナビゲーション --- */
.global-nav {
    background-color: var(--text-color);
    position: sticky;
    top: var(--header-height-pc);
    z-index: 999;
    width: 100%;
    margin-bottom: 0;
    height: var(--nav-height-explicit);
    display: flex;
    align-items: center;
}
.global-nav .container { width: 100%; padding: 0 20px; }
.global-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
}
.global-nav li { margin: 0 18px; }
.global-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0;
    line-height: var(--nav-height-explicit);
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}
.global-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}
.global-nav a:hover::after,
.global-nav .current a::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}
.global-nav a:hover,
.global-nav .current a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- メインコンテンツ --- */
.site-main {
    padding-top: 0;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* --- Hero Section --- */
.hero {
    /* CSSファイル(css/)から見た画像パス(common/img)を指定 */
    background-image: url('../common/img/HPTOP.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top; /* PC表示: 上端基準 */
    background-attachment: fixed;    /* PC表示: 固定 (パララックス) */
    height: 70vh;                  /* ★変更: PCでの高さをvhに */
    min-height: 400px;             /* ★追加: 低すぎる画面での最小高さを確保 */
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg-color) 90%);
    z-index: 1;
    pointer-events: none;
}

/* --- Product Search Section --- */
.search-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.search-method-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px 20px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.search-method-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.search-method-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    width: 100%;
}
.search-method-item a:hover {
    color: var(--primary-color);
}
.search-method-item h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 15px;
}
.search-method-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.search-caution {
    margin-top: 40px;
    text-align: center;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
}
.search-caution a {
    color: #856404;
    text-decoration: none;
    font-weight: 700;
}
.search-caution strong::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 1.1em;
}

/* --- Product Categories Section --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.category-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    background-color: var(--bg-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.category-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.category-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.category-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.category-item h3 {
    padding: 18px 15px 18px 30px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    background: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.category-item h3::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 36px);
    width: 4px;
    background-color: var(--primary-color);
}
.category-item a:hover h3 {
    color: var(--primary-color);
    text-decoration: none;
}
.more-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    min-height: 280px; /* 他のアイテムの高さと合わせる */
    border-color: var(--border-color);
    border-width: 2px;
}
.more-item a {
    padding: 20px;
    font-weight: 700;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.more-item:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
}
.more-item:hover a {
    text-decoration: underline;
}


/* --- News Section --- */
.news-section .container > h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}
.gw-announcement {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #fffaf0;
}
.gw-announcement p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.gw-schedule-container {
    overflow-x: auto;
    margin: 15px 0;
}
.gw-schedule {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    font-size: 0.85em;
    border: 1px solid var(--border-color);
}
.gw-schedule th, .gw-schedule td {
    border: 1px solid var(--border-color);
    padding: 8px 5px;
    text-align: center;
    white-space: nowrap;
}
.gw-schedule thead th {
    background-color: var(--bg-light-gray);
    font-weight: bold;
}
.gw-schedule .business-day {
    background-color: #ffffff;
    font-weight: bold;
    color: #006400;
}
.gw-schedule .holiday {
    background-color: #ffffff;
    color: #cc0000;
    font-weight: bold;
}
.gw-schedule caption {
    caption-side: bottom;
    padding-top: 8px;
    font-size: 0.8em;
    color: var(--text-secondary);
    text-align: center;
}
.news-list-container {
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    background-color: var(--bg-color);
    overflow-x: auto;
}
.news-table {
    width: 100%;
    border-collapse: collapse;
}
.news-table th, .news-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    font-size: 0.9rem;
    white-space: normal;
}
.news-table td {
    color: var(--text-color);
}
.news-table tbody tr:hover {
    background-color: #e9ecef;
}
.news-table td:first-child {
    text-align: left;
    white-space: nowrap;
    width: 100px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* --- Company Info Section --- */
.company-details p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.company-details strong {
    color: var(--text-color);
    font-weight: 700;
}
.company-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.company-locations p {
    line-height: 1.6;
}

/* --- フッター --- */
.site-footer {
    background-color: var(--text-color);
    color: #ccc;
    padding: 40px 0 20px 0;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
    width: 100%;
}
.footer-logo img {
    max-height: 35px;
    margin: 0 auto 25px auto;
}
.footer-nav {
    margin-bottom: 25px;
}
.footer-nav a {
    color: #ccc;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: #fff;
    text-decoration: none;
}
.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}
.to-top {
    margin-top: 20px;
}
.to-top a {
    color: #aaa;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.to-top a:hover {
    color: #fff;
}

/* --- モバイル用メニューボタン --- */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    z-index: 1001;
    order: 2;
}

/* --- レスポンシブ対応 --- */

/* Desktop (1024px以上) */
@media (min-width: 1024px) {
    .header-container {
        flex-wrap: nowrap;
    }
    .header-search {
        width: auto;
        margin-left: auto;
    }
    /* PCでは.heroの基本スタイル(height: 70vh, attachment: fixed)が適用される */
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .site-header {
        height: var(--header-height-tablet);
    }
    .global-nav {
        top: var(--header-height-tablet);
    }
    .logo img {
        max-height: 40px;
    }
    .header-search {
        max-width: 300px;
        margin-left: 15px;
    }

    .global-nav ul { justify-content: center; }
    .global-nav li { margin: 0 12px; }
    .global-nav a { font-size: 0.9rem; }

    .section-padding { padding: 50px 0; }
    .section-title, .page-title { font-size: 1.8rem; margin-bottom: 40px; }
    .section-title-bordered { font-size: 1.5rem; }

    .category-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
    .more-item { min-height: 260px; } /* 他のカテゴリ高さに合わせて調整 */

    .hero {
        height: 60vh;                  /* ★変更: タブレットでの高さをvhに */
        min-height: 350px;             /* ★追加: 最小高さを確保 */
        background-attachment: scroll; /* iOSでのfixed表示問題を回避 */
        /* background-position: center center; */ /* 必要なら調整 */
    }
    .company-locations { gap: 20px; }

    /* Download Page Tablet Adjustments */
    .download-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .download-item { padding: 15px; }
    .download-thumbnail { max-width: 100px; height: 100px; margin-bottom: 15px; }
    .download-thumbnail.product-image { max-width: 120px; height: 90px; }
    .download-title { font-size: 1.05rem; }
    .download-meta { font-size: 0.85rem; margin-bottom: 15px; }
    .download-button { padding: 8px 20px; font-size: 0.85rem; }
    .notes-section { padding: 25px; }
    .notes-section .section-title { font-size: 1.3rem; }
    .notes-content h4 { font-size: 1.1rem; }
}

/* Mobile (767px以下) */
@media (max-width: 767px) {
    body { line-height: 1.6; }

    /* --- Header (Mobile) --- */
    .site-header {
        height: auto;
        padding: 10px 0;
    }
    .header-container {
        position: relative;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .logo {
        order: 1;
        flex-basis: auto;
        margin-right: auto;
     }
    .logo img {
        max-height: 35px;
    }
    .mobile-menu-button {
        display: block;
        order: 2;
        font-size: 1.6rem;
        margin-left: 10px;
    }
    .header-info {
        display: none;
        /* order: 3; width: 100%; text-align: center; margin-top: 10px; padding: 10px 0; border-top: 1px solid var(--border-color); */
    }
    .header-search {
         display: none;
        /* order: 4; width: 100%; max-width: none; margin: 10px auto 0 auto; padding: 0 10px; */
    }

    /* --- Global Navigation (Mobile Drawer) --- */
    .global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: rgba(51, 51, 51, 0.98);
        padding-top: 60px;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: block;
        align-items: stretch;
        height: 100vh;
    }
    .global-nav.active {
        transform: translateX(0);
    }
    .global-nav .container { width: 100%; padding: 0; }
    .global-nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 20px 0;
    }
    .global-nav li {
        margin: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #555;
     }
    .global-nav li:last-child {
        border-bottom: none;
    }
    .global-nav a {
        font-size: 1.1rem;
        padding: 15px 20px;
        display: block;
        width: 100%;
        line-height: normal;
        color: #fff;
        transition: background-color 0.3s ease, color 0.3s ease;
        position: relative;
    }
    .global-nav a:hover, .global-nav .current a {
        background-color: var(--primary-color);
        color: #fff;
        text-decoration: none;
    }
    .global-nav a::after {
        display: none;
    }

    /* --- Main Content (Mobile) --- */
    .site-main {
        padding-top: 20px;
    }

    /* --- Titles (Mobile) --- */
    .section-padding { padding: 40px 0; }
    .section-title, .page-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .section-title::after, .page-title::after {
        width: 50px;
        height: 3px;
    }
    .section-title-bordered {
        font-size: 1.4rem;
        margin-bottom: 25px;
        padding-left: 10px;
        border-left-width: 4px;
    }

    /* --- Hero (Mobile) --- */
    .hero {
        height: 50vh;                  /* ★変更: モバイルでの高さをvhに */
        min-height: 250px;             /* ★追加: 最小高さを確保 */
        background-attachment: scroll; /* スクロール */
        /* CSSファイル(css/)から見たモバイル用画像パス(common/img)を指定 */
        background-image: url('../common/img/ag-3.jpg');
        background-size: cover;
        background-position: center center; /* モバイルでは中央揃え */
    }
    .hero::after {
        height: 100px;
    }


    /* --- Product Search (Mobile) --- */
    .search-methods {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .search-method-item { padding: 20px 15px; }
    .search-method-item h3 { font-size: 1.05rem; margin-top: 10px; }
    .search-method-item p { font-size: 0.85rem; }
    .search-caution { margin-top: 30px; padding: 12px; font-size: 0.9rem;}

    /* --- Product Categories (Mobile) --- */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .category-item img { height: 160px; }
    .category-item h3 {
        font-size: 1rem;
        padding: 15px 15px 15px 25px;
    }
    .category-item h3::before {
        left: 10px;
        top: 50%;
        height: calc(100% - 30px);
        transform: translateY(-50%);
    }
    .more-item {
        min-height: auto;
        padding: 40px 20px;
    }

    /* --- News (Mobile) --- */
    .gw-schedule { min-width: 0; font-size: 0.8rem; }
    .news-table { font-size: 0.85rem; }
    .news-table td, .news-table th { padding: 8px 10px; }
    .news-table td:first-child { width: 80px; font-size: 0.8rem; }

    /* --- Company Info (Mobile) --- */
    .company-locations {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .company-details p { font-size: 0.9rem; }

    /* --- Footer (Mobile) --- */
    .site-footer { padding: 30px 0 15px 0; }
    .footer-logo img { max-height: 30px; margin-bottom: 20px; }
    .footer-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 10px;
        margin-bottom: 20px;
    }
    .footer-nav a {
        margin: 0;
        font-size: 0.8rem;
    }
    .footer-nav span { display: inline; margin: 0 5px;}
    .copyright { font-size: 0.75rem; }
    .to-top a { font-size: 0.8rem; }
}

/* --- Mobile Menu Active State (Body Scroll Lock - Optional) --- */
/* body.mobile-menu-active { overflow: hidden; } */

/* --- Download Page Specific Styles (元々のCSSから抜粋、必要なら調整) --- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.download-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: var(--bg-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.download-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.download-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.download-item a:hover {
    text-decoration: none;
}
.download-thumbnail {
    max-width: 110px;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    border: 1px solid var(--border-color);
    padding: 5px;
    background-color: #fff;
}
.download-thumbnail.product-image {
    max-width: 130px;
    height: 100px;
}
.download-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
    flex-grow: 1; /* タイトルエリアが伸びるように */
}
.download-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.download-button {
    margin-top: auto; /* 下部に固定 */
    padding: 10px 25px;
    font-size: 0.9rem;
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.download-button:hover {
     background-color: #660000;
     box-shadow: 0 4px 8px rgba(0,0,0,0.2);
     color: #fff;
     text-decoration: none;
     transform: translateY(-2px);
}

/* Notes Section Styles (元々のCSSから抜粋、必要なら調整) */
.notes-section {
    background-color: var(--bg-light-gray);
    border-radius: 8px;
    padding: 30px;
    margin-top: 60px;
    border: 1px solid var(--border-color);
}
.notes-section .section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
    border-left: none;
    padding-left: 0;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.notes-section .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    display: block;
}
.notes-content h4 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}
.notes-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 25px;
    padding-left: 0;
}
.notes-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}
.notes-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}
.adobe-reader-link img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border: none;
}

/* Download Page Responsive Adjustments (元々のCSSから抜粋) */
@media (max-width: 1023px) { /* Tablet */
    .download-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .download-item { padding: 15px; }
    .download-thumbnail { max-width: 100px; height: 100px; margin-bottom: 15px; }
    .download-thumbnail.product-image { max-width: 120px; height: 90px; }
    .download-title { font-size: 1.05rem; }
    .download-meta { font-size: 0.85rem; margin-bottom: 15px; }
    .download-button { padding: 8px 20px; font-size: 0.85rem; }
    .notes-section { padding: 25px; }
    .notes-section .section-title { font-size: 1.3rem; }
    .notes-content h4 { font-size: 1.1rem; }
}

@media (max-width: 767px) { /* Mobile */
    .download-grid { grid-template-columns: 1fr; gap: 15px; }
    .download-item { padding: 15px; }
    .download-thumbnail { max-width: 90px; height: 90px; }
    .download-thumbnail.product-image { max-width: 110px; height: 80px; }
    .download-title { font-size: 1rem; }
    .download-meta { font-size: 0.8rem; }
    .download-button { padding: 8px 18px; font-size: 0.8rem; }
    .notes-section { padding: 20px; margin-top: 40px; }
    .notes-section .section-title { font-size: 1.2rem; }
    .notes-content h4 { font-size: 1.05rem; }
    .notes-content ul { margin-left: 20px; }
    .notes-content li, .notes-content p { font-size: 0.9rem; }
}