/* 倉庫詳細ページ スタイリング改善案 */
:root {
  --primary-color: #0073aa;
  /* WordPress Blue */
  --text-color: #333;
  --light-gray: #f9f9f9;
  --border-color: #e5e5e5;
}

/* ラッパー */
.soko-detail-wrapper {
  padding: 2rem 0;
}

.detail-content-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローセクション */
.hero-section-split {
  display: flex;
  align-items: center;
  background: #fff;
}

.hero-image-column {
  width: 60%;
}

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

.hero-text-column {
  width: 40%;
  padding: 4rem;
  box-sizing: border-box;
}

.hero-text {
  position: relative;
}

.soko-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-color);
}

.soko-address {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

.edit-link-button {
  display: inline-block;
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.1s;
}

.edit-link-button:hover {
  background-color: #0085c8;
}

.edit-link-button:active {
  transform: translateY(1px);
}

/* 共通セクションスタイル */
.soko-detail-wrapper section {
  margin-bottom: 4rem;
}

.soko-detail-wrapper h2 {
  font-size: 1.2rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
}

.soko-detail-wrapper h2 .en {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.soko-detail-wrapper h2 .ja {
  display: block;
  color: #999;
  color: #000080;
  margin-top: 0.5rem;
  font-size: 1.45em;
  font-weight: bold;
}

/* 概要グリッド */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background-color: var(--border-color);
  border: 1px solid var(--border-color);
}

.overview-item {
  padding: 1.5rem;
  background-color: #fff;
}

.overview-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #777;
  margin: 0 0 0.5rem;
}

.overview-item p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-color);
}

/* 会員限定情報セクション */
.member-only-section {
  background: var(--light-gray);
  padding: 3rem 0;
}

.member-only-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.member-item h4 {
  font-size: 1rem;
  color: #555;
  margin: 0 0 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.member-item p {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

/* 図面セクション */
.drawings-image-wrapper {
  text-align: center;
}

.drawings-image-wrapper img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* マップセクション */
.map-embed-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-embed-wrapper iframe {
  border: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .soko-detail-wrapper {
    padding: 1rem 0;
  }

  .hero-section-split {
    flex-direction: column;
  }

  .hero-image-column,
  .hero-text-column {
    width: 100%;
  }

  .hero-text-column {
    padding: 2rem;
    text-align: center;
  }

  .edit-link-button {
    position: static;
    margin-bottom: 1rem;
  }

  .soko-title {
    font-size: 2rem;
  }
}

/* 利用率を大きくするスタイル */
.member-item.utilization-rate p {
  font-size: 2.5rem; /* 数字のサイズ */
  line-height: 1.2;
  color: #0073aa; /* アクセントカラー */
  font-weight: 700;
}
.member-item.utilization-rate p .unit {
  font-size: 1rem; /* 単位（%）のサイズ */
  font-weight: normal;
  color: #666;
  margin-left: 0.2em;
}

.utilization-rate-display .rate-value {
  font-size: 5rem;
  font-weight: bold;
  text-align: center;
  color: #ea5532;
}

/* 概要グリッド (元のグリッドレイアウト) */
.overview-grid {
  display: grid;
  /* 
    2カラムにする場合は '1fr 1fr' や 'repeat(2, 1fr)'
    レスポンシブにする場合は 'repeat(auto-fit, minmax(280px, 1fr))'
    など、お好みのカラム設定を使用してください。
 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
   */
}

/* 「その他備考」の項目を横幅いっぱいに広げるためのスタイル */
.overview-item.full-width {
  grid-column: 1 / -1;
  order: 99; /* ★★★ この1行を追加 ★★★ */
}

.soko-title {
  display: flex;
  flex-direction: column; /* 各パーツを縦に並べる */
  line-height: 1.2; /* 行間を少し詰める */
  gap: 0.2em; /* 各パーツ間の微細な隙間 */
}

.soko-title .company-name-part {
  display: inline-block;
}

/* ===============================================
   詳細ページの会社名を強制的に改行させるための追加CSS
   =============================================== */

/* h1.soko-titleをFlexboxコンテナとして再定義 */
h1.soko-title {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2em !important;
}

/* 各会社名パーツをブロック要素にして確実な改行を促す */
h1.soko-title .company-name-part {
  display: block !important;
}

.soko-detail-wrapper .hero-text-column .soko-website {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: bold;
}
.soko-detail-wrapper .hero-text-column .soko-website a {
  text-decoration: none;
  color: #007bff; /* リンクの色（適宜変更してください） */
  display: inline-flex;
  align-items: center;
  gap: 0.5em; /* アイコンと文字の間隔 */
}
.soko-detail-wrapper .hero-text-column .soko-website a:hover {
  text-decoration: underline;
}
