/*
Theme Name:InformationPortal
Description: 高齢者およびご家族向け、軽量で高速なオリジナルテーマ
Version: 1.2.0
*/
/* --- 共通の変数とベース設定 --- */
:root {
    --primary-color: #3d6b6b;   /* 落ち着いたディープティール：見出し・ヘッダーなど */
    --secondary-color: #d98552; /* 温かみのあるテラコッタ：CTAボタン（差し色として目立たせる） */
    --accent-color: #eef5f3;    /* 淡いミントグレーの背景アクセント */
    --gold-accent: #b8935a;     /* 落ち着いたゴールド：パートナー募集ボタンなど */
    --text-color: #333333;      /* 本文の文字色（変更なし） */
    --bg-color: #f7faf9;        /* ほんのり緑がかった背景色 */
    --border-color: #dbe6e3;    /* 柔らかいセージグレーの枠線 */
    --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それぞれで上書きしてください。
   ここには「色・背景・枠線・影」など端末に関わらず共通のものだけを置きます。
==================================== */

/* --- ヘッダー --- */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-right {
    display: flex;
    align-items: center;
}

/* --- ヒーローセクション --- */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    position: relative;
}
.hero--has-image {
    background-size: cover;
    background-position: center;
}
.hero--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(61, 107, 107, 0.7); /* 新しいプライマリカラー(#3d6b6b)に合わせたティール系オーバーレイ */
}
.hero .container {
    position: relative;
    z-index: 1;
}

/* --- ヒーローボタン --- */
.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: #2c3f3f; /* 深いティールグレー */
    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: #a9cfc8;           /* 旧: #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: inline-block;
    border-radius: 40px;
    transition: opacity 0.3s, transform 0.3s;
}
.footer-banner a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}
.footer-banner__btn {
    background-color: var(--gold-accent);
    color: var(--white);
    font-weight: bold;
    padding: 14px 32px;
    box-shadow: 0 4px 6px rgba(184, 147, 90, 0.25);  /* 旧: 古いゴールド → 新しい--gold-accent(#b8935a)に合わせた影 */
}
.footer-banner__btn:hover {
    color: var(--white);
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #435858;  /* 旧: #5c2e3d（ワイン色） */
    padding-top: 20px;
    font-size: 0.85rem;
    color: #b7c9c6;                 /* 旧: #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: 100%;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.07);
}
.p-single__thumbnail {
    overflow: hidden;
    border-radius: 12px;
}
.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 img {
    width: 100%;
    height: auto;
    display: block;
}
.p-single__content {
    color: var(--text-color);
    line-height: 2.1;
    letter-spacing: 0.02em;
}
.p-single__content > *:first-child {
    margin-top: 0;
}
.p-single__content p {
    margin: 0 0 1.5em;
}
.p-single__content > p:first-of-type {
    font-size: 1.08em;
    color: #444;
}
.p-single__content strong {
    color: var(--primary-color);
}
.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);
    padding-left: 12px;
    border-left: 4px solid var(--secondary-color);
}
.p-single__content img {
    border-radius: 8px;
}
.p-single__content figure {
    margin: 2em 0;
}
.p-single__content figcaption {
    text-align: center;
    font-size: 0.85em;
    color: #888;
    margin-top: 8px;
}
.p-single__content ul,
.p-single__content ol {
    padding-left: 1.5em;
}
.p-single__content li {
    margin-bottom: 0.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__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.p-single__content table th,
.p-single__content table td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}
.p-single__content table th {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.p-single__content hr {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 2.5em 0;
}
.p-single__nav {
    text-align: center;
}

/* --- サイドバー・ウィジェット --- */
.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.06);
}
.sidebar .widget:last-child {
    margin-bottom: 0;
}
.sidebar .widget-title {
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}
.sidebar .widget p {
    margin: 0 0 14px;
    line-height: 1.7;
    font-size: 0.9rem;
}
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
    line-height: 1.5;
}
.sidebar .widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar .widget a {
    color: var(--text-color);
}
.sidebar .widget a:hover {
    color: var(--secondary-color);
}

/* --- サイドバー：動的カテゴリー一覧の入れ子表示 --- */
.widget-dynamic-category-list ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0 0 0 14px;
}
.widget-dynamic-category-list li {
    border-bottom: none !important;
}
.widget-dynamic-category-list > li {
    border-bottom: 1px dashed var(--border-color) !important;
    padding: 8px 0 !important;
}
.widget-dynamic-category-list > li:last-child {
    border-bottom: none !important;
}

/* --- サイドバー：パートナー企業募集（カスタムHTMLウィジェット用） --- */
.widget-partner-promo {
    background-color: var(--gold-accent);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.widget-partner-promo__label {
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
    margin: 0 0 10px;
}
.widget-partner-promo__desc {
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 14px;
}
.widget-partner-promo__btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--gold-accent);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 20px;
}
.widget-partner-promo__btn:hover {
    opacity: 0.85;
    color: var(--gold-accent);
}

/* --- サイドバー：広告募集バナー（カスタムHTMLウィジェット用） --- */
.widget-ad-banner {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    background-color: var(--accent-color);
}
.widget-ad-banner__label {
    color: #999;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin: 0 0 10px;
}
.widget-ad-banner__desc {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 14px;
}
.widget-ad-banner__btn {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
}
.widget-ad-banner__btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    opacity: 1;
}

/* --- 前後の記事カード --- */
.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;
}

/* --- SNSアイコンのブランドカラー（PC/SP共通） --- */
.float-ig { background-color: #E1306C; }
.float-yt { background-color: #FF0000; }
.float-tt { background-color: #000000; }
.float-x  { background-color: #000000; }

/* ====================================
   パンくずリスト
==================================== */
.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;
}

/* ====================================
   サービスの流れ（カードデザイン）
==================================== */
.c-flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.c-flow-step {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.07);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.c-flow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(194, 24, 91, 0.14);
}
.c-flow-step__number {
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--accent-color);
}
.c-flow-step__body {
    flex: 1;
    min-width: 0;
}
.c-flow-step__label {
    display: block;
    color: var(--secondary-color);
    font-weight: bold;
    letter-spacing: 0.08em;
}
.c-flow-step__title {
    color: var(--primary-color);
    font-weight: bold;
    margin: 4px 0 8px;
}
.c-flow-step__desc {
    margin: 0;
    color: var(--text-color);
    line-height: 1.8;
}

/* --- 大カテゴリーTOP説明文 --- */
.c-category-top-desc {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.06);
    color: var(--text-color);
    line-height: 1.9;
}
.c-category-top-desc p {
    margin: 0 0 1.2em;
}
.c-category-top-desc p:last-child {
    margin-bottom: 0;
}
.c-category-top-desc img {
    border-radius: 8px;
    height: auto;
}
.c-category-top-desc a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- トップページ フリーエリア --- */
.c-front-free-area {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.06);
    color: var(--text-color);
    line-height: 1.9;
}
.c-front-free-area p {
    margin: 0 0 1.2em;
}
.c-front-free-area p:last-child {
    margin-bottom: 0;
}
.c-front-free-area img {
    border-radius: 8px;
    height: auto;
}
.c-front-free-area a {
    color: var(--secondary-color);
    text-decoration: underline;
}
.c-front-free-area h2 {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin: 0 0 20px;
}
.c-front-free-area h2:not(:first-child) {
    margin-top: 2em;
}
.c-front-free-area h3 {
    color: var(--primary-color);
    font-weight: bold;
    padding-left: 12px;
    border-left: 4px solid var(--secondary-color);
    margin: 1.8em 0 0.8em;
}
.c-front-free-area strong {
    color: var(--primary-color);
}
.c-front-free-area ul,
.c-front-free-area ol {
    margin: 0 0 1.5em;
    padding-left: 0;
    list-style: none;
}
.c-front-free-area ul li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.6em;
}
.c-front-free-area ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}
.c-front-free-area ol {
    counter-reset: flow-counter;
}
.c-front-free-area ol li {
    position: relative;
    padding-left: 2.4em;
    margin-bottom: 1.3em;
    counter-increment: flow-counter;
}
.c-front-free-area ol li::before {
    content: counter(flow-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
}