/* 基本設定 */
:root {
  --main-color: #007bff; /* 青系 */
  --accent-color: #28a745; /* 緑系 */
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #e9ecef;
  --border-color: #dee2e6;
  --font-family-jp: "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-jp);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  scroll-behavior: smooth;
  padding-top: 50px; /* 固定ヘッダーの高さ分、コンテンツを下にずらす。必要に応じて調整 */
}

a {
  color: var(--main-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #fff;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  padding-bottom: 1rem;
  position: relative;
  margin-bottom: 2rem;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 1.3rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem; /* シニア層向けに少し大きめ */
  line-height: 1.8;
}

.section {
  padding: 4rem 0;
}

.section:nth-of-type(odd) {
  /* 奇数番目のセクションに背景色 */
  background-color: var(--light-bg);
}
.section:nth-of-type(even) {
  /* 偶数番目のセクションは白背景 */
  background-color: #fff;
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.primary-btn {
  background-color: var(--accent-color);
  color: #fff;
}

.primary-btn:hover {
  background-color: #218838; /* 少し濃い緑 */
}

.secondary-btn {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  margin-left: 1rem;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 固定ロゴ */
.fixed-logo {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000; /* 他の要素の上に表示 */
  border-radius: 5px; /* 角丸 */
}

.fixed-logo img {
  width: 200px; /* 通常サイズは200pxに設定 */
  height: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 影を追加 */
}

/* 固定ボタン */
.fixed-button {
  position: fixed;
  top: 10px; /* 画面上部から10px */
  right: 10px; /* 画面右部から10px */
  z-index: 1000; /* 他の要素の上に表示 */
  background-color: var(--main-color); /* メインカラーを背景に */
  color: #fff; /* 文字色を白に */
  padding: 10px 15px; /* 内側の余白 */
  border-radius: 5px; /* 角丸 */
  font-weight: 700; /* 太字 */
  font-size: 1rem; /* フォントサイズ */
  text-decoration: none; /* 下線なし */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 影を追加 */
  transition: background-color 0.3s ease, transform 0.2s ease; /* ホバー時のアニメーション */
}

.fixed-button:hover {
  background-color: #0056b3; /* ホバー時の背景色 */
  transform: translateY(-2px); /* わずかに上に移動 */
}

/* ヘッダー (ファーストビュー) */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://www.sjc.ne.jp/inuyama/images/hero_bg.png") no-repeat center
      center/cover;
  color: #fff;
  text-align: center;
  padding: 10rem 0 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* 画面の高さの70% */
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero .logo {
  /* ファーストビュー内のロゴは非表示にする */
  display: none;
}

.hero .sub-catch {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.youtube_video {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.video_wrapper {
  position: relative;
  width: 100%;
  max-width: 560px; /* 好きな最大幅に調整可 */
  aspect-ratio: 16 / 9;
}

.video_wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: none;
}

/* About Usセクション */

.section.about-us {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://www.sjc.ne.jp/inuyama/images/section_bg_about_us.png")
      no-repeat center center/cover;
}

.section.about-us .content-wrapper > p {
  font-size: 1.5rem;
  color: #dee2e6;
}

.about-us .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.about-us .feature-item {
  background-color: rgba(255, 255, 255, 0.85); /* 白でほぼ不透明 */
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.about-us .feature-item:hover {
  transform: translateY(-5px);
}

.about-us .feature-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.about-us .feature-item h3 {
  color: var(--main-color);
  font-size: 1.3rem;
}

/* メリットセクション */
.section.benefits {
  background-color: #9dc6f2;
}

.benefits .benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  list-style: none;
  margin-top: 2rem;
}

.benefits .benefit-list li {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.benefits .benefit-list li:hover {
  transform: translateY(-5px);
}

.benefits .benefit-list li img {
  width: 80px;
  height: 80px;
  margin-bottom: 0.8rem;
}

.benefits .benefit-list li h3 {
  color: var(--main-color);
  font-size: 1.2rem;
}

.benefits .benefit-list li p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* 会員の声セクション */
.section.voices {
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.3)),
    url("https://www.sjc.ne.jp/inuyama/images/section_bg_voice.png") no-repeat
      center center/cover;
}

.voices .content-wrapper {
  display: flex; /* Flexboxコンテナにする */
  flex-direction: column; /* 縦並びに設定 */
  gap: 2.5rem; /* 各voice-card間の余白 */
  align-items: center; /* 中央寄せ */
}

.voices .voice-card {
  background-color: rgba(255, 255, 255, 0.8); /* 白でほぼ不透明 */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%; /* 親要素の幅いっぱいに */
  max-width: 700px; /* 最大幅を設定して読みやすくする */
  text-align: center;
}

.voices .member-info {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--main-color);
  font-size: 1.1rem;
}

.voices blockquote {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
  padding: 0 1rem;
}

/* 活動内容セクション */
.section.activities {
  background-color: #9dc6f2;
}

.activities h3 {
  text-align: center;
  color: var(--accent-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.activities h3:first-of-type {
  margin-top: 0;
}

.activities .activity-list {
  /* 各リスト（お仕事、講習会、ボランティア）の共通スタイル */
  display: grid;
  gap: 2rem;
  list-style: none;
  margin-top: 2rem;
  justify-content: center; /* グリッド全体を中央に寄せる */
  padding: 0; /* ulのデフォルトpaddingをリセット */
}

.activities .activity-list.three-cols {
  /* 3列表示の項目 */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 3列横並び */
}

.activities .activity-list.one-col {
  /* 1列表示の項目 */
  grid-template-columns: 1fr; /* 強制的に1列 */
  max-width: 700px; /* 横幅を制限して中央寄せ */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem; /* 他のリストとの間に余白 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* 個別要素に影 */
  border-radius: 8px; /* 角丸 */
  background-color: #fff; /* 背景色 */
  padding: 0; /* liにpaddingがあるのでulのpaddingは不要 */
}

.activities .activity-list.one-col li {
  padding: 1.5rem;
  text-align: center;
  background-color: #fff; /* liの背景色も白に */
  box-shadow: none; /* 個別liの影は不要 */
  border-radius: 0;
}
/* one-col li のホバー効果を削除する場合は以下を追加 */
.activities .activity-list.one-col li:hover {
  transform: none;
}

.activities .activity-list li {
  /* 各リストアイテムの共通スタイル */
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.activities .activity-list li:hover {
  transform: translateY(-5px);
}

.activities .activity-list li img {
  width: 80px; /* アイコンサイズを少し大きく */
  height: 80px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 5px; /* 角丸にする */
}

.activities .activity-list li h4 {
  color: var(--main-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.activities .activity-list li p {
  font-size: 1rem;
  margin-bottom: 0;
}

.activities .activity-note {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.activities .matching-info {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-color);
  margin-top: 3rem;
}

/* 入会までのご案内セクション */
.guide-contact {
  background: url("https://www.sjc.ne.jp/inuyama/images/section_bg_step.png")
    no-repeat center center/cover;
}

.guide-contact h3 {
  text-align: center;
  color: var(--main-color);
  margin-bottom: 2rem;
}

.guide-contact .flow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.guide-contact .flow-step {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  flex: 1 1 220px; /* flex-basis for wrapping */
  min-width: 250px;
  position: relative;
  padding-top: 3rem;
}

.guide-contact .flow-step .step-number {
  background-color: var(--main-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  position: absolute;
  top: -25px; /* 半分はみ出す */
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.guide-contact .flow-step h4 {
  color: var(--accent-color); /* H4の色を調整 */
  font-size: 1.3rem;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

.guide-contact .flow-step p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.guide-contact .flow-step img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.guide-contact .contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.guide-contact .contact-item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.guide-contact .contact-item.full-width {
  grid-column: 1 / -1; /* 全幅を使用 */
}

.guide-contact .contact-item h4 {
  color: var(--main-color);
  margin-bottom: 1rem;
}

.hero-contact {
  background: url("https://www.sjc.ne.jp/inuyama/images/bnr_contact.png")
    no-repeat center center/cover;
}

.guide-contact .contact-item .phone-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.guide-contact .contact-item .btn {
  margin-top: 1rem;
  margin-left: 0; /* Override secondary-btn margin */
}

.guide-contact .contact-item .sub-info {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.8rem;
  line-height: 1.5;
}

.guide-contact .address-text {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.guide-contact .map-container {
  background-color: #fff; /* 親要素が白なので不要だが念のため */
  padding: 0; /* 親要素のpaddingで調整 */
  border-radius: 5px;
  overflow: hidden; /* iframeの角丸のため */
  margin-bottom: 0; /* address-textと統合するため */
}

.guide-contact .map-container iframe {
  border-radius: 5px; /* 親要素に角丸がある場合 */
  margin-bottom: 0;
}

/* メールフォーム削除に伴い、調整 */
.phone-contact-info {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.phone-contact-info h3 {
  color: #333;
  margin-bottom: 1rem;
}

.phone-contact-info .phone-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #330dcc;
  margin-bottom: 0.5rem;
}
.phone-contact-info p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* フッター */
footer {
  background: #1e2352;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-nav {
  margin-left: auto; /* 右寄せ */
  display: flex;
  gap: 15px; /* リンク間のスペース */
}

.footer-nav a {
  color: #fff;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 1rem;
  width: 100%; /* スマホで中央に */
}

.social-links img {
  width: 30px;
  height: 30px;
  margin: 0 8px;
  filter: invert(100%); /* 白抜きにする場合 */
  transition: transform 0.2s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

.copyright {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  body {
    padding-top: 40px; /* モバイルでの固定要素の高さ分調整 */
  }
  .fixed-logo {
    width: 80px; /* モバイルでロゴを80pxに設定 */
    height: auto;
    top: 5px;
    left: 5px;
  }
  .fixed-logo img {
    width: 100%;
  }
  .fixed-button {
    top: 5px;
    right: 5px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  p {
    font-size: 1rem;
  }
  .hero {
    padding: 8rem 0 6rem;
    min-height: unset;
  }
  .hero .sub-catch {
    font-size: 1.2rem;
  }
  /* .hero .logo { display: none; } Fixed logo takes over */

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    margin-left: 0;
    margin-bottom: 1rem; /* ボタンを縦に並べるため */
  }
  .secondary-btn {
    margin-left: 0;
  }
  .hero-content .btn:last-of-type {
    margin-bottom: 0;
  }

  .about-us .features-grid,
  .benefits .benefit-list,
  .activities .activity-list, /* activity-list もモバイルで1列に */
  .guide-contact .contact-info-grid,
  .guide-contact .flow-steps {
    grid-template-columns: 1fr;
  }

  .section.about-us .content-wrapper > p {
    font-size: 1rem;
  }

  .voices .content-wrapper {
    /* モバイルでは1列に */
    gap: 1.5rem; /* 余白も調整 */
  }
  .voices .voice-card {
    max-width: 100%;
  }

  .guide-contact .flow-step {
    padding-top: 2.5rem;
  }
  .guide-contact .flow-step .step-number {
    top: -20px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .guide-contact .contact-item.full-width {
    grid-column: auto; /* モバイルで全幅解除 */
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav {
    margin-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-nav a {
    display: block;
    margin: 0.5rem 0;
  }
  .social-links {
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .hero {
    padding: 6rem 0 4rem;
  }
  .hero .sub-catch {
    font-size: 1rem;
  }
  /* .hero .logo { display: none; } */
  .phone-contact-info .phone-number {
    font-size: 1.8rem;
  }
}
