@charset "UTF-8";

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem; font-weight: 500;
  color: #333; background: #fff; line-height: 1.7;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ========================================
   COMMON
======================================== */
.container { max-width: 960px; margin: 0 auto; }
section { padding: 80px 5%; }
.section-title {
  font-size: 2.4rem; font-weight: 700; color: #1a4a6e;
  letter-spacing: 0.05em; text-align: center; margin-bottom: 12px;
}
.section-title-en {
  display: block; font-size: 1.2rem; letter-spacing: 0.2em;
  color: #888; font-weight: 500; margin-top: 8px;
}
.section-lead {
  text-align: center; font-size: 1.5rem; color: #555;
  margin-bottom: 56px; line-height: 1.9;
}
.text-center { text-align: center; }

/* ========================================
   PAGE HEADER
======================================== */
.page-header {
  background: #f0f5fa; padding: 60px 5%; text-align: center;
  border-bottom: 1px solid #e0e9f1;
}
.page-title { font-size: 2.4rem; font-weight: 700; color: #1a4a6e; margin-bottom: 16px; }
.page-desc { font-size: 1.5rem; color: #555; }

/* ========================================
   HEADER
======================================== */
.site-header {
  background: #1a4a6e; padding: 14px 5%;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.site-header .site-name { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.05em; }
.site-header .header-tel { color: #fff; font-size: 1.6rem; font-weight: 700; }
.site-header .header-tel::before { content: "能登営業所 ☎ "; font-size: 1.4rem; }

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: #fff; color: #333; padding: 60px 5% 40px;
  text-align: center; font-size: 1.2rem;
  border-top: 1px solid #eee;
}
.site-footer .footer-logo { margin-bottom: 24px; }
.site-footer .footer-logo img { max-width: 240px; height: auto; }
.site-footer .privacy-link { display: inline-block; margin: 8px 0; text-decoration: none; color: #555; }
.site-footer .privacy-link:hover { text-decoration: underline; }
.site-footer .copyright { color: #888; margin-top: 12px; }

/* ========================================
   HERO IMAGE & MODAL
======================================== */
.hero-image-section {
  padding: 0;
  text-align: center;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in; /* クリックで拡大できることを示すカーソル */
  margin: 0 auto;
}

/* モーダル（ポップアップ） */
.image-modal {
  margin: auto;
  max-width: 95vw;
  max-height: 95vh;
  border: none;
  padding: 0;
  background: transparent;
}
.image-modal::backdrop {
  background: rgba(0, 0, 0, 0.85); /* 暗い半透明背景 */
  cursor: zoom-out;
}
.image-modal img {
  display: block;
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  cursor: zoom-out;
}

/* ヒーロー下のCTAボタンエリア */
.hero-cta-wrap {
  text-align: center;
  padding: 30px 5%;
  background: #f0f5fa;
}
.hero-cta-wrap .cta-btn, .cta-footer .cta-btn {
  display: inline-block; background: #e67e22; color: #fff;
  padding: 20px 40px; font-size: 1.7rem; font-weight: 700;
  min-width: 320px; transition: all 0.2s; border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.hero-cta-wrap .cta-btn:hover, .cta-footer .cta-btn:hover {
  background: #d35400; opacity: 1;
}
.hero-cta-wrap .cta-btn .arrow, .cta-footer .cta-btn .arrow { margin-left: 8px; }

/* ========================================
   ABOUT
======================================== */
.sec-about { background: #f7f7f5; }
.about-text { font-size: 1.6rem; line-height: 2; color: #444; max-width: 720px; margin: 0 auto; text-align: center; }

/* ========================================
   FEATURES
======================================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid #e0e0e0;
  padding: 32px 24px; text-align: center; border-radius: 8px;
}
/* FEATURES 番号バッジ（1, 2, 3） */
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #1a4a6e;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.feature-card .feature-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.feature-card .feature-desc { font-size: 1.4rem; color: #555; line-height: 1.7; }

/* ========================================
   SPEC（標準装備）
======================================== */
.sec-spec { background: #f0f5fa; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.spec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #569b82; /* 添付画像に近いグリーン */
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
}
.spec-name {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
}
.spec-note {
  text-align: center;
  font-size: 1.2rem;
  color: #888;
  margin-top: 24px;
}

/* ========================================
   WORKS
======================================== */
.sec-works { background: #fff; }
.works-card {
  display: flex; gap: 40px; align-items: center;
  background: #f0f5fa; padding: 40px; border-radius: 8px;
}
.works-img { flex: 1; }
.works-img img { width: 100%; height: auto; border-radius: 4px; display: block; }
.works-body { flex: 1; }
.works-title { font-size: 2rem; font-weight: 700; color: #1a4a6e; margin-bottom: 16px; }
.works-desc { font-size: 1.5rem; color: #444; line-height: 1.8; }

/* ========================================
   FLOW
======================================== */
.sec-flow { background: #f7f7f5; }
.flow-list { max-width: 720px; margin: 0 auto; }
.flow-item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid #ddd; }
.flow-item:last-child { border-bottom: none; }
.flow-num {
  flex-shrink: 0; width: 48px; height: 48px;
  background: #1a4a6e; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
}
.flow-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 6px; }
.flow-desc { font-size: 1.4rem; color: #555; }

/* ========================================
   FAQ
======================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0; position: relative;
  font-size: 1.6rem; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q."; color: #1a4a6e; margin-right: 10px; }
.faq-item summary::after {
  content: "▼"; position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); font-size: 1.2rem; color: #888;
}
.faq-item[open] summary::after { content: "▲"; }
.faq-answer { padding: 0 0 24px 30px; font-size: 1.5rem; color: #555; }
.faq-answer::before { content: "A."; color: #888; font-weight: 700; margin-right: 10px; }

/* ========================================
   COMPANY
======================================== */
.sec-company { background: #f7f7f5; }
.company-table {
  width: 100%; max-width: 760px; margin: 0 auto 40px;
  border-collapse: collapse; background: #fff;
}
.company-table th, .company-table td {
  padding: 16px 20px; border-bottom: 1px solid #e8e8e8;
  font-size: 1.4rem; text-align: left;
}
.company-table th { background: #f0f3f6; width: 35%; }
.company-en { font-size: 1.2rem; color: #888; }
.company-link { color: #1a4a6e; text-decoration: underline; }
.map-wrap { max-width: 760px; margin: 0 auto 32px; }
.map-label { font-size: 1.4rem; font-weight: 700; color: #1a4a6e; margin-bottom: 8px; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; }

/* ========================================
   CTA FOOTER
======================================== */
.cta-footer { background: #1a4a6e; padding: 60px 5%; text-align: center; color: #fff; }
.cta-footer-title { font-size: 2rem; font-weight: 700; margin-bottom: 28px; }
.cta-footer .cta-btn { margin-bottom: 24px; }
.cta-contact-wrap { display: flex; justify-content: center; gap: 40px; margin-bottom: 16px; flex-wrap: wrap; }
.cta-contact-box { background: rgba(255,255,255,0.1); padding: 24px 40px; border-radius: 8px; min-width: 280px; }
.cta-contact-label { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 8px; }
.cta-tel { font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.cta-tel a { color: #fff; text-decoration: none; }
.cta-fax { font-size: 1.5rem; color: #ddd; }
.cta-tel-note { font-size: 1.2rem; }

/* ========================================
   LATEST EVENT NEWS
======================================== */
.event-news-header {
  text-align: center; margin-bottom: 40px;
}
.event-news-header .en-title {
  font-size: 3.2rem; font-weight: 700; color: #000;
  letter-spacing: 0.05em; line-height: 1.2;
}
.event-news-header .ja-title {
  font-size: 1.6rem; color: #000; margin-top: 12px;
  display: inline-block; position: relative; padding-bottom: 12px;
}
.event-news-header .ja-title::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px; background: #000;
}
.event-card {
  max-width: 800px; margin: 0 auto;
}
.event-thumb img {
  width: 100%; height: auto; display: block;
}
.event-meta {
  padding: 24px 0; text-align: center;
}
.event-meta .event-date {
  color: #ff6b00; font-size: 1.6rem; font-weight: 500;
  display: block; margin-bottom: 8px;
}
.event-meta .event-title {
  font-size: 2.2rem; font-weight: 700; line-height: 1.6; color: #000;
}
.event-meta .event-category {
  font-weight: 700;
}
.event-details-text {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee;
}
.event-details-text p {
  font-size: 1.5rem; color: #444; margin-bottom: 8px; line-height: 1.6;
}
.event-details-text p.event-note {
  font-size: 1.3rem; color: #777; margin-top: 12px;
}

/* イベントバナー用モーダル (.tkm-wrap スコープ内でも安全に動作する設計) */
.event-banner-img-wrap {
  cursor: zoom-in;
  display: block;
}
.event-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.event-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.event-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}
.event-modal-content img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
}
.event-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 0;
}
@media (max-width: 768px) {
  .event-modal-close {
    top: 16px;
    right: 16px;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }
}

/* ========================================
   FORM
======================================== */
.form-wrapper {
  max-width: 720px; margin: 0 auto; background: #fff;
  padding: 40px; border: 1px solid #ddd; border-radius: 8px;
}
.form-heading { font-size: 2rem; text-align: center; margin-bottom: 32px; color: #1a4a6e; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; }
.form-group.required label::after {
  content: "必須"; display: inline-block; background: #e74c3c; color: #fff;
  font-size: 1.1rem; padding: 2px 6px; margin-left: 8px;
  border-radius: 2px; vertical-align: middle;
}
.optional {
  background: #95a5a6; color: #fff; font-size: 1.1rem;
  padding: 2px 6px; margin-left: 8px; border-radius: 2px;
  font-weight: normal; vertical-align: middle;
}
input[type="text"], input[type="tel"], input[type="email"],
input[type="number"], select, textarea {
  width: 100%; padding: 12px; border: 1px solid #ccc;
  border-radius: 4px; font-family: inherit; font-size: 1.6rem;
}
textarea { resize: vertical; }
.input-small { width: 100px !important; }
.name-inputs { display: flex; gap: 16px; }
.name-inputs input { width: 50%; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: normal !important; cursor: pointer; justify-content: center;
}
.checkbox-label input { width: auto; }
.checkbox-label a { color: #1a4a6e; text-decoration: underline; }
.form-submit { text-align: center; margin-top: 40px; }
.submit-btn {
  background: #e67e22; color: #fff; border: none;
  padding: 20px 60px; font-size: 1.8rem; font-weight: 700;
  border-radius: 4px; cursor: pointer; transition: background 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.submit-btn:hover { background: #d35400; }

/* ========================================
   THANKS PAGE
======================================== */
.sec-thanks { padding: 80px 5% 120px; }
.thanks-icon { font-size: 48px; color: #27ae60; margin-bottom: 16px; }
.thanks-heading { font-size: 2.4rem; color: #1a4a6e; margin-bottom: 24px; }
.thanks-text { font-size: 1.6rem; line-height: 1.8; margin-bottom: 40px; }
.back-btn {
  display: inline-block; background: #1a4a6e; color: #fff;
  padding: 16px 40px; border-radius: 4px; font-weight: 700;
}

/* ========================================
   PRIVACY PAGE
======================================== */
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h3 {
  font-size: 1.8rem; margin: 32px 0 16px; color: #1a4a6e;
  border-bottom: 1px solid #eee; padding-bottom: 8px;
}

/* ========================================
   CAROUSEL（間取りプラン）
======================================== */
.carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden; /* ← ここでトラックをクリップ */
}

/* トラックのラッパー（overflow:hidden の外枠） */
.carousel-track-wrap {
  overflow: hidden;
  border-radius: 8px;
}

/* スライドを横並びにする */
.carousel-track {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  transition: transform 0.4s ease;
}

/* 各スライド：幅を100%に固定して横に並べる */
.carousel-slide {
  min-width: 100%;
  background: #f0f5fa;
}

/* 画像エリア：4:3比率 */
.carousel-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8e4ee; /* 画像未到着時のプレースホルダー色 */
}
.carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* キャプションエリア */
.carousel-caption {
  padding: 24px 32px 28px;
  text-align: center;
}
.carousel-plan-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a4a6e;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.carousel-plan-desc {
  font-size: 1.5rem;
  color: #555;
  line-height: 1.8;
}

/* 矢印ボタン */
.carousel-btn {
  position: absolute;
  top: calc(50% - 32px); /* キャプション分を考慮して画像中央付近に */
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(26, 74, 110, 0.75);
  color: #fff;
  border: none; border-radius: 50%;
  font-size: 2.4rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.carousel-btn:hover { background: #1a4a6e; }
.carousel-btn--prev { left: 8px; }
.carousel-btn--next { right: 8px; }

/* ドットナビ */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none; cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.carousel-dot.is-active { background: #1a4a6e; }

/* ========================================
   STICKY CTA BAR (Mobile Only)
======================================== */
.sticky-cta-bar {
  display: none;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
  .site-header .site-name { font-size: 1.3rem; }
  .site-header .header-tel { font-size: 1.4rem; }

  /* ボタンのスマホ対応 */
  .hero-cta-wrap .cta-btn, .cta-footer .cta-btn { min-width: 100%; padding: 18px; font-size: 1.5rem; }

  section { padding: 56px 5%; }
  .section-title { font-size: 2rem; }
  .features { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; gap: 16px; }
  .works-card { flex-direction: column; gap: 24px; padding: 24px; }
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { border-bottom: none; }
  .form-wrapper { padding: 24px 16px; }
  .name-inputs { flex-direction: column; gap: 8px; }
  .name-inputs input { width: 100%; }
  .event-detail dt { width: 30%; }
  .event-detail dd { width: 70%; }

  /* Sticky CTA Bar */
  .sticky-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    gap: 6px;
    padding: 8px;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  }
  .sticky-cta-tel {
    flex: 7;
    background: #e67e22;
    color: #fff;
    padding: 10px 6px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .sticky-cta-tel-label {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.3;
  }
  .sticky-cta-tel-number {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }
  .sticky-cta-form {
    flex: 3;
    background: #1a4a6e;
    color: #fff;
    padding: 10px 4px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .sticky-cta-form-label {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.3;
  }
  .sticky-cta-form-text {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
  }
  /* スティッキーバーの高さ分、ページ末尾に余白を確保 */
  body {
    padding-bottom: 72px;
  }
}
