@charset "utf-8";

/* CSS Document */

/* =============================================
   一人暮らしの生活 ページ専用スタイル
   ============================================= */

/* ---- ページ全体ラッパー ---- */
.solo-living-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ---- スタッフセクション（はみ出しPNG対応） ---- */
.solo-staff-section {
  position: relative;
  overflow: visible !important; /* 写真のはみ出しを許可 */
  /* box-shadowはカード自体にはなくヘッダーに設定する */
}

.solo-staff-header {
  background: linear-gradient(135deg, #0070a5 0%, #00a0d8 100%);
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: visible; /* 写真のはみ出しを許可 */
  min-height: 130px;
  display: flex;
  align-items: center;
  padding: 24px 220px 24px 40px;
}

.solo-staff-header-text {
  position: relative;
  z-index: 30; /* 写真（z-index:20）より前面に表示 */
  flex: 1;
}

.solo-staff-header .staff-clinic {
  font-size: 18px;
  opacity: 1;
  margin: 0 0 4px;
  color: #fff;
}

.solo-staff-header .staff-hometown {
  font-size: 16px;
  opacity: 1;
  margin: 4px 0 0;
  color: #fff;
}

/* 切り抜きPNG→青ボックスの下端にピッタり合わせて上にはみ出す */
.solo-staff-header-photo {
  position: absolute;
  right: 5%;
  bottom: 0;         /* ヘッダー下端に揃える */
  height: 280px;     /* ヘッダー(130px)より大きくして上にはみ出す */
  width: auto;
  max-width: 380px;
  object-fit: contain;
  object-position: bottom center;
  z-index: 20;
  pointer-events: none;
  overflow: visible !important; /* clipを解除しはみ出しを許可 */
  -webkit-mask-image: none;
  mask-image: none;
}

@media (max-width: 640px) {
  .solo-staff-header {
    min-height: 110px;
    padding: 18px 160px 18px 18px;
  }
  .solo-staff-header-photo {
    height: 170px;
    right: 0;
  }
  /* 院名テキストを小さくして写真と重ならないように */
  .solo-staff-header .staff-clinic {
    font-size: 14px;
  }
  .solo-staff-header .staff-hometown {
    font-size: 13px;
  }
}

/* 画面幅が特に狭い場合：写真を小さくする */
@media (max-width: 400px) {
  .solo-staff-header {
    padding: 16px 130px 16px 16px;
  }
  .solo-staff-header-photo {
    height: 170px;
  }
  .solo-staff-header .staff-clinic {
    font-size: 13px;
  }
  .solo-staff-header .staff-hometown {
    font-size: 12px;
  }
}

/* ---- リード文 ---- */
.solo-living-lead {
  text-align: center;
  margin: 40px 0 60px;
  line-height: 1.9;
  font-size: 17px;
  font-weight:bold;
}

/* ---- 各スタッフのセクション ---- */
.solo-staff-section {
  background: #fff;
  border-radius: 12px;
  /* filterを使わず box-shadow に戻す（filterは新スタッキングコンテキストを生成しoverflow:visibleを無効化するため） */
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  margin-bottom: 70px;
  overflow: visible;
}

/* ---- セクションヘッダー ---- */
.solo-staff-header {
  background: linear-gradient(135deg, #0070a5 0%, #00a0d8 100%);
  color: #fff;
  padding: 24px 30px;
}

.solo-staff-header .staff-name {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 4px;
}

.solo-staff-header .staff-clinic {
  font-size: 18px;
  opacity: 1;
  margin: 0;
}

.solo-staff-header .staff-hometown {
  font-size: 16px;
  opacity: 1;
  margin: 4px 0 0;
}

/* ---- セクション本文エリア ---- */
.solo-staff-body {
  padding: 30px 30px 36px;
}

/* ---- 各ブロックの見出し ---- */
.solo-block-title {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #0070a5;
  margin: 50px 0 20px;
  border-bottom: 2px dotted #0070a5;
	position:relative;
	padding-left:15px;
}

.solo-block-title:first-child {
  margin-top: 0;
}

.solo-block-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 35px;
  background: #0070a5;
  margin-right: 10px;
  margin-bottom:-1;
  flex-shrink: 0;
  position:absolute;
  bottom:-2px;
  left:0;
}

/* ---- 本文テキスト ---- */
.solo-text {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 12px;
}

.solo-text:last-child {
  margin-bottom: 0;
}

/* ---- 間取りバッジ ---- */
.solo-layout-badge {
  display: inline-block;
  background: #e8f4fb;
  color: #0070a5;
  font-weight: bold;
  font-size: 16px;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid #b0d8ee;
  margin-bottom: 4px;
}

/* ---- 支出テーブル ---- */
.solo-expense-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-top: 8px;
}

.solo-expense-table th,
.solo-expense-table td {
  padding: 9px 14px;
  border: 1px solid #dde8ef;
  text-align: left;
}

.solo-expense-table th {
  background: #e8f4fb;
  color: #0070a5;
  font-weight: bold;
  width: 48%;
}

.solo-expense-table tr:nth-child(even) td {
  background: #f7fbfd;
}

/* ---- タイムライン ---- */
.solo-timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.solo-timeline li {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed #d0e4ee;
  color: #333;
}

.solo-timeline li:last-child {
  border-bottom: none;
}

.solo-timeline .tl-time {
  min-width: 120px;
  font-weight: bold;
  color: #0070a5;
  flex-shrink: 0;
}

/* ---- 休日リスト ---- */
.solo-holiday-list {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solo-holiday-list li {
  background: #e8f4fb;
  color: #0070a5;
  font-size: 16px;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #b0d8ee;
}

/* ---- 画像ギャラリー ---- */
/* ---- ライトボックス（写真クリックでポップアップ） ---- */
#solo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

#solo-lightbox.open {
  display: flex;
}

#solo-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: default;
  animation: lb-fade-in 0.2s ease;
}

@keyframes lb-fade-in {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

#solo-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
  z-index: 10000;
  user-select: none;
}

#solo-lightbox-close:hover {
  opacity: 1;
}

#solo-lightbox-prev,
#solo-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
  z-index: 10000;
  user-select: none;
  padding: 10px 16px;
}

#solo-lightbox-prev { left: 10px; }
#solo-lightbox-next { right: 10px; }

#solo-lightbox-prev:hover,
#solo-lightbox-next:hover {
  opacity: 1;
}

/* ギャラリー内の写真にカーソルを表示 */
.solo-gallery img,
.gallery-3 img,
.gallery-4 img {
  cursor: zoom-in;
}

/* ---- ギャラリー（event.htmlと同じflex-wrap方式） ---- */
.solo-gallery {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 0; /* marginで間隔を管理 */
}

.solo-gallery img {
  /* 横幅は写真の縦横比に応じて自動伸縮、高さは固定 */
  height: 250px;
  width: auto;
  flex-grow: 1;
  object-fit: cover;
  margin: 3px;
  border-radius: 4px;
  display: block;
  min-width: 120px; /* 極端に細くならないよう */
}

/* 画面幅が広い場合：高さを少し大きく */
@media (min-width: 641px) {
  .solo-gallery img {
    height: 260px;
  }
}

/* スマホ：高さを小さく */
@media (max-width: 640px) {
  .solo-gallery img {
    height: 200px;
    min-width: 120px;
  }
}

/* 3枚ギャラリー：上段2枚＋下段1枚ワイドのグリッド */
.gallery-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
}

/* 3枚目は下段全幅 */
.gallery-3 img:nth-child(3) {
  grid-column: 1 / -1; /* 2列全幅 */
}

.gallery-3 img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin: 0;
  border-radius: 6px;
  display: block;
}

/* 下段のワイド写真は少し高くする */
.gallery-3 img:nth-child(3) {
  height: 340px;
}

@media (min-width: 641px) {
  .gallery-3 img {
    height: 280px;
  }
  .gallery-3 img:nth-child(3) {
    height: 380px;
  }
}

@media (max-width: 640px) {
  .gallery-3 img {
    height: 200px;
  }
  .gallery-3 img:nth-child(3) {
    height: 260px;
  }
}

/* 4枚ギャラリー：2×2グリッド固定 */
.gallery-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
}

.gallery-4 img {
  width: 100%;
  height: 250px;
  flex-grow: unset;  /* flexの伸縮を無効化 */
  margin: 0;
  border-radius: 6px;
}

@media (min-width: 641px) {
  .gallery-4 img {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .gallery-4 img {
    height: 230px!important;
  }
}

/* ---- ジャンプナビゲーションボタン ---- */
.solo-jump-nav {
  display: flex;
  gap: 16px;
  /* ヘッダー写真のはみ出し分（280px）を考慮した下余白 */
  margin: 0 0 160px;
  justify-content: center;
}
/*一人暮らしトップ用*/
.solo-jump-nav-top {
  display: flex;
  gap: 16px;
  /* ヘッダー写真のはみ出し分（280px）を考慮した下余白 */
  margin: 0 0 30px;
  justify-content: center;
}
/*一人暮らしトップ用ここまで*/
.solo-jump-btn {
  flex: 1;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid transparent;
}

.solo-jump-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,112,165,0.22);
  border-color: #0070a5;
}

/* 現在表示中のスタッフページのボタン（active状態） */
.solo-jump-btn.active {
  border-color: #0070a5;
  box-shadow: 0 4px 20px rgba(0,112,165,0.35);
  pointer-events: none; /* 現在ページのボタンはクリック不可 */
}

.solo-jump-btn.active .solo-jump-label {
  background: #005580; /* ダークブルーで選択中を表現 */
}

.solo-jump-btn.active .solo-jump-arrow {
  background-color: #0070a5;
  color: #fff;
}

.solo-jump-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.solo-jump-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.solo-jump-btn:hover .solo-jump-img-wrap img {
  transform: scale(1.05);
}

.solo-jump-label {
  background: #0070a5;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  justify-content:center;
  gap: 4px;
  height:100px;
}

.solo-jump-clinic {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  line-height: 1.4;
	text-align:center;
}

.solo-jump-arrow {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  background-color:#fff;
	border-radius:50px;
	margin-top:5px;
	color:#0070a5;
	text-align:center;
	font-weight:bold;
}

/* 640px以下：ボタンを縦並びに */
@media (max-width: 640px) {
  .solo-jump-nav {
    flex-direction: column;
    gap: 12px;
    margin: 0 0 110px; /* スマホでは写真のはみ出し分（170px）を考慮 */
  }
/*一人暮らしトップ用*/
	.solo-jump-nav {
    flex-direction: column;
    gap: 12px;
    margin: 0 0 30px; /* スマホでは写真のはみ出し分（170px）を考慮 */
  }
/*一人暮らしトップ用ここまで*/
  .solo-jump-btn {
    flex-direction: row;   /* 画像左＋ラベル右の横並び */
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
  .solo-jump-img-wrap {
    width: 130px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }
  .solo-jump-label {
    flex: 1;
    height: auto;
    min-height: 80px;
    padding: 12px 14px;
    justify-content: center;
  }
  .solo-jump-clinic {
    font-size: 15px;
  }
  .solo-jump-arrow {
    font-size: 14px;
    padding: 4px 10px;
  }
}

/* ---- タイムライン図解（時刻丸バッジ・テキスト左・写真右） ---- */
.sched-diagram {
  margin-top: 16px;
  padding: 4px 0;
}

.sched-row {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 0;
}

/* 左列：縦線＋時刻丸バッジ */
.sched-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 80px;
  /* 縦棒を途切れさせないため自身の高さを子要素に合わせる */
  align-self: stretch;
}

.sched-time {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #333;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  line-height: 1.3;
  text-align: center;
	padding:10px;
	box-sizing: border-box;
}
.sched-time span{
	display:inline-block;
}
.sched-line {
  width: 2px;
  flex: 1;
  background: #ccc;
  /* 縦棒が確実に伸びるよう min-height を大きく設定 */
  min-height: 40px;
}

/* 最終行の縦棒は非表示 */
.sched-row:last-child .sched-line {
  display: none;
}

/* 右側：テキスト＋写真エリア */
.sched-bar {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 48px 20px;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  font-weight: bold;
}

.sched-bar-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.6;
  padding-top: 14px;
}
.sched-bar-content{
	
}
.sched-bar-content p{
	margin:0;
	font-size:16px;
	font-weight:normal;
}
/* タイムライン内写真（右側配置） */
.sched-photos {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 520px;
	flex-direction:column;
}

.sched-photos img {
  width: 250px;
  height: 245px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* 内容テキスト（展開後の互換性用） */
.sched-bar-label {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* 旧.sched-photo（展開後の互換性） */
.sched-photo {
  display: none;
}

/* カテゴリ凡例は非表示 */
.sched-legend {
  display: none;
}

@media (max-width: 640px) {
  .sched-dot-col {
    width: 60px;
  }
  .sched-time {
    width: 65px;
    height: 65px;
    font-size: 16px;
  }
  .sched-bar {
    flex-direction: column;
    padding: 10px 0 32px 12px;
    gap: 10px;
  }
  .sched-bar-text {
    padding-top: 0;
  }
  .sched-photos {
    max-width: 100%;
  }
  .sched-photos img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ---- 円グラフエリア ---- */
.solo-chart-wrap {
  display: flex;
  align-items: flex-start;
  gap: 45px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.solo-chart-canvas {
  width: 350px !important;
  height: 350px !important;
  flex-shrink: 0;
}

.solo-chart-legend {
  flex: 1;
  min-width: 200px;
  align-self: center;
}

.chart-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chart-legend-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #eef3f6;
  font-size: 16px;
  color: #333;
}

.chart-legend-list li:last-child {
  border-bottom: none;
}

.chart-legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.chart-legend-label {
  flex: 1;
  font-weight: bold;
}

.chart-legend-value {
  color: #0070a5;
  font-weight: bold;
  white-space: nowrap;
}

.chart-legend-pct {
  color: #888;
  font-size: 16px;
  white-space: nowrap;
}

/* ---- レスポンシブ ---- */
@media(max-width:768px){
.solo-chart-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.solo-chart-canvas {
  width: 280px !important;
  height: 280px !important;
  flex-shrink: 0;
}

.solo-chart-legend {
  flex: 1;
  min-width: 200px;
  align-self: center;
}
}
@media (max-width: 640px) {
  .solo-living-wrap {
    padding: 0 12px 60px;
  }

  .solo-staff-header {
    padding: 18px 18px;
  }

  .solo-staff-header .staff-name {
    font-size: 17px;
  }

  .solo-staff-body {
    padding: 20px 18px 28px;
  }

  .solo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .solo-gallery img {
    height: 200px;
  }

  .solo-gallery.col1 img {
    height: 200px;
  }

  .solo-timeline .tl-time {
    min-width: 90px;
  }

  .solo-expense-table th,
  .solo-expense-table td {
    padding: 7px 10px;
    font-size: 16px;
  }

  .solo-chart-wrap {
    flex-direction: column;
    align-items: center;
  }

  .solo-chart-canvas {
    width: 200px !important;
    height: 200px !important;
  }

  .solo-chart-legend {
    width: 100%;
    min-width: unset;
  }
}

