/*
Theme Name: Custom Portal Theme
Description: 高齢者およびご家族向け、軽量で高速なオリジナルテーマ
Version: 1.2.0
*/
/* --- 共通の変数とベース設定 --- */
:root {
    --primary-color: #c2185b; /* 深みのあるローズピンク（信頼感と華やかさ） */
    --secondary-color: #ff6f91; /* 明るいピンク（CTAボタン用） */
    --accent-color: #fff0f5; /* 淡いピンクの背景アクセント */
    --gold-accent: #c9a227; /* ピンクから意図的に外した差し色（パートナー募集ボタン等） */
    --text-color: #333333;
    --bg-color: #fff8fa; /* ほんのりピンクがかった背景 */
    --border-color: #f3d9e3; /* やわらかいピンクグレーの枠線 */
    --white: #ffffff;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
a:hover { opacity: 0.7; }

/* ====================================
   共通コンポーネント（PC/SP両方に適用される基本デザイン）
   ※サイズや余白はstyle-pc.css / style-sp.cssそれぞれで上書きしてください。
   ここには「色・背景・枠線・影」など端末に関わらず共通のものだけを置きます。
==================================== */

/* --- ヒーローセクション --- */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

/* --- ヒーローボタン --- */
.btn-hero {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 6px 15px rgba(255, 111, 145, 0.35);
}
.btn-hero:hover {
    background-color: #e0507d;
    color: var(--white);
}

/* --- サービス一覧カード --- */
.service-row {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-img {
    background-color: #fbe4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5607a;
}
.service-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}
.btn-service-detail {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
}

/* --- セクション見出し --- */
.section-title {
    color: var(--primary-color);
    display: inline-block;
}

/* --- 新着タブ --- */
.tab-item {
    background-color: var(--border-color);
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.tab-item.is-active {
    background-color: var(--primary-color);
    color: var(--white);
}
.tab-panel {
    display: none;
}
.tab-panel.is-active {
    display: block;
}

/* --- 新着リスト --- */
.news-list {
    list-style: none;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
}
.news-item-rich {
    list-style: none;
}
.news-title-rich a {
    color: var(--text-color);
}
.news-title-rich a:hover {
    color: var(--secondary-color);
}
.news-tag {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    border: 1px solid rgba(194, 24, 91, 0.15);
}
.news-thumb-area .no-image {
    background-color: #fdeef2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c98aa0;
    font-weight: bold;
}

/* --- 新着タブ：基本レイアウト（PC/SP共通） --- */
.news-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    border-bottom: 2px solid var(--primary-color);
}

/* --- フッター（PC/SP共通） --- */
.site-footer {
    background-color: #3d1a2b;
    color: #ffffff;
}
.footer-left {
    text-align: center;
}
.footer-left h2 {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
}
.footer-left a {
    color: #ffffff;
    text-decoration: none;
}
.footer-access-info p {
    margin: 0 0 10px;
    color: #ffffff;
    line-height: 1.7;
}
.footer-center {
    display: flex;
    justify-content: center;
}
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}
.footer-nav-list a {
    color: #ffb3c6;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}
.footer-nav-list a:hover {
    color: #ffffff;
}
.footer-right {
    display: flex;
    justify-content: center;
}
.footer-banner a {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.3s;
}
.footer-banner a:hover {
    opacity: 0.8;
}
.footer-banner img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #5c2e3d;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #e8c4d0;
}

/* ====================================
   アーカイブ／検索結果ページ（PC/SP共通）
==================================== */
.l-container {
    max-width: 1100px;
    margin: 0 auto;
}
.p-page-header {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.p-page-header__title {
    margin: 0;
    font-weight: bold;
}

/* --- カード一覧 --- */
.c-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.c-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(194, 24, 91, 0.12);
}
.c-card__link {
    display: block;
    color: var(--text-color);
}
.c-card__link:hover {
    opacity: 1; /* リンク共通のopacity:0.7を打ち消し、カードのホバー演出のみ効かせる */
}
.c-card__img {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: #fbe4ec;
}
.c-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.c-card__title {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.c-card__meta {
    margin-bottom: 10px;
}
.c-card__area,
.c-card__price {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 20px;
    margin: 0 6px 6px 0;
}
.c-card__excerpt {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- ページネーション --- */
.p-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.p-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 4px;
    border-radius: 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: bold;
}
.p-pagination .page-numbers.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}
.p-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* --- 汎用ボタン --- */
.c-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: bold;
}
.c-btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.c-btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    opacity: 1;
}

/* --- 検索結果なし --- */
.p-no-result {
    text-align: center;
    padding: 60px 0;
}
.p-no-result p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* --- 料金表 --- */
.c-price-table {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.06);
    overflow: hidden;
}
.c-price-table__title {
    margin: 0;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}
.c-price-table__table {
    width: 100%;
    border-collapse: collapse;
}
.c-price-table__table th,
.c-price-table__table td {
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.c-price-table__table thead th {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}
.c-price-table__table thead th:last-child {
    text-align: right;
}
.c-price-table__table tbody tr:last-child th,
.c-price-table__table tbody tr:last-child td {
    border-bottom: none;
}
.c-price-table__table tbody td:last-child {
    color: var(--primary-color);
    font-weight: bold;
    text-align: right;
}
.c-price-table__note {
    color: #777;
    margin: 0;
}

/* ====================================
   記事詳細ページ（投稿・カスタム投稿 共通）
==================================== */
.p-single__inner {
    max-width: 760px;
    margin: 0 auto;
}
.p-single__category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.p-single__title {
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1.5;
}
.p-single__date {
    color: #888;
}
.p-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.p-single__thumbnail {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.08);
}
.p-single__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.p-single__content {
    color: var(--text-color);
    line-height: 2;
}
.p-single__content p {
    margin: 0 0 1.5em;
}
.p-single__content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}
.p-single__content h3 {
    color: var(--primary-color);
}
.p-single__content img {
    border-radius: 8px;
}
.p-single__content ul,
.p-single__content ol {
    padding-left: 1.5em;
}
.p-single__content a {
    color: var(--secondary-color);
    text-decoration: underline;
}
.p-single__content blockquote {
    background-color: var(--accent-color);
    border-left: 4px solid var(--primary-color);
    color: var(--text-color);
    font-style: normal;
}
.p-single__nav {
    text-align: center;
}

/* --- 前後の記事カード --- */
.p-single__adjacent {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.p-adjacent-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
}
.p-adjacent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(194, 24, 91, 0.12);
    opacity: 1;
}
.p-adjacent-card--empty {
    visibility: hidden;
}
.p-adjacent-card__img {
    flex-shrink: 0;
    overflow: hidden;
    background-color: #fbe4ec;
}
.p-adjacent-card__img img,
.p-adjacent-card__img .no-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.p-adjacent-card__img .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdeef2;
    color: #c98aa0;
    font-weight: bold;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}
.p-adjacent-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.p-adjacent-card__label {
    color: var(--secondary-color);
    font-weight: bold;
}
.p-adjacent-card__title {
    color: var(--primary-color);
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-adjacent-card--next {
    text-align: right;
}
.p-adjacent-card--next .p-adjacent-card__body {
    order: 1;
}
.p-adjacent-card--next .p-adjacent-card__img {
    order: 2;
}

/* ====================================
   パンくずリスト
==================================== */
.c-breadcrumbs {
    width: 100%;
}
.c-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.c-breadcrumbs__item {
    display: flex;
    align-items: center;
    color: #888;
}
.c-breadcrumbs__item a {
    color: var(--primary-color);
    text-decoration: none;
}
.c-breadcrumbs__item a:hover {
    opacity: 0.7;
}
.c-breadcrumbs__item span[aria-current="page"] {
    color: #888;
}
.c-breadcrumbs__sep {
    color: #ccc;
}