@charset "UTF-8";

/* ====== Googleフォントの読み込み ====== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&family=Quicksand:wght@300;400;700&display=swap');

/* ====== リセット & グローバル設定 ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', 'Quicksand', sans-serif;
}

body {
  font-family: 'Noto Sans JP', 'Quicksand', sans-serif;
  color: #5a4635; /* 柔らかいダークブラウン */
  line-height: 1.6;
  margin-left: 220px; /* サイドナビ分のオフセット */
}

body.lock-scroll {
  overflow-y: scroll;
  height: 100vh;
}

main {
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

body:focus {
  outline: none;
}

/* 各セクションで上端に揃える */
.hero,
.scroll-section,
.services,
.greeting {
  scroll-snap-align: start;
}

/* タイトルやテキストの統一スタイル */
h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 0.5em;
}

p {
  color: #444;
  margin-bottom: 1em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff8c00; /* リンクホバー時のアクセントカラー */
}

/* ========== ロゴイントロ表示用 ========== */
.intro-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

/* ロゴ画像のフェードインアニメーション */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.intro-content img.intro-logo-img {
  width: 200px;
  height: auto;
  opacity: 0;
  animation: logoFadeIn 1.2s ease-out forwards;
  animation-delay: 0.3s; /* 少し遅れて表示 */
}

/* フェードアウト */
.intro-logo.fade-out {
  opacity: 0;
  visibility: hidden;
}


/* ====== ヘッダー（サイドナビゲーション） ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: rgba(255, 175, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  pointer-events: none;
}

/* ヘッダー内のリンクとハンバーガーボタンはイベントを受け取る */
.header a,
.hamburger {
  pointer-events: auto;
}

/* ロゴ */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 100px;  /* 画像サイズを適宜調整 */
  height: auto;  /* 縦横比を保持 */
}


.logo a {
  font-weight: bold;
  color: #333;
}

/* ナビゲーションリンク */
.navbar {
  width: 100%;
  text-align: center;
}

.nav-links {
  list-style: none;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links li a {
  display: block;
  padding: 10px;
  font-weight: bold;
  color: #333;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.nav-links li a:hover {
  background-color: rgba(255, 175, 0, 0.4);
}

.company-link,
.contact-link {
  transition: transform 0.3s ease;
  position: relative; /* transform を適用するため */
}

/* ハンバーガーメニュー（モバイル用） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 15px;
  z-index: 11;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ====== ヒーローセクション ====== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* 背景画像 */
.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 100%;
  z-index: -1;
}

.hero-text {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 26px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
}

/* ===== グリッドレイアウト版：ボーダレスジャパン風（scroll-inner対応） ===== */

.scroll-section {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 120vh;
  background: #fff;
  margin-top: 0;
  padding-top: 0;
  transform: translateY(10vh);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.scroll-section.locked {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.8s ease-out 0.1s,
              opacity 0.8s ease-out 0.3s;
}

.scroll-inner,
.scroll-section,
.scroll-right-wrapper {
  overflow-x: hidden;
}

.scroll-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  position: relative;
}

.scroll-left {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 200px 40px 80px 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(20px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  background: #fff;
  z-index: 1;
  overflow: hidden;
  transform: translateY(-10vh);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  white-space: normal; /* 正しく複数行で折り返し */
}

.scroll-section.locked .scroll-left {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.8s ease-out 0.2s, opacity 0.8s ease-out 0.2s;
}

.scroll-left span.letter-fade {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterFadeIn 0.6s forwards;
}

@keyframes letterFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-right-wrapper {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  padding: 120px 40px 80px 40px;
  box-sizing: border-box;
  scroll-behavior: auto;
  margin-right: -8px;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.8s ease-out;
  z-index: 2;
}

.scroll-right-wrapper:focus {
  outline: none;
}

.scroll-section.locked .scroll-right-wrapper {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.8s ease-out 0.4s; /* 遅延して表示 */
}

.scroll-right-wrapper::-webkit-scrollbar {
  width: 8px;
}
.scroll-right-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-right-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.scroll-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 1.9rem;
  line-height: 1.9;
  color: #333;
  background: #fff;
  padding: 220px 0 45px 0; 
  min-height: 150%;
}

.scroll-right h2 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  color: #8a5a44;
}

.scroll-right p {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1em;
}

.scroll-right p:last-of-type {
  margin-bottom: 20px;
}

/* ====== サービスセクション ====== */
.services {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #ffecd2, #fcb69f); /* 暖色系のグラデーション */
  transition: opacity 0.4s ease;
}

/* サービスカードのコンテナ */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* 各サービスカード */
.card {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  width: 340px;
  border-radius: 12px; 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* ホバー時の立体感 */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* サービスの見出し */
.card h3 {
  font-size: 1.6em;
  color: #5a4635;
  margin-bottom: 10px;
}

/* サービスの説明 */
.card p {
  font-size: 1.1em;
  color: #444;
  line-height: 1.8;
  margin: 0;
}

/* テキストの折り返しを調整 */
.break {
  display: inline-block;
}

/* 代表あいさつセクション */
.greeting {
  background: #fdf6e3;
  padding: 60px 20px;
}

.greeting-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

.greeting-text {
  flex: 1;
  max-width: 600px;
  font-size: 1.2em;
  color: #5a4635;
  line-height: 1.8;
}

.greeting-text h2 {
  font-size: 2em;
  color: #8a5a44;
  margin-bottom: 20px;
}

.greeting-author {
    margin-top: 30px;
    text-align: center;
}

.greeting-photo {
    width: 200px;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.greeting-name {
    font-size: 1.2em;
    font-weight: bold;
}

/* 全体の余白・中央寄せ */
.topics-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

/* 見出し */
.topics-section h2 {
  font-size: 1.8em;
  margin-bottom: 1.2em;
  border-left: 5px solid #f59e0b;
  padding-left: 0.8em;
  color: #333;
}

/* トピックリスト */
.topics-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 各トピック項目 */
.topics-list li {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-left: 5px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 6px;
  transition: box-shadow 0.3s;
}

.topics-list li:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 日付とタイトル */
.topic-date {
  display: inline-block;
  font-size: 0.9em;
  color: #666;
  margin-right: 1em;
}

.topic-title a {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.topic-title a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

/* 「一覧を見る」リンク */
.more-link {
  text-align: right;
  margin-top: 10px;
}

.more-link a {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}

.more-link a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

/* ====== フッター ====== */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9em;
  margin-top: 0px;
}

/* フッター内のテキスト */
.footer p {
  margin: 0;
  padding: 5px 0;
  color: #ccc;
  letter-spacing: 0.5px;
}

/* フッターのリンクスタイル */
.footer a {
  color: #87ceeb;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ホバー時のカラー変化 */
.footer a:hover {
  color: #fff;
}

/*  訪問看護のヒーローセクション */
.nursing-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

/*  画像の上に暗めのオーバーレイを追加 */
.nursing-hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* 🔹 少し暗めのオーバーレイ */
  z-index: 1;
}

.logo-overlay {
  position: absolute;
  top: 20px; 
  right: 20px; 
  z-index: 10;
}

.logo-overlay img {
  width: 350px; 
  height: auto;
}

.nursing-hero img {
  display: block;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.nursing-hero-content {
  bottom: 10%;
  transform: translateY(20%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
  position: absolute;
  z-index: 2;
}

/*  .visible クラスが付いたら表示 */
.nursing-hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ メインタイトル（h2） */
.nursing-hero-content h2 {
  font-size: 3em;
  font-weight: bold;
  letter-spacing: 1px;
  color: #3e6d6c; /* やわらかい深緑 */
  text-shadow: 1px 1px 8px rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  transition-delay: 0.5s;
}

/*  サブテキスト（p）：1つずつ表示 */
.nursing-hero-content p {
  font-size: 2.2em;
  color: #333333; /* ダークグレー */
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.nursing-hero-content h2.visible,
.nursing-hero-content p.visible {
  opacity: 1;
  transform: translateY(0);
}

.nursing-hero-content h2 {
  transition-delay: 0.5s;
}
.nursing-hero-content p:nth-of-type(1) {
  transition-delay: 1s;
}
.nursing-hero-content p:nth-of-type(2) {
  transition-delay: 1.5s;
}

/* ====== アニメーション定義 ====== */
@keyframes fade-in {
  0% {
    visibility: visible;
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  0% {
    visibility: visible;
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

/* パンフレットセクション背景色と余白を調整 */
.brochure {
  background-color: #fffaf3; /* やわらかいアイボリーベージュ */
  padding: 60px 20px;
  text-align: center;
}

/* タイトルスタイル */
.brochure h3 {
  font-size: 1.99em;
  color: #5a4635;
  margin-bottom: 40px;
  border-bottom: 2px solid #e0c9a6;
  display: inline-block;
  padding-bottom: 10px;
}

/* コンテンツ横並び調整 */
.brochure-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  gap: 50px;
}

/* テキスト */
.brochure-text {
  flex: 1 1 400px;
  text-align: left;
}

.brochure-text p {
  font-size: 1.15em;
  line-height: 2;
  color: #555;
}

/* 画像側 */
.brochure-image-container {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brochure-image {
  width: 90%;
  max-width: 350px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}


/*  スタッフ紹介セクション */
.staff-info {
  background: #f9f8f4;
  padding: 60px 20px;
  text-align: center;
}

.staff-title {
  font-size: 2em;
  color: #3e6d6c;
  margin-bottom: 10px;
}

.staff-lead {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.8;
}

.staff-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.staff-item {
  background: #fff;
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  padding: 20px;
  width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.staff-item:hover {
  transform: translateY(-5px);
}

.staff-item .icon {
  font-size: 2.4em;
  margin-bottom: 10px;
  display: block;
  color: #007b8a;
}

.staff-item p {
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
}

/* 🌿 ご利用についてセクション */
.process {
  background-color: #fffdf8;
  padding: 60px 20px;
  text-align: center;
}

.process h2 {
  color: #5a4635;
  font-size: 1.8em;
  border-bottom: 2px solid #f6c9a1;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 40px;
}

/* 左右2カラム */
.process .brochure-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

/* 左：テキストブロック */
.process .brochure-text {
  flex: 1 1 400px;
  text-align: left;
}

.process-block {
  margin-bottom: 30px;
}

.process-block h3 {
  font-size: 1.2em;
  color: #3e6d6c;
  margin-bottom: 8px;
}

.process-block p {
  font-size: 1.05em;
  color: #555;
  line-height: 1.9;
}

/* 右：観葉植物の画像 */
.process .brochure-image-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.process .brochure-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* 🌿 やさしい背景セクション（淡ベージュ） */
.warm-section {
  background-color: #fff6e5;
}

/* 🌿 やさしい見出し（h2 や 資格セクション） */
.staff-title{
  display: inline-block;
  color: #5a4635;
  border-bottom: 2px solid #f6c9a1;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-size: 1.6em;
}

/* 🌿 見出し内の装飾テキスト */
.qualification-title .title-top {
  display: block;
  font-weight: normal;
  font-size: 0.9em;
  color: #888;
  margin-bottom: 5px;
}
.qualification-title .title-bottom {
  display: block;
  font-weight: bold;
  font-size: 1.3em;
}

/* 🌿 ボタン（今後の拡張に） */
.button-warm {
  background-color: #f6c9a1;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.button-warm:hover {
  background-color: #f4b88f;
}

/* 🌿 カード：優しい丸みと影（例：.who-card） */
.who-card {
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* 🌿 営業日・営業時間セクション */
.business-info {
  background-color: #fffdf8;
  padding: 50px 20px;
  text-align: center;
  border-top: 1px solid #f0e0d0;
}

.business-info h2 {
  font-size: 1.8em;
  color: #5a4635;
  margin-bottom: 30px;
  border-bottom: 2px solid #f6c9a1;
  display: inline-block;
  padding-bottom: 10px;
}

.business-info p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.8;
}

/* ✅ 24時間体制の強調メッセージ */
.business-info p:last-of-type {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 25px;
}

/* 🌐 訪問エリアセクション */
.area-info {
  padding: 40px 20px;
  text-align: center;
}

.area-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.area-map {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1em;
  color: #333;
  line-height: 1.6;
}




/* 🌿 資格セクション背景 */
.qualification-section {
  background-color: #fffaf2;
  padding: 60px 20px;
  text-align: center;
}

/* 🌿 資格タイトル */
.qualification-title {
  margin-bottom: 30px;
}

.qualification-title .title-top {
  display: block;
  font-weight: normal;
  font-size: 1em;
  color: #888;
  margin-bottom: 5px;
}

.qualification-title .title-bottom {
  display: block;
  font-weight: bold;
  font-size: 1.5em;
  color: #5a4635;
  border-bottom: 2px solid #f6c9a1;
  display: inline-block;
  padding-bottom: 6px;
}

/* 🌿 資格リスト */
.qualification-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto 20px auto;
  text-align: left;
}

.qualification-list li {
  font-size: 1.1em;
  padding: 10px 0;
  border-bottom: 1px solid #e0d6c9;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 🌿 補足テキスト */
.qualification-note {
  font-size: 1em;
  color: #5a4635;
  margin-top: 20px;
}


/* 🌿 医療DXセクション背景 */
.dx-announcement {
  background-color: #fffef9;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  border-top: 2px solid #f6c9a1;
  border-bottom: 2px solid #f6c9a1;
}

/* 見出し */
.dx-announcement h2 {
  font-size: 2em;
  color: #5a4635;
  margin-bottom: 40px;
  border-bottom: 2px solid #f6c9a1;
  display: inline-block;
  padding-bottom: 8px;
}

/* フレックスレイアウト */
.dx-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* 左画像 */
.dx-image {
  flex: 1 1 350px;
  max-width: 400px;
}
.dx-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 右テキスト */
.dx-text {
  flex: 1 1 500px;
  max-width: 600px;
  font-size: 1.05em;
  color: #444;
  text-align: left;
  line-height: 1.8;
}

.dx-text ol {
  margin: 1em 0;
  padding-left: 1.2em;
}
.dx-text li {
  margin-bottom: 0.8em;
}

.dx-text p:last-of-type {
  text-align: right;
  font-size: 0.95em;
  margin-top: 2em;
  color: #555;
}

/* 🌿 お問い合わせセクション */
.contact {
  background-color: #fffdf9;
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2em;
  color: #3e6d6c;
  margin-bottom: 20px;
  border-bottom: 2px solid #f6c9a1;
  display: inline-block;
  padding-bottom: 8px;
}

.contact p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 20px;
}

.contact-info {
  background: #e0f2f1;
  border-radius: 12px;
  padding: 25px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  word-break: keep-all;
}

.contact-info p {
  font-size: 1.1em;
  margin-bottom: 12px;
}

.contact-info strong {
  color: #333;
}

.contact-info a {
  color: #007B8A;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* 地図 iframe スタイル */
.map {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #eee;
}


iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}
/*  フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== 自費サービス ヒーローセクション ====== */
.private-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.private-hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.85);
}

.private-hero-content {
  padding: 20px;
  margin-top: 250px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  animation: fadeInUp 1.5s ease-out forwards;
}

.private-hero-content h2 {
  font-size: 3.5em;
  color: #ffecb3;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.private-hero-content p {
  font-size: 1.6em;
  color: #faf3e0;
}

/* ====== ラシクの特徴（共通カードスタイル） ====== */
.features {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 20px auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  width: 340px;
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
  font-size: 1.6em;
  color: #5a4635;
}

.feature-card p {
  font-size: 1.2em;
  color: #444;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }
.feature-card:nth-child(5) { animation-delay: 1s; }

/* ====== 料金セクション ====== */
.pricing {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fff5e1, #ffd6a5);
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 2.5em;
  color: #5a4635;
  margin-bottom: 15px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 90%;         
  max-width: 400px; 
  height: 4px;
  background: #ff7f50;
  margin: 10px auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 40px;
}

.price-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.price-card {
  width: 340px;
  background: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s forwards;
}

.price-card h3 {
  font-size: 1.6em;
  color: #5a4635;
}

.price-card .price {
  font-size: 1.4em;
  color: #e74c3c;
  margin-bottom: 10px;
}

.price-card .note {
  font-size: 1em;
  color: #333;
}

.extra-fees {
  margin-top: 20px;
  text-align: center;
  font-size: 1.2em;
  color: #5a4635;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== 共通アニメーション ====== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ====== 加算サポートページ用 CSS ====== */

/*  共通スタイル */
.support-hero,
.support-problems,
.support-details,
.support-table {
    text-align: center;
    padding: 60px 20px;
}

/*  ヒーローセクション */
.support-hero {
    position: relative;
    width: 100%;
    height: 50vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

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

.support-hero-content {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in 1.5s ease-out forwards;
}

.support-hero-content h2 {
  color: #ffffff; /* 白字 */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); 
  font-size: 2.5em;
}

.support-hero img {
  filter: brightness(0.85);
}

/*  お悩み解決セクション */
.support-problems {
    background: #fff3e0;
    padding: 50px 20px;
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 500px;
}

.problem-list li {
    font-size: 1.4em;
    padding: 10px;
    margin-bottom: 10px;
    background: #ffbd69;
    border-radius: 12px;
    text-align: center;
    color: #5a4635;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.solution-text {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 20px;
    color: #d35400;
}

/*  加算の種類と概要 */
.support-details {
    background: linear-gradient(135deg, #f0f8ff, #d1e7ff);
}

.support-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.support-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 340px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in 1.5s ease-out forwards;
}

.support-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #37474f;
}

.support-card p {
    font-size: 1.2em;
    color: #5a4635;
}

/*  加算による例（縦向き表） */
.support-table {
    background: #f9f9f9;
}

.support-table table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.support-table th,
.support-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 1.2em;
}

.support-table th {
    background: #00a4e4;
    color: #fff;
}

.support-table td {
    background: #fff;
}

/*  強調表示「増収額」 */
.total-revenue {
  font-size: 1.8em;  
  font-weight: bold;  
  color: #d9534f;  
  text-align: center;  
  margin-top: 15px;  
  padding: 10px;
  background: rgba(255, 230, 230, 0.8);  
  border-radius: 8px;  
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  
  animation: fadeInUp 1s ease-in-out;  
}

/*  加算に必要な書類セクション */
.required-documents {
  background: #fff9f3;
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  max-width: 800px;
}

/* タイトルのスタイル */
.required-documents h2 {
  font-size: 2em;
  color: #5a4635;
  margin-bottom: 20px;
}

/* 箇条書きリストのスタイル */
.required-documents ul {
  text-align: left;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 600px;
}

/* 各項目のスタイル */
.required-documents li {
  font-size: 1.2em;
  color: #333;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* サブリスト（加算Ⅰ・Ⅱの説明）のデザイン */
.required-documents ul ul {
  padding-left: 20px;
}

.required-documents ul ul li {
  font-size: 1.1em;
  color: #5a4635;
  position: relative;
}

/* アニメーション（フェードイン効果） */
.required-documents.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.required-documents.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/*  まずはお気軽にご相談ください */
.contact-info {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb); /* 優しいブルー系 */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 40px auto;
  max-width: 800px;
}

.contact-info h2 {
  font-size: 2em;
  color: #01579b; 
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 1.2em;
  color: #333;
  font-weight: bold;
}

/*  フェードインアニメーション */
@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

/*  アニメーション */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== 共通背景パターン（companyページ） ====== */
body.company-page {
  background: #f8f9fa url('../img/26038098.jpg') repeat; 
  background-size:  auto;
  background-attachment: fixed;
  color: #333;
}

/* ====== 会社概要 ヒーローセクション ====== */
.company-hero {
  position: relative;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.company-hero .hero-text {
  z-index: 2;
  position: static;
  text-align: center;
  width: 100%;       
  max-width: 800px;
}

.company-hero h2 {
  font-size: 2.5em;
  color: #444;
  margin: 15px 0 20px 0;
}

.company-hero p {
  font-size: 1.4em;
  color: #777;
}

/* ====== 会社情報セクション ====== */
.company-profile {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.company-profile .section-title {
  font-size: 2.5em;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.company-profile .section-title::after {
  content: "";
  display: block;
  width: 340px;
  height: 3px;
  background-color: #ffc107;
  margin: 10px auto 0;
  border-radius: 2px;
}

.company-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.company-info-list {
  list-style: none;
  padding: 0;
}

.company-info-list li {
  font-size: 1.2em;
  margin-bottom: 20px;
  line-height: 1.6;
}

.company-info-list a {
  color: #007BFF;
  text-decoration: none;
}

.company-info-list a:hover {
  text-decoration: underline;
}

/* 親要素を横並びにする */
.horizontal-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px; 
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 左側リストのスタイル */
.company-info-list {
  flex: 1;
  list-style: none;
  padding: 0;
}

.company-info-list li {
  font-size: 1.2em;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ロゴ */
.section-logo {
  flex: 0 0 250px; 
  display: flex;
  justify-content: flex-end;
}

.company-logo {
  width: 75%;
  max-width: 250px; 
  height: auto;
  border-radius: 12px;
}

/* ===============================
  ソーシャルグッドページ専用スタイル
  =============================== */

/*  ヒーローセクション */
body.socialgood-page .hero-section {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.socialgood-page .hero-image {
  width: 100%;
  height: 85vh;
  display: block;
  object-fit: cover; 
}

.socialgood-page .hero-section .hero-text {
  position: absolute;
  z-index: 2;
  color: #fff;
}

.socialgood-page .hero-section .hero-text h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.socialgood-page .hero-section .hero-text p {
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  text-align: center;
}

/*  メインコンテンツ */
.socialgood-page .content-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.socialgood-page .content-section p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
}

.socialgood-page .social-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #444;
  border-bottom: 2px solid #ffc107;
  display: inline-block;
  padding-bottom: 10px;
}

.socialgood-page .social-title::after {
  content: none; 
}

/*  ユヌスの7原則リスト */
.socialgood-page .principles-list {
  list-style: none; 
  padding-left: 0;
  margin-bottom: 40px;
  counter-reset: number;
}

.socialgood-page .principles-list li {
  position: relative;
  padding-left: 2.5em; 
  margin-bottom: 20px;
  font-size: 1.15rem;
  color: #333;
  line-height: 1.6;
}

/*  番号部分 */
.socialgood-page .principles-list li::before {
  content: counter(number) ".";
  counter-increment: number;
  position: absolute;
  left: 0;
  top: 0; 
  color: #ffc107;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.6;
}

/*  カウンター初期化 */
.socialgood-page .principles-list {
  counter-reset: number;
}


/*  主な取り組みリスト */
.socialgood-page .initiatives-list {
  counter-reset: initiatives-counter;
  list-style: none;
  padding-left: 0;
  margin-bottom: 40px;
}

.socialgood-page .initiatives-list li {
  position: relative;
  padding-left: 40px; 
  margin-bottom: 25px;
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
}

/*  番号部分のデザイン */
.socialgood-page .initiatives-list li::before {
  content: counter(initiatives-counter) ".";
  counter-increment: initiatives-counter;
  position: absolute;
  left: 0;
  top: 0;
  color: #ffc107; 
  font-weight: bold;
  font-size: 1.2rem;
}

/*  リンクデザイン */
.socialgood-page .initiatives-list a {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.1rem;
  color: #007bff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.socialgood-page .initiatives-list a:hover {
  color: #0056b3;
}


/*  お問い合わせ文 */
.socialgood-page .contact-info {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 60px;
  margin-bottom: 80px;
  color: #333;
}

/*  お知らせ */
.news-page .topics-section {
  padding: 2em;
}
.news-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 2em;
  margin-bottom: -1.5em;
  color: #333;
}
.news-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.news-page {
  flex: 1;
}

.pagination {
  text-align: center;
  margin-top: 2em;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  border-radius: 6px; /* ← 角丸 */
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #f59e0b; /* オレンジ系 */
  color: #fff;
  border-color: #f59e0b;
}

.pagination .current {
  background-color: #f59e0b; /* 現在のページ */
  color: #fff;
  border-color: #f59e0b;
  font-weight: bold;
}


/*  投稿ページ */
.single-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.single-page {
  flex: 1;
  padding: 40px 20px;
}

.single-page {
  padding: 40px 20px;
}

.single-post h1,
.single-post .post-date,
.single-post .post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.post-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.post-content {
  line-height: 1.8;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 10px;
  font-size: 0.9rem;
}

.post-nav .prev,
.post-nav .next {
  color: #0073aa;
}

.post-nav .prev a,
.post-nav .next a {
  text-decoration: none;
}

.post-nav .prev a:hover,
.post-nav .next a:hover {
  text-decoration: underline;
}


/* ====== レスポンシブ対応 ====== */
@media (min-width: 1025px) {
  .hero-content {
    position: absolute;
    top: auto;
    bottom: 5%; 
    right: 5%; 
    text-align: right; 
    width: auto;
    height: auto;
  }
  .assist-title {
    font-size: 2.2em;  
  }
}

/* タブレット対応（1024px以下） */
@media (max-width: 1024px) {
  .scroll-inner {
    display: flex;
    flex-direction: column;
  }

  .scroll-left,
  .scroll-right-wrapper {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .scroll-left {
    font-size: 5vw; /* 少し小さめだが読みやすく */
    padding: 80px 30px 40px 30px;
    text-align: center;
    line-height: 1.6;
  }

  .scroll-right-wrapper {
    padding: 30px 24px 60px 24px;
  }

  .scroll-right {
    padding-top: 60px;
    font-size: 1.6rem;  /* スマホより大きめ */
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 中央寄せ */
    align-items: center;
  }

  .scroll-right h2{
    text-align: center;
    max-width: 90%;
  }

  .scroll-right p {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 1.2em;
    text-align: center;
    max-width: 90%;
  }

  .service-cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
    max-width: 400px;
  }

  /* りーしゅヒーロー */
  .nursing-hero {
    height: 75vh;
  }

  .nursing-hero img {
    object-position: 64% bottom;
  }

  .nursing-hero-content h2 {
    font-size: 2.5em;
  }

  .nursing-hero-content p {
    font-size: 1.5em;
  }
  .who-card {
    width: 45%;
    font-size: 1.2em;
  }

  /* 自費サービス *//* ラシク特徴セクション */
  .private-hero-content {
    margin-top: 150px; 
  }
  .feature-card {
    width: 100%;
  }
  .features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .feature-card:nth-child(4),
  .feature-card:nth-child(5) {
    grid-column: span 2;
  }
  .price-cards,
  .corporate-details {
    flex-direction: column;
    align-items: center;
  }
  .staff-title {
    white-space: nowrap;
  }
  .features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: auto auto; 
    gap: 20px;
    justify-content: center;
  }
/* ====== 会社概要 ====== */
  .company-profile {
    padding: 40px 15px;
  }

  .company-profile .section-title {
    font-size: 2em;
  }

  .company-profile .section-title::after {
    width: 250px;
  }

  .horizontal-layout {
    flex-direction: column; 
    padding: 20px;
  }

  .section-logo {
    justify-content: center; 
    margin-top: 20px;
  }

  .company-logo {
    width: 60%;
    max-width: 200px;
  }

  /* ソーシャルグッド */
  .socialgood-page .hero-section {
    height: 60vh;
  }

  .socialgood-page .hero-image {
    height: 60vh;
  }

  .socialgood-page .hero-section .hero-text h2 {
    font-size: 2.5rem;
  }

  .socialgood-page .hero-section .hero-text p {
    font-size: 1.3rem;
  }

  .socialgood-page .content-section {
    margin: 40px auto;
    padding: 0 15px;
  }
}

/* ナビゲーションのモバイル対応（768px以下） */
@media (max-width: 768px) {
  body {
    margin-left: 0; /* モバイルではオフセット解除 */
  }
  html, body {
    margin: 0;
    padding: 0;
  }
  .header {
    height: auto;
    background-color: rgba(255, 175, 0, 0.9); 
    flex-direction: row;
    justify-content: space-between;
    position: static;
  }
  .navbar, .header {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    transition: all 0.3s ease-in-out;
    z-index: 10;
  }
  .nav-links li a {
    color: #fff;
    padding: 15px 0;
    text-align: center;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links.expanded {
    height: auto; 
    padding-bottom: 50px; 
  }
  .hero img {
    object-fit: cover;
    object-position: 15% 100%;
  }
  .hero-text {
    top: 50px; 
    font-size: 1.2em;
  }

    /* ✅ scroll-inner を縦並びに変更 */
    .scroll-inner {
      display: block !important;
    }
  
    /* ✅ セクション本体：初期は非表示 → フェードイン対象 */
    .scroll-section {
      opacity: 0;
      transform: translateY(10vh);
      transition: transform 0.6s ease-out, opacity 0.6s ease-out;
      will-change: transform, opacity;
      height: auto !important;
      overflow: visible !important;
      margin-bottom: 0 !important;
    }
  
    .scroll-section:last-of-type {
      margin-bottom: 0 !important;
    }
  
    /* ✅ フェードイン完了後の状態 */
    .scroll-section.visible {
      opacity: 1;
      transform: translateY(0);
    }
  
    /* ✅ 共通：左右カラムの基本リセット */
    .scroll-left,
    .scroll-right-wrapper {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
      pointer-events: auto !important;
      height: auto !important;
      overflow: visible !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
  
    .scroll-left,
    .scroll-right {
      max-width: 320px; 
      width: 100%;
      margin: 0 auto; 
      box-sizing: border-box;
      padding-left: 22px;
      padding-right: 12px;
      text-align: left; 
      word-break: break-word;
      align-items: center;
    }

  
    /* ✅ 左側テキスト調整 */
    .scroll-left {
      padding-top: 80px;
      padding-bottom: 40px;
      line-height: 1.6;
      font-size: 1.7rem !important;
      opacity: 0;
      transform: translateY(20px);
      transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    }
  
    .scroll-section.visible .scroll-left {
      opacity: 1;
      transform: translateY(0);
    }
  
    /* ✅ 右カラムラッパー調整 */
    .scroll-right-wrapper {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
      display: flex;
      justify-content: center;
      max-height: none !important;
      overflow: visible !important;
    }
  
    /* ✅ 右側文章本体 */
    .scroll-right {
      padding-top: 40px;
      padding-bottom: 30px;
      font-size: 1.5rem !important;
      line-height: 1.8;
      opacity: 0;
      transform: translateY(20px);
      transition: transform 0.6s ease-out 0.1s, opacity 0.6s ease-out 0.1s;
    }
  
    .scroll-section.visible .scroll-right {
      opacity: 1;
      transform: translateY(0);
    }
  
    /* ✅ 右側段落ごとの調整 */
    .scroll-right p:first-of-type {
      padding-left: 22px;
      margin-left: 0;
      text-indent: 0;
    }
  
    .scroll-right p:not(:first-of-type) {
      padding-left: 20px;
      margin-left: 0;
      text-indent: 0;
    }
  
    .scroll-right p {
      font-size: 1.27rem;
      margin: 0 0 1.2em 0;
      line-height: 1.8;
      word-break: break-word;
    }
  
    .scroll-right h2 {
      font-size: 3rem;
      margin-bottom: 1rem;
      text-align: center;
    }
  
    /* ✅ テキスト全体に左寄せ指定 */
    .scroll-right h2,
    .scroll-right p,
    .scroll-left p {
      text-align: left !important;
    }
  
  

  .greeting-container {
    flex-direction: column;
    text-align: left;
    gap: 20px;
  }
  .greeting-text {
    max-width: 100%;
    font-size: 1em;
    padding: 0 15px;
    text-align: left; 
  }
  .greeting-text h2 {
    font-size: 1.6em;
    text-align: left; 
  }

  /* りーしゅページ */
  .nursing-hero {
    height: 75vh;
    background-color: #f9f9f9;
    z-index: 1;
  }
  .nursing-hero img {
    height: 100%;
    object-fit: cover;
    object-position: 64% bottom;
    transform: none; 
  }

  .logo-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    z-index: 1000;
    display: block;
    opacity: 1;
  }

  .logo-overlay img {
    width: 180px; /* スマホでは少し小さめに調整 */
  }

  .nursing-hero-content {
    bottom: 8%;
  }

  .nursing-hero-content h2 {
    font-size: 2em; 
  }
  .nursing-hero-content p {
    font-size: 1.5em;
    line-height: 2;
  }
  .brochure-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .process .brochure-text {
    flex: 1 1 auto !important;
    margin-bottom: 10px;
  }
  .brochure-text {
    margin: 0;
    padding: 0;
  }
  .process-block {
    margin-bottom: 0; /* ✅ テキストの下余白を消す */
  }

  .brochure-text p {
    margin-bottom: 10px; /* ✅ 各段落の余白もやや詰める */
  }
  .brochure-image {
    width: 85%;
    height: auto;
    margin: 0 auto;
  }
  .brochure-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    width: 100%;
  }
  .staff-title {
    display: flex;
    flex-direction: column;  
    text-align: center;
    font-size: 1.3em;
  }
  .staff-title .title-top {
    font-size: 1.1em;  
    font-weight: bold;
  }
  .staff-title .title-bottom {
    font-size: 1.1em;  
    font-weight: bold;
    margin-top: 3px;   
  }
  .staff-list {
    flex-direction: column;
    align-items: center;
  }
  .staff-item {
    width: 80%;
    height: auto;
    justify-content: center;
  }
  .qualification-title {
    display: flex;
    flex-direction: column;  
    text-align: center;
    font-size: 1.4em;
  }
  .qualification-title .title-top {
    font-size: 1em;  
    font-weight: bold;
  }
  .qualification-title .title-bottom {
    font-size: 1.3em;  
    font-weight: bold;
    margin-top: 3px;   
  }
  .assist-title {
    font-size: 1.8em;  
  }
  .business-info {
    padding-bottom: 80px; 
  }
  .dx-flex {
    flex-direction: column;
    align-items: center;
  }

  .dx-image {
    width: 100%;
    margin-top: 30px;
    justify-content: center;
  }

  .dx-image img {
    width: 90%;
    height: auto;
    max-height: 500px;
    margin: 0 auto;
  }

  .dx-text {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .dx-announcement h2 {
    font-size: 1.6rem;
  }
  .map iframe {
    height: 200px; 
  }

  .contact {
    margin-bottom: 80px;  
  }

  /* 自費セクション */
  .private-hero-content {
    margin-top: 80px; 
  }
  .private-hero-content h2 {
    font-size: 1.8em;
    line-height: 1.4;
  }
  .private-hero-content p {
    font-size: 1.2em;
    line-height: 1.6;
  }
  .features-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .price-cards {
    width: 100%;
  }
  .corporate-details {
    width: 100%;
  }

  /* 加算セクション */
  .support-hero {
    height: 60vh;
  }

  .support-hero-content {
    margin-top: 80px; 
    padding: 15px;
  }

  .support-hero-content h2 {
    font-size: 2em;
    line-height: 1.4;
  }

  /*  お悩み解決セクション */
  .problem-list {
    max-width: 90%;
  }

  .problem-list li {
    font-size: 1.2em;
    padding: 8px;
  }

  .solution-text {
    font-size: 1.2em;
    margin-top: 15px;
  }

  /*  加算の種類と概要 */
  .support-cards {
    flex-direction: column;
    align-items: center;
  }

  .support-card {
    width: 90%;
    padding: 20px;
  }

  .support-card h3 {
    font-size: 1.4em;
  }

  .support-card p {
    font-size: 1em;
  }

  /*  加算による例（表） */
  .support-table table {
    width: 95%;
  }

  .support-table th,
  .support-table td {
    font-size: 1em;
    padding: 10px;
  }

  /*  必要書類セクション */
  .required-documents {
    padding: 30px 15px;
    margin: 20px auto;
  }

  .required-documents h2 {
    font-size: 1.8em;
  }

  .required-documents li {
    font-size: 1em;
  }

  /*  お問い合わせ情報 */
  .contact-info {
    padding: 30px 15px;
  }

  .contact-info h2 {
    font-size: 1.8em;
  }

  .contact-info p {
    font-size: 1.1em;
  }

  /* ====== 会社概要 ====== */
  .company-hero {
    height: 40vh;
    padding: 20px 10px;
  }

  .company-hero .hero-text {
    z-index: 2;
    position: static;
  }

  .company-hero h2 {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .company-hero p {
    font-size: 1em;
  }

  .horizontal-layout {
    flex-direction: column; 
    align-items: center;
    padding: 20px;
  }

  .company-profile {
    margin-top: 40px;
    padding: 30px 10px;
  }

  .company-profile .section-title {
    font-size: 1.8em;
    margin-top: 0;
  }

  .company-profile .section-title::after {
    width: 200px;
  }

  .company-info-list li {
    font-size: 1em;
  }

  .section-logo {
    justify-content: center;  
    margin-top: 20px;         
  }

  .company-logo {
    width: 60%;
    max-width: 200px;
  }

  .company-card {
    padding: 20px;
  }

  /* ソーシャルグッド*/
  .socialgood-page .hero-section {
    height: 50vh;
  }

  .socialgood-page .hero-image {
    height: 50vh;
  }

  .socialgood-page .hero-section .hero-text {
    top: 55%;
  }

  .socialgood-page .hero-section .hero-text h2 {
    font-size: 1.2rem;
  }

  .socialgood-page .hero-section .hero-text p {
    font-size: 1rem;
  }

  .socialgood-page .social-title {
    font-size: 1.2rem;
  }

  .socialgood-page .principles-list li {
    padding-left: 2.2em; 
    font-size: 1rem; 
    line-height: 1.6;
  }

  .socialgood-page .initiatives-list li {
    font-size: 1rem;
    padding-left: 30px;
  }

  .socialgood-page .principles-list li::before {
    font-size: 1.1rem;
    top: 0.2em; 
  }

  .socialgood-page .initiatives-list li::before {
    font-size: 1rem;
    left: 0;
  }

  .socialgood-page .initiatives-list a {
    font-size: 0.95rem;
  }

  .socialgood-page .contact-info {
    font-size: 1rem;
    margin-top: 40px;
    margin-bottom: 100px;
  }
}

/* スマホ対応（480px以下） */
@media (max-width: 480px) {
  .hero {
    height: 90vh;
  }
  .hero-content h2 {
    font-size: 2em;
  }
  .hero-content p {
    font-size: 1em;
  }
  .card{
    width: 100%;
    max-width: 400px;
  }
  .about h2 {
    font-size: 1.7em;
  }
  .footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
  }
  .footer p {
    font-size: 0.8em;
  }

/* りーしゅページ */
  .assist-title {
    font-size: 1.3em;  
  }
  .who-card {
    width: 100%;
  }
/* 自費サービス */
  .card, .feature-card {
    width: 100%;
    max-width: 400px;
  }
  .private-hero {
    height: 90vh;
  }
  .private-hero-content {
    margin-top: 215px; 
  }
  .private-hero-content h2 {
    font-size: 1.55em;
    margin-bottom: 15px;
  }
  .private-hero-content p {
    font-size: 1.2em;
  }
  .section-title {
    font-size: 1.95em; 
  }
  .price-cards {
    flex-direction: column;
    align-items: center;
  }
  .corporate-service {
    padding: 40px 15px;
  }
  .corporate-service .section-title {
    font-size: 2em; 
  }
  .corporate-service .section-subtitle {
    font-size: 1.4em;
  }
  .corporate-details {
    flex-direction: column;
    align-items: center;
  }
/*加算サポートサービス*/
  .support-hero {
    height: 50vh;
  }
  .support-hero-content {
    margin-top: 60px;
    padding: 10px;
  }
  .support-hero-content h2 {
    font-size: 1.6em;
  }
/*  お悩み解決セクション */
  .problem-list li {
    font-size: 1em;
    padding: 8px;
  }
  .solution-text {
    font-size: 1em;
  }
/*  加算の種類と概要 */
  .support-card {
    width: 100%;
  }
  .support-card h3 {
    font-size: 1.3em;
  }
  .support-card p {
    font-size: 0.95em;
  }
/*  加算による例（表） */
  .support-table table {
    width: 100%;
  }
  .support-table th,
  .support-table td {
    font-size: 0.95em;
    padding: 8px;
  }
/*  必要書類セクション */
  .required-documents {
    padding: 20px 10px;
  }
  .required-documents h2 {
    font-size: 1.6em;
  }
  .required-documents li {
    font-size: 0.95em;
  }
/*  お問い合わせ情報 */
  .contact-info {
    padding: 20px 10px;
  }
  .contact-info h2 {
    font-size: 1.6em;
  }
  .contact-info p {
    font-size: 1em;
  }

    /* ====== 会社概要 ====== */
    .company-hero {
      height: 30vh;
    }
  
    .company-hero h2 {
      font-size: 1.6em;
    }
  
    .company-hero p {
      font-size: 1em;
    }
  
    .horizontal-layout {
      padding: 15px;
    }
  
    .company-info-list li {
      font-size: 0.9em;
      margin-bottom: 15px;
    }
  
    .company-logo {
      width: 80%;
      max-width: 150px;
    }

    /* ソーシャルグッド*/
    .socialgood-page .hero-section {
      height: 40vh;
    }

    .socialgood-page .hero-image {
      height: 40vh;
    }

    .socialgood-page .hero-section .hero-text h2 {
      font-size: 1.5rem;
    }

    .socialgood-page .hero-section .hero-text p {
      font-size: 0.9rem;
    }

    .socialgood-page .content-section {
      margin: 30px auto;
      padding: 0 10px;
    }

    .socialgood-page .principles-list li {
      font-size: 0.9rem;
      padding-left: 2em;
    }

    .socialgood-page .initiatives-list li {
      font-size: 0.9rem;
      padding-left: 25px;
    }


    .socialgood-page .principles-list li::before {
      font-size: 1rem;
      top: 0.01em; 
    }

    .socialgood-page .initiatives-list li::before {
      font-size: 0.95rem;
    }

    .socialgood-page .contact-info {
      font-size: 1.15rem !important;
      margin-top: 30px !important;
      margin-bottom: 120px !important;
      max-width: 300px;
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }
}
