@charset "UTF-8";
/*
Theme Name: Kagawashokai
Theme URI: https://kagawashokai.jp/
Description: 有限会社香川商会「機械式駐車場の塗替え専門」サイト用オリジナルテーマ。Elementor で各ページの中身を編集できるよう設計しています。ヘッダー・フッター・スマホ固定電話バー・全体のデザインはテーマ側で完成しています。
Author: 有限会社 香川商会
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kagawashokai
Tags: business, custom-menu, elementor
*/

/* =========================================================
   カラー設計
   紺（信頼／建設業らしい堅実さ） × グレー × オレンジ（行動喚起）
   ========================================================= */

:root {
  --navy:        #0d2a4d;
  --navy-dark:   #081d36;
  --navy-light:  #1c4a80;
  --steel:       #4a5b6e;
  --gray-100:    #f5f7fa;
  --gray-200:    #e6eaf0;
  --gray-300:    #cdd5df;
  --text:        #1e2833;
  --text-sub:    #55606d;
  --accent:      #e2661a;
  --accent-dark: #c2540f;
  --white:       #fff;
  --radius:      6px;
  --shadow:      0 2px 14px rgba(13, 42, 77, .08);
  --shadow-lg:   0 8px 34px rgba(13, 42, 77, .14);
  --maxw:        1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy-light); }
a:hover { opacity: .85; }

.ks-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.ks-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 10px 16px; }

/* =========================================================
   ヘッダー
   ========================================================= */
.ks-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
}
body.admin-bar .ks-header { top: 32px; }

.ks-header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 20px; position: relative;
}
.ks-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.ks-logo:hover { opacity: 1; }
.ks-logo-mark {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 5px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.15; text-align: center;
}
.ks-logo-txt strong { display: block; font-size: 17px; line-height: 1.35; letter-spacing: .02em; white-space: nowrap; }
.ks-logo-txt span { display: block; font-size: 11px; color: var(--text-sub); letter-spacing: .04em; }

.ks-gnav { margin-left: auto; }
.ks-gnav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.ks-gnav a {
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent; display: block; white-space: nowrap;
}
.ks-gnav a:hover,
.ks-gnav .current-menu-item > a,
.ks-gnav .current_page_item > a { border-bottom-color: var(--accent); opacity: 1; }

.ks-header-cta { display: flex; align-items: center; gap: 12px; }
.ks-header-tel { text-align: right; line-height: 1.25; text-decoration: none; color: var(--text); }
.ks-header-tel:hover { opacity: 1; }
.ks-header-tel .lbl { font-size: 10px; color: var(--text-sub); letter-spacing: .06em; display: block; }
.ks-header-tel .num { font-size: 23px; font-weight: 700; color: var(--navy); letter-spacing: .01em; display: block; white-space: nowrap; }
.ks-header-tel .sub { font-size: 10px; color: var(--text-sub); display: block; white-space: nowrap; }

.ks-btn-nav {
  background: var(--accent); color: #fff !important; text-decoration: none;
  padding: 13px 18px; border-radius: var(--radius); font-weight: 700; font-size: 14px;
  white-space: nowrap; line-height: 1.3; text-align: center;
}
.ks-btn-nav:hover { background: var(--accent-dark); opacity: 1; }
.ks-nav-toggle { display: none; }

/* =========================================================
   下層ページ見出し・パンくず
   ========================================================= */
.ks-page-head {
  background: linear-gradient(100deg, var(--navy-dark), var(--navy-light));
  color: #fff; padding: 48px 0;
}
.ks-page-head h1 { font-size: 32px; margin: 0 0 6px; line-height: 1.45; }
.ks-page-head p { margin: 0; color: #c2d3e6; font-size: 14px; }
.ks-breadcrumb { background: var(--gray-100); font-size: 12px; color: var(--text-sub); padding: 10px 0; }
.ks-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ks-breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--gray-300); }
.ks-breadcrumb li:last-child::after { content: ""; }
.ks-breadcrumb a { color: var(--text-sub); }

/* =========================================================
   汎用パーツ（Elementor の「CSSクラス」欄に入れて使えます）
   ========================================================= */
.ks-sec { padding: 72px 0; }
.ks-sec-gray { background: var(--gray-100); }

.ks-sec-head { text-align: center; margin-bottom: 40px; }
.ks-sec-head .en {
  display: block; font-size: 12px; letter-spacing: .22em;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.ks-sec-head h2 { font-size: 30px; line-height: 1.45; margin: 0 0 12px; font-weight: 700; }
.ks-sec-head p { margin: 0; color: var(--text-sub); font-size: 15px; }

.ks-h-bar {
  font-size: 21px; margin: 0 0 18px; padding-left: 14px;
  border-left: 5px solid var(--navy); line-height: 1.5;
}

.ks-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.ks-card h3 { margin-top: 0; }

.ks-lead { font-size: 17px; }
.ks-center { text-align: center; }
.ks-marker { background: linear-gradient(transparent 62%, rgba(226,102,26,.85) 62%); padding: 0 2px; }

/* ボタン */
.ks-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; border-radius: var(--radius);
  padding: 17px 30px; font-size: 16px; border: 2px solid transparent; cursor: pointer;
  transition: .15s; line-height: 1.4; text-align: center;
}
.ks-btn-primary { background: var(--accent); color: #fff !important; box-shadow: 0 4px 0 var(--accent-dark); }
.ks-btn-primary:hover { background: var(--accent-dark); box-shadow: 0 2px 0 var(--accent-dark); transform: translateY(2px); opacity: 1; }
.ks-btn-outline { background: rgba(255,255,255,.06); color: #fff !important; border-color: rgba(255,255,255,.7); }
.ks-btn-outline:hover { background: rgba(255,255,255,.16); opacity: 1; }
.ks-btn-navy { background: var(--navy); color: #fff !important; }
.ks-btn-navy:hover { background: var(--navy-dark); opacity: 1; }
.ks-btn-lg { padding: 20px 40px; font-size: 18px; }

/* 電話ブロック */
.ks-telbox {
  background: #fff; border-radius: var(--radius); padding: 14px 30px;
  text-decoration: none; display: inline-block; box-shadow: var(--shadow); text-align: center;
}
.ks-telbox:hover { opacity: 1; }
.ks-telbox .lbl { display: block; font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.ks-telbox .num { display: block; font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.ks-telbox .sub { display: block; font-size: 11px; color: var(--text-sub); }

/* 数字バー */
.ks-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.ks-stats .num { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.ks-stats .num small { font-size: 15px; }
.ks-stats .lbl { font-size: 13px; color: var(--text-sub); }

/* ターゲット別カード */
.ks-target {
  background: #fff; border: 1px solid var(--gray-200); border-top: 5px solid var(--navy);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); height: 100%;
}
.ks-target.b { border-top-color: var(--steel); }
.ks-target h3 { font-size: 21px; margin: 0 0 6px; }
.ks-target .who { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.ks-target ul { margin: 0 0 22px; padding-left: 1.2em; color: var(--text-sub); font-size: 15px; }
.ks-target ul li { margin-bottom: 6px; }

/* 選ばれる理由 */
.ks-reason {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); height: 100%;
}
.ks-reason .no {
  display: inline-block; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 40px; letter-spacing: .08em; margin-bottom: 14px;
}
.ks-reason h3 { font-size: 19px; margin: 0 0 10px; line-height: 1.5; }
.ks-reason p { margin: 0; font-size: 15px; color: var(--text-sub); }

/* 表 */
.ks-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.ks-table th, .ks-table td { border: 1px solid var(--gray-300); padding: 13px 16px; text-align: left; vertical-align: top; }
.ks-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.ks-table tbody th { background: var(--gray-100); color: var(--text); width: 200px; font-weight: 700; }
.ks-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 工程ステップ */
.ks-steps { counter-reset: ksst; margin: 0; padding: 0; list-style: none; }
.ks-steps > li {
  position: relative; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px 28px 24px 90px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.ks-steps > li::before {
  counter-increment: ksst; content: counter(ksst, decimal-leading-zero);
  position: absolute; left: 24px; top: 24px;
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 700;
}
.ks-steps h3 { margin: 0 0 8px; font-size: 19px; }
.ks-steps p { margin: 0; color: var(--text-sub); font-size: 15px; }
.ks-tag {
  display: inline-block; background: var(--gray-100); border: 1px solid var(--gray-300);
  border-radius: 3px; font-size: 12px; padding: 2px 9px; margin: 6px 6px 0 0; color: var(--text-sub);
}

/* チェックリスト */
.ks-check { list-style: none; margin: 0; padding: 0; }
.ks-check li {
  position: relative; padding: 12px 12px 12px 44px; border-bottom: 1px solid var(--gray-200); font-size: 16px;
}
.ks-check li:last-child { border-bottom: 0; }
.ks-check li::before {
  content: "✓"; position: absolute; left: 12px; top: 14px;
  width: 22px; height: 22px; border-radius: 3px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1;
}
.ks-check-note {
  margin-top: 18px; background: #fff5ef; border: 1px solid #f0c3a2; border-radius: var(--radius);
  padding: 16px 20px; font-size: 15px; font-weight: 700;
}

/* FAQ */
.ks-faq details { border-bottom: 1px solid var(--gray-200); background: #fff; }
.ks-faq details:first-of-type { border-top: 1px solid var(--gray-200); }
.ks-faq summary {
  cursor: pointer; padding: 20px 48px 20px 56px; position: relative; font-weight: 700; font-size: 17px; list-style: none;
}
.ks-faq summary::-webkit-details-marker { display: none; }
.ks-faq summary::before {
  content: "Q"; position: absolute; left: 18px; top: 20px;
  width: 26px; height: 26px; border-radius: 4px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1;
}
.ks-faq summary::after { content: "＋"; position: absolute; right: 20px; top: 20px; color: var(--accent); font-weight: 700; }
.ks-faq details[open] summary::after { content: "－"; }
.ks-faq .ks-a { padding: 0 24px 22px 56px; color: var(--text-sub); font-size: 15px; }

/* 注記 */
.ks-note {
  background: #fffbe9; border: 1px solid #e6d59b; border-radius: var(--radius);
  padding: 14px 18px; font-size: 14px; color: #6b5a17;
}

/* 写真プレースホルダ */
.ks-photo-ph {
  background: var(--gray-200); border: 1px dashed var(--gray-300); border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  color: var(--text-sub); font-size: 13px; text-align: center; padding: 16px; line-height: 1.6;
}

/* =========================================================
   施工実績（カスタム投稿）
   ========================================================= */
.ks-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ks-work {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: block;
}
.ks-work:hover { box-shadow: var(--shadow-lg); opacity: 1; }
.ks-work .thumb { aspect-ratio: 4 / 3; background: var(--gray-200); overflow: hidden; }
.ks-work .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ks-work .body { padding: 18px 20px 22px; }
.ks-work h3 { font-size: 17px; margin: 0 0 10px; line-height: 1.5; }
.ks-work dl { margin: 0; font-size: 13px; display: grid; grid-template-columns: 78px 1fr; gap: 5px 10px; }
.ks-work dt { color: var(--text-sub); }
.ks-work dd { margin: 0; font-weight: 600; }
.ks-badge {
  display: inline-block; background: var(--gray-100); border: 1px solid var(--gray-300);
  font-size: 12px; padding: 3px 10px; border-radius: 40px; color: var(--text-sub); margin: 0 6px 6px 0;
}

/* =========================================================
   CTA帯
   ========================================================= */
.ks-cta { background: var(--navy); color: #fff; padding: 58px 0; text-align: center; }
.ks-cta h2 { font-size: 28px; margin: 0 0 10px; line-height: 1.5; }
.ks-cta p { margin: 0 0 26px; color: #c2d3e6; font-size: 15px; }
.ks-cta-box { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; align-items: center; }

/* =========================================================
   Contact Form 7
   ========================================================= */
.ks-form-wrap {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.ks-form-row { margin-bottom: 22px; }
.ks-form-row > label:first-child { display: block; font-weight: 700; margin-bottom: 7px; font-size: 15px; }
.ks-req, .ks-opt {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 3px;
  margin-left: 8px; vertical-align: 2px; font-weight: 700;
}
.ks-req { background: var(--accent); color: #fff; }
.ks-opt { background: var(--gray-200); color: var(--text-sub); }
.ks-hint { font-size: 13px; color: var(--text-sub); margin-top: 6px; }

.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel],
.wpcf7 input[type=url], .wpcf7 input[type=number], .wpcf7 input[type=date],
.wpcf7 select, .wpcf7 textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 16px; font-family: inherit; background: #fff; color: var(--text);
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: 2px solid var(--navy-light); outline-offset: 1px; border-color: var(--navy-light);
}
.wpcf7 .wpcf7-list-item { margin: 0 18px 6px 0; }
.wpcf7 .wpcf7-list-item-label { font-weight: 500; }
.wpcf7 input[type=submit] {
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius);
  padding: 18px 46px; font-size: 18px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 0 var(--accent-dark); width: 100%; max-width: 420px;
}
.wpcf7 input[type=submit]:hover { background: var(--accent-dark); }
.wpcf7 .wpcf7-not-valid-tip { color: #b3261e; font-size: 13px; font-weight: 700; }
.wpcf7 .wpcf7-not-valid { border-color: #b3261e !important; background: #fff7f6; }
.wpcf7 form .wpcf7-response-output {
  border-radius: var(--radius); border-width: 2px; padding: 14px 18px; margin: 18px 0 0; font-size: 15px;
}
.ks-privacy-box {
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 16px 18px; font-size: 13px; color: var(--text-sub);
  max-height: 180px; overflow-y: auto; margin-bottom: 16px;
}

/* =========================================================
   投稿本文（お知らせ等）
   ========================================================= */
.ks-entry { padding: 56px 0; }
.ks-entry h2 { font-size: 24px; margin: 40px 0 14px; padding-left: 14px; border-left: 5px solid var(--navy); }
.ks-entry h3 { font-size: 19px; margin: 30px 0 10px; }
.ks-entry img { border-radius: var(--radius); }
.ks-entry table { width: 100%; border-collapse: collapse; }
.ks-entry table th, .ks-entry table td { border: 1px solid var(--gray-300); padding: 10px 14px; }
.ks-meta { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.ks-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.ks-pagination .page-numbers {
  padding: 9px 15px; border: 1px solid var(--gray-300); border-radius: var(--radius);
  text-decoration: none; background: #fff;
}
.ks-pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* =========================================================
   フッター
   ========================================================= */
.ks-footer { background: var(--navy-dark); color: #b9c8da; padding: 52px 0 120px; font-size: 14px; }
.ks-footer a { color: #b9c8da; text-decoration: none; }
.ks-footer a:hover { color: #fff; opacity: 1; }
.ks-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.ks-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.ks-footer ul { list-style: none; margin: 0; padding: 0; }
.ks-footer ul li { margin-bottom: 7px; }
.ks-footer .company strong { color: #fff; font-size: 19px; display: block; margin-bottom: 8px; }
.ks-copy { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 18px; text-align: center; font-size: 12px; }

/* =========================================================
   スマホ固定CTA
   ========================================================= */
.ks-spfix {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--gray-200);
  padding: 8px; gap: 8px; box-shadow: 0 -3px 16px rgba(0,0,0,.12);
}
.ks-spfix a {
  flex: 1; text-align: center; text-decoration: none; border-radius: var(--radius);
  padding: 12px 4px; font-weight: 700; font-size: 14px; line-height: 1.3;
}
.ks-spfix .t { background: var(--navy); color: #fff; }
.ks-spfix .m { background: var(--accent); color: #fff; }
.ks-spfix small { display: block; font-size: 10px; font-weight: 500; opacity: .88; }

/* =========================================================
   レスポンシブ
   ========================================================= */
/* HTMLウィジェット内のグリッド（トップページ等で使用） */
@media (max-width: 1100px) {
  .ks-grid4 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 900px) {
  .ks-grid2, .ks-grid4 { grid-template-columns: 1fr !important; }
}

@media (max-width: 1400px) {
  .ks-gnav ul { gap: 16px; }
  .ks-gnav a { font-size: 13px; }
}
@media (max-width: 1240px) {
  .ks-header-tel { display: none; }
  .ks-logo-txt span { display: none; }
}

@media (max-width: 900px) {
  .ks-sec { padding: 52px 0; }
  .ks-sec-head h2 { font-size: 24px; }
  .ks-page-head h1 { font-size: 24px; }
  .ks-cta h2 { font-size: 22px; }
  .ks-works { grid-template-columns: 1fr 1fr; }
  .ks-footer-grid { grid-template-columns: 1fr; }
  .ks-form-wrap { padding: 22px 18px; }
  .ks-steps > li { padding: 20px; }
  .ks-steps > li::before { position: static; margin-bottom: 12px; }
  .ks-table tbody th { width: auto; }
  .ks-table th, .ks-table td { padding: 10px 12px; font-size: 14px; }
  .ks-spfix { display: flex; }
  .ks-footer { padding-bottom: 104px; }
  html { scroll-padding-top: 70px; }

  .ks-nav-toggle {
    display: block; margin-left: auto; background: var(--navy); color: #fff; border: 0;
    border-radius: var(--radius); width: 48px; height: 44px; font-size: 20px; cursor: pointer;
  }
  .ks-header-cta { display: none; }
  .ks-gnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
  }
  .ks-gnav.is-open { display: block; }
  .ks-gnav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .ks-gnav li { border-bottom: 1px solid var(--gray-200); }
  .ks-gnav a { padding: 14px 2px; font-size: 15px; border-bottom: 0; }
}

@media (max-width: 560px) {
  .ks-works { grid-template-columns: 1fr; }
  .ks-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ks-stats .num { font-size: 24px; }
  .ks-telbox { display: block; padding: 12px 16px; }
  .ks-btn { width: 100%; }
  .ks-work dl { grid-template-columns: 70px 1fr; }
}

@media print {
  .ks-header, .ks-spfix, .ks-cta, .ks-footer { display: none !important; }
}
