:root {
  --fill-layer-image-opacity: 1.0; /* hero背景画像の透過度 */
  --fade-duration: 0.8s;
}

/* --- 全体共通 --- */
* { box-sizing: border-box; margin:0; padding:0; }

html {
  font-size: clamp(14px, 1.25vw, 20px); /* 流動的フォントサイズ */
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  padding-top: 70px;
}
.no-scroll { overflow:hidden; }
.pc-only { display: block; }
/* --- ヘッダー --- */
header {
  position: fixed;
  top:0; left:0; width:100%; height:70px;
  background:#fff;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 20px; box-shadow:0 5px 10px rgba(0,0,0,0.2);
  z-index:9999;
}
header .logo { display:flex; align-items:center; gap:10px; }
header .logo img { height:40px; }
/* PCナビゲーションリンクの設定 */
nav ul { display:flex; list-style:none; gap:20px; margin:0; padding:0; }

nav ul li a { 
  text-decoration:none; 
  color:#333; 
  font-size:0.9rem;
  
  /* --- ホバーアニメーションの起点と色設定を追記 --- */
  position: relative; /* ::afterの基準位置 */
  transition: color 0.3s ease; /* ホバー時の色変化を滑らかに */
}

/* ホバー時のアンダーラインのベースを作成 */
nav ul li a::after {
  content: ""; 
  position: absolute; 
  bottom: -4px; /* リンクの下に配置 */
  left: 50%; /* 中央を起点とする */
  transform: translateX(-50%); 
  
  width: 0; /* 初期状態では幅をゼロ */
  height: 2px; 
  background: #4682b4; /* ブランドカラーの青 */
  transition: width 0.3s ease; /* 幅の変化を滑らかに */
}

/* ホバー時のアクション */
nav ul li a:hover { 
  color: #4682b4; /* ホバーで文字色を青に変更 */
}

nav ul li a:hover::after { 
  width: 100%; /* 幅を100%に広げる（中央から展開） */
}

.hamburger { display:none; cursor:pointer; font-size:1.8rem; z-index:1100; }

/* --- モバイルメニュー --- */
.mobile-menu {
  display:none; position:fixed; top:70px; left:0; width:100%; height:calc(100% - 70px);
  background:rgba(255,255,255,0.9); backdrop-filter:blur(6px);
  z-index:9999; overflow-y:auto; padding:40px 20px;
}
.mobile-menu ul {
  display:flex; flex-direction:column; align-items:center;
  list-style:none; padding:0; margin:0; gap:25px;
}
.mobile-menu ul li a {
  font-size:1.4rem; font-weight:600; color:#333; position:relative; transition:all 0.3s ease;
}
.mobile-menu ul li a::after {
  content:""; position:absolute; bottom:-6px; left:50%; transform:translateX(-50%);
  width:0; height:2px; background:#4682b4; transition:width 0.3s ease;
}
.mobile-menu ul li a:hover { color:#4682b4; }
.mobile-menu ul li a:hover::after { width:100%; }

/* --- ヒーロー --- */
.hero {
  position: relative;
  max-width: 100%;
  color: #fff;
  padding:50px 30px;
  min-height: 600px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background:
    linear-gradient( rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
    url('/img/hero1.jpg') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  opacity: var(--fill-layer-image-opacity);
  z-index:0;
  pointer-events: none;
}
.hero h1, .hero p, .hero .btn { position: relative; z-index:1; }
.hero h1 { font-size: clamp(2rem, 6vw, 4.5rem); text-shadow:0 2px 15px rgba(0,0,0,0.8); }
/*.hero h1 { font-size: clamp(2rem, 6vw, 3rem); text-shadow:0 2px 15px rgba(0,0,0,0.8); }*/
.hero p { font-size: clamp(1rem, 3vw, 2rem); padding: 10px 15px; line-height: 1.1; text-shadow:0cap 2px 10px rgba(12, 68, 252, 0.8);}
.hero .btn:hover { background:#5a9bd4; }

/* --- セクション共通 --- 4682b4*/
section { max-width:1200px; margin:0 auto; padding:40px 10px; }
section h2 { text-align:center; margin-bottom:25px; color:#000000; font-size: clamp(2rem, 3vw, 2.5rem); }



/* --- ご挨拶 --- */
#greeting { margin:0 auto; padding:60px 40px; background: rgba(240, 237, 229, 0.808);}
.greeting-container { display:grid; grid-template-columns:2.5fr 1fr; gap:40px; align-items:center; }
.greeting-text p { font-size:1rem; line-height:1.4; color:#383232; font-size: 18px;}
.greeting-text h2 { text-align: left; color: #7a7272;}
.greeting-photo { text-align:center; }
.greeting-photo img { max-width:100%; height:auto; border-radius:0px; box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.25); margin-bottom:15px; }
.greeting-text p.president-title {padding: 30px 20px 0 0; text-align:right; font-size:1rem; font-weight:600;  }
.greeting-text p.president-name {
    padding-right:20px; 
    text-align:right; 
    font-size:1.2rem; 
    font-weight:bold; 
    margin-top:5px;
    
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'MS Mincho', 'serif'; 
}

/* --- 追加：企業理念（ステートメント）案1 --- */
#corporate-philosophy {
    padding: 45px 15px;
    background: #ffffff; /* ヒーローとの境界を白でスッキリさせる */
}
.statement-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0px;
    border: 3px solid #4682b4; /* ブランドカラーの枠線 */
    background-color: #f0f8ff; /* 非常に淡い青 */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.statement-box h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    color: #333;
    line-height: 1.8;
    font-weight: bold;
    word-break: keep-all; /* 途中で変な改行を防ぐ */
}


#philosophy {
    /* セクションの中央寄せは h2 などに適用されているため不要 */
}

.philosophy { 
    list-style: none; 
    padding: 0; 
    
    /* Flexboxを適用 */
    display: flex;
    flex-wrap: wrap; 
    
    /* 行内の項目を中央寄せに配置 */
    justify-content: center; 
    /* リスト全体をセクション内で中央寄せにする */
    max-width: 1100px; /* 33% + マージンを考慮して幅を広げる */
    margin: 0 auto;
    
    /* 項目間の縦の隙間 */
    gap: 15px 0;
}

/* 各リスト項目 */
.philosophy li { 
    /* 可変幅に変更し、3列表示を維持（marginとpaddingを考慮） */
    width: 30%; 
    
    /* 縦横比を固定 (350px / 200px = 1.75 / 1) */
    aspect-ratio: 2 / 1; 

    /* テキストを垂直・水平方向に中央寄せ */
    align-items: center; /* 垂直中央寄せ */
    justify-content: center; /* 水平中央寄せ */
    text-align: center;
    
    /* 項目間の隙間 (中央寄せのためにmarginは左右だけにする) */
    margin: 0 1.5%; 
    
    /* デザイン */
    padding: 20px; /* paddingを減らし、内容を中央に寄せやすくする */
    background: #f0f8ff; 
    
    /* --- 変更点: border-left を削除 --- */
    /* border-left: 10px groove #4682b4; */ 
    
    /*border-radius: 70%; */
    border-radius: 60px; 
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.20); 
    
    flex-grow: 0;
    flex-shrink: 0;
    border-left: 8px groove #4682b4; 
    /* --- 追加: 疑似要素の基準位置とする --- */
    position: relative; 
    /* z-indexを追加して、疑似要素が内容の下にならないようにする */
    z-index: 0; 
}


.philosophy strong { 
    color:#4682b4; 
    font-size:1.2rem; 
    /* 疑似要素がz-index: -1 のため、内容にz-indexは不要 */
    position: relative; /* contentを相対位置にする（疑似要素のz-indexより上に来る）*/
    z-index: 1;
}


.philosophy strong { 
    color:#4682b4; 
    font-size:1.2rem; 
    /* 疑似要素がz-index: -1 のため、内容にz-indexは不要 */
    position: relative; /* contentを相対位置にする（疑似要素のz-indexより上に来る）*/
    z-index: 1;
}

/* 4番目の項目を強制的に次の行に送るためのブレーク要素: 削除 */
/* .philosophy li:nth-child(3)::after は削除 */

/* 2行目の2項目を中央寄せにするためのダミー要素: 削除 */
/* .philosophy::after は削除 */

/* --- 事業内容（2カラム + 新規画像対応） --- */
#services { 
  background: #fdfbf7; 
}

.services-single {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  padding: 30px;
  border-radius: 0px;

  /* 立体感を出すためのスタイル（維持） */
  background: #fff; 
  border-radius: 8px; 
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.25); 
  
  /* ホバー時のアニメーションをなしにする */
  transition: none; 
}

/* 左カラム：事業内容 + 表組 + 新規画像 */
.service-cards {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-cards h2 {
  margin: 0;
  color: #4682b4;
  text-align: left;
}

/* 表デザイン */
.service-table {
  width: 100%;
  border-collapse: collapse;
  background: #f9fcff;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.service-table th, .service-table td {
  padding: 12px 15px;
  text-align: left;
}
.service-table th {
  width: 35%;
  background: #4682b4;
  color: #fff;
  font-weight: 600;
}
.service-table td {
  background: #fff;
  color: #555;
}
.service-table tr:not(:last-child) td {
  border-bottom: 1px solid #ddd;
}

/* 左カラム 新規画像 */
.service-extra-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 右カラム：倉庫イメージ */
.service-image {
  flex: 1 1 400px;
  height: 600px;
  border-radius: 0px;
  overflow: hidden;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 環境方針 --- */
#environment { 
  background: #fdfbf7; 
  /* 立体感を出すためのスタイル（維持） */
  border-radius: 8px; 
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.10); /* 影は残す */
}
.environment-container { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap;  }
.environment-text { flex:1 1 500px; font-size:1rem; line-height:1.4; color:#333; }

/* 環境方針の内容ブロックに実線（solid）の罫線を追加 */
.environment-text p { 
  margin-bottom:10px; 
  padding-bottom: 20px; 
  border-bottom: 1px solid #ccc; 
}
/* 最後の段落からは罫線を削除 */
.environment-text p:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.environment-text strong { color:#4682b4; font-weight:bold; font-size:1.1rem; }
.environment-photo { flex:1 1 300px; text-align:center; }
.environment-photo img { width:100%; height:auto;}

/* --- 会社概要 (地図リンク) --- */
#overview table { width:100%; border-collapse:collapse; box-shadow:0 4px 10px rgba(0,0,0,0.1); border-radius:0px; overflow:hidden; font-size:1rem; }
#overview th, #overview td { padding:12px 15px; text-align:left; border:none; }
#overview th { background:#4682b4; color:#fff; font-weight:600; width:40%; }
#overview td { background:#f9f9f9; color:#333; }
#overview tr:nth-child(even) td { background:#f0f4f8; }

/* 地図リンクをボタン風に */
#overview .map-link { 
  display: inline-flex; 
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 15px;
  background: #5a9bd4; 
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#overview .map-link:hover {
  background: #3a6a99; 
}

/* アイコンのスタイルをGoogleマップのピン風に (白で視認性向上) */
#overview .icon-map:before {
  content: '📌'; 
  margin-right: 8px;
  font-size: 1.1em;
  color: #fff; 
}

/* --- 沿革 --- */
#history{ background: #f7f4ee; margin-bottom: 20px;}
.timeline { list-style:none; padding:0; margin:0 auto; }
.timeline li { margin-bottom:15px; padding-left:40px; border-bottom:1px solid #ddd; padding-bottom:12px; }
.timeline li:last-child { border-bottom:none; }
.timeline .year { display:inline-block; width:40%; margin-left:40px; font-weight:bold; color:#333; }
.timeline .event { display:inline-block; margin-left:10px; line-height:1.5; }
.timeline-container { display:flex; gap:30px; align-items:flex-start; max-width:100%; margin:0 auto; flex-wrap:wrap; }
.timeline-container .timeline { flex:1 1 500px; }
.timeline-container .timeline-photo { flex:1 1 400px; text-align:center; }
.timeline-container .timeline-photo img { width:100%; height:auto; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.1); }

/* --- お問い合わせ --- */
.contact-intro { text-align:center; font-size:1rem; color:#333; margin-bottom:30px; line-height:1.4; }
#contact { text-align:center; padding:60px 20px; }
#contact h2 { font-size:clamp(1.5rem,3vw,2rem); margin-bottom:20px; }

/* テーブル全体のデザイン変更（PC共通） */
.contact-info {
  margin:0 auto; 
  border-collapse:collapse;
  width:100%;
  max-width:1000px; 
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
}

/* ヘッダー (th) の背景色をブランドカラーに（PC共通） */
.contact-info th {
  background: #4682b4; 
  color: #fff;
  font-weight: 600;
  width: 30%; 
  padding: 15px 20px;
  border-right: 1px solid #3a6a99; 
  text-align: left;
  font-size:1rem;
}

/* 各項目をフレックスで配置（PC共通） */
.contact-info td {
  padding: 15px 20px;
  background-color: #fff;
  vertical-align: middle;
  text-align: left;
  color:#333;
  font-size:1rem;
}

/* アイコンのスタイル（PC共通） */
.contact-item {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}
.contact-item a {
  /* --- 修正点: リンクが目立つように色をブランドカラーに固定 --- */
  color: #4682b4; /* 通常時のリンク色を青に設定 */
  text-decoration: none;
  transition: color 0.3s;
}
.contact-item a:hover {
  /* ホバー時は少し明るい青に変更 */
  color: #5a9bd4;
}

/* アイコン設定（PC共通） */
.icon-phone:before { content: '📞'; margin-right: 10px; color: #4682b4; font-size: 1.5rem; }
.icon-mail:before { content: '📧'; margin-right: 10px; color: #4682b4; font-size: 1.5rem; }
.icon-fax:before { content: '📠'; margin-right: 10px; color: #4682b4; font-size: 1.5rem; }

/* 営業時間情報（PC共通） */
.contact-hours {
  margin-top: 5px;
  margin-left: 35px; 
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

/* 既存のボタン関連CSS（変更なし） */
#contact .btn {
  display:inline-block; padding:0.9em 1.8em; font-size:1rem; font-weight:600; text-decoration:none; color:#fff;
  background:linear-gradient(135deg,#4682b4,#5a9bd4); border-radius:10px; box-shadow:0 4px 8px rgba(0,0,0,0.2); transition:all 0.3s ease;
}
#contact .btn:hover { transform:translateY(-3px); box-shadow:0 6px 12px rgba(0,0,0,0.25); background:linear-gradient(135deg,#5a9bd4,#4682b4); }
#contact .map-btn { display:inline-block; margin-top:10px; background:#5a9bd4; padding:8px 16px; border-radius:6px; color:#fff; text-decoration:none; }
/* --- ページ上部戻るボタン (適用案: ⇧ エレガントな太字アイコン) --- */
#backToTop { 
  display:none; 
  position:fixed; 
  bottom:20px; 
  right:20px;
  background:#4682b4; 
  color:#fff; 
  border:none; 
  width:50px; 
  height:50px;
  border-radius:50%; 
  cursor:pointer; 
  
  /* アイコン配置のためにrelativeを指定 */
  position: fixed; /* fixedは元からあるが明示 */
  
  /* ボタン内の元のコンテンツを完全に隠すために調整 */
  text-indent: -9999px; 
  overflow: hidden;
  line-height: 1; 

  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.40); /* 影は残す */)
}

#backToTop::before {
    content: '⇧'; /* アイコンを挿入 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央寄せ */
    font-size: 1.8rem; /* サイズ調整 */
    font-weight: 700; /* 太字 */
    line-height: 1; /* 行の高さをリセットし、垂直方向の中央寄せを助ける */
    text-indent: 0; /* 疑似要素には text-indent を適用しない */
}

/* --- フッター --- */
footer { background:#333; color:#fff; text-align:center; padding:20px ; font-size:0.9rem; }

/* --- レスポンシブ --- */
@media (max-width:768px) {
  nav ul { display: none; }
  .pc-only { display: none; }
  
  /* ハンバーガーを確実に表示する (特異性強化) */
  header .hamburger { 
    display: block; /* !important を削除 */
    z-index: 10000; /* 念のため最前面に出す */
  }

  .hero {
    padding:50px 30px;
    min-height: 300px;
  }

  .hero::before { background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('/img/hero2.jpg') center/cover no-repeat; }  

  .hero h1 { font-size:2rem; }

  .greeting-container { grid-template-columns:1fr; text-align:center; row-gap:20px; }
  .greeting-text { text-align:left; margin-bottom:0; }
  .greeting-text h2 { text-align: center;}

/* 企業理念 (スマホ): 1列縦並びに戻す + 中央寄せを適用 */
  #philosophy {
    text-align: left;
  }
  .philosophy {
    max-width: 100%;
    gap: 0px 0;
    justify-content: center;
    display: flex; 
    flex-direction: column; 
  }
  .philosophy li {
    aspect-ratio:0;
    flex: 0 0 100%;
    margin: 5px 0px;
    width: auto; 
    min-width: unset;
    border-radius: 0%;
    padding: 10px ;
    
    /* ------------------------------------- */
    /* ★ 中央寄せのための追加/修正 */

    align-items: center;       /* 垂直中央寄せ */
    justify-content: center;   /* 水平中央寄せ */
    text-align: left;
    
    /* スマホでは高さを指定して中央寄せを安定させる */
    /* ------------------------------------- */
  }
  
  /* 事業内容：スマホは見出し→画像→表組 */
  .services-single {
    flex-direction: column;
    gap: 20px;
    padding: 0px;
    box-shadow: none; 
  }
  .service-cards {
    width: 100%;
    order: 1;
  }
  .service-cards h2 {
    text-align: center;
    margin-bottom: 15px;
  }
  .service-image {
    width: 100%;
    height: 300px;
    order: 2;
  }

  .environment-container { flex-direction: column; align-items:flex-start; }
  .environment-text, .environment-photo { flex:1 1 100%;}
  .environment-text { text-align:left;  padding: 0px 10px;}

  #overview table, #overview thead, #overview tbody, #overview th, #overview td, #overview tr { display:block; width:100%; }
  #overview th, #overview td { padding:10px 15px; }
  #overview tr { margin-bottom:15px; border-bottom:2px solid #ddd; }

  .timeline li {padding-left:10px;}
  .timeline .year, .timeline .event { display:block; margin-left:0; }
  .timeline .year { margin-bottom:5px; }

  .contact-intro { text-align:left; line-height:1.4; margin-bottom:20px; }
  /* お問い合わせはスマホでもPC同様のテーブル表示を維持 */
  .contact-info tr { 
    display: table-row; 
    margin-bottom: 0;
    border: none;
  }
  
  .contact-info tbody {
    display: table-row-group;
    width: 100%;
  }
  
  .contact-info th, .contact-info td { 
    display: table-cell; 
    text-align: left; 
    width: auto; 
  }

  .contact-info th {
    text-align: left; 
    border-right: 1px solid #3a6a99;
    border-bottom: none;
  }
  
  .contact-hours {
    text-align: left; 
    margin-left: 35px;
  }

  section { padding:20px 5px; }
}

/* --- フェードインアニメーション --- */
.fade-in {
  opacity:0;
  transform: translateY(30px);
  transition: opacity var(--fade-duration), transform var(--fade-duration);
  will-change: opacity, transform;
}
.fade-in.show {
  opacity:1;
  transform: translateY(0);
}