/**************************
 キャベジンコーワ添付文書特殊対応分
***************************/

/* ページ全体の中央寄せ用ラッパー */
.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- タイトルエリア（独立定義） --- */
.product-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-section-header h4 {
    font-size: 2rem;
    margin: 0;
    font-weight: normal;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* タイトル内の特定文字調整（ここを書き換えてタイトル側のみ調整可能） */
.product-section-header .font-kowa {
    font-size: 0.8em;
}

.product-section-header .font-alpha {
    font-size: 1.15em;
    display: inline-block;
    transform: translateY(-0.02em);
    line-height: 1;
}

/* --- メインコンテナ --- */
.main-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* 各製品カード */
.product-card {
    flex: 1;
    background-color: #fff;
    border: 2px solid #d1e7d6;
    border-radius: 20px;
    padding: 24px 20px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    opacity: 0.7;
}

/* 上部：タイプのテキスト */
.text-block-top {
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.2;
}

.type-label {
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.type-sub {
    font-weight: bold;
    font-size: 0.8rem;
    display: block;
}

/* 中央：画像ブロック */
.image-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    min-height: 180px;
}

.image-block img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 下部：テキスト配置ブロック */
.text-block-bottom {
    background-color: #ffffff;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* --- 製品名（独立定義） --- */
.product-name {
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

/* 製品名内の特定文字調整（ここを書き換えてカード側のみ調整可能） */
.product-name .font-kowa {
    font-size: 0.8em;
    display: inline-block;
}

.product-name .font-alpha {
    font-size: 1.15em;
    display: inline-block;
    transform: translateY(-0.02em);
    line-height: 1;
}

/* 医薬分類 */
.medical-category-wrapper {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
}

.medical-category-border {
    border: 1px solid #000;
    padding: 4px 15px;
    line-height: 1;
    display: inline-block;
}

/* 注意テキスト */
.note {
    font-size: 0.7rem;
    color: #777;
    margin: 15px 0 0 0;
    line-height: 1.4;
    text-align: center;
}

a:hover{
  text-decoration: none;
}

/* スマートフォン表示時 */
@media (max-width: 768px) {
    .product-section-header { text-align: center; margin-bottom: 20px; }
    .product-section-header h4 { font-size: 1.2rem; }
    .main-container { flex-direction: column; }
    .product-card { width: 100%; box-sizing: border-box; padding: 20px; }
    .product-name { font-size: 1.2rem; }
}
