/* -------------------------------
   TOPページ(index.php)専用CSS
-------------------------------- */
.main-visual {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 65vh;
  width: 100vw;
  padding: 32px 0;
  text-align: center;
  background: #ffffff;
  border-radius: 0px 0px 48px 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  width: 100%;
  flex-wrap: wrap;
  padding: 48px 16px;
  text-align: left;
}

.hero-title h2:first-child {
  font-size: 56px;
  color: #649cb9;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  font-feature-settings: 'palt';
}

.hero-title h2:last-child {
  font-size: 32px;
  color: #649cb9;
  margin: 8px 0 0;
  font-weight: 500;
  font-feature-settings: 'palt';
}

.hero-catch p {
  font-size: 32px;
  font-weight: bold;
  color: #767982;
  margin: 0;
  line-height: 1.4;
  font-feature-settings: 'palt';
}

@media screen and (max-width: 768px) {

  .main-visual {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-text {
    flex-direction: column;
    gap: 24px;
    padding: 12px 12px;
    text-align: center;
  }

  .hero-title h2:first-child {
    font-size: 2.5rem;
    line-height: 1.3;
    margin: 0;
  }

  .hero-title h2:last-child {
    font-size: 1.5rem;
    margin: 4px 0 0;
    line-height: 1.4;
  }

  .hero-catch p {
    font-size: 1.2rem;
    margin: 8px 0 0;
    line-height: 1.5;
  }
}

/* 背景を見せるための余白 */
.visual-spacer {
  height: 300px; /* 好きな高さに調整 */
  width: 100%;
  background-color: transparent;
}

/* -------------------------------
   動画セクション(ループ)
-------------------------------- */
.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(var(--vh, 1vh) * 100); /* 画面の高さに合わせて中央配置 */
  box-sizing: border-box;
}

/* ---------------------------------------
   スマホ版はスペーサーと動画セクションを狭める
---------------------------------------- */
@media screen and (max-width: 1023px) {
  .visual-spacer {
    /* display: none; */
    height: 20vh;       /* スマホ用は高さを低くしてるが、高さ要らないなら display:none で */
    width: 100%;
    background-color: transparent;
  }

  /* 動画セクションの高さを狭める */
  .video-wrapper {
    height: 250px; /* 任意の高さに調整 */
    min-height: calc(var(--vh, 1vh) * 50); /* 画面の高さに合わせて中央配置 */
    overflow: hidden; /* はみ出し防止（必要に応じて） */
  }
}

/* -------------------------------
   特徴セクション
-------------------------------- */
.features-box {
  background-color: #e3f5ff;
  border-radius: 24px;
  padding: 48px;
  max-width: 960px;
  margin: 0 auto 80px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.features-title {
  font-size: 29px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 0.05em;
  /* color: #6e6e71; */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ← 横2列 */
  grid-template-rows: repeat(2, auto);   /* ← 縦2行（高さは自動） */
  gap: 40px 32px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #d42020;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.feature-item p {
  font-size: 19px;
  /* color: #6e6e71; */
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .features-box {
    padding: 32px 24px;
  }
  .features-title {
    font-size: 24px;
  }
  .features-grid {
    gap: 32px 24px;
  }

  .feature-item h3 {
  font-size: 19px;
}

.feature-item p {
  font-size: 15px;
}


}

@media screen and (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr; /* ← スマホは縦並びで見やすく */
    grid-template-rows: auto;
  }
}

/* -------------------------------
   動画埋め込みセクション
-------------------------------- */
.video-feed-section {
  margin: 80px auto;
  max-width: 960px;
  padding: 0 16px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .video-feed-section {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 12px;
  }
}

/* -------------------------------
   お知らせセクション（スクロールあり）
-------------------------------- */
.section-info {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 24px;
  color: #649cb9;
}

.section-info h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.info-scroll-wrapper {
  max-height: calc(3 * 60px);
  overflow-y: auto;
  padding-right: 10px;
  border-radius: 6px;
  background-color: #fff;
}

ul.info-compact {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.info-compact li {
  font-size: 22px;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.5em 0;
  border-bottom: 1px dotted #ddd;
}

ul.info-compact li:last-child {
  border-bottom: none;
}

ul.info-compact .date {
  font-weight: bold;
  margin-right: 8px;
  color: #649cb9;
  font-size: 16px;
}

ul.info-compact a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
}

ul.info-compact a:hover {
  text-decoration: underline;
  color: #0073aa;
}


/* -------------------------------
  ラジオ宣伝
-------------------------------- */
.info-radio {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 24px;
  color: #333;
}

.info-radio h3 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 20px;
}


@media screen and (max-width: 768px) {
  .info-radio {
    padding: 30px 15px;
  }

  .info-radio h3 {
    font-size: 20px;
    text-align: left;
  }
}


/* -------------------------------
   メディアセクション（スクロールなし）
-------------------------------- */
.section-media {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 24px;
  color: #649cb9;
}

.section-media h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 20px;
}

ul.post-compact {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.post-compact li {
  font-size: 18px;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

ul.post-compact .date {
  font-weight: bold;
  margin-right: 8px;
  color: #649cb9;
  font-size: 16px;
}

ul.post-compact a {
  text-decoration: none;
}

/* 外部リンク */
ul.post-compact .external-link {
  color: #007acc;
  text-decoration: none;
}

ul.post-compact .external-link:hover {
  text-decoration: underline;
}

/* リンクなし */
ul.post-compact .no-link {
  color: #333;
}

.section-media .more-link a {
  font-size: 0.9em;
  color: #0073aa;
  text-decoration: none;
}

.section-media .more-link a:hover {
  color: #005177;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .section-info,
  .section-media {
    padding: 30px 15px;
    border: solid 1px;
  }

  .section-info h2,
  .section-media h2 {
    font-size: 20px;
  }

  ul.info-compact .date,
  ul.post-compact .date {
  font-size: 13px;
  }

  ul.info-compact a,
  ul.post-compact a {
    font-size: 14px;
  }

  .info-scroll-wrapper {
    max-height: 200px;
  }

  .section-space {
    height: 30px;
  }
}

/* -------------------------------
   概要セクション
-------------------------------- */
.service-section {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px auto;
  background-color: #e2f5ff;
  border-radius: 48px;
}

.service-image {
  flex: 1 1 400px;
  text-align: center;
}

.service-image img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-content {
  flex: 1 1 500px;
  padding: 40px;
  border-radius: 12px;
}

.service-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #507f99;
}

.service-content h3 {
  margin: 0.5rem 0;
  font-weight: 500;
}

.service-content ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.service-content ul li {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .service-section {
    /* flex-direction: column; */
    padding: 24px 16px;
    border-radius: 24px;
  }

  .service-image {
    width: 100%;
    height: 170px;
    margin-bottom: 24px;
  }

  .service-image img {
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .service-content {
    width: 100%;
    padding: 0;
  }

  .service-content h2 {
    font-size: 1.5rem;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 1rem;
  }

  .service-content h3 {
    font-size: 1.1rem;
    text-align: center;
    margin: 0.4rem 0;
  }

  .service-content ul {
    padding-left: 1.2rem;
    margin-top: 1rem;
  }

  .service-content ul li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }
}


/* -------------------------------
   LINEお問い合わせセクション
-------------------------------- */
.contact-box {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 30px;
  border-radius: 40px;
  background-color: #649cb9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #fff;
  font-family: 'Helvetica Neue', 'Noto Sans JP', sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  flex: 0 0 80px;
  text-align: center;
  margin-right: 30px;
}

.contact-icon img {
  width: 60px;
  height: auto;
}

.contact-text {
  flex: 1;
  min-width: 240px;
}

.contact-text h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.contact-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-text p:last-of-type {
  margin-bottom: 20px;
}

.contact-button {
  display: inline-block;
  background-color: #fff;
  color: #4FA7E9;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #e2f0ff;
}

/* -------------------------------
   サービス内容セクション
-------------------------------- */
.service-alternating {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: white;
  border-radius: 40px;
}

.main-title {
  text-align: center;
  font-size: 32px;
  color: #6e6e71;
}

.sub-title {
  text-align: center;
  font-size: 16px;
  color: #6e6e71;
  margin-bottom: 40px;
}

.service-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.service-block.reverse {
  flex-direction: row-reverse;
}

.image-side {
  flex: 1 1 400px;
  text-align: center;
  margin: 0 auto;
}

.image-side img {
  width: 90%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 0 auto; /* 中央寄せ */
  display: block;
}

.text-side {
  flex: 1 1 50%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center; /* ← 中央揃えに変更 */
}

.text-side h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #6e6e71;
}

.text-side p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .inheritance-message {
    white-space: nowrap;
  }

  .text-side p {
    text-align: left;
  }
}

.service-block.reverse .text-side {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.detail-button {
  display: inline-block;
  padding: 14px 20px;
  background-color: #649cb9;
  font-size: 18px;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.detail-button:hover {
  background-color: #87b3c9;
}

/* -------------------------------
   代表プロフィールセクション
-------------------------------- */
.profile-section {
  max-width: 1000px;
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  padding: 0 10px;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #e2f5ff;
}

.profile-image {
  flex: 1 1 400px;
  text-align: right;
}

.profile-image img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  object-fit : cover;
}

.profile-text {
  flex: 1 1 500px;
  color: #54849d;
}

.profile-text h1{
  color: #6e6e71;
}

.subtitle {
  font-size: 16px;
  margin-bottom: 25px;
  color: #6e6e71;
}

.profile-text h2 {
  margin-bottom: 10px;
}

.name-en {
  font-size: 16px;
  margin-left: 10px;
}

.role {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.detail-button {
  background-color: #649cb9;
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.detail-button:hover {
  background-color: #87b3c9;
}

.sns-link {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.sns-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
  }
  .profile-image, .profile-text {
    flex: 1 1 100%;
  }
  .profile-image img {
    max-width: 100%;
  }
}

/* セクション枠全体調整 */
.profile-section,
.service-section,
.service-alternating {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 60px;
}

/* -------------------------------
   よくある質問セクション
-------------------------------- */
section.faq-box {
  background-color: white;
  border-radius: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 64px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 80px;
}

.faq-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 32px;
}

.faq-item {
  border-bottom: 1px solid white;
  padding: 24px 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
}

.faq-question .q-icon {
  font-weight: bold;
  margin-right: 12px;
  color: #6e6e71;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  font-size: 16px;
  color: #6e6e71;
  margin-top: 16px;
  line-height: 1.6;
}

.faq-question .arrow {
  transition: transform 0.3s ease;
}

.active .faq-question .arrow {
  transform: rotate(180deg);
}

.active .faq-answer {
  display: block;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-question:hover {
  text-decoration: underline;
  text-decoration-color: #6e6e71;
}

/* -------------------------------
   お客様の声セクション
-------------------------------- */
.voice-section{
  background-color: rgba(208, 208, 208, 0.5); /* 半透明グレー */
  border-radius: 24px;
  padding: 20px 20px;
  max-width: 1088px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 80px;
}

.section-title{
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 0.05em
}

.voice-scroll-wrapper {
  display: flex;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

.voice-scroll-track {
  display: flex;
  white-space: nowrap;
  gap: 16px;
}

.voice-image {
  height: 240px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.voice-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* PC版：アニメーション */
@media (min-width: 769px) {
  .voice-scroll-track {
    animation: scrollLeft 45s linear infinite;
    width: calc(200%); /* 画像を2セット分 */
    width: max-content;
  }
}

/* スマホ版：手動スクロール＋1.2枚表示 */
@media (max-width: 768px) {
  .voice-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    padding-left: 16px;
    /* overflow: hidden; */
    width: 100%;
  }

  .voice-image {
    flex: 0 0 80%;
    scroll-snap-align: start;
    width: 90%;
    height: auto;
    margin-right: 16px;
    object-fit: cover;
    border-radius: 12px;
  }
}

/* PC版は右から左へ流れるアニメーション */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* -------------------------------
   対応エリアセクション
-------------------------------- */
section.area-section {
  background-color: white;
  border-radius: 24px;
  padding: 48px 64px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 80px; /* エリアセクション下にスペース */
}

.area-title {
  font-size: 28px;
  font-weight: 700;
  color: #6e6e71;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 0.05em;
}

.area-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
}

.area-label {
  min-width: 80px;
  font-weight: 600;
  font-size: 18px;
}

.area-content {
  font-size: 16px;
  line-height: 1.6;
  color: #6e6e71;
  flex: 1;
}

@media (max-width: 768px) {
  section.area-section {
    padding: 32px 24px;
  }
  .area-title {
    font-size: 24px;
  }

  .area-label {
    min-width: 80px;
    font-weight: 600;
    font-size: 16px;
  }

  .area-content {
  font-size: 14px;
  line-height: 1.6;
  color: #6e6e71;
  flex: 1;
  }

  .area-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

