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

:root{
  --nav-h:72px;
  --border-color:#eee1a8;
  --paint-primary:#D97706; /* 濃いオレンジ */
  --paint-accent:#F59E0B;  /* 明るいオレンジ */
  --bg-light:#FFFEF7;
  --footer-bg:#2C2C2C;
  --bottom-nav-h:80px;      
  /* 吹き出しタイトル用 */
  --balloon-pad-y:.4rem;
  --balloon-pad-x:.9rem;
  --balloon-gap:.45rem;
  --balloon-radius:999px;
  --balloon-border:2px;
}

html,
body {
  position:relative;
}

body{
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;
  line-height:1.8;
  color:#333;
  background:#fff;
  margin:0;
  padding-bottom:calc(var(--bottom-nav-h) + 40px);
}

img{
  max-width:100%;
  height:auto;
  vertical-align:middle;
}

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

/* ========== セクション共通 ========== */
.section{ padding:80px 0; }
@media (max-width:768px){
  .section{ padding:60px 0; }
}

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

.section-header__eyecatch{
  display:block;
  margin:0 auto;
  width:100%;
  max-width:400px;
  height:auto;
  object-fit:contain;
  margin-top:-50px;
  margin-bottom:-50px;
}
@media (max-width:768px){
  .section-header__eyecatch{ max-width:250px; }
}

.section-description{
  text-align:center;
  font-size:16px;
  color:#666;
  max-width:800px;
  margin:0 auto 48px;
  line-height:1.8;
}

.section-lead{
  text-align:center;
  font-size:16px;
  max-width:800px;
  margin:0 auto 48px;
  line-height:2;
}

/* ========== ヒーロー / メインイメージ ========== */
.ratio-940x788{
  aspect-ratio:940 / 788;
  width:100%;
  max-width:940px;
  margin-left:auto;
  margin-right:auto;
  position:relative;
  overflow:hidden;
}
.ratio-940x788 > img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ========== 資格・技術力 ========== */
.qualifications{ background:#fff; }

.qualification-highlight{
  background:linear-gradient(135deg,#FFF9E6 0%,#FFFEF5 100%);
  padding:40px;
  border-radius:16px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  max-width:800px;
  margin:30px auto 0;
  text-align:center;
}

.qualification-highlight-text{
  font-size:1.5rem;
  font-weight:bold;
  color:var(--paint-primary);
  margin-bottom:20px;
}

.qualification-description{
  font-size:1.1rem;
  color:#666;
  line-height:1.8;
}

/* ========== 実績・お客様の声 ========== */
.achievements{ background:#FFFEF7; }

/* ★ azaz.png 用コンテナ：マージンを 0 に調整 */
.achievement-image{
  max-width:800px;
  margin:0 auto;       /* 上下 0 / 左右 auto で中央寄せ */
  text-align:center;
}

.testimonial-image{
  max-width:600px;
  margin:0 auto;
  text-align:center;
}

.voice-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
  max-width:1000px;
  margin:0 auto 40px;
}

.voice-card{
  background:#fff;
  padding:24px;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(0,0,0,0.1);
  border-left:4px solid var(--paint-primary);
}

.voice-card-title{
  font-size:1.1rem;
  font-weight:bold;
  color:var(--paint-primary);
  margin-bottom:12px;
}

.voice-card-text{
  font-size:.95rem;
  color:#666;
  line-height:1.7;
}

.strength-explanation{
  background:linear-gradient(135deg,#FFF9E6 0%,#FFFEF5 100%);
  padding:30px;
  border-radius:12px;
  max-width:800px;
  margin:0 auto 40px;
  text-align:center;
  box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.strength-explanation-title{
  font-size:1.4rem;
  font-weight:bold;
  color:var(--paint-primary);
  margin-bottom:16px;
}

.strength-explanation-text{
  font-size:1rem;
  color:#666;
  line-height:1.8;
}

.achievement-cta{
  text-align:center;
  margin-top:40px;
}

.btn-secondary{
  background:#fff;
  color:var(--paint-primary);
  padding:18px 40px;
  border-radius:50px;
  font-size:1.1rem;
  font-weight:bold;
  text-decoration:none;
  border:2px solid var(--paint-primary);
  transition:background .3s ease, transform .3s ease;
  display:inline-block;
}

.btn-secondary:hover{
  background:#FFF9E6;
  transform:translateY(-2px);
}

/* ========== 職人プレビュー ========== */
.craftsmen-preview{ background:#fff; }

.craftsmen-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  max-width:900px;
  margin:0 auto 40px;
  padding:2px;
}

.craftsman-card{
  background:#fff;
  border-radius:6px;
  overflow:hidden;
  position:relative;
  cursor:pointer;
  margin:0;
  padding:0;
}

.craftsman-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:5px;
  background:linear-gradient(90deg,#FDB931,#F7941D,#FFCA28);
}

.craftsman-photo{
  width:100%;
  aspect-ratio:3 / 4;
  background:linear-gradient(135deg,#FDB931 0%,#F7941D 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

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

.craftsman-info{
  padding:2px 4px;
}

.craftsman-name{
  font-size:.9em;
  font-weight:bold;
  color:#333;
  text-align:center;
  border-bottom:1px solid #FDB931;
  padding-bottom:2px;
  margin-bottom:2px;
}

.view-more-btn{
  text-align:center;
}

/* ========== お問い合わせの流れ ========== */
.contact-flow{ background:#fff; }

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

.flow-step{
  background:linear-gradient(135deg,#FFF9E6 0%,#FFFEF5 100%);
  padding:30px;
  border-radius:16px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  margin-bottom:0;
  position:relative;
}

.flow-step-header{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:16px;
}

.flow-step-number{
  background:var(--paint-primary);
  color:#fff;
  width:60px;
  height:60px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  font-size:1.5rem;
  flex-shrink:0;
}

.flow-step-title{
  font-size:1.4rem;
  font-weight:bold;
  color:#333;
  flex:1;
}

.flow-step-text{
  font-size:1rem;
  color:#666;
  line-height:1.8;
  padding-left:80px;
}

.flow-arrow{
  display:flex;
  justify-content:center;
  padding:20px 0;
}

.flow-arrow-icon{
  width:40px;
  height:40px;
  fill:var(--paint-primary);
}

@media (max-width:640px){
  .flow-step{ padding:20px; }
  .flow-step-header{ flex-direction:column; text-align:center; gap:12px; }
  .flow-step-title{ font-size:1.2rem; }
  .flow-step-text{ padding-left:0; text-align:center; }
}

/* ========== CTA ========== */
.cta-section{
  padding:80px 0;
  background:linear-gradient(135deg,var(--paint-primary) 0%,var(--paint-accent) 100%);
  color:#fff;
  text-align:center;
}

.cta-title{
  font-size:clamp(1.8rem,4vw,2.5rem);
  font-weight:bold;
  margin-bottom:30px;
}

.cta-text{
  font-size:clamp(1rem,2.5vw,1.3rem);
  margin-bottom:40px;
  line-height:1.8;
}

.cta-buttons{
  display:flex;
  gap:20px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn-primary{
  background:#fff;
  color:var(--paint-primary);
  padding:18px 40px;
  border-radius:50px;
  font-size:1.1rem;
  font-weight:bold;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(255,255,255,0.3);
  transition:background .3s ease, transform .3s ease;
  display:inline-block;
}

.btn-primary:hover{
  background:#FFF9E6;
  transform:translateY(-2px);
}

.btn-cta-phone{
  background:transparent;
  color:#fff;
  padding:18px 40px;
  border-radius:50px;
  font-size:1.1rem;
  font-weight:bold;
  text-decoration:none;
  border:2px solid #fff;
  transition:background .3s ease;
  display:inline-block;
}

.btn-cta-phone:hover{
  background:rgba(255,255,255,0.1);
}

@media (max-width:768px){
  .cta-buttons{
    flex-direction:column;
    align-items:center;
  }
  .btn-primary,
  .btn-cta-phone{
    width:100%;
    max-width:300px;
  }
}

/* ========== フッター ========== */
.site-footer{
  background:var(--footer-bg);
  color:#E0E0E0;
  padding:48px 0 24px;
}

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

@media (max-width:768px){
  .footer-content{
    grid-template-columns:1fr;
    gap:32px;
  }
}

.footer-logo{
  font-weight:bold;
  font-size:20px;
  margin-bottom:16px;
  color:#FFF;
}

.footer-address{
  font-size:14px;
  line-height:1.7;
  color:#E0E0E0;
}

.footer-address a.footer-tel{
  color:#E0E0E0;
  text-decoration:none;
}

.footer-address a.footer-tel:hover{
  color:#FFD54F;
}

.footer-nav ul{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.footer-nav a{
  font-size:14px;
  color:#E0E0E0;
  text-decoration:none;
}

.footer-nav a:hover{
  color:#FFD54F;
}

.footer-copyright{
  text-align:center;
  padding-top:24px;
  border-top:1px solid #444;
  font-size:13px;
  color:#BDBDBD;
}

/* ========== 下部ナビ ========== */
.cat-container{
  margin-right:6px;
  display:flex;
  align-items:flex-end;
}

/* ふわふわ上下アニメーション */
.cat-image{
  width:86px;
  transform-origin:bottom center;
  animation:catWave 2s ease-in-out infinite;
}

@keyframes catWave{
  0%,100%{ transform:rotate(0) }
  50%{ transform:rotate(-6deg) }
}

.speech-bubble{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:#fffaf0;
  border:2px solid #d4a373;
  border-radius:18px;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  position:relative;
}

.speech-bubble::before,
.speech-bubble::after{
  content:"";
  position:absolute;
  bottom:20px;
  border:8px solid transparent;
}

.speech-bubble::before{
  left:-14px;
  border-right-color:#d4a373;
}

.speech-bubble::after{
  left:-12px;
  border-right-color:#fffaf0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  background:#fffbe7;
  border:2px solid #f4c542;
  color:#333;
  white-space:nowrap;
}

/* ========== スライダー ========== */
.slider-container{ 
  width:100%; 
  position:relative; 
  margin:0 auto; 
  padding:60px 0 80px; 
}

.slider-wrapper{ 
  width:100%; 
  max-width:1600px; 
  margin:0 auto; 
  position:relative; 
  padding:0 120px; 
}

.slider-track{
  position:relative; 
  width:100%; 
  aspect-ratio:944 / 788; 
  overflow:visible;
  pointer-events:none;
}

.slides-container{ 
  position:relative; 
  width:100%; 
  height:100%; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
}

.slide{
  position:absolute; 
  width:100%; 
  height:100%;
  transition:transform .6s cubic-bezier(0.4,0,0.2,1), opacity .6s cubic-bezier(0.4,0,0.2,1);
  display:flex; 
  align-items:center; 
  justify-content:center;
  border-radius:16px; 
  box-shadow:0 10px 40px rgba(0,0,0,0.3);
  pointer-events:auto;
  overflow:hidden;
}

.slide.active{ 
  opacity:1; 
  transform:translateX(0) scale(1); 
  z-index:3; 
}

.slide.prev{ 
  opacity:.5; 
  transform:translateX(-65%) scale(.9); 
  z-index:1; 
}

.slide.next{ 
  opacity:.5; 
  transform:translateX(65%) scale(.9); 
  z-index:1; 
}

.slide.hidden{ 
  opacity:0; 
  transform:translateX(0) scale(.8); 
  z-index:0; 
  pointer-events:none; 
}

/* ナビゲーションボタン */
.nav-button{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:60px;
  height:60px;
  border-radius:50%;
  background:rgba(255,255,255,0.95);
  border:3px solid var(--paint-primary);
  color:var(--paint-primary);
  font-size:24px;
  cursor:pointer;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .3s ease;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  pointer-events:auto;
}

.nav-button:hover{
  background:var(--paint-primary);
  color:#fff;
  transform:translateY(-50%) scale(1.1);
  box-shadow:0 6px 20px rgba(217,119,6,0.4);
}

.nav-button:active{
  transform:translateY(-50%) scale(0.95);
}

.nav-button.prev{ left:20px; }
.nav-button.next{ right:20px; }

/* インジケーター */
.indicators{
  position:absolute; 
  bottom:-60px; 
  left:50%; 
  transform:translateX(-50%);
  display:flex; 
  gap:12px; 
  z-index:100; 
  pointer-events:auto;
}

.indicator{ 
  width:14px; 
  height:14px; 
  border-radius:50%; 
  background:rgba(217,119,6,0.3); 
  cursor:pointer; 
  transition:all .3s ease;
  border:2px solid transparent;
}

.indicator:hover{
  background:rgba(217,119,6,0.5);
}

.indicator.active{ 
  background:var(--paint-primary); 
  width:40px; 
  border-radius:7px;
  border-color:var(--paint-primary);
}

/* レスポンシブ（スライダー） */
@media (max-width:1024px){
  .slider-wrapper{ 
    padding:0 80px; 
  }
  
  .nav-button{
    width:50px;
    height:50px;
    font-size:20px;
  }
  
  .nav-button.prev{ left:10px; }
  .nav-button.next{ right:10px; }
}

@media (max-width:768px){
  .slider-container{ 
    padding:40px 0 60px; 
  }
  
  .slider-wrapper{ 
    padding:0 60px; 
  }
  
  .nav-button{
    width:44px;
    height:44px;
    font-size:18px;
  }
  
  .slide.prev{ 
    opacity:.3; 
    transform:translateX(-50%) scale(.85); 
  }
  
  .slide.next{ 
    opacity:.3; 
    transform:translateX(50%) scale(.85); 
  }
}

@media (max-width:480px){
  .slider-wrapper{ 
    padding:0 50px; 
  }
  
  .nav-button{
    width:40px;
    height:40px;
    font-size:16px;
    border-width:2px;
  }
  
  .nav-button.prev{ left:5px; }
  .nav-button.next{ right:5px; }
  
  .indicators{ bottom:-50px; }
  
  .indicator{ 
    width:10px; 
    height:10px; 
  }
  
  .indicator.active{ 
    width:30px; 
  }
}

/* ========== ユーティリティ ========== */
.balloon-title{
  display:inline-flex;
  align-items:center;
  gap:var(--balloon-gap);
  padding:var(--balloon-pad-y) var(--balloon-pad-x);
  margin:0 0 .8rem 0;
  line-height:1.3;
  font-weight:700;
  background:#fff;
  border:var(--balloon-border) solid var(--paint-accent);
  border-radius:var(--balloon-radius);
}

h1.balloon-title,
h2.balloon-title,
h3.balloon-title,
h4.balloon-title,
h5.balloon-title,
h6.balloon-title{
  font:inherit;
  margin:0 0 .8rem 0;
}

.orange-inline{
  position:fixed;
  top:calc(100vh * 2/3);
  left:0;
  right:0;
  height:8px;
  background:linear-gradient(90deg, var(--paint-primary), var(--paint-accent));
  pointer-events:none;
  z-index:-1;
}

.thanks-card{
  padding:24px;
  background:#fff;
  border-radius:16px;
}

.thanks-image{
  width:min(92vw, 940px);
  aspect-ratio:944/788;
  object-fit:contain;
  display:block;
  margin-inline:auto;
}

/* ========== アクセシビリティ / パフォーマンス ========== */
@media (prefers-reduced-motion: reduce){
  * { animation:none !important; transition:none !important; }
}

/* ========== HEROセクション ========== */
.hero{
  position:relative;
  width:100%;
  height:100svh;
  min-height:100vh;
  overflow:hidden;
  margin:0;
  padding:0;
  background-color:#fff;
}

.hero__media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.hero__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background-size:contain;
  background-position:center center;
  background-repeat:no-repeat;
  transition:opacity 0.3s ease;
}

/* ★ ここを修正：CSSファイルから見て ../images/ にある前提 */
.hero__img--default{
  opacity:1;
  z-index:1;
  background-image:url('../images/itibann1.png');
}

.hero__img--wide{
  opacity:0;
  z-index:0;
  background-image:url('../images/itibann2.png');
}

@media (min-aspect-ratio: 4/3) {
  .hero__img--default{
    opacity:0;
    z-index:0;
  }
  .hero__img--wide{
    opacity:1;
    z-index:1;
  }
}

@media (min-aspect-ratio: 16/9) {
  .hero__img--default{
    opacity:0;
    z-index:0;
  }
  .hero__img--wide{
    opacity:1;
    z-index:1;
  }
}

/* Slider: 画像を領域いっぱいに表示 */
.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
}