/* top.css: このページ種専用の内容スタイル(共通部分は site.css) */
.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; }
.hero {
    
    background-image: url(../../common/img/asa.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top; 
    background-attachment: fixed;    
    height: 70vh;                  
    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;
}
.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;
}
.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 .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-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;
}
@media (max-width: 1023px) {
    .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;                  
        min-height: 350px;             
        background-attachment: scroll; 
         
    }
    .company-locations { gap: 20px; }
    .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) {
    .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 {
        height: 50vh;                  
        min-height: 250px;             
        background-attachment: scroll; 
        
        background-image: url(../../common/img/asa.jpg);
        background-size: cover;
        background-position: center center; 
    }
    .hero::after {
        height: 100px;
    }
    .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;}
    .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;
    }
    .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-locations {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .company-details p { font-size: 0.9rem; }
}
.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 {
    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;
}
@media (max-width: 1023px) {
    .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) {
    .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; }
}

/* ヒーロー画像: 下の空白は刈り込みつつ、パソコンでは視差効果(fixed)を維持。
   fixed時は画像が画面基準になるため、ヘッダー+ナビの高さ(130px)ぶん
   下げてソケットが隠れないようにする */
.hero {
    background-attachment: scroll;
    background-position: center top;
    height: auto;
    aspect-ratio: 5176 / 2265;   /* 画像の縦横比に合わせる */
    max-height: 480px;           /* 下の空白部分は刈り込む */
    min-height: 220px;
}
@media (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
        background-position: center 150px;  /* 実測のヘッダー+ナビ高に一致させる */
        max-height: 520px;
    }
}
.hero::after { height: 80px; }

/* ヒーローに重ねるキャッチコピー(写真左上の光っている領域に収める) */
.hero { position: relative; }
.hero-copy {
    position: absolute; left: 6%; top: 24%;
    transform: translateY(-50%);
    max-width: 44%; z-index: 2; text-align: left;
}
.hero-copy .button { display: inline-block; margin-top: 18px; }
@media (max-width: 1023px) {
    .hero-copy { top: 25%; }
}
@media (max-width: 767px) {
    /* 写真左上の光っている領域に収める */
    .hero-copy { top: 33%; max-width: 72%; }
    .hero-copy .button { margin-top: 8px; padding: 6px 14px; font-size: 0.85rem; }
}
.hero-copy .hero-lead {
    font-family: 'EB Garamond', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3.4vw, 3rem);
    letter-spacing: .03em;
    color: #2b2b2b; line-height: 1.35; margin: 0;
    text-shadow: 0 1px 12px rgba(255, 255, 255, .9);
}
.hero-copy .hero-lead span {
    font-size: 0.72em; letter-spacing: .08em; color: #444;
}
@media (max-width: 767px) {
    .hero-copy { max-width: 66%; }
}

/* 「製品を探す」のサイト内検索窓 */
.site-search-hero {
    max-width: 640px; margin: 0 auto 34px;
}
.site-search-hero input[type="search"] {
    flex: 1; height: 52px; font-size: 17px;
}
.site-search-hero button { height: 52px; padding: 0 26px; font-size: 16px; }
.site-search-hero .search-hint {
    text-align: center; font-size: 0.85rem; color: var(--text-secondary);
    margin: 8px 0 0;
}
