@charset "UTF-8";

  .cat_read {
    margin-top: 16px;
    margin-bottom: 60px;
 }
/*
 * bodyには直接指定しないCSS（パーツ用）
 * このCSSは、.main-content-area または各セクションのクラスに対して定義されています。
 */

/* 各パーツを囲むメインのラッパー */
.main-content-area {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    max-width: 1200px; /* 全体のコンテンツの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 20px; /* 全体的な左右の余白 */
    background-color: #f8f8f8; /* このパーツ全体の背景色。必要なければ削除 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}


/* セクションタイトルのスタイル */
.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    padding-left: 15px; /* 左の装飾との間隔 */
    margin-top: 50px; /* 上の要素との間隔 */
    margin-bottom: 25px; /* 下の要素との間隔 */
    position: relative; /* 疑似要素の位置決めに必要 */
    border-bottom: 1px solid #ccc; /* 下線 */
    padding-bottom: 10px; /* 下線との間隔 */
    display: inline-block; /* 下線がテキストの幅に合わせる */
}

/* セクションタイトルの左側の装飾 */
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background-color: #A0522D;
}

/* 「カタログパンフレット」のタイトルのスタイル調整 */
.section-title.section-title--pamphlet {
    margin-top: 50px;
    margin-bottom: 30px;
}


/* 会社紹介テキストのスタイル */
.company-intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: 20px;
    text-align: left;
}


/* Product Catalog Section Styles */
.product-catalog-section {
    padding: 0;
    max-width: none; /* 親のmax-widthに従う */
    margin: 0;
}

.product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.catalog-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    justify-content: space-between;
    max-width: 320px; /* PC/タブレット表示時の各カードの最大幅 */
    margin-left: auto; /* PC/タブレット表示時は中央寄せ */
    margin-right: auto; /* PC/タブレット表示時は中央寄せ */
}

.new-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FF69B4;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-top-left-radius: 8px;
    z-index: 10;
}

.catalog-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    position: relative;
}

.catalog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sofken-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 5px;
}

.sofken-overlay-logo {
    width: 80px;
    height: auto;
}

.catalog-title {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 10px 10px 10px;
    color: #333;
}

.catalog-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 15px 15px 15px;
    flex-grow: 1;
    text-align: center;
}

.catalog-button {
    display: block;
    background-color: #8B0000;
    color: #fff;
    padding: 12px 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-top: 1px solid #700000;
    border-radius: 0 0 8px 8px;
}

.catalog-button:hover {
    background-color: #6C0000;
}

/* Info Section Styles */
.info-section {
    background-color: #f7f7f7;
    padding: 60px 20px;
    text-align: center;
    margin: 40px 40px;
}

.info-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-block;
    background-color: #347C8B;
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border: 1px solid #2a6a77;
}

.contact-button:hover {
    background-color: #2a6a77;
}

/* Contact Info Section Styles */
.contact-info-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}

.contact-item i {
    font-size: 32px;
    color: #347C8B;
    margin-bottom: 10px;
}

.contact-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.contact-note {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .product-catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .catalog-item {
        max-width: none; /* 個別の最大幅を解除し、グリッドの自動調整に任せる */
    }
    .catalog-thumbnail {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .company-intro-text {
        margin-left: 0;
        padding: 0 15px;
    }
    .section-title {
        padding-left: 10px;
    }
    .section-title::before {
        width: 4px;
    }
}

/* ★調整箇所★ 576px以下での1カラム表示の挙動を修正 */
@media (max-width: 576px) {
    .main-content-area {
        padding: 10px; /* スマートフォンでの全体余白を調整 */
    }
    .product-catalog-grid {
        grid-template-columns: 1fr; /* 1列表示を強制 */
        /* 1fr なので justify-content は直接のアイテム配置には影響しない */
    }
    .catalog-item {
        max-width: 300px; /* ★横伸びしないように最大幅を設定★ */
        margin-left: 0; /* ★左寄せにするため、左マージンを0に設定★ */
        margin-right: auto; /* ★左寄せを補完し、右側に余白を持たせる★ */
        padding: 15px;
        box-sizing: border-box;
    }
    .catalog-thumbnail {
        height: 180px; /* 1列になった時に画像の高さを調整 */
    }
    .info-section {
        padding: 40px 15px;
    }
    .info-text {
        font-size: 15px;
    }
    .contact-button {
        font-size: 16px;
        padding: 12px 30px;
    }
    .contact-details {
        flex-direction: column;
        gap: 30px;
    }
    .contact-item {
        width: 100%;
    }
}