/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F8F5F0;
  --bg-alt:    #EDE8DF;
  --white:     #FFFFFF;
  --accent:    #A8784A;
  --accent-lt: #C9A07A;
  --text:      #2E2E2E;
  --text-md:   #5A5A5A;
  --text-lt:   #999999;
  --border:    #DDD8D0;
  --radius:    14px;
  --max:       1060px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.85;
  font-size: 15px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

.label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.ttl {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}

.desc {
  color: var(--text-md);
  margin-top: 20px;
  font-size: 15px;
  line-height: 2;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,245,240,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.logo small {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: var(--text-lt);
  letter-spacing: 0.07em;
}

nav { display: flex; gap: 32px; align-items: center; }

nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-md);
  transition: color 0.2s;
}

nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-btn span {
  display: block;
  width: 23px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 17px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-md);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* スライドショー */
.hero-slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.slide.active { opacity: 1; }

/* テキストオーバーレイ */
.hero-body-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.52) 0%,
    rgba(0,0,0,0.28) 60%,
    rgba(0,0,0,0.05) 100%
  );
}

.hero-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  padding-top: 68px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.hero-ttl {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-ttl em {
  font-style: normal;
  color: var(--accent-lt);
}

.hero-desc {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 44px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ボタン共通 */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--accent);
  color: var(--white);
  font-weight: 500;
}

.btn-solid:hover { opacity: 0.85; }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-md);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ヒーロー内の白アウトラインボタン */
.btn-outline-white {
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
  background: transparent;
}

.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
}

/* インジケータードット */
.hero-dots {
  position: absolute;
  bottom: 48px;
  left: 32px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* 下部グラデーション（コンテンツへ続く） */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, #F8F5F0 100%);
  z-index: 3;
  pointer-events: none;
}

/* ===== AWARD STRIP ===== */
.award-strip {
  background: #2E2E2E;
  padding: 20px 0;
}

.award-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.award-icon-svg {
  color: #C9A07A;
  font-size: 18px;
}

.award-strip-text {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.award-strip-text strong { color: #D4B896; }

/* ===== ABOUT ===== */
#about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lt);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
}

.about-badge .num {
  font-family: 'Noto Serif JP', serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.about-badge .lbl {
  font-size: 11px;
  font-weight: 300;
  margin-top: 4px;
}

.about-name-block {
  margin: 24px 0 0;
}

.about-name-block small {
  font-size: 12px;
  color: var(--text-lt);
}

.about-name-block strong {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: var(--text);
  display: block;
  margin-top: 4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  background: var(--bg-alt);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 12px;
  color: var(--text-md);
}

/* ===== STRENGTHS ===== */
#strengths { background: var(--bg); }

.section-head-center {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 60px;
}

.section-head-center .desc {
  margin: 18px auto 0;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.s-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.s-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}

.s-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}

.s-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 14px;
}

.s-card p {
  color: var(--text-md);
  font-size: 14px;
  line-height: 1.95;
}

/* ===== SERVICES ===== */
#services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.sv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.3s;
}

.sv-card:hover { transform: translateY(-4px); }

.sv-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 30px;
  color: var(--accent-lt);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 20px;
}

.sv-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
}

.sv-card p {
  color: var(--text-md);
  font-size: 13px;
  line-height: 1.9;
}

/* ===== WORKS ===== */
#works { background: var(--bg); }

.works-list {
  display: flex;
  flex-direction: column;
  gap: 88px;
  margin-top: 64px;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.work-item.rev .work-visual { order: 2; }
.work-item.rev .work-content { order: 1; }

/* Before/After Slider */
.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}

.ba-after { clip-path: inset(0 50% 0 0); }

.ba-before img,
.ba-after img,
.ba-before .ba-ph,
.ba-after .ba-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ba-before .ba-ph { background: linear-gradient(135deg, #D5CEC4, #C6BDB0); }
.ba-after .ba-ph  { background: linear-gradient(135deg, #BAD5BC, #A2C4A6); }

.ba-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
}

.ba-before .ba-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.35);
  color: #fff;
}
.ba-after .ba-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 6;
  background: rgba(80,140,80,0.75);
  color: #fff;
}

.ba-ph p { font-size: 12px; color: rgba(60,60,60,0.6); }
.ba-after .ba-ph p { color: rgba(40,80,40,0.6); }

.ba-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255,255,255,0.9);
  z-index: 10;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  z-index: 11;
  pointer-events: none;
}

.ba-handle svg {
  width: 18px;
  height: 18px;
  color: var(--text-md);
}

.work-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.work-ttl {
  font-family: 'Noto Serif JP', serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.work-tag {
  background: var(--bg-alt);
  color: var(--text-md);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 100px;
}

.work-body {
  color: var(--text-md);
  font-size: 14px;
  line-height: 2;
}

/* カテゴリーブロック */
.works-category { margin-top: 80px; }

.category-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 52px;
}

.category-num {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.category-ttl {
  font-family: 'Noto Serif JP', serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}

.category-desc {
  color: var(--text-md);
  font-size: 13px;
  line-height: 1.9;
  max-width: 560px;
}

/* works-list が works-category 内にある場合はマージン不要 */
.works-category .works-list { margin-top: 0; }

/* Before×2 ＋ After レイアウト (Case 05) */
.ba-duo { border-radius: var(--radius); overflow: hidden; }

.ba-duo-before {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 5px;
}

.ba-duo-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
}

.ba-duo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-duo-after {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
}

.ba-duo-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* duo レイアウト用ラベル */
.ba-lbl {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-lbl.bl { background: rgba(0,0,0,0.35); color: #fff; }
.ba-lbl.al { background: rgba(80,140,80,0.75); color: #fff; }

/* 1枚画像（スライダーなし） */
.work-single-img {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
}

.work-single-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== PHILOSOPHY ===== */
#philosophy {
  background: #2E2E2E;
  padding: 100px 0;
}

.phil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.phil-left .label { color: var(--accent-lt); }
.phil-left .ttl { color: var(--white); }

.phil-left .desc {
  color: rgba(255,255,255,0.65);
  margin-top: 22px;
}

.phil-points {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.phil-point {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}

.phil-point h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.phil-point p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.95;
}

/* ===== CONTACT ===== */
#contact { background: var(--bg); }

.contact-center {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.contact-center .desc {
  margin: 20px auto;
}

.contact-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 44px;
}

.c-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  text-align: left;
  flex: 1;
  min-width: 180px;
  transition: transform 0.25s;
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  color: inherit;
}

.c-card:hover { transform: translateY(-4px); }

.c-card .c-lbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.c-card h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.c-card p {
  color: var(--text-lt);
  font-size: 12px;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
  background: #2E2E2E;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
}

.footer-logo small {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-home-btn {
  padding: 10px 28px;
  font-size: 13px;
}

/* ===== ANIMATIONS ===== */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade.in {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }

  nav { display: none; }
  .menu-btn { display: flex; }

  .hero-content { padding: 0 20px; padding-top: 80px; }
  .hero-ttl { font-size: clamp(26px, 7vw, 40px); }
  .hero-desc { font-size: 14px; }
  .hero-dots { left: 20px; bottom: 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .strengths-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .work-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-item.rev .work-visual { order: 0; }
  .work-item.rev .work-content { order: 1; }

  .works-category { margin-top: 56px; }
  .category-header { margin-bottom: 36px; }
  .ba-duo-before { grid-template-columns: 1fr 1fr; }
  .phil-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-cards { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 500px) {
  .services-grid { grid-template-columns: 1fr; }
}
