/* ===========================
   リセット & 基本設定
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a3a6b;
  --color-primary-light: #2a5298;
  --color-accent: #e07b00;
  --color-green: #2ca05a;
  --color-text: #222222;
  --color-text-light: #666666;
  --color-bg: #f4f6fa;
  --color-white: #ffffff;
  --color-border: #d0d8e8;
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

/* ===========================
   ヘッダー
=========================== */
header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

/* ロゴ画像 */
.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* フッター用ロゴ画像（白背景用など必要なら調整） */
.footer-brand .logo-img {
  height: 50px;
  margin-bottom: 12px;
}

nav ul {
  display: flex;
  gap: 4px;
}

nav ul li a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.header-tel {
  font-size: 13px;
  color: var(--color-text-light);
  text-align: right;
}

.header-tel a {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--transition), opacity var(--transition);
}

/* ===========================
   ヒーローセクション
=========================== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, #3a60b8 100%);
  color: var(--color-white);
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.85) 0%, rgba(42, 82, 152, 0.75) 100%);
  z-index: 1;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  animation: fadeInUp 0.6s ease both;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   画像付きサービスカード（トップ）
=========================== */
.services-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card-img {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card-content {
  padding: 20px;
}

.service-card-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.service-card-content p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===========================
   ボタン
=========================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-green {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

/* ===========================
   セクション共通
=========================== */
section {
  padding: 80px 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 15px;
  margin-top: 8px;
}

/* ===========================
   特徴セクション
=========================== */
.features {
  background: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3a7bd5 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(26, 58, 107, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(26, 58, 107, 0.35);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===========================
   施工実績カード
=========================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.work-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.work-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #c8d4e8 0%, #a0b8d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: white;
  overflow: hidden;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  padding: 20px;
}

.work-tag {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.work-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.work-body p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.work-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-light);
}

/* ===========================
   サービスセクション
=========================== */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-item {
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px 28px;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.service-item:hover {
  transform: translateY(-3px);
}

.service-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 14px;
}

.service-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
}

/* ===========================
   料金テーブル
=========================== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table th {
  background: var(--color-primary);
  color: white;
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:nth-child(even) td {
  background: var(--color-bg);
}

/* ===========================
   会社概要
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-info table {
  width: 100%;
  border-collapse: collapse;
}

.about-info tr {
  border-bottom: 1px solid var(--color-border);
}

.about-info th {
  padding: 14px 0;
  width: 120px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  vertical-align: top;
}

.about-info td {
  padding: 14px 0;
  font-size: 14px;
  color: var(--color-text);
}

.about-visual {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  color: white;
}

.about-visual .stat {
  margin-bottom: 32px;
}

.about-visual .stat:last-child {
  margin-bottom: 0;
}

.stat-num {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}

.stat-label {
  font-size: 15px;
  opacity: 0.9;
  margin-top: 4px;
}

/* ===========================
   お問い合わせフォーム
=========================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-detail-item .icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.form-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group label .required {
  color: #e53e3e;
  margin-left: 4px;
  font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 46, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  font-size: 16px;
  padding: 16px;
}

/* ===========================
   フッター
=========================== */
footer {
  background: #0f2240;
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo-name {
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===========================
   CTA（共通）
=========================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #3a60b8 100%);
  color: white;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.cta-banner h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.cta-banner .hero-btns {
  position: relative;
  z-index: 2;
}

.cta-character {
  position: absolute;
  bottom: -40px;
  right: 10%;
  width: 280px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.cta-character:hover {
  transform: translateY(-10px);
}

@media (max-width: 900px) {
  .cta-character {
    width: 200px;
    right: 5%;
    bottom: -30px;
    opacity: 0.3;
  }
}

@media (max-width: 640px) {
  .cta-banner {
    padding: 60px 20px;
  }

  .cta-character {
    display: none;
  }
}

.cta-banner .btn-outline {
  border-color: white;
}

/* ===========================
   ページヘッダー（サブページ）
=========================== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: 60px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.85;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 12px;
  opacity: 0.7;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 16px;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 4px;
  }

  nav ul li a {
    padding: 12px 16px;
  }

  .header-tel {
    display: none;
  }

  .about-grid,
  .contact-wrap,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 24px;
  }

  section {
    padding: 56px 16px;
  }

  .form-card {
    padding: 24px 20px;
  }
}

/* ===========================
   アニメーション
=========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease both;
}