/* ========================================
   SUITBAR Common Styles
   Design: DESIGN.md priority
   ======================================== */

/* --- Reset & Base --- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;font-size:16px}
body{
  font-family:'Noto Sans JP',sans-serif;
  font-weight:400;
  color:#f7f3ee;
  background:#121212;
  line-height:1.85;
  letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* --- CSS Variables --- */
:root{
  --bg-base:#121212;
  --bg-section:#181818;
  --bg-warm:#f6f2ec;
  --bg-sub:#e9e1d6;
  --text-dark:#151515;
  --text-light:#f7f3ee;
  --accent:#b79d74;
  --accent-sub:#8f877b;
  --cta-dark:#1d1d1d;
  --border-accent:rgba(183,157,116,0.28);
  --border-warm:#ddd3c4;
  --font-heading:'Cormorant Garamond',serif;
  --font-body:'Noto Sans JP',sans-serif;
  --font-label:'Outfit',sans-serif;
  --max-w:1200px;
  --max-w-narrow:900px;
  --section-pad:120px 0;
  --section-pad-sm:72px 0;
}

/* --- Typography --- */
h1,h2,h3,h4{
  font-family:var(--font-heading);
  font-weight:600;
  line-height:1.25;
  letter-spacing:.04em;
}
h1{font-size:clamp(2.4rem,5vw,4.2rem);font-weight:700}
h2{font-size:clamp(1.8rem,3.5vw,2.8rem)}
h3{font-size:clamp(1.3rem,2.2vw,1.8rem)}
.label{
  font-family:var(--font-label);
  font-weight:500;
  font-size:.8rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--accent);
}

/* --- Layout --- */
.container{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 40px;
}
.container--narrow{
  max-width:var(--max-w-narrow);
  margin:0 auto;
  padding:0 40px;
}
.section{padding:var(--section-pad)}
.section--warm{background:var(--bg-warm);color:var(--text-dark)}
.section--sub{background:var(--bg-sub);color:var(--text-dark)}
.section--dark{background:var(--bg-section)}

/* --- News Bar --- */
.news-bar{
  background:rgba(18,18,18,.96);
  color:var(--text-light);
  font-family:var(--font-label);
  font-size:.74rem;
  font-weight:500;
  letter-spacing:.08em;
  padding:7px 0;
  position:relative;
  z-index:1100;
  border-bottom:1px solid rgba(183,157,116,.22);
}
.news-bar__inner{
  display:flex;
  align-items:center;
  gap:14px;
}
.news-bar__label{
  flex-shrink:0;
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  padding:2px 10px;
  border:1px solid rgba(183,157,116,.32);
  border-radius:999px;
  color:var(--accent);
}
.news-bar__list{
  flex:1;
  min-width:0;
}
.news-bar__item{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text-light);
}
.news-bar__date{
  opacity:.58;
  white-space:nowrap;
}
.news-bar__category{
  font-size:.68rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(183,157,116,.14);
  color:var(--accent);
  white-space:nowrap;
}
.news-bar__title{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.news-bar__more{
  flex-shrink:0;
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}
.news-bar--empty .news-bar__title{opacity:.72}

/* --- Header --- */
.header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:1000;
  transition:background .4s,backdrop-filter .4s;
  padding:0;
}
.header.has-news-bar{top:auto}
.header__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 40px;
  max-width:1400px;
  margin:0 auto;
}
.header.scrolled{
  background:rgba(18,18,18,.92);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.header__logo img{height:28px;width:auto}
.header__nav{display:flex;align-items:center;gap:32px}
.header__nav a{
  font-family:var(--font-label);
  font-size:.75rem;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--text-light);
  transition:color .3s;
  position:relative;
}
.header__nav a::after{
  content:'';
  position:absolute;
  bottom:-4px;left:0;
  width:0;height:1px;
  background:var(--accent);
  transition:width .3s;
}
.header__nav a:hover::after,
.header__nav a.active::after{width:100%}
.header__nav a:hover{color:var(--accent)}

/* Mobile toggle */
.header__toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  width:28px;
  cursor:pointer;
  z-index:1001;
}
.header__toggle span{
  display:block;
  height:2px;
  background:var(--text-light);
  box-shadow:0 0 10px rgba(247,243,238,.18);
  transition:transform .3s,opacity .3s;
}
.header__toggle.open span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.header__toggle.open span:nth-child(2){opacity:0}
.header__toggle.open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

/* Mobile nav overlay */
.mobile-nav{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:rgba(18,18,18,.97);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:28px;
  z-index:999;
  opacity:0;
  pointer-events:none;
  transition:opacity .4s;
}
.mobile-nav.open{opacity:1;pointer-events:auto}
.mobile-nav a{
  font-family:var(--font-heading);
  font-size:1.6rem;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--text-light);
  transition:color .3s;
}
.mobile-nav a:hover{color:var(--accent)}

/* --- Hero (index) --- */
.hero{
  position:relative;
  height:100vh;
  min-height:600px;
  overflow:hidden;
  display:flex;
  align-items:center;
}
.hero__slides{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero__slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1.6s ease;
  will-change:opacity;
}
.hero__slide.active{opacity:1}
.hero__slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 20%;
}
.hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to right,
    rgba(12,12,12,.92) 0%,
    rgba(12,12,12,.68) 48%,
    rgba(12,12,12,.34) 100%
  );
  z-index:1;
}
.hero__content{
  position:relative;
  z-index:2;
  max-width:680px;
  padding:0 40px;
}
.hero__content .label{margin-bottom:20px;display:block}
.hero__content h1{
  margin-bottom:24px;
}
.hero__content h1 .line{
  display:block;
  opacity:0;
  transform:translateY(20px);
  transition:opacity .8s,transform .8s;
}
.hero__content h1 .line.visible{
  opacity:1;
  transform:translateY(0);
}
.hero__sub{
  font-size:1rem;
  line-height:1.8;
  color:rgba(247,243,238,.8);
  margin-bottom:40px;
  max-width:480px;
}
.hero__progress{
  display:flex;
  gap:8px;
  margin-top:40px;
}
.hero__progress-bar{
  width:48px;
  height:2px;
  background:rgba(247,243,238,.2);
  border-radius:1px;
  overflow:hidden;
  cursor:pointer;
}
.hero__progress-bar.active .hero__progress-fill{
  animation:progressFill 5s linear forwards;
}
.hero__progress-fill{
  height:100%;
  width:0;
  background:var(--accent);
}
@keyframes progressFill{
  to{width:100%}
}

/* --- Page Hero (sub pages) --- */
.page-hero{
  position:relative;
  height:56vh;
  min-height:400px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.page-hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.page-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(12,12,12,.92) 0%,rgba(12,12,12,.42) 58%,rgba(12,12,12,.18) 100%);
}
.page-hero__content{
  position:relative;
  z-index:1;
  padding:0 40px 60px;
  max-width:var(--max-w);
  margin:0 auto;
  width:100%;
}
.page-hero__content .label{margin-bottom:12px;display:block}
.page-hero__content h1{font-size:clamp(2rem,4vw,3.2rem)}

/* --- Breadcrumb --- */
.breadcrumb{
  padding:16px 40px;
  max-width:var(--max-w);
  margin:0 auto;
  font-family:var(--font-label);
  font-size:.72rem;
  letter-spacing:.1em;
  color:var(--accent-sub);
}
.breadcrumb a{color:var(--accent-sub);transition:color .3s}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb span{margin:0 8px;opacity:.5}

/* --- Buttons --- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 34px;
  font-family:var(--font-label);
  font-size:.77rem;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  border:1px solid var(--border-accent);
  color:var(--text-light);
  background:rgba(18,18,18,.08);
  backdrop-filter:blur(4px);
  transition:all .4s;
}
.btn:hover{
  background:var(--accent);
  color:var(--text-dark);
  border-color:var(--accent);
}
.btn--accent{
  background:var(--accent);
  color:var(--text-dark);
  border-color:var(--accent);
}
.btn--accent:hover{
  background:transparent;
  color:var(--accent);
}
.btn--dark{
  border-color:var(--text-dark);
  color:var(--text-dark);
}
.btn--dark:hover{
  background:var(--text-dark);
  color:var(--text-light);
}
.btn--small{padding:10px 24px;font-size:.72rem}

/* --- Cards --- */
.card{
  border:1px solid var(--border-accent);
  padding:36px 32px;
  transition:border-color .3s,transform .3s;
}
.card:hover{
  border-color:var(--accent);
  transform:translateY(-4px);
}
.card__label{margin-bottom:12px}
.card__title{
  font-family:var(--font-heading);
  font-size:1.4rem;
  font-weight:600;
  margin-bottom:12px;
}
.card__text{
  font-size:.9rem;
  line-height:1.8;
  color:var(--accent-sub);
}
.card--warm{
  border-color:var(--border-warm);
  color:var(--text-dark);
}
.card--warm .card__text{color:#6b6560}

/* --- Grid Systems --- */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:40px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}

/* --- Section Headers --- */
.section-header{margin-bottom:64px}
.section-header .label{margin-bottom:12px;display:block}
.section-header p{
  margin-top:20px;
  max-width:600px;
  font-size:.95rem;
  line-height:1.85;
  color:var(--accent-sub);
}
.section-header--center{text-align:center}
.section-header--center p{margin-left:auto;margin-right:auto}
.section--warm .section-header p{color:#6b6560}

/* --- Divider line --- */
.divider{
  width:48px;
  height:1px;
  background:var(--accent);
  margin:24px 0;
}
.divider--center{margin:24px auto}

/* --- Image with overlay text --- */
.image-block{
  position:relative;
  overflow:hidden;
}
.image-block img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s;
}
.image-block:hover img{transform:scale(1.03)}

/* --- Quote block --- */
.quote{
  font-family:var(--font-heading);
  font-size:clamp(1.6rem,3vw,2.6rem);
  font-weight:600;
  line-height:1.5;
  letter-spacing:.04em;
  position:relative;
  padding-left:32px;
  border-left:2px solid var(--accent);
}

/* --- Steps --- */
.step{
  display:grid;
  grid-template-columns:80px 1fr;
  gap:32px;
  align-items:start;
  padding:40px 0;
  border-bottom:1px solid var(--border-accent);
}
.step__number{
  font-family:var(--font-heading);
  font-size:2.4rem;
  font-weight:700;
  color:var(--accent);
  line-height:1;
}
.step__title{
  font-family:var(--font-heading);
  font-size:1.3rem;
  font-weight:600;
  margin-bottom:8px;
}
.step__text{
  font-size:.9rem;
  line-height:1.8;
  color:var(--accent-sub);
}
.section--warm .step{border-bottom-color:var(--border-warm)}
.section--warm .step__text{color:#6b6560}

/* --- Case Study --- */
.case{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.case__image{
  overflow:hidden;
  aspect-ratio:4/3;
}
.case__image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.case__label{margin-bottom:12px}
.case__title{
  font-family:var(--font-heading);
  font-size:1.6rem;
  font-weight:600;
  margin-bottom:16px;
}
.case__text{
  font-size:.9rem;
  line-height:1.85;
  color:var(--accent-sub);
}

/* --- Contact Split --- */
.contact-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
}
.contact-block{
  padding:60px 48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.contact-block--dark{background:var(--bg-section)}
.contact-block--warm{background:var(--bg-warm);color:var(--text-dark)}
.contact-block .label{margin-bottom:12px;display:block}
.contact-block h3{margin-bottom:16px}
.contact-block p{
  font-size:.9rem;
  line-height:1.8;
  margin-bottom:28px;
  color:var(--accent-sub);
}
.contact-block--dark p{color:rgba(247,243,238,.82)}
.contact-block--warm p{color:#6b6560}

/* --- Form --- */
.form-group{margin-bottom:24px}
.form-group label{
  display:block;
  font-family:var(--font-label);
  font-size:.75rem;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:8px;
  color:var(--accent-sub);
}
.form-group input,
.form-group textarea,
.form-group select{
  width:100%;
  padding:12px 16px;
  font-family:var(--font-body);
  font-size:.9rem;
  color:var(--text-dark);
  background:#fff;
  border:1px solid var(--border-warm);
  outline:none;
  transition:border-color .3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  border-color:var(--accent);
}
.form-group textarea{min-height:120px;resize:vertical}

/* --- Footer --- */
.footer{
  background:var(--bg-section);
  border-top:1px solid var(--border-accent);
  padding:80px 0 40px;
}
.footer__inner{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:40px;
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 40px;
}
.footer__brand img{height:24px;margin-bottom:20px}
.footer__brand p{
  font-size:.82rem;
  line-height:1.8;
  color:var(--accent-sub);
}
.footer__nav-title{
  font-family:var(--font-label);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:20px;
}
.footer__nav a{
  display:block;
  font-size:.85rem;
  color:var(--accent-sub);
  padding:4px 0;
  transition:color .3s;
}
.footer__nav a:hover{color:var(--text-light)}
.footer__bottom{
  max-width:var(--max-w);
  margin:48px auto 0;
  padding:24px 40px 0;
  border-top:1px solid var(--border-accent);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:var(--font-label);
  font-size:.7rem;
  letter-spacing:.1em;
  color:var(--accent-sub);
}

/* --- Animations (IntersectionObserver) --- */
.fade-in{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s cubic-bezier(.25,.46,.45,.94),
             transform .8s cubic-bezier(.25,.46,.45,.94);
}
.fade-in.visible{
  opacity:1;
  transform:translateY(0);
}
.fade-in-left{
  opacity:0;
  transform:translateX(-32px);
  transition:opacity .8s,transform .8s;
}
.fade-in-left.visible{opacity:1;transform:translateX(0)}
.fade-in-right{
  opacity:0;
  transform:translateX(32px);
  transition:opacity .8s,transform .8s;
}
.fade-in-right.visible{opacity:1;transform:translateX(0)}

/* stagger children */
.stagger .fade-in:nth-child(1){transition-delay:0s}
.stagger .fade-in:nth-child(2){transition-delay:.12s}
.stagger .fade-in:nth-child(3){transition-delay:.24s}
.stagger .fade-in:nth-child(4){transition-delay:.36s}

/* --- News list --- */
.news-list{max-width:var(--max-w-narrow);margin:0 auto}
.news-item{
  display:flex;
  gap:24px;
  padding:28px 0;
  border-bottom:1px solid var(--border-accent);
  align-items:baseline;
}
.news-item__date{
  font-family:var(--font-label);
  font-size:.78rem;
  letter-spacing:.08em;
  color:var(--accent-sub);
  white-space:nowrap;
}
.news-item__title{
  font-size:.95rem;
  line-height:1.7;
}
.news-item__title a{transition:color .3s}
.news-item__title a:hover{color:var(--accent)}
.section--warm .news-item{border-bottom-color:var(--border-warm)}

/* --- Price table --- */
.price-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding:16px 0;
  border-bottom:1px solid var(--border-accent);
  font-size:.92rem;
}
.price-row__label{color:var(--accent-sub)}
.price-row__value{
  font-family:var(--font-label);
  font-weight:500;
  letter-spacing:.06em;
}
.section--warm .price-row{border-bottom-color:var(--border-warm)}
.section--warm .price-row__label{color:#6b6560}

/* --- Info table --- */
.info-table{width:100%}
.info-table tr{border-bottom:1px solid var(--border-accent)}
.info-table th{
  font-family:var(--font-label);
  font-size:.75rem;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--accent);
  padding:16px 20px 16px 0;
  text-align:left;
  vertical-align:top;
  white-space:nowrap;
  width:140px;
}
.info-table td{
  padding:16px 0;
  font-size:.9rem;
  line-height:1.8;
}
.section--warm .info-table tr{border-bottom-color:var(--border-warm)}

/* --- Responsive --- */
@media(max-width:1024px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .case{gap:40px}
  .footer__inner{grid-template-columns:1fr 1fr}
}

@media(max-width:768px){
  :root{
    --section-pad:64px 0;
    --section-pad-sm:56px 0;
  }
  .container,.container--narrow{padding:0 24px}
  .header__nav{display:none}
  .header__toggle{display:flex}
  .header__inner{padding:14px 24px}
  .hero{
    height:100svh;
    align-items:flex-end;
  }
  .hero__content{
    width:min(360px, calc(100% - 32px));
    max-width:calc(100% - 32px);
    padding:22px 24px 34px;
    margin:0 0 24px;
    border-radius:18px;
    background:linear-gradient(180deg, rgba(12,12,12,.12) 0%, rgba(12,12,12,.7) 46%, rgba(12,12,12,.84) 100%);
    backdrop-filter:blur(3px);
  }
  .hero__content h1{
    max-width:5.8em;
    font-size:clamp(1.85rem, 8vw, 2.45rem);
    line-height:1.12;
    text-wrap:balance;
  }
  .hero__sub{
    font-size:.94rem;
    line-height:1.75;
    max-width:22ch;
    text-wrap:pretty;
  }
  .hero__slide:nth-child(1) img{object-position:24% 20%}
  .hero__slide:nth-child(2) img{object-position:56% 20%}
  .hero__slide:nth-child(3) img{object-position:40% 18%}
  .hero__slide:nth-child(4) img{object-position:66% 22%}
  .hero__overlay{
    background:linear-gradient(
      to top,
      rgba(12,12,12,.94) 0%,
      rgba(12,12,12,.68) 46%,
      rgba(12,12,12,.28) 100%
    );
  }
  .page-hero{height:38vh;min-height:280px}
  .page-hero__content{padding:0 24px 24px}
  .page-hero__content h1{
    max-width:8.2em;
    font-size:clamp(1.5rem,6.4vw,1.95rem);
    line-height:1.1;
    text-wrap:balance;
    text-shadow:0 8px 24px rgba(0,0,0,.38);
  }
  .page-hero__content .label{ text-shadow:0 6px 18px rgba(0,0,0,.34); }
  .breadcrumb{padding:12px 24px}
  .news-bar__inner{
    display:grid;
    grid-template-columns:1fr auto;
    gap:6px 12px;
    align-items:start;
  }
  .news-bar__label{
    grid-column:1 / -1;
    justify-self:start;
  }
  .news-bar__list{
    min-width:0;
  }
  .news-bar__item{
    align-items:flex-start;
    flex-wrap:wrap;
    row-gap:4px;
  }
  .news-bar__title{
    white-space:normal;
    line-height:1.45;
  }
  .news-bar__more{
    display:none;
  }
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .case{grid-template-columns:1fr;gap:32px}
  .contact-split{grid-template-columns:1fr}
  .contact-block{padding:48px 24px}
  .footer__inner{grid-template-columns:1fr;gap:32px}
  .footer__bottom{flex-direction:column;gap:8px;text-align:center}
  .section-header{margin-bottom:48px}
  .step{grid-template-columns:60px 1fr;gap:20px}
  .quote{font-size:clamp(1.3rem,4vw,2rem);padding-left:20px}
  h1{font-size:clamp(2rem,6vw,3rem)}
  .news-item{flex-direction:column;gap:8px}
}

@media(max-width:480px){
  .news-bar__inner{
    grid-template-columns:1fr;
    gap:8px;
  }
  .news-bar__item{
    gap:8px;
  }
  .news-bar__date,
  .news-bar__category,
  .news-bar__more{
    font-size:.64rem;
  }
  .news-bar__date{display:none}
  .news-bar__title{
    font-size:.7rem;
  }
  .page-hero__content h1{
    max-width:8.8em;
    font-size:clamp(1.35rem,7.4vw,1.75rem);
  }
  .hero__slide:nth-child(1) img{object-position:24% 20%}
  .hero__slide:nth-child(2) img{object-position:58% 20%}
  .hero__slide:nth-child(3) img{object-position:36% 18%}
  .hero__slide:nth-child(4) img{object-position:72% 22%}
  .hero__progress{gap:6px}
  .hero__progress-bar{width:36px}
  .btn{padding:12px 24px;font-size:.75rem}
}
