/*
Theme Name: shiodagumi
Theme URI:  https://shiodagumi.co.jp/recruit/
Description: 塩田組採用サイトのデザインモックアップに基づくカスタム WordPress テーマ。
Author:      Misuzu Wada (@m.wada)
Version:     1.0.1
License:     GNU GPL v2 or later
Text Domain: shiodagumi
*/

/* ここから下に、サイト全体に適用したい基本のスタイルを書いていきます */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}
.hero {
  text-align: center;
}
.staff-grid {
  display: flex;
  gap: 2rem;
}
.staff-card img {
  width: 100%;
}
.workstyle-grid {
  display: flex;
  gap: 1rem;
}
.entry-cta {
  text-align: center;
  margin-top: 3rem;
}
.cta-button {
  background: teal;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
}


/* さらに必要なスタイルを追加していきましょう */
/* ========================================
   トップページ
======================================== */
/* ----------------------------
   トップページ共通
---------------------------- */
.front-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 1. ヒーローセクション ===== */
/* ===== トップページ：ヒーローセクション (全画面表示) ===== */
.hero {
  position: relative;                    /* 子の absolute の基準 */
  display: block !important;             /* flex を解除 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 100vh;
  background: url('assets/img/hero.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* ★ここがポイント★ */
.hero-inner {
  position: absolute !important;  /* 絶対配置にする */
  bottom: 5%;                     /* 下からの余白 */
  right: 5%;                      /* 右からの余白 */
  left: auto;                     /* 左位置を解除 */
  top: auto;                      /* 上位置を解除 */
  max-width: 400px;               /* 幅の上限 */
  text-align: right;              /* 文字・ボタンを右揃え */
  z-index: 2;                     /* オーバーレイより前面 */
  padding: 0 10px;                /* 内側余白 */
}

/* テキストとボタンのスタイル */
.hero-inner h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: #fff;
}

.hero-inner p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-inner .btn {
  display: inline-block;
  background-color: #317b6d;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.hero-inner .btn:hover {
  background-color: #27655a;
}

/* ────────────── モバイル対応 ────────────── */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero-inner {
    bottom: 3%;
    right: 3%;
    max-width: 90%;
  }
  .hero-inner h1 {
    font-size: 1.6rem;
  }
  .hero-inner p {
    font-size: 0.9rem;
  }
}

/* ===== トップページ：社長あいさつ ===== */
.greeting {
  background: #e9e2d3;
  padding: 60px 0;
}

.greeting-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.greeting-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #317b6d;
  margin-bottom: 2rem;
}

.greeting-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.greeting-image {
  flex: 0 0 200px;
}
.greeting-image img {
  width: 100%;
  border-radius: 8px;
}

.greeting-text {
  flex: 1;
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

.greeting-text p {
  margin-bottom: 1.5rem;
}

.greeting-text .btn-secondary {
  display: inline-block;
  background: #317b6d;
  color: #fff;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}
.greeting-text .btn-secondary:hover {
  background: #27655a;
}

.greeting-signature {
  margin-top: 1.5rem;        /* 本文とのスペース */
  font-style: italic;        /* イタリック体 */
  font-weight: bold;         /* 太字 */
  text-align: right;         /* 右寄せ */ 
  color: #333333
}

.greeting-text {
  position: relative; /* 親要素に relative をつけておくと float でも崩れにくいです */
}

.greeting-text .btn-secondary {
  float: right;
  margin-top: 1rem;    /* 上に余白が欲しければ調整 */
}


/* モバイル対応 */
@media (max-width: 768px) {
  .greeting-inner {
    flex-direction: column;
    align-items: center;
  }
  .greeting-image {
    flex: 0 0 auto;
    width: 80%;
    max-width: 300px;
  }
  .greeting-text {
    width: 100%;
  }
}

/* ===== トップページ：Member’s Voice セクション ===== */
.member-voice {
  background: #f9f7f2;
  padding: 60px 0;
  text-align: center;
}

.member-voice .section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.member-voice .section-subtitle {
  font-size: 1rem;
  color: #317b6d;
  margin-bottom: 2rem;
}

.voice-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.voice-item {
  max-width: 200px;
  text-align: center;
}

.voice-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.voice-name {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.voice-item .btn-secondary {
  display: inline-block;
  background: #317b6d;
  color: #fff;
  padding: 8px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.voice-item .btn-secondary:hover {
  background: #27655a;
}

/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
  .voice-list {
    flex-direction: column;
    gap: 30px;
  }
  .voice-item {
    margin: 0 auto;
  }
}

/* ===== トップページ：Worksセクション ===== */
.works {
  background: #e9e2d3;
  padding: 60px 0;
}
.works .section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.works .section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #317b6d;
  margin-bottom: 2rem;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 各アイテム */
.works-item {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* 偶数番目を反転（画像とテキストの左右を入れ替え） */
.works-item:nth-child(even) {
  flex-direction: row-reverse;
}

.works-image {
  flex: 0 0 40%;
}
.works-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.works-content {
  flex: 1;
}
.works-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #317b6d;
  display: inline-block;
}
.works-content p {
  line-height: 1.6;
  color: #333;
}

/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
  .works-list {
    gap: 30px;
  }
  .works-item {
    flex-direction: column;
    text-align: center;
  }
  .works-item:nth-child(even) {
    flex-direction: column;
  }
  .works-image {
    width: 80%;
    margin: 0 auto 1rem;
  }
}


/* ===== Company Culture セクション ===== */
.company-culture {
  background: #f9f7f2;
  padding: 60px 0;
  text-align: center;
}

.company-culture .section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.company-culture .section-subtitle {
  font-size: 1rem;
  color:#317b6d ;
  margin-bottom: 1.5rem;
}

.culture-description {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* 画像リスト */
.culture-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 2rem;
}

.culture-item {
  max-width: 250px;
  text-align: center;
}

.culture-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.8rem;
}

.culture-caption {
  font-size: 0.9rem;
  color: #333;
}

/* Read More ボタン */
.culture-cta {
  text-align: center;
}

.culture-cta .btn-secondary {
  background: #317b6d;
  color: #fff;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}
.culture-cta .btn-secondary:hover {
  background: #27655a;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .culture-list {
    flex-direction: column;
    gap: 20px;
  }
  .culture-item {
    margin: 0 auto;
  }
}


/* ===== 全ページ共通：採用情報ボタンセクション ===== */
.job-openings {
  background: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.job-openings__title {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.job-openings__subtitle {
  font-size: 1rem;
  color: #317b6d;
  margin-bottom: 1.5rem;
}

.job-buttons {
  display: flex;
  flex-direction: column;    /* 縦並び */
  align-items: center;
  gap: 20px;
  max-width: 320px;
  margin: 0 auto;
}

.job-buttons .btn-primary {
  display: block;
  width: 100%;
  background-color: #317b6d;
  color: #fff;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color .3s;
}

.job-buttons .btn-primary:hover {
  background-color: #27655a;
}

/* モバイル対応 */
@media (max-width: 480px) {
  .job-buttons .btn-primary {
    font-size: 1rem;
  }
}


/* ------------------------------
   お問い合わせセクション全体
------------------------------- */
.contact-section {
  background: #e9e2d3;/* ベージュの背景 */
  padding: 80px 0;           /* 上下スペース */
  text-align: center;
}

/* タイトル・サブタイトル */
.contact-section__title {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}
.contact-section__subtitle {
  font-size: 1rem;
  color: #317b6d;
  margin-bottom: 2rem;
}

/* ===== フォームカード ===== */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff; 
  padding: 50px 40px;        /* 内側スペース */
  border-radius: 20px;       /* 角丸大きめ */
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Form 7 標準スタイル調整 */
.contact-form-wrapper .wpcf7-form p {
  margin: 0 0 1.5rem;        /* 各フィールド間の余白 */
}

/* ラベル */
.contact-form-wrapper label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

/* 入力欄・テキストエリア */
.contact-form-wrapper .wpcf7-form-control-wrap input,
.contact-form-wrapper .wpcf7-form-control-wrap textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}
.contact-form-wrapper .wpcf7-form-control-wrap input:focus,
.contact-form-wrapper .wpcf7-form-control-wrap textarea:focus {
  border-color: #317b6d;
  outline: none;
}

/* テキストエリア高さ */
.contact-form-wrapper .wpcf7-form-control-wrap textarea {
  min-height: 180px;
}

/* フォーム全体はセンター揃えのまま */
.contact-form-wrapper {
  text-align: center;
}

/* ラベルだけを左寄せに */
.contact-form-wrapper label {
  display: block;    /* ラベルをブロック要素にして */
  text-align: left;  /* 左揃えに */
  margin-bottom: 0.5rem;
}


/* 送信ボタン */
.contact-form-wrapper .wpcf7-submit {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 16px 0;
  background-color: #317b6d;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 24px;       /* ボタンも丸みを強く */
  cursor: pointer;
  transition: background-color 0.3s;
}
.contact-form-wrapper .wpcf7-submit:hover {
  background-color: #27655a;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .contact-form-wrapper {
    padding: 40px 20px;
  }
}

/* ===== 全幅セクション背景を画面いっぱいに ===== */
.greeting,
.member-voice,
.services,
.event,
.company-culture,
.works,
.job-openings,
.contact-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ================================================
   Greeting Body 全幅化＋中央コンテンツ幅
   =============================================== */

/* ① 背景を画面いっぱいに伸ばす */
.greeting-body.full-bleed {
  position: relative;
  width: 100vw;               /* ビューポートいっぱい */
  left: 50%;
  margin-left: -50vw;         /* 左へ半画面ぶん引き戻し */
  box-sizing: border-box;
  background: #ffffff;        /* セクション背景色 */
  padding: 3rem 0;            /* 上下余白 */
}

/* ② 中央のテキスト幅を制限 */
.greeting-body.full-bleed .container {
  max-width: 800px;           /* お好みで調整 */
  margin: 0 auto;             /* 真ん中寄せ */
  padding: 0 20px;            /* 横余白 */
  text-align: center;         /* 文字中央揃え */
}

/* ③ 段落間の余白 */
.greeting-body.full-bleed .container p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
/* 見た目合わせ（全サイズ対応） */
:root {
  --header-height: 60px; /* 固定ヘッダーの想定高さのフォールバック */
}

main.front-page {
  padding-top: 0 !important; /* ヒーローを下にずらさない */
}

/* ヒーローをヘッダーぶん上に出す */
.front-page > .hero {
  margin-top: calc(-1 * var(--header-height));
  margin-bottom: 0; /* 余計な下の余白を抑える */
}

/* ヘッダーと被らないように内部のコンテンツを下げる */
.hero .hero-inner {
  padding-top: var(--header-height);
}

/* 予期せぬ外側のマージンをリセット（必要なら絞る） */
.hero,
.hero > * {
  margin-top: 0;
}




/* ========================================================================== 
   ヘッダー内レイアウト
   ========================================================================== */
.header-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ（テキストのみ） */
.site-logo .logo-text {
  font-size: 1.6rem;
  font-weight: bold;
  color: #317b6d;
  text-decoration: none;
  border-bottom: none !important;
  padding-bottom: 0;
  line-height: 1;
}

/* グローバルナビ（横並び） */
.site-nav .menu-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav .menu-list li a {
  display: block;
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
}
.site-nav .menu-list li a:hover {
  color: #317b6d;
}

/* ==========================================================================
   他セクション先頭の余白リセット（必要に応じて）
   ========================================================================== */
section {
  margin-top: 0;
  padding-top: 0;
}

/* ==========================================================================
   フッター全体
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  padding: 40px 0 20px;
}

/* 幅を揃えて左右カラムを並べる */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 左カラム：サイトロゴ＋連絡先 */
.footer-left .footer-logo {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  color: #317b6d;
  margin-bottom: 0.5rem;
}
.footer-left .footer-contact {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

/* 右カラム：フッターナビ */
.footer-nav .footer-menu-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav .footer-menu-list li a {
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav .footer-menu-list li a:hover {
  color: #317b6d;
}

/* コピーライト */
.site-info {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* ==========================================================================
   モバイル対応
   ========================================================================== */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-left {
    margin-bottom: 20px;
  }
  .footer-nav .footer-menu-list {
    flex-direction: column;
    gap: 12px;
  }
}

/*=============================================
  ユーティリティ
=============================================*/
/* 全幅化ブレイクアウト */
.full-bleed {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}
/* 中央寄せコンテナ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/*=============================================
  ヒーローセクション
=============================================*/
.hero-section {
  background-color: #317b6d;
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.hero-title {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}
.hero-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin: 0;
}

/*=============================================
  プロフィールセクション
=============================================*/
.profile-section {
  background-color: #e9e2d3;
  padding: 2rem 0;
}
.profile-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.profile-photo {
  flex: 1 1 300px;
}
.profile-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.profile-text {
  flex: 2 1 400px;
}
.profile-name {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.profile-desc {
  line-height: 1.6;
}

/*=============================================
  挨拶本文セクション
=============================================*/
.greeting-body {
  background-color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}
.greeting-body .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  line-height: 1.8;
}
.greeting-body h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}
.greeting-body p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #333;
}

/*=============================================
  ポリシーテーブルセクション
=============================================*/
.policy-table-section {
  background-color: #e9e2d3;
  padding: 2rem 0;
}
.policy-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}
.policy-table th,
.policy-table td {
  border: 1px solid #d6d6d6;
  padding: 1rem;
  vertical-align: top;
}
.policy-table th {
  background-color: #fff;
  width: 30%;
  text-align: center;
  vertical-align: middle;
}

.profile-table td {
  text-align: left;
}

.policy-table td ul {
  list-style: disc inside;
  padding-left: 0;
  margin: 0;
}

.policy-table-section.full-bleed .policy-table {
  background-color: #ffffff;    /* テーブル全体の背景を白に */
}

.policy-table-section.full-bleed .policy-table th,
.policy-table-section.full-bleed .policy-table td {
  background-color: #ffffff;    /* 各セルも白背景に */
}

/*=============================================
  セクション間余白リセット
=============================================*/
.hero-section + .profile-section,
.profile-section + .greeting-body,
.greeting-body + .policy-table-section {
  margin-top: 0;
}

/*=============================================
  レスポンシブ調整
=============================================*/
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    text-align: center;
  }
  .profile-photo,
  .profile-text {
    flex: 1 1 100%;
  }
  .greeting-body .container,
  .policy-table {
    max-width: 100%;
    padding: 0 16px;
  }
}

/* ---------------------------------------------
   ヒーローセクション（部門紹介）
----------------------------------------------*/
.hero-department {
  background: #317b6d;
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.hero-department .hero-title {
  font-size: 2.2rem;
  margin: 0 0 .5rem;
}
.hero-department .hero-subtitle {
  font-size: 1rem;
  opacity: .8;
  margin: 0;
}

/* ---------------------------------------------
   部門リスト
----------------------------------------------*/
.departments .department-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #ccc;
}
.departments .department-item:first-child {
  border-top: none;
}
.department-photo {
  flex: 0 0 200px;
}
.department-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.department-desc {
  flex: 1;
}
.department-name {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}
.department-desc p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* ---------------------------------------------
   魅力バナー
----------------------------------------------*/
.department-banner {
  background: #317b6d;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}
.banner-title {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.4;
}

/* ---------------------------------------------
   魅力5選グリッド
----------------------------------------------*/
.department-features .coming-soon {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: #317b6d;
  padding: 4rem 0;
}


/* ---------------------------------------------
   セクション間余白リセット
----------------------------------------------*/
.hero-department + .departments,
.departments + .department-banner,
.department-banner + .department-features {
  margin-top: 0;
}

/* ---------------------------------------------
   レスポンシブ
----------------------------------------------*/
@media (max-width: 768px) {
  .department-item {
    flex-direction: column;
    text-align: center;
  }
  .department-photo {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1rem;
  }
}
/* -----------------------------
   共通変数＆リセット（前提として残す）
------------------------------ */
:root {
  --brand-green: #317b6d;
  --bg-beige: #e9e2d3;
  --text-dark: #222;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  background: #fff;
}
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }

/* 共通コンテナ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================
   ヒーロー（エントリー含む）
============================== */
.hero-entry {
  background: var(--brand-green);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.hero-entry .hero-title {
  font-size: 2.3rem;
  margin-bottom: 4px;
  line-height: 1.1;
}
.hero-entry .hero-subtitle {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.85;
}

/* ==============================
   見出し帯（全セクション共通）
   「帯」の背景の上にタイトルを乗せるパターン
============================== */
/* 全体の横幅で帯を出すラップ用 */
.section-band {
  background: var(--bg-beige);
  padding: 1rem 0; /* 帯の高さ調整 */
  margin-bottom: 1rem;
  display: flex;             
  justify-content: center; 
}

/* 帯の中または前面にタイトルを置く */
.section-band .section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
  background: white;
  padding: 0.25rem 1rem;
  border-radius: 4px;
  position: relative;
  color: var(--text-dark);
  margin: 0;
}

/* 小見出し用の帯（たとえば「募集対象」「仕事内容」など） */
.subheading-wrapper {
  background: #f5f5f5;
  padding: 0.5rem 0;
  margin: 1rem 0 0.5rem;
  text-align: center;
}
.subheading-wrapper .subheading {
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
  background: white;
  padding: 6px 16px;
  border-radius: 4px;
  margin: 0;
}

/* ==============================
   募集要項セクション（帯＋内容）
============================== */
.recruitment-overview {
  background: var(--bg-beige);
  padding: 2.5rem 0 2rem;
}
.recruitment-overview .overview-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.recruitment-overview .section-text {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* 小セクション（募集対象／歓迎する人物像 等） */
.entry-subsection {
  max-width: 900px;
  margin: 1.75rem auto 0;
  padding: 0 10px;
}
.small-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.5rem 0;
  color: var(--text-dark);
  text-align: center;
}

/* 条件一覧グリッド */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.terms-grid .term {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 10px 14px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #dcdcdc;
  border-radius: var(--radius);
  text-align: left;
}

/* 歓迎する人物像 */
.welcome-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
}
.welcome-list li {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

/* 福利厚生・制度 */
.benefits-list {
  list-style: disc inside;
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

/* ==============================
   仕事内容／待遇（必要なら継続）
============================== */
.job-description,
.compensation {
  background: #fff;
  padding: 2rem 0;
}
.job-description .section-text,
.compensation .section-text {
  margin-bottom: 0;
}
.comp-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}
.comp-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comp-table th,
.comp-table td {
  border: 1px solid #bbb;
  padding: 12px 14px;
  vertical-align: middle;
}
.comp-table th {
  background: #f7f7f7;
  text-align: center;
  font-weight: 700;
}
.comp-table td {
  background: #fff;
}
.detail-block {
  max-width: 800px;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.detail-block p {
  margin: 0.5rem 0;
}

/* ==============================
   セクション接続の微調整（段差抑制）
============================== */
.hero-entry + .recruitment-overview,
.recruitment-overview + .job-description,
.job-description + .compensation {
  margin-top: 0;
}

/* ==============================
   レスポンシブ
============================== */
@media (max-width: 860px) {
  .hero-entry .hero-title {
    font-size: 1.8rem;
  }
  .terms-grid {
    grid-template-columns: 1fr;
  }
  .comp-table th,
  .comp-table td {
    padding: 10px 8px;
  }
  .detail-block {
    padding: 0 10px;
  }
  .subheading-wrapper {
    padding: 0.4rem 0;
  }
  .section-band {
    padding: 0.75rem 0;
  }
  .recruitment-overview .section-heading {
    font-size: 1.4rem;
  }
  .recruitment-overview .section-text {
    font-size: 0.95rem;
  }
}

/* ---- ヘッダーとヒーローの隙間修正 ---- */
:root {
  --header-height: 60px;
}

/* 固定ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #dfdad1;
  z-index: 1000;
  box-sizing: border-box;
}

/* 本文はヘッダー分だけ下げる */
main,
.entry-page,
.greeting-page {
  padding-top: var(--header-height);
}

/* 管理バーがあるときの調整 */
html.admin-bar .site-header {
  top: 32px;
}
html.admin-bar main,
html.admin-bar .entry-page,
html.admin-bar .greeting-page {
  padding-top: calc(var(--header-height) + 32px);
}

/* ヒーローの余白キャンセル */
.hero-entry {
  margin-top: 0;
}

/* 仮：どこかが突っ込んでくる不明な body の padding を打ち消し（本来はスクリプトを探して消す） */
body {
  padding-top: 0 !important;
}

/* 共通ロゴ・ナビ・トグルのスタイル（必要な部分だけ抜粋） */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #dfdad1;
  z-index: 1000;
  padding: 0 20px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.site-logo .logo-text {
  font-weight: bold;
  letter-spacing: 1px;
  color: #234e3d;
  text-decoration: none;
  font-size: 1.2rem;
}

/* デスクトップ：通常の横並びメニュー */
.site-nav {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  padding: 8px;
}

/* ハンバーガーボタン（初期は非表示） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  position: relative;
  border-radius: 1px;
  transition: all .3s ease;
}
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle .hamburger::before { top: -6px; }
.menu-toggle .hamburger::after  { top: 6px; }

/* トグルが開いたときの×アニメーション */
.menu-toggle.active .hamburger {
  background: transparent;
}
.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ===== モバイル切り替え ===== */
@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-beige, #dfdad1);
    flex-direction: column;
    padding: 10px 0;
    display: none; /* デフォルト非表示 */
    z-index: 900;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav .menu-list {
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .site-nav .menu-list li {
    padding: 8px 20px;
  }
  .menu-toggle {
    display: block;
  }
}

#back-to-top {
  position: fixed;
  bottom: 20px;     /* 下からの余白 */
  right: 20px;      /* 右からの余白 */
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background: #317b6d;
  color: #fff;
  cursor: pointer;
  display: none;    /* 初期状態では非表示 */
  z-index: 1000;    /* 必要に応じて前面に */
  opacity: 0.6;
  transition: opacity 0.2s;
}
#back-to-top:hover {
  opacity: 1;
}
