/* --- 基本設定 --- */
:root {
--color-main: #f29a6d;
--color-accent: #ed6c00;
--color-highlight: #f5ce00;
--color-btn-green: #009944;
--color-bg: #fffdfa;
--color-text: #3a2d24;
--color-white: #ffffff;
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
scroll-behavior: smooth;
}

body {
font-family: 'Noto Sans JP', sans-serif;
color: var(--color-text);
background-color: var(--color-bg);
line-height: 1.8;
letter-spacing: 0.05em;
font-size: 24px; 
}

/* --- PCとSPでの改行制御用CSS --- */
.br-pc {
display: block; 
}
.br-sp {
display: none; 
}

/* --- タイトル関連 --- */
h1, h2, .signature, .table-header-title, .chart-title {
font-family: 'Shippori Mincho', serif;
}

/* --- ヘッダー（メインビジュアル） --- */
.hero {
position: relative;
width: 100%;
height: 750px;
margin-bottom: 100px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}

.video-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1;
}

.video-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4); 
z-index: 2;
}

/* 動画左上のロゴ設定 */
.hero-top-logo {
position: absolute;
top: 30px;
left: 40px;
z-index: 4;
display: flex;
align-items: center;
gap: 15px; 
color: var(--color-white);
text-shadow: 2px 2px 8px rgba(0,0,0,0.8); 
}

.hero-top-logo img {
height: 65px;
width: auto;
}

/* ロゴ横のテキスト（2行設定） */
.hero-top-text {
display: flex;
flex-direction: column;
justify-content: center;
}

.hero-top-catch {
font-size: 15px; 
font-weight: 500;
margin-bottom: 2px;
}

.hero-top-name {
font-family: 'Shippori Mincho', serif;
font-size: 22px;
font-weight: bold;
}

.hero-content {
position: relative;
z-index: 3;
text-align: center;
padding: 0 40px;
width: 100%;
}

.hero-text-bg {
background-color: transparent;
display: block;
padding: 0;
}

.hero-main-title {
font-family: 'Shippori Mincho', serif;
font-size: 4.5rem; 
color: var(--color-white);
font-weight: 800;
margin: 0;
line-height: 1.3;
text-shadow: 
2px 2px 4px rgba(0, 0, 0, 0.6),
-2px -2px 4px rgba(0, 0, 0, 0.6),
2px -2px 4px rgba(0, 0, 0, 0.6),
-2px 2px 4px rgba(0, 0, 0, 0.6),
0px 0px 20px rgba(0, 0, 0, 0.8);
}

.hero-sub-title {
font-size: 0.55em;
display: block;
margin-top: 15px; 
font-weight: 600; 
}

/* --- 動画と挨拶の間に移動したコピー --- */
.main-copy-wrapper {
text-align: center;
margin: 80px 0 60px;
position: relative;
}

.main-copy-text {
font-family: 'Shippori Mincho', serif;
font-size: 2.8rem;
color: var(--color-text);
font-weight: 800;
line-height: 1.4;
margin: 0;
display: inline-block;
position: relative;
z-index: 2;
}

/* 「超高齢社会」を少し装飾 */
.main-copy-accent {
color: var(--color-accent);
}

/* 文字の背景に画像（輪のイラスト）のあしらい */
.main-copy-decoration {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
width: 180px; 
opacity: 0.2; 
}

.main-copy-decoration img {
width: 100%;
height: auto;
display: block;
}

/* --- コンテンツエリア --- */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 40px;
}

.section {
margin-bottom: 100px;
padding: 60px 80px;
background-color: var(--color-white);
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.section-title {
font-size: 50px; 
color: var(--color-accent);
border-bottom: 3px solid var(--color-main);
padding-bottom: 15px;
font-weight: 800;
display: table;
margin: 0 auto 3rem auto; 
text-align: center;
}

/* --- ご挨拶タイトル直下の理事長名（中央揃え） --- */
.greeting-sub-author {
font-family: 'Shippori Mincho', serif;
font-size: 28px;
font-weight: 700;
color: #000000;
text-align: center;
margin: -1.5rem auto 3rem auto; 
display: block;
}

/* ご挨拶文を明朝体に変更（細く・大きく） */
.greeting-text {
font-family: 'Shippori Mincho', serif;
font-size: 26px; 
font-weight: 400; 
color: #000000;
line-height: 2.0;
}

.greeting-text p {
margin-bottom: 1.5em; 
}

/* --- ご挨拶文の強調（マーカーを薄く） --- */
.highlight-text {
font-weight: 700;
background: linear-gradient(transparent 60%, rgba(245, 206, 0, 0.3) 60%);
}

/* --- 無料送迎ご利用状況：イラストとテキストのレイアウト --- */
.target-users-container {
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 60px auto;
max-width: 900px;
width: 100%;
gap: 40px;
}

.target-users-illustration {
width: 250px; 
flex-shrink: 0;
}

.target-illustration-img {
width: 100%;
height: auto;
display: block;
object-fit: contain;
}

/* リスト部分をシンプルに改修 */
.target-users-list {
background-color: #fffdfa; 
border: 2px solid #e0e0e0; 
border-radius: 12px;
padding: 30px 40px;
flex-grow: 1;
}

.target-users-list-title {
font-family: 'Shippori Mincho', serif;
font-size: 24px;
font-weight: bold;
color: var(--color-accent);
margin-bottom: 15px;
text-align: center;
}

.target-users-list ul {
list-style: none;
padding: 0;
margin: 0 0 15px 0;
}

.target-users-list li {
font-size: 24px;
font-weight: bold;
color: var(--color-text);
position: relative;
padding-left: 1.5em;
margin-bottom: 10px;
}

.target-users-list li:last-child {
margin-bottom: 0;
}

.target-users-list li::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--color-main);
}

.target-users-list-note {
font-size: 16px;
color: #666;
text-align: right;
}

/* --- グラフ（ご利用状況） --- */
.chart-wrapper {
max-width: 800px;
margin: 0 auto;
padding: 30px;
background-color: #fafafa;
border: 1px solid #eaeaea; 
border-radius: 15px;
}

.chart-title {
text-align: center;
font-size: 30px;
color: var(--color-text);
margin-bottom: 5px; 
}

/* グラフの期間表示 */
.chart-period {
text-align: center;
font-size: 18px;
color: #888;
margin-bottom: 30px;
}

.chart-row {
display: flex;
align-items: center;
margin-bottom: 12px;
}

.chart-label {
width: 180px; 
font-weight: bold;
text-align: right;
padding-right: 20px;
font-size: 22px;
white-space: nowrap; 
}

.chart-bar-bg {
flex-grow: 1;
background-color: #e6e6e6;
height: 24px; 
border-radius: 4px;
position: relative;
overflow: hidden;
}

.chart-bar {
height: 100%;
width: 0;
border-radius: 4px;
transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bar-kaigo { background-color: var(--color-accent); }
.bar-shien { background-color: var(--color-main); }
.bar-other { background-color: #b0b8bc; }
.bar-age { background-color: var(--color-main); } /* 年齢層用カラー */

.chart-value {
width: 80px;
text-align: right;
font-weight: bold;
font-size: 24px;
padding-left: 15px;
}

/* --- 会計報告テーブル --- */
.accounting-table {
border-collapse: collapse;
width: 100%;
max-width: 800px;
margin: 40px auto 0;
border: 2px solid #ccc; 
}

.table-header-title {
background-color: var(--color-main);
color: var(--color-white);
font-size: 40px; 
padding: 20px;
text-align: center;
position: relative; 
}

.tax-note {
position: absolute;
right: 20px;
bottom: 10px;
font-size: 16px;
font-weight: normal;
font-family: 'Noto Sans JP', sans-serif;
}

.accounting-table td {
padding: 20px 40px;
border: 1px solid #ddd;
font-weight: 700;
}

.item-label {
background-color: #fafafa;
text-align: center;
width: 40%;
}

.number {
text-align: right;
font-size: 30px;
}

/* --- スクロールで現れるボタン類 --- */
.fixed-menu {
position: fixed;
left: 0;
top: 20%;
z-index: 100;
display: flex;
flex-direction: column;
gap: 20px;
opacity: 0;
visibility: hidden;
transition: all 0.5s ease;
transform: translateX(-20px);
}

.page-top {
position: fixed;
bottom: 40px;
right: 40px;
z-index: 99;
width: 80px;
height: 80px;
background-color: var(--color-btn-green);
color: var(--color-white);
text-decoration: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
font-weight: bold;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
opacity: 0;
visibility: hidden;
transition: all 0.5s ease;
}

.is-visible {
opacity: 1;
visibility: visible;
transform: translateX(0);
}

.menu-item {
writing-mode: vertical-rl;
background-color: var(--color-btn-green);
color: var(--color-white);
text-decoration: none;
padding: 30px 15px;
font-size: 26px; 
font-weight: bold;
border-radius: 0 15px 15px 0;
box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
}

.menu-item:hover, .page-top:hover {
background-color: var(--color-accent);
}

/* --- 今後の展望（画像2枚横並び調整） --- */
.future-vision-wrapper {
max-width: 1100px;
margin: 0 auto;
display: flex;
gap: 20px;
justify-content: center;
}

.future-vision-img {
width: calc(50% - 10px);
height: auto;
display: block;
border-radius: 12px; 
}

/* --- フッター＆バナー画像（PC用・SP用の切り替え基本設定） --- */
.footer {
text-align: center;
padding: 100px 40px;
border-top: 2px solid #eee;
}

.contact-banner {
display: block;
max-width: 1000px;
margin: 0 auto 60px;
transition: opacity 0.3s ease;
}

.contact-banner:hover {
opacity: 0.8;
}

.contact-banner-img {
width: 100%;
height: auto;
border-radius: 20px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.banner-pc-only {
display: block; /* PCでは表示 */
}
.banner-sp-only {
display: none; /* PCでは非表示 */
}

/* =========================================
   スマホ・タブレット向け（SP）の調整
========================================= */
@media (max-width: 768px) {
body { 
font-size: 18px; 
}
.section { 
padding: 40px 20px; 
}
.section-title, .table-header-title {
font-size: 32px;
}
.number {
font-size: 20px;
}
.signature {
font-size: 24px;
}

.br-pc { display: none; }
.br-sp { display: block; }

/* スマホ時のロゴ調整 */
.hero-top-logo {
top: 15px;
left: 15px;
gap: 10px;
}
.hero-top-logo img {
height: 45px; 
}
.hero-top-catch {
font-size: 11px;
}
.hero-top-name {
font-size: 16px;
}

.hero-main-title {
font-size: 2.2rem;
}
.hero-sub-title {
font-size: 0.65em;
margin-top: 10px;
}

.main-copy-wrapper {
margin: 50px 0 30px;
}
.main-copy-text {
font-size: 2.0rem;
}
/* スマホ時の装飾画像の大きさ・位置調整 */
.main-copy-decoration {
width: 130px; 
left: 75%; 
}

/* スマホ時の挨拶文の大きさ */
.greeting-text {
font-size: 20px; 
}

/* イラストとテキストをスマホでは縦並びに切り替え */
.target-users-container {
flex-direction: column;
gap: 20px;
}
.target-users-illustration {
width: 160px;
}
.target-users-list {
width: 100%;
padding: 20px;
}
.target-users-list-title {
font-size: 20px;
}
.target-users-list li {
font-size: 18px;
}
.target-users-list-note {
font-size: 14px;
text-align: center;
margin-top: 10px;
}

/* グラフのスマホ対応 */
.chart-wrapper {
padding: 15px 10px;
}
.chart-title {
font-size: 20px;
margin-bottom: 5px;
}
.chart-period {
font-size: 14px;
margin-bottom: 20px;
}
.chart-container {
width: 100%;
}

/* スマホ時のグラフ文字サイズと折り返し防止 */
.chart-label {
width: 115px; 
font-size: 13px; 
padding-right: 5px; 
white-space: nowrap; 
}
.chart-bar-bg {
height: 16px;
}
.chart-value {
width: 60px;
font-size: 14px;
padding-left: 10px;
}

.tax-note {
bottom: 5px;
right: 10px;
font-size: 12px;
}

.page-top {
width: 55px;
height: 55px;
font-size: 14px;
bottom: 20px;
right: 20px;
}

.fixed-menu { 
display: none; 
} 

/* 会計報告テーブルのスマホ対応（すべて1行に収める） */
.accounting-table td {
padding: 12px 10px; 
white-space: nowrap; 
}
.table-header-title {
font-size: 26px; 
}
.item-label {
font-size: 16px; 
}
.number {
font-size: 18px; 
}

/* スマホ時は今後の展望画像を縦並びにする */
.future-vision-wrapper {
flex-direction: column;
gap: 15px;
}
.future-vision-img {
width: 100%;
}

/* フッターバナーをスマホ用に切り替え */
.banner-pc-only {
display: none;
}
.banner-sp-only {
display: block;
}
}