@charset "UTF-8";
/*
Theme Name: Daiki Tsushin Child
Template: cocoon-master
Description: 有限会社ダイキ通信工業 専用Cocoon子テーマ
Author: Daiki Tsushin Kogyo
Version: 1.0.0
*/

/* ============================================================
   Cocoon ヘッダー/フッターの既定スタイル無効化（必要に応じて）
============================================================ */
#header-container.no .header-container-in,
.entry-content { max-width: 100%; }



/* =========================================
   共通設定・カラー変数定義（ネイビー/スカイ）
========================================= */
:root {
  --primary-color: #0E3A66; /* 信頼のネイビー */
  --primary-dark: #0A2A4A;
  --accent-color: #5BA8D6;  /* 爽やかなスカイブルー */
  --text-color: #1F2A37;
  --text-soft: #4B5563;
  --bg-base: #FFFFFF;
  --bg-soft: #F4F7FA;
  --border-soft: #D9E1EA;
  --transition: all 0.3s ease;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(14, 58, 102, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  line-height: 1.8;
  background-color: var(--bg-base);
  word-wrap: break-word;
  letter-spacing: 0.05em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }

/* コンテナ */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 0;
}

/* 見出し共通 */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 50px;
  font-size: 15px;
}

/* ボタン共通 */
.btn {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(91, 168, 214, 0.3);
}

.btn-primary:hover {
  background-color: #3F8FBE;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 168, 214, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--primary-color);
}

.btn-navy {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-navy:hover {
  background-color: var(--primary-dark);
}

/* =========================================
   ヘッダー
========================================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  z-index: 1000;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 5% 10px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 8px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.logo img {
  width: 90px;
  height: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 22px;
  color: var(--primary-color);
  line-height: 1.2;
  letter-spacing: .02em;
}

.nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-color);
  transition: var(--transition);
}

.nav a:hover { color: var(--accent-color); }

.btn-contact {
  background-color: var(--accent-color);
  color: #fff !important;
  padding: 10px 25px;
  border-radius: 30px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  position: absolute;
  top: 14px;
  right: 16px;
}

/* =========================================
   トップページ：ヒーローセクション
========================================= */
.hero {
  height: 100vh;
  min-height: 600px;
  background: url('../images/hero.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 180px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.5;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 0 24px rgba(0,0,0,.5);
}

.hero p {
  font-size: 16px;
  margin-bottom: 40px;
  opacity: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.7), 0 0 16px rgba(0,0,0,.5);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* =========================================
   トップページ：各種セクション
========================================= */
section:nth-of-type(even) { background-color: var(--bg-soft); }

.services-grid, .works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(93, 64, 55, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.service-card .icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: var(--bg-soft);
  border-radius: 50%;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-card p {
  font-size: 14px;
  color: var(--text-soft);
}

/* 強みセクション */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature {
  position: relative;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature .num {
  position: absolute;
  top: -15px;
  right: 10px;
  font-size: 120px;
  font-weight: 700;
  color: rgba(91, 168, 214, 0.12);
  line-height: 1;
}

.feature h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.feature p {
  font-size: 15px;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}

/* 会社案内ダイジェスト */
.about-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-row > div { flex: 1; }
.about-row h2 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.about-row p {
  margin-bottom: 20px;
  font-size: 15px;
}
.about-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* お問い合わせバナー */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.banner {
  padding: 50px 40px;
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  transition: var(--transition);
  display: block;
}

.banner.business { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }
.banner.recruit { background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); }

.banner:hover { transform: scale(1.02); }
.banner h3 { font-size: 22px; margin-bottom: 15px; }
.banner p { font-size: 15px; margin-bottom: 20px; opacity: 0.9; }
.banner .arrow { font-weight: 700; }

/* アクセス・各種テーブル */
.access-row {
  display: flex;
  gap: 40px;
}
.access-row iframe {
  flex: 1;
  min-height: 350px;
  border: none;
  border-radius: var(--radius);
}
.info-table {
  flex: 1;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-table th, .info-table td {
  padding: 20px;
  border-bottom: 1px solid var(--bg-soft);
  text-align: left;
  font-size: 15px;
}
.info-table th {
  width: 30%;
  background-color: var(--bg-soft);
  color: var(--primary-color);
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* =========================================
   下層ページ用コンポーネント
========================================= */
.page-title {
  background: url('../images/work01.jpg') center/cover;
  padding: 180px 20px 80px;
  text-align: center;
  color: #fff;
}
.page-title h1 {
  font-size: 36px;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.75), 0 0 24px rgba(0,0,0,.5);
}
.page-title p {
  font-size: 16px;
  opacity: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.75), 0 0 16px rgba(0,0,0,.5);
}

.breadcrumb {
  background-color: #fff;
  border-bottom: 1px solid var(--bg-soft);
}
.breadcrumb .container {
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-soft);
}
.breadcrumb a { color: var(--primary-color); }
.breadcrumb .sep { margin: 0 10px; opacity: 0.5; }

.message-box {
  background: #fff;
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--accent-color);
}
.message-box p { margin-bottom: 20px; }
.message-box .sign { text-align: right; font-weight: 700; margin-top: 40px; font-size: 18px; color: var(--primary-color);}

.history-list li {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px dashed #ddd;
}
.history-list .year { width: 180px; font-weight: 700; color: var(--primary-color); }

/* 事業内容詳細 */
.service-detail {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}
.service-detail.reverse { flex-direction: row-reverse; }
.service-detail img {
  flex: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 50%;
}
.service-detail > div { flex: 1; }
.service-detail h3 { font-size: 24px; color: var(--primary-color); margin-bottom: 20px; }
.service-detail p { margin-bottom: 20px; }
.service-detail ul { padding-left: 20px; }
.service-detail li { margin-bottom: 10px; position: relative; }
.service-detail li::before {
  content: '✓';
  color: var(--accent-color);
  position: absolute;
  left: -20px;
  font-weight: bold;
}

/* 施工事例カード */
.work-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-card .body { padding: 25px; }
.work-card h4 { font-size: 18px; color: var(--primary-color); margin-bottom: 10px; }

/* プライバシーポリシー */
.policy h2 { color: var(--primary-color); font-size: 20px; margin: 40px 0 15px; padding-left: 12px; border-left: 4px solid var(--accent-color); }
.policy p, .policy li { line-height: 1.9; }
.policy ul, .policy ol { padding-left: 22px; margin-bottom: 20px; }

/* =========================================
   フッター
========================================= */
.site-footer {
  background-color: var(--primary-color);
  color: rgba(255,255,255,0.9);
  padding: 80px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-grid h4 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
  color: #fff;
}
.footer-grid p { font-size: 14px; opacity: 0.8; line-height: 1.8; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul a { font-size: 14px; opacity: 0.8; transition: var(--transition); }
.footer-grid ul a:hover { opacity: 1; color: var(--accent-color); padding-left: 5px; }

.copyright {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* =========================================
   お問い合わせフォーム
========================================= */
.form-wrap { max-width: 760px; margin: 0 auto; }
.form-intro {
  background: var(--bg-soft);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  color: var(--primary-color);
  font-size: 14px;
  line-height: 1.8;
  border-left: 4px solid var(--accent-color);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 15px;
}
.form-row .required {
  color: #d33;
  margin-left: 8px;
  font-size: 12px;
  background: rgba(91, 168, 214, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text-color);
  transition: var(--transition);
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 0;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(91, 168, 214, 0.18);
}
.form-actions { text-align: center; margin-top: 32px; }
.form-actions .btn { min-width: 240px; }

/* =========================================
   スマホ対応（メディアクエリ）
========================================= */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 20px 0; }
  .nav ul li { width: 100%; text-align: center; }
  .nav ul li a { display: block; padding: 15px; }
  .btn-contact { margin: 10px 20px; display: inline-block !important; }

  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .about-row, .access-row { flex-direction: column; }
  .service-detail, .service-detail.reverse { flex-direction: column; gap: 30px; }
  .service-detail img { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }

  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 5px; }
  .info-table td { padding-top: 5px; }

  .history-list li { flex-direction: column; gap: 5px; }
}
