/* ベースリセットと基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #4a3e3d;
  line-height: 1.6;
  background-color: #fdfaf6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   グローバルヘッダー
========================================= */
.global-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-title {
  font-size: 1.2rem;
  color: #5d4037;
  margin: 0;
}

.global-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.global-nav a {
  font-size: 0.9rem;
  font-weight: bold;
  color: #5d4037;
  transition: color 0.3s;
}

.global-nav a:hover, .global-nav a.current {
  color: #2e7d32;
}

.btn-contact {
  background-color: #2e7d32;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.btn-contact:hover {
  background-color: #1b5e20;
}

/* =========================================
   ヒーローセクション（画面いっぱいのビジュアル）
========================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 60vh; /* 会社概要ページらしく、少し高めに設定（木材部よりは低く） */
  
  /* ★いただいた山林の写真を背景に設定します */
  background-image: url('b_gaiyou_top.jpg'); 
  
  background-size: cover;
  background-position: center;
  /* パララックス効果（視差効果）でモダンさを強調します（不要なら削除可） */
  background-attachment: fixed; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* ロゴの透明部分がはみ出さないように */
}

/* ★文字を読みやすくするための黒いベール（透明度50%で自然さをキープしつつ文字を目立たせる） */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1; /* オーバーレイを背景画像の上に配置 */
}

/* ★文字を中央に配置するためのコンテナ */
.hero-inner {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 2; /* 文字をオーバーレイの上に配置 */
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-content h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* 文字サイズを大きく、伸縮するように（木材部より大きく） */
  font-weight: bold;
  letter-spacing: 0.2em; /* 文字間隔を広げて荘厳さを演出 */
  margin-bottom: 20px;
  text-transform: uppercase; /* アルファベットがある場合は大文字に（今回は日本語なので影響なし） */
  /* ★背景の写真に負けないように、文字の周りに強めの影をつけます */
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.hero-content .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: #fff;
  /* ★サブタイトルにも影をつけます */
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}


/* =========================================
   各セクション共通設定
========================================= */
.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #aed581;
  padding-bottom: 10px;
  display: inline-block;
}

/* =========================================
   ご挨拶・理念セクション
========================================= */
.greeting-section {
  padding: 80px 20px 40px;
  background-color: #fff;
  text-align: center;
}

.greeting-text {
  font-size: 1.05rem;
  line-height: 2;
  text-align: left;
  background-color: #fdfaf6;
  padding: 30px;
  border-radius: 8px;
  border-left: 5px solid #81c784;
}

.greeting-text p {
  margin-bottom: 20px;
}

.press-link-area {
  margin-top: 30px;
}

.btn-press {
  display: inline-block;
  background-color: #fff;
  color: #2e7d32;
  border: 2px solid #2e7d32;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-press:hover {
  background-color: #2e7d32;
  color: #fff;
}

/* =========================================
   会社情報・沿革コンテナ
========================================= */
.info-history-container {
  background-color: #fdfaf6;
  padding: 60px 20px;
}

.info-section, .history-section {
  text-align: center;
  margin-bottom: 60px;
}

/* テーブル（表）のモダンなデザイン */
.profile-table, .history-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.profile-table th, .history-table th {
  background-color: #e8f5e9;
  color: #2e7d32;
  width: 30%;
  padding: 20px;
  border-bottom: 1px solid #dcedc8;
  vertical-align: top;
}

.profile-table td, .history-table td {
  padding: 20px;
  border-bottom: 1px solid #f5f5f5;
  color: #555;
  line-height: 1.8;
}

.profile-table tr:last-child th, .profile-table tr:last-child td,
.history-table tr:last-child th, .history-table tr:last-child td {
  border-bottom: none;
}

/* =========================================
   事業内容セクション（カードグリッド）
========================================= */
.business-section {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.business-section .section-inner {
  max-width: 1200px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.product-card {
  background-color: #fdfaf6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e0e0e0;
}

.card-text {
  padding: 20px;
}

.card-text h3 {
  font-size: 1.2rem;
  color: #2e7d32;
  margin-bottom: 10px;
}

.card-text p {
  font-size: 0.95rem;
  color: #666;
}

/* =========================================
   フッター
========================================= */
.site-footer {
  background-color: #3e2723;
  color: #d7ccc8;
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-info h3 {
  color: #fff;
  margin-bottom: 15px;
}

.copyright {
  border-top: 1px solid #5d4037;
  padding-top: 20px;
  margin-top: 20px;
}

/* =========================================
   スマートフォン向けの微調整
========================================= */
@media screen and (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  .global-nav ul {
    justify-content: center;
  }
  .profile-table th, .profile-table td,
  .history-table th, .history-table td {
    display: block;
    width: 100%;
  }
  .profile-table th, .history-table th {
    border-bottom: none;
    padding-bottom: 5px;
  }
  .profile-table td, .history-table td {
    padding-top: 5px;
    padding-bottom: 20px;
  }
}