@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/



/* フォーム全体 */
#cf-tbl {
  width: 800px;
  margin: 0 auto;
}
#cf-tbl table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
  color: #444;
  background: #fff;
}
#cf-tbl th,
#cf-tbl td {
  border: 1px solid #ccc;
  padding: 0.8em;
  vertical-align: middle;
  text-align: left;
}
#cf-tbl th {
  width: 30%;
  background: #f8f8f8;
  font-weight: bold;
}

/* 入力欄の見栄え調整 */
input.wpcf7-form-control,
textarea.wpcf7-form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f4f6f8;
  font-size: 1rem;
}

/* ラベルバッジ */
.required {
  font-size: 0.75rem;
  padding: 3px 6px;
  background: #d00;
  color: #fff;
  border-radius: 3px;
  margin-right: 6px;
}
.optional {
  font-size: 0.75rem;
  padding: 3px 6px;
  background: #003399;
  color: #fff;
  border-radius: 3px;
  margin-right: 6px;
}

/* 送信ボタン */
input.wpcf7-submit,
.submit-btn {
  display: inline-block;
  background: #005bac;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}
input.wpcf7-submit:hover,
.submit-btn:hover {
  background: #003e82;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  #cf-tbl {
    width: 100%;
    padding: 0 10px;
  }
  #cf-tbl table,
  #cf-tbl thead,
  #cf-tbl tbody,
  #cf-tbl th,
  #cf-tbl td,
  #cf-tbl tr {
    display: block;
    width: 100%;
  }
  #cf-tbl th {
    background: #f0f0f0;
    padding-top: 10px;
  }
  #cf-tbl td {
    padding-bottom: 15px;
  }
}


/* ——————————————————————————————
   Matching horizon-you.com/company style
—————————————————————————————— */

/* 全体ベース調整 */
body.page-id-会社概要 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.8;
}

/* セクションの余白と境界 */
.section-title {
  font-size: 2em;
  margin: 2em 0 1em;
  padding-bottom: 0.3em;
  border-bottom: 3px solid #005bac;
}

/* テーブル見出しスタイル向上 */
.company-table th {
  background: #f0f6fa;
  font-size: 1em;
  color: #005bac;
}

/* テーブルセルに行間と背景追加 */
.company-table td {
  background: #fff;
  font-size: 0.95em;
}

/* iframe マップを影付きカード風に */
.responsive-map {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* 物件画像もカード風に装飾 */
.property-images img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* メディアクエリ：スマホでは全幅、テーブル代替の場合にナイス表示 */
@media (max-width: 768px) {
  .company-table th {
    background: #e0f0ff;
  }
  .property-images {
    gap: 8px;
  }
}


/* 見出しh3のカラー調整 */
body.page-id-会社概要 h3 {
  color: #005bac;
  margin-top: 1.5em;
  font-size: 1.25em;
}

/* ▼ 全体の最大幅解除・フルワイド化 */
.container,
#content,
.article,
.main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  background-color: #fff;
}

/* Cocoon独自のコンテンツ制限クラス解除 */
.content-in {
  max-width: 100% !important;
  padding: 0 !important;
}

/* セクション内部にパディングを再定義（見やすさのため） */
.company-container section {
  padding: 40px 5%;
}

/* ヒーロー画像は幅いっぱいに */
.company-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw); /* グリッド中央からはみ出して全幅表示 */
}

.wrap,
.main,
.content {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ページ全体の幅をフルワイドに */
body.page-id-会社概要 .container,
body.page-id-会社概要 .company-container,
body.page-id-会社概要 .site-content,
body.page-id-会社概要 .wrap {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* セクションの中身も広げる（必要な範囲で） */
body.page-id-会社概要 .company-table,
body.page-id-会社概要 .responsive-map iframe,
body.page-id-会社概要 section,
body.page-id-会社概要 .business-box,
body.page-id-会社概要 .message-box {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto;
}

/* テーブルなどが極端に広がりすぎないよう内側にパディング */
body.page-id-会社概要 .company-table td,
body.page-id-会社概要 .company-table th,
body.page-id-会社概要 section {
  padding-left: 2.5vw;
  padding-right: 2.5vw;
}

/* heroナビボタンの中央寄せ調整 */
.company-nav-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* iframeマップをしっかりフィットさせる */
.responsive-map iframe {
  width: 100%;
  height: 450px;
  border: none;
}