/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: auto !important; overflow-x: hidden !important; }
body {
  overflow: visible !important;
  overflow-x: hidden !important;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.8;
  font-size: 1.6rem;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Variables ===== */
:root {
  --dark: #2a2a2a;
  --white: #fff;
  --bg: #f2f2f2;
  --text: #333;
  --text-light: #666;
  --border: #ddd;
  --max: 1200px;
  --serif: 'Noto Serif JP', serif;
}

/* ===== Utility ===== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Scroll Reveal（下からふわっとフェードイン） ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* セクションラベル：左端テキスト + 右に伸びる横線 */
.section-label {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::after {
  content: '';
  display: block;
  flex: 1;           /* コンテンツ幅いっぱいに伸ばす */
  height: 1px;
  background: var(--border);
}

/* h2：全セクション中央揃え */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
  text-align: center;
  margin-top: 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.8; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 500px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background: url('images/mv-bg.png') center/cover no-repeat;
  background-color: #b8a99a;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-text-box {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(2px);
  padding: 48px 56px;
  max-width: 740px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 3.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: left;   /* heroは左揃え維持 */
}
.hero-body {
  font-size: 1.5rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 32px;
}

/* ===== Strength Section ===== */
.strength {
  background: var(--white);
  padding: 100px 0 0;
}
.strength-header {
  margin-bottom: 64px;
}
.strength-subtitle {
  font-size: 1.6rem;
  line-height: 2;
  color: var(--text-light);
  text-align: center;
  margin-top: 24px;
}
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 80px;
}
.strength-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--border);
  padding-right: 40px;
}
.strength-item:last-child {
  border-right: none;
  padding-right: 0;
}
.strength-item-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.strength-num {
  font-family: var(--serif);
  font-size: 6.4rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
  flex-shrink: 0;
}
.strength-item-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}
.strength-item-body {
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--text-light);
}
.strength-image {
  margin-top: 0;
}
.strength-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Flow / Process Section ===== */
.flow {
  background: var(--bg);
  padding: 100px 0;
}
.flow-header {
  margin-bottom: 64px;
}
.flow-subtitle {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-top: 16px;
  text-align: center;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
}
/* 点線の接続線 */
.flow-grid::before {
  content: '';
  position: absolute;
  top: 64px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  border-top: 1px dashed #bbb;
  z-index: 0;
}
.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 8px 40px;
}
.flow-circle {
  width: 128px;
  height: 128px;
  border: 1.5px solid var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--dark);
  background: var(--bg);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.flow-item-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.6;
  text-align: center;
}
.flow-cta {
  text-align: center;
  margin-top: 56px;
}

/* ===== Works Type Section ===== */
.works-type {
  background: var(--bg);
  padding: 100px 0;
}
.works-type-header {
  margin-bottom: 48px;
}
.works-section-img {
  margin-top: 24px;
}
.works-section-img img {
  width: 100%;
  height: auto;
  display: block;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.works-card {
  background: var(--white);
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
}
.works-card-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.works-card-body {
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--text-light);
}

/* ===== Gallery Section ===== */
.gallery {
  background: #1a1a1a;
  overflow: hidden;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 320px 320px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  background-color: #2a2a2a;
}
.gallery-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; background: #2d2a28 url('images/gallery-1.jpg') center/cover; }
.gallery-item:nth-child(2) { background: #3a3330 url('images/gallery-2.jpg') center/cover; }
.gallery-item:nth-child(3) { background: #252220 url('images/gallery-3.jpg') center/cover; }
.gallery-item:nth-child(4) { background: #302d2a url('images/gallery-4.jpg') center/cover; }
.gallery-item:nth-child(5) { background: #222028 url('images/gallery-5.jpg') center/cover; }

/* ===== Achievement Section ===== */
.achievement {
  background: var(--bg);
  padding: 100px 0;
}
.achievement-header {
  margin-bottom: 60px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.achievement-card {
  background: var(--white);
  overflow: hidden;
}
.achievement-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.achievement-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.achievement-info {
  padding: 20px 24px;
}
.achievement-tag {
  font-size: 1.2rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.achievement-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
}
.achievement-more {
  text-align: center;
  margin-top: 48px;
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--dark);
  color: var(--dark);
  padding: 14px 48px;
  border-radius: 50px;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

/* ===== Voice / お客様の声 ===== */
.voice {
  background: var(--bg);
  padding: 100px 0;
}
.voice-header {
  margin-bottom: 60px;
}
.voice-subtitle {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-top: 16px;
  text-align: center;
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.voice-card {
  background: var(--white);
  border: 1px solid #c8c0b8;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.voice-card-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.6;
}
.voice-card-body {
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--text-light);
  flex: 1;
}
.voice-card-attr {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--dark);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

/* ===== FAQ ===== */
.faq {
  background: var(--white);
  padding: 100px 0;
}
.faq-header {
  margin-bottom: 60px;
}
.faq-list {
  max-width: none;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--text-light);
  padding: 0 0 24px 0;
}

/* ===== Contact Form ===== */
.contact {
  background: var(--bg);
  padding: 100px 0;
}
.contact-header {
  margin-bottom: 56px;
}
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
}
.form-row {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-label span {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-size: 1rem;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 1.6rem;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
  border-radius: 2px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--dark);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  text-align: center;
  margin-top: 36px;
}
.form-submit .btn-primary {
  min-width: 200px;
  font-size: 1.6rem;
}
.form-note {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 16px;
}
.form-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-address-prefix {
  font-size: 1.6rem;
  color: var(--text);
  flex-shrink: 0;
}
.form-address-row .btn-outline {
  padding: 11px 16px;
  font-size: 1.3rem;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}
.form-recaptcha-note {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}
.form-recaptcha-note a {
  text-decoration: underline;
  color: var(--text-light);
}
.grecaptcha-badge { visibility: hidden; }
.form-consent-row {
  margin-top: 8px;
}
.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1.6;
}
.form-consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--dark);
}
.form-consent-label a {
  text-decoration: underline;
  color: var(--dark);
}
.form-consent-required {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-size: 1rem;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== Scroll Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }
[data-reveal][data-delay="6"] { transition-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .strength-grid { gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
}

/* タブレット専用 */
@media (min-width: 769px) and (max-width: 1024px) {
  /* 選ばれる3つの理由：SP表示に合わせる */
  .strength-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .strength-item { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 40px; }
  .strength-item:last-child { border-bottom: none; padding-bottom: 0; }
  .strength-item-header { flex-direction: row; align-items: flex-end; gap: 12px; }
  .strength-num { font-size: 5.6rem; }
  .strength-item-title { font-size: 1.8rem; }

  /* フロー：3列×2行で全6ステップを表示 */
  .flow-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 0; }
  .flow-grid::before { display: none; }

  /* 施工実績：カルーセル化 */
  .achievement-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .achievement-grid::-webkit-scrollbar { display: none; }
  .achievement-card {
    flex: 0 0 calc(75% - 10px);
    scroll-snap-align: start;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .hero { height: auto; }
  .hero-img { position: static; aspect-ratio: 4/3; width: 100%; }
  .hero-overlay { display: none; }
  .hero-content { height: auto; position: static; padding: 0; }
  .hero-text-box {
    background: var(--white);
    padding: 40px 24px 48px;
    max-width: 100%;
    text-align: center;
    width: 100%;
  }
  .hero-title { font-size: 2.2rem; text-align: center; line-height: 1.6; }
  .hero-body { font-size: 1.5rem; line-height: 2; }
  .hero-body p { margin-bottom: 4px; }

  .strength { padding: 64px 0 0; }
  .strength-subtitle { font-size: 1.6rem; margin-top: 16px; }
  .strength-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .strength-item { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 40px; }
  .strength-item:last-child { border-bottom: none; padding-bottom: 0; }
  /* SP: 数字とタイトルを横並び */
  .strength-item-header { flex-direction: row; align-items: flex-end; gap: 12px; }
  .strength-num { font-size: 5.6rem; }
  .strength-item-title { font-size: 1.8rem; }

  .flow { padding: 64px 0; }
  .flow-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 0; }
  .flow-grid::before { display: none; }
  .flow-circle { width: 88px; height: 88px; font-size: 2.2rem; }

  .works-type { padding: 64px 0; }
  .works-grid { grid-template-columns: 1fr; }
  .works-card { padding: 28px 24px; }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item { aspect-ratio: 4/3; }
  .gallery-item:nth-child(1) { grid-column: auto; grid-row: auto; }

  .achievement { padding: 64px 0; }
  .achievement-grid { grid-template-columns: 1fr; gap: 16px; }

  .voice-grid { grid-template-columns: 1fr; }

  .faq { padding: 64px 0; }
  .faq-list { max-width: 100%; }

  .contact { padding: 64px 0; }
  .contact-form { padding: 32px 20px; }

  .section-title { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}
