/* =========================================
           Reset & Base Styles (Senior Friendly)
           ※トップページと完全同期
           ========================================= */
:root {
    --primary-color: #C2185B;
    --primary-light: #F8BBD0;
    --primary-bg: #FFF0F5;
    --accent-color: #2E7D32;
    --text-color: #111111;
    --text-muted: #444444;
    --bg-color: #FFFAFC;
    --white: #FFFFFF;
    --shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    /* アンカーリンクへのスクロールを滑らかに */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 17px;
    line-height: 1.8;
    padding-bottom: calc(var(--nav-height) + 30px);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

ul {
    list-style: none;
}

/* =========================================
           Components
           ========================================= */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--white);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 0 30px;
    padding-top: 50px;
    /* スクロール位置調整のため上余白追加 */
    padding-bottom: 10px;
    position: relative;
    display: block;
    font-weight: 800;
}



.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 3px;
}

/* =========================================
           Header (Subpage specific)
           ========================================= */
.header {
    width: 100%;
    max-width: 480px;
    background-color: var(--white);
    padding: 16px;
    position: fixed;
    /* ヘッダー固定 */
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.back-btn {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: var(--radius-md);
}

.back-btn:active {
    background-color: #f0f0f0;
}

.header-logo {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* メインコンテンツの開始位置を調整 */
main {
    padding-top: 70px;
}

/* =========================================
           Detail Sections & Cards
           ========================================= */
.detail-section {
    padding: 0 20px 50px;
    background-color: var(--white);
    border-bottom: 8px solid var(--bg-color);
    scroll-margin-top: 70px;
    /* アンカーリンクのジャンプ位置をヘッダーの高さ分下げる */
}

.detail-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 2px solid #eee;
}

.card-img-area {
    width: 100%;
    /* height: 220px; */
    /*  background-color: #eee; */
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img-s {
    padding-top: 82.66px;
    margin: 0 auto;
}

.taiken02 {
    width: 74px;
    width: calc(74/331*100%);

}

.taiken03 {
    width: 147px;

}

.taiken04 {
    width: 127px;

}

.card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-bottom-right-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 2;
}

.card-badge.orange {
    background-color: #F57C00;
}

.card-badge.blue {
    background-color: #0277BD;
}

.card-content {
    padding: 24px 20px;
}

.card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.card-desc {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.info-list-box {
    background-color: #F9F9F9;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid #ddd;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 12px;
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    color: var(--primary-color);
    margin-right: 12px;
    min-width: 24px;
    margin-top: 2px;
}

.info-text-area {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.info-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* =========================================
           Bottom Navigation (Senior Friendly)
           ========================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #ddd;
}

.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
}

.nav-item:active {
    background-color: #f0f0f0;
}

/* ページ内リンクでアクティブな状態を表現するためのクラス */
.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    color: var(--primary-color);
}

.nav-item i {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.nav-item span {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1;
}

/* =========================================
           Back to Top
           ========================================= */
.back-to-top {
    position: fixed;
    bottom: calc(var(--nav-height) + 10px);
    right: 10px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 90;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 2px solid #fff;
}

.back-to-top span {
    font-size: 0.6rem;
    font-weight: bold;
    margin-top: -2px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top02 {
    bottom: calc(var(--nav-height) + 78px);
    background-color: var(--primary-color);;
}

.back-to-top02 span {
    font-size: 0.6rem;
    font-weight: bold;
    position: absolute;
    /* display: block; */
    top: 0;
    bottom: 0;
    width: 20px;
    margin: auto;
    display: flex;
    align-items: center;
    left: 23px;
}

.backToTop02-icon {
    left: -15px;
    position: relative;
    top: 4px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* =========================================
           Footer
           ========================================= */
.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px 100px;
    text-align: center;
}

.footer-tel {
    font-size: 1.6rem;
    color: #fff;
    font-weight: bold;
    background-color: #444;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin: 16px 0 24px;
    text-decoration: none;
}

/* =========================================
           Modals
           ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eee;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn {
    display: block;
    width: 100%;
    /*  padding: 16px; */
    margin-bottom: 12px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
}

.lang-modal_link {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 16px;
    justify-content: center;
}

.a_blue_txt {
    color: #0277BD;
}

#area .card-content {
    padding-top: 74px;
}

#area .card-content02 {
    padding-top: 9px;
}

body .txt-s {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;

}