@charset "UTF-8";

/* =========================================
   基本リセット & グローバル設定
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}
body {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #333333;
  line-height: 1.8;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.75;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul {
  list-style: none;
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.intro-lead,
.greeting-text p, 
.philosophy-text,
.precepts-list li, 
.office-list li, 
.info-table td,
.footer-info p  {
  font-size: 16px;
}

.philosophy-text,
.precepts-list li {
  margin-bottom: 18px;
  text-align: justify;
}
 
.no-pc {
  display: none;
}

.no-sp {
  display: block;
}

/* =========================================
   ヘッダー
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #313a29;
}

.site-nav a i {
  font-size: 18px;
}

/* =========================================
   メインビジュアル
   ========================================= */
.hero-section {
  width: 100%;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   導入コピー
   ========================================= */
.intro-section {

  padding: 70px 0;
}

.main-catch {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 28px;
}

.intro-lead {
  font-size: 17px;
  color: #555555;
  line-height: 2;
}

/* =========================================
   ごあいさつ
   ========================================= */

.greeting-section {
  background-color: #e5dccc;
}
.section-sub-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.greeting-lead {
  font-size: 18px;
  color: #313a29;
  margin: 30px 0;
}

.greeting-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.greeting-text {
  flex: 1;
}

.greeting-text p {
  margin-bottom: 18px;
  text-align: justify;
}

.greeting-president {
  flex: 0 0 280px;
  text-align: center;
}

.greeting-president figure {
  margin: 0;
}

.greeting-president img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.greeting-president figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #333333;
}

/* =========================================
   見出し装飾
   ========================================= */
.section-title-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 50px;
}

/* .section-title-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #dbe4ee;
  z-index: 1;
} */

.section-title {
  display: inline-block;
  position: relative;
  z-index: 2;
  /* padding: 0 24px; */
  font-size: 26px;
  font-weight: 700;
}

/* =========================================
   会社概要（社是・社訓・テーブル）
   ========================================= */

.company-section .section-title-wrap {
 background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("https://matsudaiyaku.co.jp/img_temp/mtdiyk_slide04.jpg") no-repeat center center;
}

.philosophy-box {
  /* background-color: #f7f9fc; */
  /* border-left: 4px solid #237637; */
  padding: 24px 30px;
  margin-bottom: 30px;
  border-radius: 0 4px 4px 0;
}

.philosophy-box .box-title {
  position: relative;
  font-size: 20px;
  color: #333333;
  margin-bottom: 20px;
  padding-bottom: 12px; /* 下線との余白 */
}

/* 全幅の薄いグレーの1pxライン */
.philosophy-box .box-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #b7b7b7
}

/* 左寄りの緑のアクセントライン */
.philosophy-box .box-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 130px;
  height: 2px; 
  background-color: #237637;
}


.box-title {
  font-size: 20px;
  /* color: #237637; */
  margin-bottom: 14px;
}

.philosophy-text {
  line-height: 1.9;
}

.precepts-list {
  padding-left: 0;
}

.precepts-list li {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.7;
}

/* .precepts-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #237637;
  font-weight: bold;
} */

.company-info-grid {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.info-table-side {
  flex: 1;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 12px 14px;
  vertical-align: top;
}

.info-table th {
  width: 110px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.info-table th.normal {
  font-weight: lighter;
}
.offices-side {
  flex: 1;
  /* background-color: #fbfcfd; */
  padding: 20px 24px;
  /* border: 1px solid #eef2f7; */
  border-radius: 4px;
}

.sub-heading {
  font-size: 16px;
  /* color: #237637;
  border-bottom: 2px solid #237637; */
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.office-list li {
  margin-bottom: 14px;
  line-height: 1.6;
}

/* =========================================
   採用情報
   ========================================= */

.recruit-section .section-title-wrap {
 background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("https://matsudaiyaku.co.jp/img_temp/mtdiyk_slide02.jpg") no-repeat center center;
}




.recruit-card.movie {
  max-width: 720px; 
  margin: 0 auto 40px; 
}

/* 親コンテナの基準設定 */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 の比率を保持 */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}



.recruit-card {
  max-width: 560px;
  margin: 0 auto;
}

.recruit-logo img {
  max-width: 320px;
  margin: 0 auto 24px;
}

/* ボタン汎用 */
.btn-wrap {
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: #237637;
  color: #ffffff;
}

.btn-primary:hover {
  /* background-color: #313a29; */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 100, 0.25);
  filter: brightness(1.1) saturate(2);
}

.btn-secondary {
  border: 2px solid #237637;
  color: #237637;
}

.btn-secondary:hover {
  background-color: #237637;
  color: #ffffff;
}

/* =========================================
   各種リンク
   ========================================= */


.links-section {
  position: relative;
  background: none;
  color: #333333;
  padding: 0 0 60px 0; 
}

/* タイトルの親要素の余白をリセット */
.company-section .section-title-wrap,
.recruit-section .section-title-wrap,
.links-section .section-title-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 50px;
}


.links-section .section-title-wrap {
 background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("https://matsudaiyaku.co.jp/img_temp/mtdiyk_slide05.jpg") no-repeat center center;
}

/* タイトル：全幅（100vw）に広げ、背景を固定・文字色を白に設定 */
.company-section .section-title-wrap,
.recruit-section .section-title-wrap,
.links-section .section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;

  /* 画面横幅いっぱいに広げる指定 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* 背景画像固定（パララックス） */
  background-size: cover;
  background-attachment: fixed;

  /* 文字装飾 & 高さ調整 */
  color: #ffffff;
  padding: 70px 0; 
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}




.card-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.card {
  flex: 1;
  max-width: 440px;
  /* background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px; */
  padding: 24px;
  text-align: center;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.03); */
}

.card-title {
  font-size: 18px;
  /* color: #237637; */
  margin-bottom: 16px;
}

.card-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-image img {
  max-height: 100%;
  object-fit: contain;
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  background-color: #237637;
  color: #ffffff;
  padding-top: 50px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-info h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-info p {
  line-height: 1.8;

}

.footer-nav ul {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #ffffff;
  font-size: 18px;
}

.footer-bottom {
  padding: 20px 0;
}

.copyright {
  font-size: 12px;
}

/* トップへ戻るボタン */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background-color: #237637;
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 99;
}

/* =========================================
   レスポンシブ (スマホ・タブレット)
   ========================================= */
@media (max-width: 768px) {
  .greeting-content,
  .company-info-grid,
  .card-grid {
    flex-direction: column;
  }

  .greeting-president {
    flex: auto;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .main-catch {
    font-size: 24px;
  }

  .footer-nav {
    margin-top: 24px;
  }
  .no-pc {
  display: block;
  }
  .no-sp {
  display: none;
  }

  .site-logo img {
    padding: 2% 0;
  }
  .header-inner {
    align-items: baseline;
  }
  .footer-content{
    align-items: end;
  }


.company-section .section-title-wrap, 
.recruit-section .section-title-wrap, 
.links-section .section-title-wrap {
  background-size: 160% auto;
  background-attachment: local;
  padding: 50px 0;

}


  .links-section .section-title {
    background-attachment: scroll;
    background-size: cover; 
    background-position: center center;
  }


  .offices-side {
    padding: 0;
  }

  .info-table th {
    padding: 0 20px 0 0;
  }
  .philosophy-box {
    padding: 24px 10px;
  }

  .info-table td {
    padding: 0px 14px;
  }

  .info-table td.history {
    display: block;
  }

  .box-title_history {
    margin-top: 60px;
  }
  .info-table tr {
    display: block;
    margin-bottom: 15px; /* displayを変更すればmarginが効く */
  }

  .recruit-card.movie {
    /* 影の設定: 水平0 垂直4px ぼかし16px 広がり0 色(黒の透過20%) */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    
    /* 角丸をつけて影を自然に見せる場合（不要なら削除可） */
    border-radius: 8px;
    
    /* 親要素の角丸に合わせて子要素の動画も角を丸める設定 */
    overflow: hidden;

    /* 左右の画面端に密着していると影が見切れるため、余白を確保 */
    margin-left: 16px;
    margin-right: 16px;
  }


}