
/* ========================================
   Three B Inc. - Main Stylesheet
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #292929;
  background: #fff;
  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* Header */

.site-header {
  width: 100%;
  min-height: 88px;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #fff;
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid #174b35;
  border-radius: 50%;
  color: #174b35;
  font-size: 23px;
  font-weight: 800;
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-name small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 600;
  transition: color 0.25s;
}

.main-nav a:hover {
  color: #b18a18;
}

/* Hero slideshow */

.hero {
  position: relative;
  width: 100%;
  height: min(650px, 65vw);
  min-height: 380px;
  overflow: hidden;
  background: #263c2b;
}

/* Slideshow container */

.slides {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 600%;
  height: 100%;
  transition: transform 0.9s ease-in-out;
}

.slide {
  position: relative;
  flex: 0 0 16.6666667%;
  width: 16.6666667%;
  height: 100%;
  opacity: 1;
  cursor: zoom-in;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}

/* 表示中の画像をゆっくり拡大 */
.slide.is-active img {
  animation: slideZoom 5.5s ease-out forwards;
}


.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.48),
    rgba(0, 0, 0, 0.12) 65%,
    rgba(0, 0, 0, 0.05)
  );
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: 9%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 760px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.5;
  font-weight: 700;
}

.hero-copy > p:last-child {
  font-size: 17px;
  margin: 0;
}

/* Slide controls */

.slide-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
}

.slide-prev,
.slide-next {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.slide-prev:hover,
.slide-next:hover {
  background: rgba(0, 0, 0, 0.65);
}

.slide-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot.is-active {
  background: #fff;
}

.hero-hint {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

/* Introduction panel */

.intro-panel {
  position: relative;
  z-index: 6;
  width: min(1100px, 88%);
  margin: -45px auto 65px;
  padding: 32px 45px;
  border-radius: 8px;
  background: #eaf3f8;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.09);
  text-align: center;
}

.intro-panel p {
  margin: 5px 0;
  font-size: 17px;
  line-height: 1.9;
}

/* Three feature cards */

.feature-section {
  padding: 20px 5% 75px;
  background: #fff9e8;
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}

.feature-heading {
  padding: 22px 20px 12px;
  text-align: center;
}

.feature-heading h2 {
  margin: 0;
  color: #234b37;
  font-size: 25px;
}

.feature-heading p {
  margin: 4px 0 0;
  font-size: 14px;
}


.feature-image {
  width: 100%;
  aspect-ratio: 800 / 1085;
  overflow: hidden;
}

.feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.03);
}

.feature-link {
  display: block;
  padding: 17px 20px 21px;
  color: #315b42;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.feature-link b {
  margin-left: 8px;
}

/* Online shop */

.below-fold {
  padding: 45px 20px;
  text-align: center;
}

.online-shop {
  display: inline-block;
  padding: 15px 35px;
  border: 1px solid #315b42;
  border-radius: 4px;
  color: #315b42;
  font-weight: 700;
  transition: all 0.25s;
}

.online-shop:hover {
  color: #fff;
  background: #315b42;
}

/* Footer */

.site-footer {
  padding: 25px 15px;
  color: #ddd;
  background: #263d31;
  font-size: 13px;
  text-align: center;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 35px;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 25px;
  border: none;
  color: #fff;
  background: transparent;
  font-size: 42px;
  cursor: pointer;
}

/* Tablet */

@media (max-width: 900px) {
  .site-header {
    padding: 12px 4%;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .feature-grid {
    gap: 16px;
  }

  .feature-heading h2 {
    font-size: 21px;
  }
}

/* Smartphone */

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
  }

  .brand-mark {
    width: 45px;
    height: 45px;
    font-size: 19px;
  }

  .brand-name {
    font-size: 18px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .hero {
    height: 68vw;
    min-height: 330px;
    max-height: 480px;
  }

  .slide img {
    object-position: center;
  }

  .hero-copy {
    left: 6%;
    right: 6%;
  }

  .hero-kicker {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .hero-copy h1 {
    font-size: clamp(23px, 6vw, 32px);
  }

  .hero-copy > p:last-child {
    font-size: 13px;
  }

  .slide-controls {
    bottom: 25px;
    gap: 14px;
  }

  .slide-prev,
  .slide-next {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }

  .hero-hint {
    display: none;
  }

  .intro-panel {
    width: 92%;
    margin: -25px auto 40px;
    padding: 22px 17px;
  }

  .intro-panel p {
    font-size: 14px;
    text-align: left;
  }

  .feature-section {
    padding: 20px 5% 45px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 430px;
  }

  .feature-heading h2 {
    font-size: 23px;
  }

  .feature-heading p {
    font-size: 14px;
  }

  .feature-image {
    aspect-ratio: 16 / 9;
  }

  .lightbox {
    padding: 15px;
  }

  .lightbox-image {
    max-width: 96vw;
    max-height: 82vh;
  }
}



/* 3案内カード：画像拡大＋黒いオーバーレイ＋白文字 */
.feature-grid .feature-card .feature-image {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 1085;
  overflow: hidden;
}

.feature-grid .feature-card .feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.feature-grid .feature-card:hover .feature-image img,
.feature-grid .feature-card:focus-visible .feature-image img {
  transform: scale(1.2);
}

.feature-grid .feature-card .feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, var(--feature-overlay-opacity, 0.48));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-grid .feature-card .feature-description {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10%;
  right: 10%;
  transform: translateY(-50%);
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.9;
  text-align: left;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-grid .feature-card:hover .feature-image::after,
.feature-grid .feature-card:focus-visible .feature-image::after,
.feature-grid .feature-card:hover .feature-description,
.feature-grid .feature-card:focus-visible .feature-description {
  opacity: 1;
}

@media (max-width: 640px) {
  .feature-grid .feature-card .feature-description {
    font-size: 14px;
    line-height: 1.75;
  }
}


@keyframes slideZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
