/* ==============================
   カラーテーマ（CSS変数）
============================== */
:root {
  --green: #2c7a3f;
  --green-dark: #256535;
  --bg-gray: #f3f5f4;
}

/* ==============================
   ベース設定
============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #f7f7f7;
  line-height: 1.7;
}

/* リンク共通 */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 共通コンテナ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 見出し */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.4;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-primary {
  background: #2c7a3f;
  color: #fff;
  border-color: #2c7a3f;
}

.btn-primary:hover {
  background: #256535;
}

.btn-secondary {
  background: rgba(255,255,255,0.92);
  color: #2c7a3f;
  border-color: rgba(255,255,255,0.9);
}

.btn-secondary:hover {
  background: #fff;
}

.btn-outline {
  background: #fff;
  color: #2c7a3f;
  border-color: #2c7a3f;
}

.btn-sm {
  padding: 0.4em 1em;
  font-size: 0.85rem;
}

/* ==============================
   ヘッダー（上部固定）
============================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo a {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2c7a3f;
}

.site-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.site-nav a {
  color: #444;
  padding: 4px 0;
}

.site-nav a:hover {
  color: #2c7a3f;
  text-decoration: none;
}

.header-cta {
  flex-shrink: 0;
}

/* ==============================
   左サイドバー＋メインレイアウト
============================== */

.layout-with-sidebar {
  display: flex;
  align-items: flex-start;
  /* 上部ヘッダー分の余白 */
  padding-top: 64px;
}

/* サイドナビ */
.side-nav {
  position: fixed;
  top: 64px;  /* ヘッダーの下から */
  left: 0;
  bottom: 0;
  width: 260px;
  background: #ffffff;
  border-right: 1px solid rgba(0,0,0,0.06);
  padding: 16px 0;
  overflow-y: auto;
  z-index: 900;
}

.side-nav-inner {
  padding: 0 16px 24px;
}

.side-nav-logo a {
  display: block;
  margin-bottom: 16px;
  text-align: center;

}

.side-nav-logo-main {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #2c7a3f;
}

.side-nav-logo-sub {
  display: block;
  font-size: 0.75rem;
  color: #777;
}

.side-nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
}

.side-nav-menu li {
  margin-bottom: 6px;
}

.side-nav-menu a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.87rem;
  color: #444;
}

.side-nav-menu a:hover {
  background: #f0f5f2;
  color: #2c7a3f;
  text-decoration: none;
}

.side-nav-extra {
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 12px;
}

.side-nav-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.side-nav-extra ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.side-nav-extra li {
  margin-bottom: 4px;
}

.side-nav-extra a {
  color: #2c7a3f;
  text-decoration: underline;
}

.side-nav-contact-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f8f5;
}

.side-nav-contact-title {
  font-weight: 600;
  margin: 0 0 4px;
}

.side-nav-contact-tel {
  font-weight: 700;
  margin: 0 0 2px;
}

.side-nav-contact-time {
  margin: 0;
  font-size: 0.75rem;
}

/* メインコンテンツ */
.main-content {
  margin-left: 260px;  /* サイドバー分の余白 */
  width: 100%;
}

/* セクション共通 */
.section {
  padding: 64px 0;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}

.section p {
  margin-bottom: 1em;
}

/* ==============================
   ヒーロー（動画背景）
============================== */

.hero {
  position: relative;
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 暗めのオーバーレイ */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(10,20,10,0.70),
    rgba(10,20,10,0.55)
  );
  z-index: -1;
}

.hero-inner {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-text {
  max-width: 680px;
   background: rgba(0, 0, 0, 0.45); /* 半透明の黒 */
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
   backdrop-filter: blur(2px);
}

.hero-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 12px;
}

.hero p {
  font-size: 0.95rem;
}

.hero-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==============================
   「選ばれる理由」
============================== */

.section-reason {
  background: #ffffff;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.reason-item {
  background: #f9faf9;
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.reason-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

/* ==============================
   研修後の未来
============================== */

.section-future {
  background: #f3f5f4;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.future-column h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}

.future-column ul {
  margin: 0;
  padding-left: 1.1em;
}

.future-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #666;
}

/* ==============================
   研修内容（1日の流れ＋年間）
============================== */

.section-program {
  background: #ffffff;
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
}

.program-day,
.program-year {
  background: #f9faf9;
  border-radius: 14px;
  padding: 18px 18px 20px;
}

.program-time {
  display: flex;
  margin: 0 0 4px;
}

.program-time dt {
  width: 4em;
  font-weight: 600;
}

.program-time dd {
  margin: 0;
}

.program-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
}

/* ==============================
   研修生の声
============================== */

.section-voices {
  background: #f3f5f4;
}

.voices-intro {
  max-width: 720px;
}

.voices-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.voice-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  font-size: 0.92rem;
  text-align: center;

}

.voice-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;

  /* ✅ ここが超大事：中央寄せ */
  margin: 0 auto 0.6rem;  /* 左右オート → 中央寄せ */

  /* これはあってもなくてもOK（丸の中で中央にしたいなら残す） */
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

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


/* ==============================
   独立支援
============================== */

.section-support {
  background: #ffffff;
}

.support-lead {
  max-width: 720px;
}

.support-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.support-item {
  background: #f9faf9;
  border-radius: 14px;
  padding: 18px 18px 20px;
}

/* ==============================
   九戸村での暮らし
============================== */

.section-life {
  background: #f3f5f4;
}

.life-intro {
  max-width: 720px;
}

.life-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.life-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 18px 20px;
}

/* ==============================
   FAQ
============================== */

.section-faq {
  background: #ffffff;
}

.faq-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-item {
  background: #f9faf9;
  border-radius: 14px;
  padding: 16px 16px 18px;
  font-size: 0.92rem;
}

/* ==============================
   ナインズファームについて
============================== */

.section-about {
  background: #f3f5f4;
}

.about-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: flex-start;
}

.about-text ul {
  margin: 0 0 1em;
  padding-left: 1.1em;
}

.about-image-placeholder {
  border-radius: 16px;
  background: none;
  padding: 0;
  min-height: 0;
  display: block;
}

.about-image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ==============================
   CTA
============================== */

.section-cta {
  background: #ffffff;
  text-align: center;
}

.section-cta h2 {
  margin-bottom: 0.4em;
}

.section-cta p {
  margin-bottom: 1.2em;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==============================
   お問い合わせ
============================== */

.section-contact {
  background: #f3f5f4;
}

.contact-form {
  margin-top: 20px;
  max-width: 640px;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-row label span {
  font-size: 0.8rem;
  color: #d22;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d7d3;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid #2c7a3f;
  outline-offset: 1px;
  border-color: #2c7a3f;
}

.form-row-submit {
  text-align: center;
  margin-top: 18px;
}

/* ==============================
   フッター
============================== */

.site-footer {
  background: #1f1f1f;
  color: #eee;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.85rem;
}

.footer-logo {
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-address {
  color: #bbb;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: flex;
  gap: 16px;
}

.footer-nav a {
  color: #ddd;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  color: #777;
}


/* ==============================
   トップページ：ブログカード
============================== */

.section-blog-preview {
  background: #ffffff;
}

.blog-preview-lead {
  max-width: 720px;
}

.blog-card-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  background: #f9faf9;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card a {
  display: block;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.blog-card-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 14px 16px 18px;
}

.blog-card-body time {
  display: block;
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 4px;
}

.blog-card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: #555;
}

.blog-preview-more {
  margin-top: 28px;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .blog-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==============================
   レスポンシブ対応
============================== */

/* ～1024px くらいで2カラム→1カラムなど */
@media (max-width: 1024px) {
  .reason-grid,
  .future-grid,
  .program-layout,
  .voices-grid,
  .support-grid,
  .life-grid,
  .faq-list,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* スマホ幅：サイドバーを上部に畳むシンプル仕様 */
@media (max-width: 768px) {
  .site-header {
    position: static;  /* ←これを追加 */
    height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .layout-with-sidebar {
    display: block;
    padding-top: 0; /* 固定ヘッダーをやめる扱い */
  }

  .side-nav {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 8px 0;
  }

  .side-nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .side-nav-menu li {
    margin-bottom: 0;
  }

  .side-nav-menu a {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .side-nav-extra {
    display: none; /* スマホではいったん非表示でもOKなら */
  }

  .main-content {
    margin-left: 0;
  }

  .hero {
    min-height: 60vh;
  }
  .hero-text {
    background: rgba(0, 0, 0, 0.55);
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-inner {
    flex-direction: column;
  }
}

/* サイドバーのロゴ画像を丸く表示 */
.side-logo-img {
  width: 140px;        /* ロゴの実寸に合わせて調整 */
  height: auto;
  border-radius: 0;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: none;    /* ロゴなので影も消す */
}

/* =========================
   代表者（指導員）の声（左写真→右テキスト）
========================= */

.section-leader {
  background-color: #ffffff;
}

.leader-flex {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 1.6rem;
}

/* 左の写真エリア */
.leader-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
}

.leader-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 写真右側をグラデーションでフェードアウト */
.leader-photo-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;

  /* 右側へ透明にして背景に溶け込ませる */
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 40%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
}

/* 右側のテキスト */
.leader-text {
  background: #ffffff;
  padding: 1rem 0;
}

.leader-title {
  font-size: 0.9rem;
  color: #777c6b;
  margin-bottom: 0.2rem;
}

.leader-name {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.leader-text p {
  margin-bottom: 0.8rem;
}

.leader-message-foot {
  font-weight: 600;
  color: #4a5a4a;
}

.form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #2c7a3f;
  min-height: 1.2em;
}

#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* スマホ対応 */
@media (max-width: 800px) {
  .leader-flex {
    grid-template-columns: 1fr;
  }

  .leader-photo-wrap {
    min-height: 200px;
  }

  .leader-photo-wrap::after {
    width: 100%; /* スマホは全面フェードでOK */
    background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 1) 100%
    );
  }
}

/* =========================
   定植イベント告知ページ
========================= */

.section-event {
  background: #ffffff;
}

.event-breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 14px;
}

.event-hero {
  border-radius: 16px;
  padding: 28px;
  background: #f3f5f4;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 26px;
}

.event-hero-text h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.event-lead {
  margin: 0 0 16px;
  color: #333;
}

.event-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2c7a3f;
  background: rgba(44, 122, 63, 0.10);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.event-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 8px;
}

.event-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
}

.event-block {
  margin: 26px 0;
}

.event-list-check {
  padding-left: 1.2em;
  margin: 10px 0 0;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.event-card {
  background: #f9faf9;
  border-radius: 14px;
  padding: 16px 16px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.event-detail {
  background: #f9faf9;
  border-radius: 14px;
  padding: 16px 16px 18px;
}

.event-detail dl {
  margin: 0;
}

.event-detail dt {
  font-weight: 700;
  margin-top: 12px;
}

.event-detail dd {
  margin: 6px 0 0;
  color: #333;
}

.event-timeline {
  background: #f9faf9;
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.event-timeline span {
  display: inline-block;
  width: 4.2em;
  font-weight: 700;
  color: #2c7a3f;
}

.event-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.event-faq-item {
  background: #f9faf9;
  border-radius: 14px;
  padding: 14px 14px 16px;
}

.event-faq-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.event-final-cta {
  margin-top: 30px;
  padding: 22px;
  border-radius: 16px;
  background: #f3f5f4;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .event-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .event-hero {
    padding: 18px;
  }
  .event-hero-text h1 {
    font-size: 1.5rem;
  }
  .event-faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

