/*
Theme Name: THE THOR Child
Template: the-thor
*/

/* ==========================================================================
   Tori Life ("とりライフ") Custom Styles
   ========================================================================== */

/* 1. 全般コンポーネントと基本デザインルール */
.tori-spec-box, .hospital-spec-box {
    margin: 30px 0;
    padding: 20px;
    background: #FAFAFA;
    border: 1px solid #E8F5E9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tori-spec-title, .hospital-spec-title {
    font-size: 18px;
    color: #2E7D32;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #C8E6C9;
    padding-bottom: 8px;
    font-weight: bold;
}

/* 2. スペック表（テーブル）のスタイリング */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tori-spec-table, .hospital-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
}

.tori-spec-table th, .hospital-spec-table th {
    background-color: #E8F5E9;
    color: #2E7D32;
    font-weight: bold;
    width: 30%;
    min-width: 110px;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #E0E0E0;
    font-size: 14px;
}

.tori-spec-table td, .hospital-spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #E0E0E0;
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

/* 難易度タグスタイル */
.difficulty-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.difficulty-tag.easy {
    background-color: #C8E6C9;
    color: #2E7D32;
}
.difficulty-tag.medium {
    background-color: #FFE0B2;
    color: #E65100;
}
.difficulty-tag.hard {
    background-color: #FFCDD2;
    color: #C62828;
}

.rating-stars {
    color: #FFB300;
    letter-spacing: 2px;
    font-weight: bold;
}

/* 特化病院バッジ */
.specialist-tag {
    display: inline-block;
    background-color: #FFF9C4;
    color: #F57F17;
    border: 1px solid #FBC02D;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

/* 病院公式サイトボタン */
.hospital-external-link {
    display: inline-block;
    background-color: #2E7D32;
    color: #FFFFFF !important;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: background-color 0.2s;
}
.hospital-external-link:hover {
    background-color: #1B5E20;
    text-decoration: none;
}

/* 3. 病院詳細の警告・確認日ボックス */
.hospital-disclaimer-box {
    background-color: #FFF3E0;
    border: 1px solid #FFE0B2;
    border-left: 5px solid #FF9800;
    padding: 18px;
    margin-top: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.disclaimer-header {
    font-weight: bold;
    color: #E65100;
    margin-bottom: 8px;
    font-size: 15px;
}
.disclaimer-text {
    font-size: 13px;
    color: #5D4037;
    margin: 0 0 12px 0;
    line-height: 1.6;
}
.confirmed-date {
    font-size: 12px;
    color: #795548;
    text-align: right;
}

/* 4. PR表記スタイル（ステマ規制対策） */
.tori-pr-disclosure {
    background-color: #F5F5F5;
    border-left: 4px solid #BDBDBD;
    padding: 10px 16px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #616161;
    border-radius: 0 8px 8px 0;
}

/* 5. アフィリエイト商品リンクブロック（ショートコード出力用） */
.tori-product-box {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    background: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 20px;
    box-sizing: border-box;
}

.tori-product-image {
    max-width: 140px;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tori-product-image img {
    max-width: 100%;
    max-height: 140px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.tori-product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tori-product-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 8px;
    color: #333333;
    font-weight: bold;
    line-height: 1.4;
}

.tori-product-desc {
    font-size: 13px;
    color: #666666;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tori-product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tori-product-links a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-decoration: none !important;
    min-width: 120px;
    flex-grow: 1;
    color: #FFFFFF !important;
    transition: background-color 0.2s, opacity 0.2s;
    box-sizing: border-box;
}

.tori-product-links a:hover {
    opacity: 0.9;
    color: #FFFFFF !important;
}

/* ECモールボタン色 */
.btn-amazon {
    background-color: #FF9900;
}
.btn-amazon:hover {
    background-color: #E68A00;
}

.btn-rakuten {
    background-color: #BF0000;
}
.btn-rakuten:hover {
    background-color: #990000;
}

.btn-yahoo {
    background-color: #FF0033;
}
.btn-yahoo:hover {
    background-color: #CC0029;
}

/* スマホ表示対応 (メディアクエリ) */
@media (max-width: 640px) {
    .tori-product-box {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .tori-product-image {
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .tori-product-image img {
        max-height: 120px;
    }
    
    .tori-product-title {
        font-size: 16px;
        text-align: center;
    }
    
    .tori-product-desc {
        font-size: 12px;
    }
    
    .tori-product-links a {
        padding: 12px 10px; /* 親指でタップしやすいサイズ */
        font-size: 12px;
    }
}

/* ==========================================================================
   Tori Life Homepage Specific Styles (トップページ専用)
   ========================================================================== */

/* 1. ヒーローセクション */
.tori-hero {
    position: relative;
    background: linear-gradient(135deg, #E8F5E9 0%, #FFF9C4 100%);
    border-radius: 16px;
    padding: 45px 30px;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.05);
    overflow: hidden;
    border: 1px solid rgba(200, 230, 201, 0.5);
}
.tori-hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    pointer-events: none;
}
.tori-hero-title {
    font-size: 26px;
    color: #2E7D32;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}
.tori-hero-subtitle {
    font-size: 14px;
    color: #4E6952;
    margin: 0 auto;
    max-width: 580px;
    line-height: 1.6;
}

/* 2. クイックお世話ナビ */
.tori-quick-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 45px;
}
.tori-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 2px solid #E8F5E9;
    border-radius: 12px;
    padding: 25px 20px;
    text-decoration: none !important;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}
.tori-nav-item:hover {
    transform: translateY(-3px);
    border-color: #81C784;
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.08);
}
.tori-nav-icon {
    font-size: 34px;
    margin-bottom: 8px;
    line-height: 1;
}
.tori-nav-title {
    font-size: 16px;
    color: #2E7D32;
    font-weight: bold;
    margin-bottom: 6px;
}
.tori-nav-desc {
    font-size: 12px;
    color: #666666;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* 3. セクション見出し */
.tori-section-title {
    font-size: 20px;
    color: #2E7D32;
    font-weight: bold;
    border-left: 5px solid #81C784;
    padding-left: 12px;
    margin: 45px 0 20px;
    line-height: 1.3;
}

/* 4. カード型グリッドレイアウト */
.tori-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 共通カード定義 */
.tori-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.tori-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.tori-card-header {
    padding: 18px 20px 10px;
    border-bottom: 1px solid #F5F5F5;
}
.tori-card-title {
    font-size: 17px;
    color: #333333;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}
.tori-card-scientific {
    font-size: 11px;
    color: #888888;
    font-style: italic;
    display: block;
    margin-top: 3px;
}

.tori-card-body {
    padding: 15px 20px;
    flex-grow: 1;
}
.tori-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    align-items: center;
}
.tori-card-meta .meta-item {
    font-size: 12px;
    color: #555555;
    background: #F5F5F5;
    padding: 3px 8px;
    border-radius: 4px;
}
.tori-card-meta .meta-item-full {
    font-size: 12px;
    color: #555555;
    width: 100%;
    display: block;
    margin-top: 4px;
}

.tori-card-desc {
    font-size: 12.5px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.tori-card-footer {
    padding: 15px 20px 20px;
    background: #FAFAFA;
    border-top: 1px solid #F5F5F5;
}
.tori-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #2E7D32;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 13px;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background-color 0.2s;
}
.tori-card-btn:hover {
    background-color: #1B5E20;
    text-decoration: none;
}

/* データなし表示 */
.tori-no-data {
    text-align: center;
    color: #999999;
    padding: 30px;
    font-size: 13px;
    background: #F9F9F9;
    border-radius: 8px;
    border: 1px dashed #DDDDDD;
    grid-column: 1 / -1;
}

/* スマホ表示対応 (メディアクエリ) */
@media (max-width: 640px) {
    .tori-hero {
        padding: 30px 18px;
        margin-bottom: 25px;
    }
    .tori-hero-title {
        font-size: 20px;
    }
    .tori-hero-subtitle {
        font-size: 12px;
    }
    .tori-quick-nav {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }
    .tori-nav-item {
        padding: 20px 15px;
    }
    .tori-nav-icon {
        font-size: 30px;
        margin-bottom: 6px;
    }
    .tori-nav-title {
        font-size: 15px;
    }
    .tori-nav-desc {
        font-size: 11px;
    }
    .tori-section-title {
        font-size: 17px;
        margin: 35px 0 15px;
    }
}

