@charset "UTF-8";

/* ============================= */
/* 全体レイアウト */
/* ============================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 90vh;
  color: #2c2c2c;
}

/* 見出し */
h1 {
  font-size: 1.2rem;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  color: #2c2c2c;
  font-weight: bold;
}

.logo-image {
  width: 30%;
  max-width: 130px; /* 最大幅を指定 */
  height: auto;
}

/* container は横並び（aside + main） */
.container {
  display: grid;
  grid-template-columns: 38% 60%; /* 2列 */
  grid-template-rows: auto auto auto; /* 3行 */
  gap: 5px;
  padding: 0.1em 0;
  width: 90%;
  margin: 0 auto;
  margin-top: 2px;
  align-items: center;
}
.aside.combined,
.main {
  display: flex;
  flex-direction: column;
  justify-content: center; /* ← 上下中央揃え */
}
.aside {
  padding: 0.3em;
}

.main {
  padding: 0.1em 0;
}

.combined {
  grid-row: 2 / span 2; /* 2行目から3行目まで縦に結合 */
}
.aside.combined img {
  width: 60%;
  height: auto;
  display: block; /* 余計な隙間をなくす */
  margin-left: 120px; /*  右にずらす量を指定 */
  margin-top: 10px; /*  上にずらす量を指定 */
}

a {
  text-decoration: none; /* 下線を消す */
  color: inherit; /* 親要素の色を継承する（青くならない） */
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px; /* ロゴと会社名の間隔 */
}

.logo-title .logo-image {
  width: 50px; /* 必要に応じて調整 */
  height: auto;
}

.logo-title .company-name {
  font-size: 1.2rem;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  color: #2c2c2c;
  margin: 0;
}

.logo-image {
  width: 8px; /* ここでサイズを調整。必要に応じて変更可能 */
  height: auto; /* アスペクト比を保つ */
}


/* ============================= */
/* ヘッダー */
/* ============================= */
header {
  padding: 2px 8px;
  padding-bottom: 20px; /* 下に余白を追加 */
  padding-left: 80px;
  background-color: #fff;
  border-bottom: 1px solid #2c2c2c;
}

/* ============================= */
/* nav class="topbox" */
/* ============================= */
.topbox {
  display: grid;
  grid-template-columns: 70% 10% 10%;
  gap: 10px;
  align-items: center;
  color: #444;
  height: 40px;
}

.box-a,
.box-b,
.box-c {
  display: flex;
  align-items: center; /* 子要素を縦中央寄せ */
  height: 100%; /* 親の高さに合わせる */
  padding: 0 1px;
  margin-top: 10px;
}
.box-a {
  /* ヘッダー会社名 */
  border: none;
  cursor: pointer;
  transition: background-color 1.5s ease;
  color: #2c2c2c;
}
.topbox .box-b,
.topbox .box-c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.2em 0.8em;
  padding-bottom: 4px; /* 枠線の表示スペースを確保 */
  cursor: pointer;
  height: auto;
  font-family: "Noto Sans JP", "YuGothic", sans-serif;
  color: #2c2c2c;
  border-color: #1a73e8;
}

.box-b,
.box-c {
  position: relative; /* 擬似要素の位置基準にするため必須 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.2em 0.8em;
  cursor: pointer;
  font-family: "Noto Sans JP", "YuGothic", sans-serif;
  color: #2c2c2c;
  border-color: #1a73e8;
}

/* 下線の定義 */
.box-b::after,
.box-c::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 60%;
  height: 1px;
  background: #1a73e8;
  bottom: 2px; /*調整すれば位置を上にできる */
  transform: translateX(-50%) scaleX(0); /* 両方まとめる */
  transform-origin: center; /* 中央から伸ばす */
  transition: transform 0.3s ease;
}

/* ホバー時に下線を表示 */
.box-b:hover::after,
.box-c:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.box-b:hover,
.box-c:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}

.box-b.active,
.box-c.active {
  color: #2c2c2c;
  border-color: #1a73e8;
}

/*アクティブ時（常時表示） */
.box-b.active::after,
.box-c.active::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 60%;
  height: 1px;
  background: #1a73e8; /* 下線の色 */
  color: #1e1e1e;
  bottom: 2px; /* 下線の位置 */
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
}

/* ============================= */
/* TOPページ  class="indexbox" 透明丸ボタン*/
/* ============================= */

.indexbox {
  display: flex; /* フレックス*/
  justify-content: center; /* 左右中央揃え */
  gap: 10px;
  color: #444;
}

.topbox .button-b,
.topbox .button-c {
  flex: 1;
  max-width: 200px;
  font-size: 0.9rem;
  padding: 0.2em 0.8em;
  border: 1px solid #2c2c2c;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 1.5s ease; /* 1.5秒 */
  height: auto;
  text-align: center; /* 枠内文字中 */
  font-family: "Noto Sans JP", "YuGothic", sans-serif;
}

.button-b:hover,
.button-c:hover {
  /* マウスを合わせると薄い白 */
  background-color: #949494;
  border: 1px solid #949494;
  color: #fff;
}

.company-section {
  text-align: center;
  margin-top: 0;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 0.1em; /* ボタンを上に詰める */
}

.button-icon {
  /*  矢印の丸囲み */
  display: inline-flex;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  border: 1px solid var(--button-border);
  margin-left: 10px;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
  color: var(--white-soft);
}

/* TOPページのメインコンテンツ中央寄せ */
body.topPage .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("../image/dobi.png");
  background-size: cover;
  background-position: center; /* 上部を優先して表示 */
  background-repeat: no-repeat; /* 繰り返しなし */
  height: 90vh; /*  高さを指定  */
  padding: 1em; /* 中の余白を確保 */
  position: relative;
}

/* 会社名（日本語） */
.index-com-text {
  font-size: 3rem;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
  letter-spacing: 0.1em; /* 文字間隔を少し広げる */
  margin-top: 4em;
  margin-bottom: 0.5em;
  text-align: center;
}

/* 会社名（英語） */
.index-com-en {
  font-size: 1.6rem;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 500;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
  margin-bottom: 1.5em;
  text-align: center;
  letter-spacing: 0.1em;
}

/* ボタン中央寄せ */
.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ボタンスタイル（既存を活かしつつ視認性強化） */
.button-group .button-b,
.button-group .button-c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.4rem;
  /*border-radius: 28px;*/
  border: 1px solid var(--button-border);
  background: transparent;
  color: var(--white-soft);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1),
    background-color 0.28s ease, box-shadow 0.28s ease;
  text-decoration: none;
}

.button-group .button-b:hover,
.button-group .button-c:hover {
  background: var(--button-hover-bg);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  background: var(--button-hover-bg);
  background-color: rgba(255, 255, 255, 0.3) !important;
  border-color: #ffffff;
  color: #ffffff;
}

:root {
  --text-charcoal: #222222;
  --muted-charcoal: rgba(34, 34, 34, 0.78);
  --white-soft: rgba(255, 255, 255, 0.92);
  --button-border: rgba(255, 255, 255, 0.85);
  --button-hover-bg: rgba(255, 255, 255, 0.12);
}

/* ============================= */
/* 会社名のフェードイン */
/* ============================= */

/* フェードイン＋浮き上がりアニメーション */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 日本語会社名 */
.index-com-text {
  animation: fadeUp 1.5s ease forwards;
}

/* 英語会社名 */
.index-com-en {
  animation: fadeUp 2s ease forwards;
}

/* ============================= */
/* フッター（コピーライト） */
/* ============================= */
footer {
  background-color: #fff;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2c2c2c;
  font-size: 0.9rem;
}

/* ============================= */
/* 事業紹介（jigyo-product-） */
/* ============================= */

.jigyo-container {
  display: grid;
  grid-template-columns: auto; /* 1列 */
  width: 90%;
  margin: 0 auto;
  margin-top: 0px; /*親テーブル上余白*/
  padding-top: 0.5em;
}

.jigyo-aside.combined,
.jigyo-main {
  display: flex;
  flex-direction: column;
  margin-top: 1px;
}

.jigyo-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr; /* ← 右端に1列追加 */
  grid-template-rows: repeat(4, auto);
  gap: 0.5px;
  width: 98%;
  max-width: auto;
  margin-top: 0px;
  padding-top: 0px;
}

.jigyo-item {
  text-align: center;
  padding: 1px;
  font-size: 1rem;
  color: #000;
  text-align: left; /* ← 左揃え */
}

/* 各セルの配置と背景色 */
.item-a {
  /* 画像 */
  grid-column: 1 / 2;
  grid-row: 1;
  padding: 0 !important; /* 内側の余白をゼロに */
  margin: 0 !important; /* 外側の余白もゼロに */
  margin-top: 2px;
}

.tk_logo {
  max-width: 250px; /* 最大幅 */
  height: auto; /* 高さは自動調整 */
  display: block;
  margin-top: 30px;
}
.item-b {
  grid-column: 2 / 5;
  grid-row: 1;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  margin-top: 30px;
  padding-left: 1em;
}

.jigyo-image-wrapper {
  margin-top: 0px;
  padding-top: 0px;
  display: flex;
  justify-content: center;
  align-items: start;
}

/* 会社情報 */
.item-c {
  grid-column: 1 / 3;
  grid-row: 2;
  margin-top: 30px;
}
.info-list {
  list-style: none;
  margin: 0.9em;
  padding-left: 0;
}

.info-list li {
  display: flex;
  padding: 0.2em 0;
  line-height: 0.9em;
}

.info-list .value {
  display: inline-block;
  width: 28em;
  border-bottom: 1px solid #2c2c2c;
  padding-bottom: 0.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 事業案内にテーブル使用した場合 start */
table {
  border-collapse: collapse;
}
th {
  width: 30%;
  background-color: #fff;
  color: #2c2c2c;
  padding: 5px;
  text-align: center;
  border-bottom: 1px solid #2c2c2c;
}
td {
  padding: 5px 2px;
  border-bottom: 1px solid #2c2c2c; /* 横線 */

}
/* 事業案内にテーブルを使用した場合 end */
.item-d {
  /*マップラベル*/
  grid-column: 3 / 5;
  grid-row: 2 / span 2; /* item-cと高さを揃える */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.5em;
  margin-top: 30px;
  padding-left: 8em; /* ← 左側に余白を追加 */
}

.map-button {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px solid #1a73e8;
  border-radius: 20px;
  background-color: #1a73e8;
  color: #fff;
  font-family: "Noto Sans JP", "YuGothic", sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  float: left; /* ← 右寄せ */
}

.map-button:hover {
  background-color: #fff;
  color: #1a73e8;
  font-weight: bold;
}

/* ============================= */
/* 商品紹介（product-） */
/* ============================= */

.product {
  display: grid;
  grid-template-columns: 31% 31% 31%;
  grid-template-rows: auto auto auto; /* 3行 */
  gap: 10px;
  align-items: start;
  color: #444;
  padding: 0.2em;
  width: 85%;
  margin: 0 auto;
  margin-top: 0.1em;
}

.product > .product-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
}

/* 画像を囲むラッパー */

.image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 252, 252, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-wrapper:hover::after {
  opacity: 1;
}

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

.product-desc {
  text-align: center;
  margin-top: 0.2em;
}

/* ============================= */
/* 事業案内と商品案内のラベル */
/* ============================= */
.label-box {
  display: inline-block;
  padding: 0.1em 0.5em;
  color: #2c2c2c;
  font-family: "Noto Sans JP", "YuGothic", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: fit-content; /* ← 内容に合わせて幅を調整 */
  margin-top: 1em;
  letter-spacing: 0.2em; /* ← 文字の間隔を少し広げる */
  border: none; /* ← 全体の枠線を消す */
  border-bottom: 2px solid #1a73e8; /* ← 下線だけ表示 */
}

/* ============================= */
/* レスポンシブ強化版 */
/* ============================= */

/* スマホ用メニュー改善 */
@media (max-width: 768px) {
  .container,
  aside,
  main {
    width: 100%;
  }

  .topbox .box-b,
  .topbox .box-c {
    width: 80%;
    font-size: 0.9rem;
    text-align: center;
  }

  /* TOP文字サイズ */
  .index-com-text {
    font-size: 1.8rem;
  }

  .index-com-en {
    font-size: 1.1rem;
  }

  /* 商品紹介 2列 → 1列 */
  .product {
    grid-template-columns: 1fr;
  }

  /* 事業案内のマップ幅調整 */
  iframe {
    width: 100% !important;
    height: auto;
  }

  .map-button {
    margin-bottom: 10px;
  }

  .info-list .value {
    width: 100%;
    white-space: normal;
  }
  header {
    padding: 10px;
    text-align: center;
  }

  .topbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    background-color: #fff; /* 背景白 */
  }
  .box-a {
    margin-bottom: 8px; /* ロゴ下に余白 */
    font-size: 1.2rem;
    font-weight: bold;
  }

  .box-b,
  .box-c {
    width: 90%;
    text-align: center;
    font-size: 1.1rem;
    padding: 0.8em 0;
    background-color: #fff;
  }
  /* 事業紹介ページにテーブルを使用した場合 start */
  table {
    margin: 5px auto;
  }
  table th,
  table td {
    display: block;
    width: 95%;
  }
  table th {
    background-color: #fff;
    color: #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
  }
  /* 事業紹介ページにテーブルを使用した場合 end */
}
/* 超小型スマホ (480px 以下) */

@media (max-width: 480px) {
  h1 {
    font-size: 1.2rem;
  }

  .topbox .box-b,
  .topbox .box-c {
    width: 80%;
    font-size: 0.85rem;
    padding: 0.3em;
  }

  .index-com-text {
    font-size: 1.2rem;
  }

  .index-com-en {
    font-size: 0.9rem;
  }

  .label-box {
    font-size: 0.8rem;
    padding: 0.2em 0.6em;
  }

  .label-box {
    font-size: 0.85rem;
  }

  .box-b,
  .box-c {
    font-size: 1rem;
    padding: 1em 0;
  }

  .item-b {
    padding-left: 0;
    text-align: center;
  }

  /* ▼ ホバー時の色変更も無効化 */
  .box-b:hover,
  .box-c:hover {
    color: #2c2c2c;
    border-color: transparent;
  }

  /* ▼ 事業案内ページの画像とテキストを縦並びに */
  .jigyo-grid-container {
    display: grid;
    grid-template-columns: 1fr; /* 1列にする */
    grid-template-rows: auto auto; /* 画像→テキスト */
  }

  .item-a {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 20px; /* 画像下に余白 */
  }

  .item-b {
    grid-column: 1;
    grid-row: 2;
    padding-left: 0; /* 左余白を削除 */
    text-align: center; /* 中央寄せ */
  }
}

/* ▼ PC表示は現状維持 */

/* ▼ タブレット・スマホで縦並びに変更 */
/* ============================= */
/* レスポンシブ強化版 */
/* ============================= */

/* タブレット (1024px 以下) */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .topbox .box-b,
  .topbox .box-c {
    width: 100%;
    max-width: none;
  }

  /* ヘッダー横幅調整 */
  .topbox {
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: 5px;
  }

  .box-a {
    grid-column: 1 / 3;
    justify-content: center;
  }

  .box-b,
  .box-c {
    justify-content: center;
  }

  /* TOPページの文字サイズ */
  .index-com-text {
    font-size: 2.2rem;
  }

  .index-com-en {
    font-size: 1.2rem;
  }

  /* 商品紹介 3列→2列 */
  .product {
    grid-template-columns: 1fr 1fr;
  }

  .item-a,
  .item-b,
  .item-c,
  .item-d {
    grid-column: 1 / 3;
  }
  .jigyo-grid-container {
    grid-template-columns: 1fr; /* 1列にする */
    grid-template-rows: auto auto auto auto; /* 順番：画像→文章→会社情報→地図 */
  }

  .item-a {
    grid-row: 1;
    margin-bottom: 20px;
  }

  .item-b {
    grid-row: 2;
    padding-left: 0;
    margin-bottom: 20px;
    text-align: left;
  }

  .item-c {
    grid-row: 3;
    margin-bottom: 20px;
  }

  .item-d {
    grid-row: 4;
    padding-left: 0;
    justify-content: center;
    width: 100%;
  }

  iframe {
    width: 100% !important;
    height: auto;
    display: block;
  }
}
