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

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  color: #2b2b2b;
  background-color: #ffffff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========================================
ヘッダー（業務概要基準に統一）
======================================== */
.header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(169,210,219,0.2);
}

.header::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(169,210,219,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(209,99,65,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  flex: 1;
}

.company-logo {
  width: 80px; height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.company-logo:hover { transform: scale(1.05); }

.logo {
  font-size: clamp(0.8rem, 1.4vw, 1.2rem);
  font-weight: 700;
  position: relative;
  word-break: keep-all;
  overflow-wrap: break-word;
  min-width: 0;
}
.logo a { color: #333; }

.logo-underline {
  display: block; width: 0; height: 2px;
  background-color: #A9D2DB;
  transition: width 0.3s ease;
}
.logo:hover .logo-underline { width: 100%; }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav ul {
  display: flex;
  gap: clamp(12px, 2vw, 30px);
  align-items: center;
}

.nav a {
  font-weight: 600;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: #333;
  position: relative;
  padding: 5px 0;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: #D16341;
  transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }
.nav a.active::after { width: 100%; }

.group-logo-link { flex-shrink: 0; }

.group-logo {
  width: 80px; height: 80px;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.group-logo:hover { opacity: 0.7; transform: scale(1.05); }

.menu-toggle { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; flex-shrink: 0;
  position: relative; z-index: 1002;
}
.hamburger span {
  width: 25px; height: 2px;
  background-color: #333;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  display: block;
}

.menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 999; cursor: pointer;
}

@media (max-width: 968px) {
  .header-inner { gap: 10px; }
  .nav ul { gap: 20px; }
  .company-logo, .group-logo { width: 70px; height: 70px; }
}

@media (max-width: 768px) {
  .header-left { gap: 10px; max-width: calc(100% - 140px); }
  .header-right { gap: 10px; }
  .nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background-color: #fff; box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0; overflow-y: auto; z-index: 1001;
  }
  .nav::before {
    content: 'MENU'; display: block; padding: 24px 24px 16px;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em;
    color: #A9D2DB; border-bottom: 1px solid rgba(169,210,219,0.25);
  }
  .nav ul { flex-direction: column; gap: 0; align-items: stretch; padding: 12px 0; }
  .nav ul li { border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav ul li a {
    display: block; padding: 16px 24px; font-size: 0.95rem;
    color: #2b2b2b; font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    position: relative;
  }
  .nav ul li a::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 0; background: #A9D2DB;
    transition: height 0.2s ease; border-radius: 0 2px 2px 0;
  }
  .nav ul li a::after { display: none; }
  .nav ul li a:hover { background: rgba(169,210,219,0.08); color: #2e4a52; padding-left: 30px; }
  .nav ul li a:hover::before { height: 60%; }
  .nav ul li a.active { color: #D16341; font-weight: 700; background: rgba(209,99,65,0.04); padding-left: 30px; }
  .nav ul li a.active::before { height: 60%; background: #D16341; }
  .menu-toggle:checked ~ .nav { right: 0; }
  .menu-toggle:checked ~ .nav-overlay { display: block; }
  .hamburger { display: flex; }
  .company-logo, .group-logo { width: 65px; height: 65px; }
}

@media (max-width: 480px) {
  .header-left { gap: 8px; max-width: calc(100% - 130px); }
  .header-right { gap: 8px; }
  .company-logo, .group-logo { width: 55px; height: 55px; }
}

/* ========================================
ヒーロー
======================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
  padding: 60px 20px;
}
.hero-decorations { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; overflow: hidden; }
.hero-line { position: absolute; height: 3px; }
.hero-line-1 { width: 60%; top: 20%; left: -10%; background: linear-gradient(90deg, transparent, #A9D2DB 20%, #A9D2DB 80%, transparent); transform: rotate(-15deg); animation: lineSlide1 8s ease-in-out infinite; }
.hero-line-2 { width: 50%; bottom: 25%; right: -10%; background: linear-gradient(90deg, transparent, #D16341 20%, #D16341 80%, transparent); transform: rotate(15deg); animation: lineSlide2 10s ease-in-out infinite; }
.hero-circle { position: absolute; border: 2px solid; border-radius: 50%; opacity: 0.4; }
.hero-circle-1 { width: 300px; height: 300px; top: -100px; right: 10%; border-color: #D16341; animation: float 6s ease-in-out infinite; }
.hero-circle-2 { width: 200px; height: 200px; bottom: -50px; left: 5%; border-color: #A9D2DB; animation: float 8s ease-in-out infinite reverse; }

@keyframes lineSlide1 { 0%,100% { transform: rotate(-15deg) translateX(0); } 50% { transform: rotate(-15deg) translateX(50px); } }
@keyframes lineSlide2 { 0%,100% { transform: rotate(15deg) translateX(0); } 50% { transform: rotate(15deg) translateX(-50px); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 50px);
}

.hero-text-left {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 480px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.top-comment-image {
  max-width: clamp(160px, 20vw, 240px);
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
  margin-bottom: 20px;
}

.hero-message {
  background: linear-gradient(135deg, rgba(169,210,219,0.03) 0%, rgba(255,255,255,0.6) 50%, rgba(209,99,65,0.03) 100%), rgba(255,255,255,0.5);
  padding: 20px 24px;
  font-size: clamp(0.7rem, 1vw + 0.1rem, 0.85rem); /* 画面サイズに応じて柔軟に変化 */
  line-height: 2;
  color: #333;
  font-weight: 500;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(169,210,219,0.2);
  word-break: normal;
  overflow-wrap: break-word;
  width: 100%;
  max-width: 480px;
}

.hero-image {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 460px;
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

.slide-in { animation: slideIn 1s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1024px) {
  .hero-inner { gap: clamp(16px, 3vw, 40px); }
  .hero-text-left { max-width: 420px; }
  .hero-image { max-width: 400px; }
  .hero-message {
    font-size: clamp(0.68rem, 1vw + 0.15rem, 0.8rem);
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .hero { padding: 40px 20px; }
  .hero-inner { flex-direction: column-reverse; gap: 28px; }
  .hero-text-left { width: 100%; max-width: 100%; flex: none; align-items: center; text-align: center; }
  .top-comment-image { max-width: 240px; }
  .hero-message {
    font-size: clamp(0.75rem, 3vw + 0.2rem, 0.9rem);
    padding: 18px 22px;
    width: 100%;
  }
  .hero-image { width: 100%; max-width: 340px; flex: none; }
  .hero-circle-1 { width: 200px; height: 200px; }
  .hero-circle-2 { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
  .hero-message {
    font-size: clamp(0.7rem, 4vw + 0.2rem, 0.85rem);
    padding: 16px 18px;
  }
  .top-comment-image { max-width: 210px; }
  .hero-image { max-width: 280px; }
}

/* ========================================
セクション共通
======================================== */
.section-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 50px; }
.section-line { width: clamp(40px, 8vw, 100px); height: 3px; background: linear-gradient(90deg, transparent, #A9D2DB, transparent); }
.section-title { font-size: clamp(1.2rem, 3.5vw, 2rem); font-weight: 700; color: #333; text-align: center; white-space: nowrap; }

/* ========================================
選ばれる3つの理由
======================================== */
.about { padding: 80px 20px; position: relative; }

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.card {
  background: #fff; padding: 40px 30px; border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center;
  position: relative; overflow: hidden; transition: all 0.4s ease; border: 1px solid #f0f0f0;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: #A9D2DB; transform: scaleX(0); transition: transform 0.4s ease; }
.card:hover::before { transform: scaleX(1); }
.card img { width: 100%; height: auto; max-height: 200px; object-fit: contain; border-radius: 8px; margin-bottom: 20px; transition: transform 0.4s ease; }
.card:hover img { transform: scale(1.05); }
.card h3 { font-size: clamp(1rem, 1.8vw, 1.4rem); margin-bottom: 12px; color: #333; font-weight: 700; line-height: 1.4; }
.card p {
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  color: #666;
  line-height: 1.85;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: center;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

@media (max-width: 900px) {
  .about-cards { grid-template-columns: 1fr; gap: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .card img { max-height: 180px; }
}
@media (max-width: 480px) {
  .card { padding: 28px 20px; }
  .card h3 { font-size: clamp(1rem, 4vw, 1.2rem); }
  .card p  { font-size: clamp(0.8rem, 3.5vw, 0.9rem); }
  .card img { max-height: 150px; }
}

/* ========================================
施工例ギャラリー
======================================== */
.gallery {
  position: relative;
  background: linear-gradient(180deg, #eef7f9 0%, #f4fafb 40%, #eef7f9 100%);
  padding: 90px 0 100px; overflow: hidden;
}
.gallery::before, .gallery::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.gallery::before { width: 520px; height: 520px; top: -140px; right: -120px; background: radial-gradient(circle, rgba(169,210,219,0.22) 0%, transparent 70%); }
.gallery::after  { width: 380px; height: 380px; bottom: -100px; left: -80px; background: radial-gradient(circle, rgba(209,99,65,0.10) 0%, transparent 70%); }
.gallery-watermark {
  position: absolute; bottom: -50px; right: -10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 700; letter-spacing: 0.05em;
  color: rgba(169,210,219,0.13); pointer-events: none; user-select: none; line-height: 1; z-index: 0;
}
.gallery-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: end; margin-bottom: 56px; position: relative; z-index: 1;
}
.gallery-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; color: #6bb8c8; margin-bottom: 14px; display: block; }
.gallery-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: #2e4a52; line-height: 1.4; letter-spacing: 0.05em; }
.gallery-intro-right { display: flex; flex-direction: column; justify-content: flex-end; gap: 26px; padding-bottom: 6px; }
.gallery-sub { font-size: clamp(0.78rem, 1.1vw, 0.88rem); color: #5a7a85; line-height: 1.9; border-left: 2px solid #A9D2DB; padding-left: 18px; }
.gallery-stat { display: flex; align-items: baseline; gap: 8px; }
.gallery-stat-num { font-size: 2.4rem; font-weight: 700; color: #2e4a52; line-height: 1; }
.gallery-stat-label { font-size: 0.78rem; letter-spacing: 0.12em; color: #8eb8c4; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; z-index: 1; }
.gitem { position: relative; overflow: hidden; cursor: pointer; background: #d6eef3; aspect-ratio: 1 / 1; border-radius: 8px; box-shadow: 0 3px 14px rgba(100,180,200,0.12); transition: box-shadow 0.4s ease; }
.gitem:hover { box-shadow: 0 12px 36px rgba(100,180,200,0.28); }
.gitem-img-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 8px; }
.gitem-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); filter: saturate(0.95) brightness(1.02); }
.gitem:hover .gitem-img { transform: scale(1.08); filter: saturate(1.08) brightness(1.04); }
.gitem-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,74,82,0.60) 0%, rgba(46,74,82,0.10) 45%, transparent 100%); border-radius: 8px; opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.gitem:hover .gitem-shade { opacity: 1; transform: translateY(0); }
.gitem-cap { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; transform: translateY(4px); opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease; }
.gitem:hover .gitem-cap { opacity: 1; transform: translateY(0); }
.gitem-line { flex: 1; height: 1px; background: rgba(255,255,255,0.55); }
.gitem-num { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; color: rgba(255,255,255,0.92); }

@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .gallery { padding: 70px 0 80px; }
  .gallery-intro { grid-template-columns: 1fr; gap: 26px; margin-bottom: 40px; }
  .gallery-heading { font-size: clamp(2rem, 10vw, 3rem); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-watermark { font-size: clamp(80px, 30vw, 140px); bottom: -20px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery-stat-num { font-size: 2.8rem; }
}

/* ========================================
ライトボックス
======================================== */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.lb-open { opacity: 1; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(20,45,55,0.94); backdrop-filter: blur(10px); cursor: pointer; }
.lb-close { position: absolute; top: 22px; right: 26px; background: rgba(169,210,219,0.12); border: 1px solid rgba(169,210,219,0.35); color: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.25s ease; z-index: 10; }
.lb-close:hover { background: rgba(209,99,65,0.75); transform: rotate(90deg); }
.lb-stage { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; max-width: min(94vw, 960px); width: 100%; }
.lb-arrow { background: none; border: 1px solid rgba(169,210,219,0.35); color: rgba(169,210,219,0.85); border-radius: 50%; width: 52px; height: 52px; flex-shrink: 0; font-size: 2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; line-height: 1; }
.lb-arrow:hover { border-color: #A9D2DB; color: #fff; background: rgba(169,210,219,0.18); }
.lb-body { flex: 1; background: #0e2028; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.7); transform: scale(0.95); transition: transform 0.3s ease; }
.lb-open .lb-body { transform: scale(1); }
.lb-img { width: 100%; max-height: 75vh; object-fit: contain; display: block; background: #0e2028; transition: opacity 0.18s ease; }
.lb-fade { opacity: 0; }
.lb-footer { display: flex; align-items: baseline; gap: 6px; padding: 12px 20px; background: rgba(10,25,32,0.95); border-top: 1px solid rgba(169,210,219,0.12); }
.lb-counter { font-size: 1.3rem; font-weight: 700; color: #A9D2DB; }
.lb-divider { font-size: 0.8rem; color: rgba(169,210,219,0.3); }
.lb-total   { font-size: 1rem; color: rgba(169,210,219,0.4); }
.lb-label   { font-size: 0.72rem; letter-spacing: 0.12em; color: rgba(169,210,219,0.3); margin-left: 6px; font-weight: 700; }

@media (max-width: 600px) {
  .lb-stage { gap: 10px; }
  .lb-arrow { width: 38px; height: 38px; font-size: 1.6rem; }
  .lb-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ========================================
お問い合わせ
======================================== */
.contact {
  padding: 80px 20px; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.contact-decoration { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; z-index: 0; }
.contact-circle { position: absolute; border: 3px solid; border-radius: 50%; opacity: 0.6; }
.contact-circle-1 { width: 220px; height: 220px; top: -80px; left: -80px; border-color: #A9D2DB; }
.contact-circle-2 { width: 180px; height: 180px; bottom: -60px; right: -60px; border-color: #D16341; }
.contact > * { position: relative; z-index: 1; }
.contact-methods { margin: 40px 0 20px; font-size: clamp(0.95rem, 1.5vw, 1.2rem); }
.contact-methods p { margin: 15px 0; }
.contact-methods a { color: #D16341; font-weight: 700; border-bottom: 2px solid transparent; transition: border-color 0.3s ease; }
.contact-methods a:hover { border-bottom-color: #D16341; }
.contact-time { color: #666; font-size: clamp(0.82rem, 1.2vw, 0.95rem); margin-top: 30px; }

.tel-pc { font-weight: 700; color: inherit; }
.tel-mobile { display: none; color: #D16341; font-weight: 700; border-bottom: 2px solid transparent; transition: border-color 0.3s ease; }
.tel-mobile:hover { border-bottom-color: #D16341; }

@media (max-width: 768px) {
  .tel-pc     { display: none; }
  .tel-mobile { display: inline; }
}

/* ========================================
フッター
======================================== */
.footer { background-color: #2c3e50; color: #fff; padding: 30px 20px; text-align: center; margin-top: 50px; }
.footer p { font-size: clamp(0.78rem, 1.1vw, 0.9rem); margin-bottom: 15px; line-height: 1.8; }
.footer-privacy { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }
.footer-privacy a { color: #fff; font-size: clamp(0.7rem, 1vw, 0.75rem); transition: color 0.3s ease; }
.footer-privacy a:hover { color: #A9D2DB; }

/* ========================================
スクロールアニメーション
======================================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }