/* ========================================
   シンプル整理版 default.css
   メンテナンスしやすいセクション別構成
======================================== */

/* ========================================
   1. 基本設定・変数
======================================== */
:root {
  /* カラー */
  --primary-navy: #1E2A38;
  --primary-blue: #2D4A73;
  --bg-light: #F8F9FB;
  --bg-white: #FFFFFF;
  --text-dark: #2A2A2A;
  --text-muted: #666;
  --line: #E1E1E1;
  
  /* デザイン */
  --radius: 6px;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  padding-block: 72px;
}

/* ========================================
   2. ヘッダー
======================================== */
header {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: 18px 24px;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-navy);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding-block: 8px;
  color: var(--primary-navy);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover::after,
.nav-links li:first-child a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: var(--transition);
}

.nav-toggle:hover {
  color: var(--primary-blue);
}

/* ========================================
   3. ヒーロー
======================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 60px;
}

.hero-content {
  max-width: 640px;
  color: #fff;
  text-align: left;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  color: #EEE;
}

/* ========================================
   4. メッセージセクション
======================================== */
.message .message-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.message .message-image {
  aspect-ratio: 16/10;
  background: #DDD;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.message .message-text h3 {
  font-size: 28px;
  margin: 0 0 16px;
}

.message .message-text p {
  color: var(--text-muted);
}

/* ========================================
   5. 質問セクション - グラデーション背景版
======================================== */
.questions {
  position: relative;
  background: linear-gradient(135deg, 
    #1E3A5F 0%, 
    #2D4A73 50%, 
    #3A5F8A 100%);
  color: #FFFFFF;
  padding-block: 56px;
}

.questions::before {
  content: none !important;
}

.questions h2 {
  text-align: center;
  color: #FFFFFF;
  margin: 0 0 24px;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.question-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 36px;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.question-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.9;
  color: #2A3F5F;
  padding: 10px 0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.question-item:hover {
  background: rgba(45, 74, 115, 0.06);
  transform: translateX(8px);
  padding-left: 12px;
}

.question-item::before {
  content: "●";
  font-size: 0.9em;
  line-height: 1.9;
  color: #2D4A73;
  margin-top: 6px;
  flex: 0 0 auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .question-list {
    padding: 22px 20px;
    border-radius: 12px;
  }
  
  .question-item {
    gap: 12px;
    font-size: clamp(15px, 4.5vw, 18px);
  }
}

/* ========================================
   6. サービスセクション
======================================== */
.services {
  background: var(--primary-navy);
  color: #fff;
}

.services .service-grid {
  display: grid;
  gap: 48px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.service-item:nth-child(even) .service-content {
  order: 2;
}

.service-item:nth-child(even) .service-image {
  order: 1;
}

.service-image {
  aspect-ratio: 16/10;
  background: #ccc;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-content h3 {
  font-size: 24px;
  margin: 0 0 12px;
}

.service-content p {
  color: #EAEAEA;
}

/* ========================================
   7. ケーススタディ
======================================== */
.cases {
  background: var(--bg-light);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-item {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition);
}

.case-item:hover {
  transform: translateY(-4px);
}

.case-image {
  aspect-ratio: 4/3;
  background: #EEE;
}

.case-content {
  padding: 18px;
}

.case-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* ========================================
   8. お知らせ(インフォメーション)
======================================== */
.information {
  background: var(--bg-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.info-item {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition);
}

.info-item:hover {
  transform: translateY(-4px);
}

.info-image {
  aspect-ratio: 4/3;
  background: #EEE;
}

.info-content {
  padding: 18px;
}

.info-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.info-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* ========================================
   9. プロフィール
======================================== */
.profile {
  background: var(--bg-white);
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.profile-image {
  aspect-ratio: 4/3;
  background: #DDD;
  border-radius: var(--radius);
}

.profile-text h2 {
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--primary-navy);
}

.profile-grid {
  display: grid;
  gap: 16px;
}

.profile-item {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-item strong {
  min-width: 120px;
}

/* ========================================
   10. LINEセクション
======================================== */
.line-section {
  background: var(--primary-blue);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}

.line-section .line-content {
  max-width: 720px;
  margin: auto;
}

.line-section .line-account a {
  display: inline-block;
  padding: 12px 32px;
  background: #05a647;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

.line-section .line-account a:hover {
  background: #049639;
}

/* ========================================
   11. お問い合わせフォーム
======================================== */
.contact,
.hbp-contact {
  background: var(--bg-light);
}

.contact h2,
.hbp-section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-content,
.hbp-contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-intro,
.hbp-contact-intro {
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-muted);
}

.contact-form-wrapper,
.hbp-contact-form-wrapper {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

/* Contact Form 7 フォーム要素のセンタリング */
.wpcf7-form {
  max-width: 100%;
}

.wpcf7-form p {
  text-align: left !important;
  margin-bottom: 24px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

/* チェックボックスのスタイル調整 */
.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 送信ボタンのセンタリング */
.wpcf7-form p:last-of-type {
  text-align: center;
  margin-top: 32px;
}

/* ========================================
   12. フッター
======================================== */
footer {
  background: var(--primary-navy);
  color: #fff;
  padding-block: 48px 32px;
}

.footer-content {
  width: min(100%, 1200px);
  margin: auto;
  padding-inline: 24px;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
}

.footer-description {
  max-width: 720px;
  text-align: center;
  color: #DDD;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff22;
  border-radius: 50%;
  color: #fff;
}

.social-links a:hover {
  background: #ffffff44;
}

.footer-bottom {
  font-size: 12px;
  color: #CCC;
  text-align: center;
}

/* ========================================
   13. レスポンシブ対応
======================================== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    gap: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: 16px 8px;
    width: 100%;
  }
  
  .nav-links a:hover::after,
  .nav-links li:first-child a::after {
    display: none;
  }
  
  .nav-links a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .service-item,
  .profile-content {
    grid-template-columns: 1fr;
  }
  
  .case-grid,
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    top: 66px;
  }
  
  .question-list {
    padding: 22px 20px;
    border-radius: 12px;
  }
  
  .question-item {
    gap: 12px;
    font-size: clamp(15px, 4.5vw, 18px);
  }
  
  .message .message-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 24px;
    height: 70vh;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .case-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Contact Form 7 カスタムデザイン（シンプル版）
======================================== */

/* チェックボックスを2列グリッドレイアウト */
.wpcf7-checkbox {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.wpcf7-list-item {
  margin: 0 !important;
}

/* チェックボックスとラベルのスタイル - デフォルトを活かす */
.wpcf7-list-item label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: #fff;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 70px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

/* チェックボックス本体 */
.wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* ホバー時 */
.wpcf7-list-item label:hover {
  border-color: var(--primary-blue);
  background: #f8fbff;
}

/* チェック時のスタイル */
.wpcf7-list-item:has(input[type="checkbox"]:checked) label {
  background: #f0f7ff;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* :has()が使えないブラウザ用のフォールバック */
.wpcf7-list-item input[type="checkbox"]:checked ~ * {
  color: var(--primary-blue);
}

/* テキスト入力フィールド */
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fff;
  font-family: inherit;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(45, 74, 115, 0.1);
}

.wpcf7-textarea {
  min-height: 150px;
  resize: vertical;
}

/* フォームのラベル */
.wpcf7-form p {
  margin-bottom: 28px;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 16px;
}

/* 必須マーク */
.wpcf7-form label .wpcf7-not-valid-tip {
  color: #e74c3c;
}

/* 送信ボタン */
.wpcf7-submit {
  background: var(--primary-blue) !important;
  color: #fff !important;
  padding: 16px 64px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(45, 74, 115, 0.2) !important;
}

.wpcf7-submit:hover {
  background: #234265 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 74, 115, 0.3) !important;
}

.wpcf7-submit:active {
  transform: translateY(0);
}

/* 送信ボタンを中央揃え */
.wpcf7-form p:has(.wpcf7-submit) {
  text-align: center !important;
  margin-top: 40px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .wpcf7-checkbox {
    grid-template-columns: 1fr !important;
  }
  
  .wpcf7-submit {
    width: 100%;
    padding: 16px 32px !important;
  }
  
  .wpcf7-list-item-label {
    padding: 20px 24px;
    padding-left: 52px;
    min-height: 70px;
  }
}