/* ==========================================
   Reset & Base
========================================== */
* { margin:0; padding:0; box-sizing:border-box; }

:root{
  /* Colors / Tokens */
  --primary-color:#FFD54F;
  --secondary-color:#FFF9C4;
  --accent-color:#FFA726;
  --text-color:#333;
  --text-light:#666;
  --bg-color:#FFFEF7;
  --white:#FFF;
  --border-color:#E0E0E0;
  --shadow:0 2px 8px rgba(0,0,0,.1);
  --shadow-hover:0 4px 16px rgba(0,0,0,.15);

  /* Project-specific */
  --nav-h:72px;
  --paint-primary:#D97706;
  --paint-accent:#F59E0B;
  --bg-light:#FFFEF7;
}

html { scroll-behavior:smooth; }
body{
  font-family:'Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','Noto Sans JP','メイリオ',Meiryo,sans-serif;
  color:var(--text-color);
  line-height:1.8;
  background-color:var(--bg-color);
  padding-bottom:80px;
}
img{ max-width:100%; height:auto; }
a{ text-decoration:none; color:inherit; transition:all .3s ease; }

.container{ max-width:1200px; margin:0 auto; padding:0 20px; }
.page-section{ scroll-margin-top: var(--nav-h); }

/* ==========================================
   Hero
========================================== */
.hero{ padding:100px 0 80px; position:relative; overflow:hidden; }
.hero-business{ background:linear-gradient(135deg,var(--secondary-color) 0%,var(--primary-color) 100%); }
.hero-works{ background:linear-gradient(135deg,#FFE082 0%,var(--primary-color) 100%); }
.hero-bg{ position:absolute; inset:0; opacity:.3; pointer-events:none; }

.hero-cat,.hero-house,.hero-badge{
  position:absolute; width:120px; height:120px; font-size:120px; animation:float 6s ease-in-out infinite;
}
.hero-cat{ top:20%; right:10%; }
.hero-house{ width:100px; height:100px; font-size:100px; bottom:20%; left:15%; animation-delay:1s; }
.hero-badge{
  width:150px; height:150px; font-size:150px; top:50%; left:50%;
  transform:translate(-50%,-50%); animation:rotate 20s linear infinite;
}
@keyframes float{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
@keyframes rotate{ from{transform:translate(-50%,-50%) rotate(0)} to{transform:translate(-50%,-50%) rotate(360deg)} }

.hero-content{ text-align:center; position:relative; z-index:1; }
.hero-title{ font-size:42px; font-weight:700; margin-bottom:24px; line-height:1.4; }
.hero-lead{ font-size:24px; margin-bottom:16px; line-height:1.6; }
.hero-catch{ font-size:28px; margin-bottom:24px; line-height:1.6; }
.hero-sub{ font-size:18px; color:var(--text-light); }

/* ==========================================
   Section Common
========================================== */
.section{ padding:80px 0; }
.section-title-figure{ text-align:center;  }
.section-header__eyecatch{
  display:block; margin:0 auto; width:100%; max-width:400px; height:auto; object-fit:contain;
}
.section-lead{
  text-align:center; font-size:16px; max-width:800px; margin:0 auto 48px; line-height:2;
}

/* ★ azaz.png を含む intro-image のマージンを 0 にする */
.works-intro .intro-image { 
  margin-top: 0;          /* ← ここを -200px から 0 に変更 */
}

/* Alternate BG */
.services,.flow,.works-intro{ background:var(--white); }
.stats,.works-gallery{ background:var(--bg-color); }

/* ==========================================
   Cat Profiles
========================================== */
.cat-profiles-section{ font-family:'Hiragino Sans','Yu Gothic',sans-serif; padding:28px 16px; min-height:100vh; }
.cat-profiles-section.is-photo{ position:relative; background:none; padding:clamp(24px,4vw,48px) 16px; }
.cat-profiles-section.is-photo::before{
  content:""; position:absolute; inset:0; background:url("haikei2.png") center/cover no-repeat; z-index:-2;
}

.profiles-container{ max-width:1400px; margin:0 auto; }
.profiles-header{ text-align:center; margin-bottom:28px; color:#fff; text-shadow:0 2px 10px rgba(0,0,0,.45); }
.profiles-header h1{ font-size:2.2em; margin-bottom:8px; }
.profiles-header p{ font-size:1.05em; opacity:.9; }

.sign-image-below{
  width:100%; max-width:1100px; aspect-ratio:436/268; margin:0 auto;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.2));
}
.sign-image-below img{ width:100%; height:100%; object-fit:contain; display:block; }

.cat-cards-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; padding:8px; }
@media (min-width:1024px){
  .cat-cards-grid{ grid-template-columns:repeat(3,1fr); gap:22px; padding:14px; }
}

.cat-profile-card{
  background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,.3);
  position:relative; cursor:pointer; opacity:0; transform:translateY(30px); transition:all .6s ease;
}
.cat-profile-card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:5px;
  background:linear-gradient(90deg,#FDB931,#F7941D,#FFCA28);
}
.cat-profile-card.fade-in{ opacity:1; transform:translateY(0); }

.cat-photo{
  width:100%; aspect-ratio:4/5;
  background:linear-gradient(135deg,#FDB931 0%,#F7941D 100%);
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
}
.cat-photo img{ width:100%; height:100%; object-fit:cover; }
.cat-photo::after{
  content:'🎨'; position:absolute; bottom:8px; right:8px; font-size:22px; opacity:.7; z-index:1;
}

.profile-content{ padding:14px; }
.cat-profile-name{
  font-size:1.3em; font-weight:700; color:#333; margin-bottom:10px; text-align:center;
  border-bottom:3px solid #FDB931; padding-bottom:6px;
}
.profile-info-section{ margin-bottom:8px; }
.profile-info-label{
  display:inline-flex; align-items:center; font-weight:700; color:#F7941D; margin-bottom:3px; font-size:.85em;
}
.profile-info-label::before{
  content:""; display:inline-block; width:8px; height:8px; background:#FDB931; border-radius:50%; margin-right:8px;
}
.profile-info-content{ color:#555; line-height:1.5; padding-left:16px; font-size:.9em; }

.profile-cat-badge{
  position:absolute; top:12px; right:12px; background:rgba(255,255,255,.9);
  border-radius:50%; width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  font-size:22px; box-shadow:0 3px 10px rgba(0,0,0,.2); z-index:1;
}

.cat-profiles-section.is-photo .cat-profile-card{
  background:rgba(255,255,255,.95); backdrop-filter:blur(2px) saturate(110%);
}

/* Modal */
.cat-modal-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; align-items:center; justify-content:center;
  z-index:9999; padding:20px;
}
.cat-modal-overlay.active{ display:flex; }
.cat-modal-content{
  background:#fff; border-radius:20px; max-width:600px; width:100%; max-height:90vh; overflow-y:auto; position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.cat-modal-close{
  position:absolute; top:15px; right:15px; width:40px; height:40px; border:none; background:rgba(255,255,255,.9);
  border-radius:50%; cursor:pointer; font-size:24px; display:flex; align-items:center; justify-content:center; z-index:2;
  box-shadow:0 2px 8px rgba(0,0,0,.2);
}
.cat-modal-close:hover{ background:#fff; }

/* Responsive tweaks for cards */
@media (max-width:640px){
  .cat-cards-grid{ grid-template-columns:repeat(3,1fr); gap:2px; padding:2px; }
  .cat-profile-card{ border-radius:6px; box-shadow:none; margin:0; padding:0; overflow:hidden; }
  .cat-photo{ aspect-ratio:3/4; }
  .profile-content{ padding:2px 4px; }
  .cat-profile-name{ font-size:.9em; margin-bottom:2px; padding-bottom:2px; border-bottom-width:1px; }
  .profile-info-section{ margin-bottom:2px; }
  .profile-info-label{ font-size:.7em; margin-bottom:0; line-height:1.1; }
  .profile-info-content{ font-size:.7em; line-height:1.1; padding-left:6px; }
  .profile-cat-badge{ width:20px; height:20px; font-size:12px; top:4px; right:4px; }
  .profiles-header{ margin-bottom:6px; }
  .sign-image-below{ max-width:90%; }
  .cat-profiles-section{ padding:8px 6px; }
}
@media (max-width:360px){
  .cat-cards-grid{ grid-template-columns:repeat(4,1fr); gap:1px; padding:1px; }
  .profile-content{ padding:2px 3px; }
  .cat-profile-name{ font-size:.82em; padding-bottom:1px; }
  .profile-info-content{ font-size:.68em; line-height:1.05; }
}

/* ==========================================
   Services
========================================== */
.services-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:32px; }
.service-card{
  background:#fff; border-radius:12px; padding:32px 24px; box-shadow:var(--shadow);
  opacity:0; transform:translateY(30px); transition:all .6s ease;
}
.service-card.fade-in{ opacity:1; transform:translateY(0); }
.service-icon{ width:80px; height:80px; margin:0 auto 16px; display:flex; align-items:center; justify-content:center; }
.service-icon img{ width:100%; height:100%; object-fit:contain; }
.service-title{ font-size:24px; font-weight:700; text-align:center; margin-bottom:8px; }
.service-tagline{
  text-align:center; color:var(--accent-color); font-weight:700; margin-bottom:20px; font-size:14px;
}
.service-description{ margin-bottom:20px; }
.service-description p{ margin-bottom:16px; line-height:1.8; font-size:14px; }
.service-features{ list-style:none; font-size:14px; }
.service-features li{ padding-left:24px; position:relative; margin-bottom:8px; }
.service-features li::before{
  content:'✓'; position:absolute; left:0; color:var(--accent-color); font-weight:700;
}

/* Large service main card */
.service-main-card{
  background:linear-gradient(135deg,#fff 0%,#FFFEF7 100%);
  border-radius:16px; padding:48px 40px; box-shadow:0 4px 20px rgba(0,0,0,.12);
  border:3px solid var(--primary-color); max-width:900px; margin:0 auto;
}
.service-main-title{
  font-size:32px; font-weight:700; text-align:center; margin-bottom:16px; color:var(--accent-color);
}
.service-main-subtitle{
  text-align:center; font-size:18px; color:var(--text-light); margin-bottom:32px; font-weight:700;
}
.service-main-description{ font-size:16px; line-height:2; margin-bottom:32px; text-align:center; }
.service-categories{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; margin-bottom:32px; }
.service-category{
  background:#fff; padding:24px; border-radius:12px; box-shadow:var(--shadow);
}
.service-category-title{
  font-size:20px; font-weight:700; margin-bottom:12px; color:var(--accent-color); display:flex; align-items:center; gap:8px;
}
.service-category-title::before{ content:'●'; color:var(--primary-color); font-size:12px; }
.service-category-list{ list-style:none; font-size:14px; }
.service-category-list li{
  padding-left:20px; position:relative; margin-bottom:8px; line-height:1.6;
}
.service-category-list li::before{
  content:'・'; position:absolute; left:4px; color:var(--accent-color); font-weight:700;
}
.service-strengths{ background:var(--secondary-color); padding:24px; border-radius:12px; margin-bottom:24px; }
.service-strengths-title{ font-size:18px; font-weight:700; margin-bottom:16px; text-align:center; }
.service-strengths-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.service-strength-item{ text-align:center; padding:16px; background:#fff; border-radius:8px; }
.service-strength-number{ font-size:24px; font-weight:700; color:var(--accent-color); margin-bottom:4px; }
.service-strength-text{ font-size:13px; line-height:1.4; }
.service-bottom-message{
  text-align:center; font-size:16px; font-weight:700; color:var(--accent-color);
  padding:20px; background:var(--secondary-color); border-radius:12px;
}

/* ==========================================
   Flow
========================================== */
.flow-container{ max-width:600px; margin:0 auto; }
.flow-step{
  background:var(--bg-color); border-radius:12px; box-shadow:var(--shadow);
  padding:24px 32px; margin-bottom:16px; position:relative;
  opacity:0; transform:translateY(30px); transition:all .6s ease;
}
.flow-step.fade-in{ opacity:1; transform:translateY(0); }
.flow-number{
  background:var(--primary-color); color:var(--text-color); font-weight:700;
  font-size:14px; padding:4px 16px; border-radius:12px; display:inline-block; margin-bottom:12px;
}
.flow-title{ font-size:20px; font-weight:700; margin-bottom:12px; }
.flow-description{ font-size:14px; line-height:1.8; color:var(--text-light); }
.flow-arrow{ text-align:center; font-size:32px; color:var(--accent-color); margin:8px 0; }
.flow-cat-check{
  max-width:600px; margin:32px auto 0;
  background:linear-gradient(135deg,var(--secondary-color),var(--primary-color));
  padding:32px; border-radius:12px; text-align:center;
}
.cat-check-image{ width:200px; margin:0 auto 16px; }
.cat-check-image img{ width:100%; height:auto; object-fit:contain; }
.cat-check-text{ font-size:16px; font-weight:700; line-height:2; }

/* ==========================================
   Works (Intro / Gallery)
========================================== */
.intro-content{ max-width:800px; margin:0 auto; }
.intro-text p{ margin-bottom:24px; line-height:2; }

.works-gallery-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(350px,1fr)); gap:48px;
}
.works-gallery-item{
  background:#fff; padding:32px; border-radius:12px; box-shadow:var(--shadow);
  opacity:0; transform:translateY(30px); transition:all .6s ease;
}
.works-gallery-item.fade-in{ opacity:1; transform:translateY(0); }

.before-after-wrapper{
  display:grid; grid-template-columns:1fr auto 1fr; gap:16px; margin-bottom:24px; align-items:center;
}
.gallery-label{
  text-align:center; padding:8px 16px; border-radius:20px;
  font-weight:700; font-size:14px; display:inline-block; margin-bottom:12px;
}
.label-before{ background:#E0E0E0; color:#666; }
.label-after{ background:var(--primary-color); color:var(--text-color); }
.ba-photo{
  width:100%; aspect-ratio:1/1; border-radius:8px; overflow:hidden; box-shadow:var(--shadow);
}
.ba-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-arrow{ font-size:32px; color:var(--accent-color); text-align:center; }
.gallery-caption{ font-size:14px; line-height:1.8; }
.caption-comment{ color:var(--accent-color); font-weight:700; display:block; margin-top:8px; }

/* ==========================================
   CTA
========================================== */
.cta-section{
  background:linear-gradient(135deg,var(--primary-color),var(--accent-color));
  padding:80px 0; text-align:center;
}
.cta-title{ font-size:36px; font-weight:700; margin-bottom:24px; }
.cta-text{ font-size:18px; margin-bottom:40px; line-height:2; }
.cta-buttons{
  display:flex; gap:24px; justify-content:center; flex-wrap:wrap; margin-bottom:32px;
}
.btn-cta{
  background:#fff; color:var(--text-color); padding:18px 48px; border-radius:30px;
  font-weight:700; font-size:16px; box-shadow:var(--shadow);
}
.btn-cta:hover{
  background:var(--accent-color); color:#fff; transform:translateY(-2px); box-shadow:var(--shadow-hover);
}
.btn-secondary{
  background:transparent; color:#fff; padding:18px 48px; border-radius:30px;
  font-weight:700; font-size:16px; border:2px solid #fff;
}
.btn-secondary:hover{ background:#fff; color:var(--accent-color); transform:translateY(-2px); }
.cta-cat{ margin-top:32px; }
.cta-cat-icon{ width:48px; height:48px; font-size:48px; display:block; margin:0 auto 8px; }
.cta-cat-text{ font-size:16px; font-weight:700; }

/* ==========================================
   Footer (Unified)
========================================== */
.site-footer{
  background:#2C2C2C; color:#E0E0E0; padding:48px 0 24px;
  font-family:"Noto Sans JP",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
.footer-content{ display:grid; grid-template-columns:1.5fr 1fr; gap:48px; margin-bottom:32px; }
.footer-logo{
  font-weight:700; font-size:20px; margin-bottom:16px;
  display:flex; align-items:center; gap:8px; color:#FFF;
}
.footer-address{ line-height:1.9; font-size:14px; color:#E0E0E0; }
.footer-address .footer-tel{ color:inherit; font-weight:600; text-decoration:none; }
.footer-address .footer-tel:hover{ text-decoration:underline; }
.footer-nav ul{
  list-style:none; display:grid; grid-template-columns:repeat(2,1fr);
  gap:12px; padding:0; margin:0;
}
.footer-nav a{
  font-size:14px; color:#E0E0E0; text-decoration:none;
  transition:color .25s ease; line-height:1.6; display:inline-block;
}
.footer-nav a:hover{ color:#FFD54F; }
.footer-copyright{
  text-align:center; padding-top:24px; border-top:1px solid #444;
  font-size:13px; color:#BDBDBD; line-height:1.6;
}

/* ==========================================
   Photo Blocks
========================================== */
.photo-section{ display:flex; justify-content:center; align-items:center; padding:1rem; }
.photo-wrapper{
  position:relative; width:100%; max-width:1200px; aspect-ratio:16/9;
  overflow:hidden; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.responsive-photo{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center; transition:transform .5s ease;
}

/* 5:4 photo */
.photo-5x4{
  position:relative; width:80%; max-width:600px; margin:0 auto; aspect-ratio:5/4;
  overflow:hidden; border-radius:12px; box-shadow:0 6px 16px rgba(0,0,0,.1);
}
.photo-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center; display:block; transition:transform .4s ease;
}

/* ==========================================
   Subnav CTA Buttons
========================================== */
.subnav-cta{
  display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:10px 0;
  background:linear-gradient(to right,#FFF9E6,#FFFEF7);
  border-top:1px solid var(--border-color);
}
.subnav-btn{
  display:flex; align-items:center; justify-content:center; gap:8px; height:44px;
  border-radius:22px; text-decoration:none; font-weight:700; font-size:14px;
  color:#fff; transition:all .3s ease; overflow:hidden;
}
.subnav-btn--estimate{
  background:var(--paint-accent); box-shadow:0 3px 10px rgba(245,158,11,.3);
}
.subnav-btn--estimate:hover{
  background:var(--paint-primary); transform:translateY(-2px); box-shadow:0 5px 15px rgba(217,119,6,.4);
}
.subnav-btn--paint{
  background:var(--paint-primary); box-shadow:0 3px 10px rgba(217,119,6,.3);
}
.subnav-btn--paint:hover{
  background:var(--paint-accent); transform:translateY(-2px); box-shadow:0 5px 15px rgba(245,158,11,.4);
}
.subnav-icon{ font-size:18px; }

/* ==========================================
   Speech bubble & Buttons (Header area)
========================================== */
.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:7px 12px; border-radius:999px; text-decoration:none;
  font-weight:700; font-size:14px; background:#fffbe7;
  border:2px solid #f4c542; color:#333; white-space:nowrap; transition:background .2s ease;
}
.btn:hover{ background:#fffbe7; transform:none; box-shadow:none; }
.btn-tel{ font-size:.67em; font-weight:600; letter-spacing:.5px; }

/* ==========================================
   Utilities / Visibility
========================================== */
.sp-only{ display:none; }

/* ==========================================
   Responsive
========================================== */
@media (max-width:1024px){
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .service-categories{ grid-template-columns:1fr; }
  .service-strengths-grid{ grid-template-columns:1fr; }
}

@media (max-width:768px){
  .hero{ padding:60px 0 40px; }
  .hero-title{ font-size:28px; }
  .hero-lead,.hero-catch{ font-size:20px; }
  .hero-cat,.hero-house{ width:60px; height:60px; font-size:60px; }
  .hero-badge{ width:80px; height:80px; font-size:80px; }
  .section{ padding:60px 0; }
  .section-header__eyecatch{ max-width:250px; }

  .services-grid,.works-gallery-grid{ grid-template-columns:1fr; }
  .before-after-wrapper{ grid-template-columns:1fr; }
  .gallery-arrow{ transform:rotate(90deg); }

  .footer-content{ grid-template-columns:1fr; }
  .cta-title{ font-size:24px; }
  .cta-buttons{ flex-direction:column; align-items:center; }
  .btn-cta,.btn-secondary{ width:100%; max-width:300px; }

  .photo-section{ padding:0; }
  .photo-wrapper{
    max-width:none; width:100vw; margin:0; border-radius:0; box-shadow:none;
  }
  .responsive-photo{ object-position:center top; }

  .photo-5x4{ width:95%; border-radius:8px; box-shadow:0 4px 10px rgba(0,0,0,.08); }

  .sp-only{ display:inline; }

  /* speech bubble compact grid for 3 buttons */
  .speech-bubble{
    display:grid; grid-template-columns:repeat(3,1fr); gap:6px;
    width:100%; max-width:640px; padding:8px; border-radius:16px;
    border:2px solid #d4a373; background:#fffaf0; box-shadow:0 6px 14px rgba(0,0,0,.12);
  }
  .speech-bubble::before,.speech-bubble::after{ display:none; }
  .btn{ width:100%; min-width:0; padding:10px 4px; font-size:clamp(12px,3.4vw,14px); line-height:1.1; }
}

@media (max-width:640px){
  .subnav-btn{ font-size:12px; height:40px; padding:0 8px; }
}

@media (max-width:360px){
  /* extra-tight if needed */
}

/* ==========================================
   Optional: Cat waving (used by .cat-image)
========================================== */
.cat-container{ margin-right:6px; }
.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)} }



/* intro のテキスト中央寄せ */
.intro-content {
  text-align: center;
}