@charset "UTF-8";
@import url("grid.css");

/* ===============================
   カラーテーマ
=============================== */
:root {
  --base-color: #000;
  --link-color: #666;
  --linkhover-color: #999;
  --back-color: #f7f7f7;
  --border-color: #ccc;
  --white-color: #fff;
  --main-green: #314733;
  --pale-green: #dfe5e1;
}

/* ===============================
   共通設定
=============================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover {
  color: var(--linkhover-color);
}

/* ===============================
   ヘッダー（ロゴ左／メニュー完全中央・高さ補正）
=============================== */
.site-header {
  background-color: #314733;
  width: 100%;
  height: 70px; /* ← 高さ固定 */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

/* 内部コンテナ */
.header-inner {
  position: relative;
  max-width: 1200px;
  height: 70px; /* ← 親と揃える */
  margin: 0 auto;
  padding: 0 40px; /* 上下padding削除で均等配置 */
}

/* ロゴ左寄せ */
.logo {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.logo img {
  height: 42px;
  width: auto;
}

/* ナビ中央寄せ */
.main-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* メニューリスト */
.main-nav ul {
  display: inline-flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: inline-block;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.main-nav a:hover {
  opacity: 0.7;
}

/* 背景補正（固定ヘッダー分） */
body {
  padding-top: 70px;
}

/* ===============================
   スマホ対応
=============================== */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle img {
  width: 36px;
  height: auto;
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    height: auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    position: static;
    transform: none;
  }

  .main-nav {
    position: static;
    transform: none;
    text-align: left;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: #314733;
    z-index: 999;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .main-nav a {
    font-size: 16px;
  }
}

/* ===============================
   メイン画像
=============================== */
.mainimg {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
.mainimg img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: center center;
}

/* ===============================
   メインコピー（ふわっと表示）
=============================== */
.main-copy {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  opacity: 0;
  animation: fadeInUp 1.8s ease forwards 0.4s;
  z-index: 2;
}
.main-copy h1 {
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.7;
}
.main-copy p {
  font-family: "Times New Roman", serif;
  font-size: 1.8rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards 1.2s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(-40%);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%);
  }
}

/* スマホ時 */
@media (max-width: 768px) {
  .main-copy {
    left: 10%;
    width: 80%;
  }
  .main-copy h1 {
    font-size: 2.2rem;
    line-height: 1.6;
  }
  .main-copy p {
    font-size: 1.1rem;
  }
  .mainimg img {
    height: 75vh;
  }
}

/* ===============================
   お知らせバー
=============================== */
.news-bar {
  background-color: var(--main-green);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-top: 0;
}

/* ===============================
   キャッチコピー
=============================== */
.catch-section {
  background-color: var(--pale-green);
  text-align: center;
  padding: 100px 20px 80px;
  color: #333;
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.catch-section h2 {
  font-size: 3rem;
  font-weight: 500;
  color: var(--main-green);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.catch-section p {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 1.5rem;
}
.catch-section .ceo {
  font-family: "Times New Roman", serif;
  font-style: italic;
  color: #000;
  font-size: 14px;
}

/* スマホで詰める */
@media (max-width: 768px) {
  .catch-section {
    padding: 60px 15px;
  }
  .catch-section h2 {
    font-size: 2rem;
  }
  .news-bar {
    font-size: 12px;
  }
}

/* =========================================
   SECTION共通（タイトル・アニメーション含む）
========================================= */

/* フェード＋スライドイン演出 */
.fade-slide {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}
.fade-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 見出し全体 */
.section-header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 50px;
}

/* ===== 英語タイトル（統合・修正版） ===== */
.section-title {
  text-align: center; /* ← これを上に統合 */
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #314733 0%, #6a8f60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  color: #314733; /* ← フォールバック色（透明になっても見える） */
}


/* 日本語サブタイトル */
.section-subtitle-jp {
  font-size: 15px;
  color: #666;
  margin-top: -6px;
  letter-spacing: 0.05em;
  font-weight: 400;
}

/* 説明文（共通） */
.section-subtitle {
  text-align: center;
  margin: 25px auto 60px;
  color: #444;
  font-size: 15px;
  line-height: 1.9;
  max-width: 720px;
}

/* =========================================
   SERVICE（縦1列×背景交互レイアウト）
========================================= */
#service {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* SERVICE内ブロック配置 */
.service-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 50px;
  border-radius: 10px;
  padding: 60px 40px;
}

/* 偶数ブロックは反転＋背景色変更 */
.service-block:nth-child(odd) {
  background-color: #f9f9f9;
}
.service-block:nth-child(even) {
  background-color: #eef1ef;
  flex-direction: row-reverse;
}

/* 画像部分 */
.service-image img {
  width: 500px;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* ホバー演出 */
.service-block:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* テキスト部分 */
.service-text {
  flex: 1;
}

/* サービス見出し */
.service-text h3 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #314733, #8ca693);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

/* 下線 */
.service-text h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, #314733, #8ca693);
  border-radius: 2px;
}

/* 本文 */
.service-text p {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
}

/* スマホ対応 */
@media (max-width: 768px) {
  #service {
    padding: 40px 15px;
  }
  .service-block {
    flex-direction: column !important;
    text-align: center;
    padding: 40px 20px;
    gap: 25px;
  }
  .service-image img {
    width: 100%;
    height: auto;
  }
  .service-text h3 {
    font-size: 22px;
  }
  .service-text p {
    font-size: 14px;
  }
}

/* =========================================
   COMPANY
========================================= */
#company {
  background-color: #e1e7e2;
  padding: 80px 0;
}

#company .section-header {
  margin-bottom: 35px;
}

#company .section-subtitle {
  color: #333;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 50px;
}

.company-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.company-image img {
  width: 260px;
  height: 230px; /* ← 高さを明示的に指定（例: 180〜220pxでお好み調整） */
  border-radius: 6px;
  object-fit: cover; /* ← トリミングして自然に収める */
}


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

.company-info th {
  text-align: left;
  padding: 6px 10px;
  font-weight: bold;
  width: 180px;
  color: #333;
  vertical-align: top;
}

.company-info td {
  padding: 6px 10px;
  font-size: 14px;
  color: #444;
}

.company-info a {
  color: #333;
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .company-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .company-image img {
    width: 80%;
    margin-bottom: 20px;
  }
  .company-info th,
  .company-info td {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* =========================================
   CONTACT
========================================= */
#contact {
  padding: 100px 0;
  background-color: #fff;
}

#contact .section-header {
  margin-top: 40px;
  margin-bottom: 35px;
}

.table {
  margin: 3rem auto;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
  text-align: left;
}

.table th {
  width: 200px;
}

.full-width {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
}

.textarea {
  height: 120px;
}

.button {
  display: inline-block;
  padding: 12px 50px;
  background-color: #314733;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .table th,
  .table td {
    display: block;
    width: 100%;
  }
  .button {
    width: 100%;
    padding: 14px 0;
  }
}

/* ===============================
   FOOTER（整理済み）
=============================== */
footer {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
}

/* === 上段：ロゴセクション === */
.footer-top {
  display: flex;
  justify-content: center; /* 横方向中央寄せ */
  align-items: center;     /* 縦方向中央寄せ */
  background-color: var(--pale-green);
  padding: 50px 0;         /* 上下余白 */
}

.footer-top img {
  width: 160px;            /* ロゴサイズ調整 */
  height: auto;
  max-width: 90%;
  margin: 0 auto;
  display: block;
}

/* === 中段：ナビゲーション === */
.footer-nav {
  text-align: center;
  background: #fff;
  padding: 15px 0;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 40px;
}
.footer-nav a {
  color: #000;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-nav a:hover {
  opacity: 0.7;
}

/* === 下段：コピーライト === */
.footer-bottom {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  line-height: 1.5;
  font-size: 13px;
}
.footer-bottom p {
  margin: 0;
  padding: 0;
}

/* === スマホ対応 === */
@media (max-width: 768px) {
  .footer-top {
    padding: 40px 0;
  }
  .footer-nav ul {
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-bottom {
    font-size: 12px;
  }
}

/* ===============================
   CONTACT（お問い合わせセクション微調整）
=============================== */

/* 見出し「お問い合わせ」を中央寄せ */
#contact h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
}

/* テーブルの中央寄せ（全体の整列を中央基準に） */
#contact .table {
  margin: 0 auto 40px;
  width: 80%;
  max-width: 700px;
}

/* 送信ボタンの中央寄せ */
#contact p.center {
  text-align: center;
  margin-top: 30px;
}
#contact .button {
  display: inline-block;
  padding: 10px 40px;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 3px;
}
/* ===============================
   送信ボタン（中央配置・整列修正）
=============================== */
#contact .button {
  display: inline-block;
  padding: 12px 48px;          /* ← ボタンのサイズ感を整える */
  font-size: 15px;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid #333;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  line-height: 1;              /* ← テキストの上下位置を中央に */
  vertical-align: middle;      /* ← ズレ防止 */
  text-align: center;
  transition: all 0.3s ease;
}

/* hover時のアクセント */
#contact .button:hover {
  background-color: #314733;
  color: #fff;
  border-color: #314733;
}
html {
  scroll-behavior: smooth;
}
/* 見出し（英語）—各セクションで強制適用 */
#service .section-title,
#company .section-title,
#contact  .section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #314733 0%, #6a8f60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-align: center; /* 念のため */
}

/* 日本語サブ（小見出し）—位置を少し詰める */
#service .section-subtitle-jp,
#company .section-subtitle-jp,
#contact  .section-subtitle-jp {
  font-size: 15px;
  color: #666;
  margin-top: -6px;
  letter-spacing: 0.05em;
  font-weight: 400;
  text-align: center;
}

/* CONTACT セクションの余白（念のため再指定） */
#contact {
  padding: 100px 0;
  background-color: #fff;
}
#contact .section-header {
  margin-top: 40px;
  margin-bottom: 35px;
}
/* ===============================
   PRIVACY POLICY
=============================== */
.privacy-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 100px;
  background-color: #fff;
  color: #333;
  line-height: 1.9;
}

.privacy-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #314733, #6a8f60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
}

.privacy-lead {
  text-align: center;
  margin-bottom: 50px;
  color: #555;
  font-size: 15px;
}

.privacy-block {
  margin-bottom: 45px;
}

.privacy-block h2 {
  font-size: 20px;
  font-weight: 600;
  color: #314733;
  margin-bottom: 10px;
}

.privacy-block p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.privacy-footer {
  text-align: right;
  margin-top: 40px;
  color: #777;
  font-size: 14px;
}
/* プライバシーポリシー お問い合わせリンク */
.privacy-link {
  color: #314733;
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.3s ease;
}
.privacy-link:hover {
  opacity: 0.7;
}
/* ===============================
   スマホ右ずれ・はみ出し修正（全体対応）
=============================== */
@media (max-width: 768px) {

  /* 画面全体の横スクロール防止 */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* ヘッダー内の要素を中央に揃える */
  .header-inner {
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .logo img {
    max-width: 140px;
    height: auto;
  }

  .menu-toggle {
    position: absolute;
    top: 18px;
    right: 15px; /* ← これでアイコンが切れない */
  }

  /* メニュー開閉時も幅を固定 */
  .main-nav {
    width: 100%;
    box-sizing: border-box;
  }

  /* SERVICEセクション全体の中央寄せ */
  #service {
    width: 100%;
    max-width: 100%;
    padding: 60px 15px;
    box-sizing: border-box;
  }

  .service-block {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
  }

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

  .service-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* COMPANYセクション */
  #company {
    width: 100%;
    padding: 60px 15px;
    box-sizing: border-box;
  }

  .company-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .company-image img {
    width: 100%;
    height: auto;
  }

  /* CONTACTセクション */
  #contact {
    width: 100%;
    padding: 60px 15px;
    box-sizing: border-box;
  }

  #contact .container,
  #contact .table,
  #contact input.full-width,
  #contact textarea.full-width {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #contact .button {
    width: 80%;
    max-width: 300px;
    margin: 20px auto;
    display: block;
  }

  /* フッターの画像中央寄せ */
  .footer-top img {
    max-width: 180px;
    height: auto;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ===============================
   スマホ：ヘッダーと画像の隙間除去
=============================== */
@media (max-width: 768px) {
  body {
    padding-top: 0 !important; /* ← ヘッダー固定分を解除 */
  }

  .mainimg {
    margin-top: 0 !important; /* ← 不要な上マージンをリセット */
  }

  .mainimg img {
    display: block;
    width: 100%;
    height: auto;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }
}
/* ===============================
   スマホ：ヘッダーと画像高さの自然な調整
=============================== */
@media (max-width: 768px) {
  .mainimg img {
    height: 80vh !important; /* ← 高さを自然に戻す（前は70vh） */
    object-fit: cover;
  }

  .main-copy {
    top: 55%; /* ← キャッチコピーを少し下げてバランス調整 */
  }
}
/* ===============================
   ヘッダー：スクロール時に半透明化
=============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(49, 71, 51, 1); /* 通常：不透明（元のグリーン） */
  transition: background-color 0.5s ease;
  z-index: 9999;
}

.site-header.scrolled {
  background-color: rgba(49, 71, 51, 0.85); /* ← スクロール時：半透明 */
  backdrop-filter: blur(4px); /* ← 背景を少しぼかして高級感UP */
}
/* ===============================
   スマホ：ハンバーガーメニューの中央寄せ調整
=============================== */
@media (max-width: 768px) {
  .main-nav ul {
    padding-left: 0;
    margin: 0;
  }

  .main-nav ul li {
    text-align: left; /* 左寄せのまま自然に */
    padding-left: 20%; /* ← ← ここで全体を少し右にオフセット */
    list-style: none;
  }

  .main-nav ul li a:hover {
    color: #dcdcdc;
    transform: translateX(3px); /* ← ホバーで軽く動かす演出 */
  }
}
/* ===============================
   スマホメニュー：PRIVACY POLICY 折り返し防止
=============================== */
@media (max-width: 768px) {
  .main-nav ul li a {
    white-space: nowrap;  /* ← 折り返し禁止 */
    overflow: hidden;     /* ← 万一あふれても隠す */
    text-overflow: ellipsis; /* ← （予備）省略記号対応 */
  }
}