@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Fugaz+One&display=swap");

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

html {
  /* 1440px幅で16px(100%)、1080px幅で12px(75%)にスケール */
  font-size: clamp(12px, 1.111vw, 16px);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
}

body {
  font-family:
    "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", sans-serif;
  color: #333;
  line-height: 1.75;
  font-size: 1rem;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* =============================================
   Responsive Break Utilities
   ============================================= */
.sp-br {
  display: none;
}

/* =============================================
   Common
   ============================================= */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading__title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.75;
  letter-spacing: 0.08rem;
  background: linear-gradient(to right, #29aa33, #006835);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading__dot {
  display: flex;
  gap: 1px;
  justify-content: center;
  margin: 0.75rem auto 0.5rem;
}

.section-heading__dot span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff7f00;
}

.section-heading__sub {
  display: block;
  font-size: 1rem;
  font-weight: 300;
  color: #29aa33;
  letter-spacing: 0.04rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.625rem 2.5rem;
  border-radius: 4px;
  transition: opacity 0.3s;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  opacity: 0.85;
}

.btn--orange {
  background: #ff7f00;
  color: #fff;
}

.btn--black {
  background: #111;
  color: #fff;
}

/* =============================================
   Header
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  background: #fff;
  z-index: 1100;
}

.header__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 2.5rem;
}

.header__logo img {
  width: 10rem;
  height: 2.9375rem;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-right: 2.5rem;
}

.header__nav-link {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  transition: color 0.3s;
}

.header__nav-link:hover {
  color: #29aa33;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: #ff7f00;
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 0 2.5rem;
  border-radius: 0;
  transition: opacity 0.3s;
}

.header__cta:hover {
  opacity: 0.85;
}

/* =============================================
   Hero / MV
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 43.75rem;
  padding-top: 5rem;
  overflow: hidden;
  background: linear-gradient(to bottom, #fff, #d8ffdb);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.8rem;
  padding: 0 5rem;
  padding-top: 2.5rem;
  max-width: 90rem;
  margin: 0 auto;
  transform: translateY(-4.5rem);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  /* margin-bottom: 0.625rem; */
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #29aa33;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  padding: 0 1.5rem;
}

.hero__title {
  font-size: 3.375rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.135rem;
  background: linear-gradient(to right, #29aa33, #006835);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 38.5rem;
}

.hero__badge {
  display: inline-block;
  background: linear-gradient(to right, #29aa33, #006835);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  padding: 0.25rem 1rem;
  border-radius: 2.5rem;
}

.hero__cta-area {
  background: rgba(255, 255, 255, 0.6);
  padding: 1.5rem;
  border-radius: 0.375rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  align-self: flex-start;
  max-width: 100%;
}

.hero__upper {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-self: flex-start;
}

.hero__cta-deco {
  display: inline-block;
  width: 1.375rem;
  height: 2.25rem;
  position: relative;
  flex-shrink: 0;
}

.hero__cta-deco--left::before,
.hero__cta-deco--left::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(to bottom, #29aa33, #006835);
  transform: rotate(-30deg);
}

.hero__cta-deco--left::before {
  left: 0;
}

.hero__cta-deco--left::after {
  left: 0.625rem;
}

.hero__cta-deco--right::before,
.hero__cta-deco--right::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(to bottom, #29aa33, #006835);
  transform: rotate(30deg);
}

.hero__cta-deco--right::before {
  right: 0.625rem;
}

.hero__cta-deco--right::after {
  right: 0;
}

.hero__cta-text {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
  background: linear-gradient(to right, #29aa33, #006835);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.hero__cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =============================================
   About Section
   ============================================= */
.about {
  background: #fff;
  padding: 5rem 0 6.5rem;
}

.about__inner {
  max-width: 80rem;
  margin: 0 auto;
}

.about__lead {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about__lead-line {
  margin-bottom: 0.5rem;
}

.about__lead-highlight {
  display: inline;
  background: linear-gradient(to right, #29aa33, #006835);
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  padding: 0.25rem 1rem;
  line-height: 2.2;
  letter-spacing: 0.08rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about__logo-area {
  text-align: center;
  background: #e2f4e7;
  border-radius: 12.5rem 12.5rem 0 0;
  padding: 2.75rem 1.5rem 2.5rem;
}

.about__kbx-logo {
  max-width: 37.5rem;
  height: 8.5rem;
  margin: 0 auto;
  object-fit: contain;
}

.about__cards {
  display: flex;
  gap: 2.5rem;
  padding-top: 2.5rem;
}

.about__card {
  flex: 1;
  text-align: center;
}

.about__card-label {
  font-family: "Fugaz One", cursive;
  font-size: 0.75rem;
  font-weight: 400;
  color: #29aa33;
  margin-bottom: 1rem;
}

.about__card-label-initial {
  font-size: 2rem;
}

.about__card-label-small {
  font-size: 0.75rem;
}

.about__card-heading {
  margin-bottom: 1.5rem;
}

.about__card-heading span {
  display: inline;
  background: #fff;
  line-height: 1.75;
  padding: 0.25rem 0 0.0625rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about__card-heading span b {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.06rem;
  white-space: nowrap;
  background: linear-gradient(to right, #29aa33, #006835);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__card-image {
  width: 12.125rem;
  height: 12.125rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
}

.about__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__card-text {
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.04rem;
  color: #111;
  text-align: left;
}

/* =============================================
   Line up Section
   ============================================= */
.lineup {
  background: #fffff8;
  padding: 4rem 0;
  overflow-x: hidden;
}

.lineup__inner {
  max-width: 80rem;
  margin: 0 auto;
}

.lineup__lead {
  text-align: center;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.04rem;
  color: #111;
  margin-bottom: 2.5rem;
}

.lineup__service-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lineup__service-header-deco {
  display: inline-flex;
  gap: 0;
  width: 1.375rem;
  height: 2.25rem;
  position: relative;
}

.lineup__service-header-deco::before,
.lineup__service-header-deco::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2.5rem;
  background: #29aa33;
  transform: rotate(-30deg);
  top: -0.125rem;
}

.lineup__service-header-deco::before {
  left: 0;
}

.lineup__service-header-deco::after {
  left: 0.625rem;
}

.lineup__service-header-deco:last-child::before,
.lineup__service-header-deco:last-child::after {
  transform: rotate(30deg);
}

.lineup__service-header-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #29aa33;
}

.lineup__services {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.625rem;
  margin-bottom: 4rem;
  padding-top: 4rem;
}

.lineup__service-card {
  flex: 1;
  min-width: 12.5rem;
  background: #fff;
  border: 1px solid #29aa33;
  border-radius: 0.375rem;
  padding: 4rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.lineup__service-top {
  position: absolute;
  top: -2.875rem;
  left: 50%;
  transform: translateX(-50%);
  width: 13.5rem;
  height: 5.75rem;
  background: linear-gradient(to right, #29aa33, #006835);
  color: #fff;
  text-align: center;
  padding: 0.625rem;
  border-radius: 3.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.lineup__service-name {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04rem;
}

.lineup__service-sub {
  font-size: 0.875rem;
  font-weight: 500;
}

.lineup__service-desc {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.045rem;
  color: #29aa33;
}

.lineup__service-img {
  width: 100%;
  height: 9.625rem;
  overflow: hidden;
}

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

.lineup__service-list {
  font-size: 0.75rem;
  line-height: 1.75;
  letter-spacing: 0.03rem;
  color: #111;
  padding-left: 0;
  margin-bottom: 0;
}

.lineup__service-list li {
  list-style: disc;
  margin-left: 1.125rem;
}

li.lineup__service-list-heading {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.035rem;
  color: #111;
  list-style-type: none;
  margin-left: 0;
}

.lineup__service-area {
  border: 1px solid #29aa33;
  border-radius: 0.375rem;
  padding: 1rem 0.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.lineup__service-area-badge {
  display: inline-block;
  background: #29aa33;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03rem;
  padding: 0.25rem 0.625rem;
  border-radius: 1.25rem;
}

.lineup__service-area-text {
  font-size: 0.75rem;
  line-height: 1.75;
  letter-spacing: 0.03rem;
  color: #111;
}

.lineup__service-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.lineup__service-card.is-open .lineup__service-detail {
  max-height: 50rem;
}

.lineup__service-card:not(.is-open) {
  align-self: flex-start;
}

.lineup__service-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #29aa33;
  padding: 0.5rem;
  margin: auto auto 0;
  transition: transform 0.3s;
}

.lineup__service-card.is-open .lineup__service-toggle {
  transform: rotate(180deg);
}

/* Troubles Grid */
.lineup__troubles {
  margin-top: 0;
}

.lineup__troubles-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  color: #29aa33;
  letter-spacing: 0.06rem;
  margin-bottom: 1.5rem;
}

.lineup__troubles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 25rem));
  justify-content: center;
  gap: 2.5rem;
  padding: 0;
}

.lineup__trouble-card {
  width: 100%;
  position: relative;
  min-height: 4.75rem;
}

.lineup__trouble-q {
  position: relative;
  width: 100%;
  height: 4.75rem;
  background: #fff;
  border: 1px solid #29aa33;
  border-radius: 3.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.04rem;
  color: #29aa33;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
  z-index: 1;
  font-family: inherit;
}

.lineup__trouble-q:hover {
  background: #29aa33;
  color: #fff;
  box-shadow: 0 4px 12px rgba(41, 170, 51, 0.3);
}

.lineup__trouble-a-wrap {
  background: #e2f4e7;
  border-radius: 0.375rem;
  overflow: hidden;
  max-height: 0;
  margin-top: -2.375rem;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 1rem;
}

.lineup__trouble-card.is-open .lineup__trouble-a-wrap {
  max-height: 13.75rem;
  min-height: 13.75rem;
  padding: 4rem 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lineup__trouble-a {
  font-size: 1rem;
  font-weight: 700;
  color: #29aa33;
  line-height: 1.75;
  letter-spacing: 0.04rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.lineup__trouble-link {
  color: #1d8e2e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.25s ease;
}

.lineup__trouble-link::after {
  content: "↗";
  font-size: 0.75rem;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.lineup__trouble-link:hover {
  color: #006835;
}

/* =============================================
   Network / Map
   ============================================= */
.network {
  padding: 5rem 0 0;
  background: #fff;
  overflow-x: hidden;
}

.network__inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 4rem;
}

.network__map {
  margin-top: 2.5rem;
  position: relative;
  overflow: visible;
}

.network__map img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Map Dots --- */
.network__dot {
  position: absolute;
  width: 3.875rem;
  height: 3.875rem;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.network__dot-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.625rem;
  height: 0.625rem;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.network__dot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 90, 40, 1) 0%,
    rgba(0, 90, 40, 0.6) 50%,
    rgba(0, 90, 40, 0) 70%
  );
  box-shadow: 0 0 16px 4px rgba(0, 90, 40, 0.18);
  z-index: -1;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    width: 2.75rem;
    height: 2.75rem;
    opacity: 0.8;
    box-shadow: 0 0 12px 4px rgba(0, 90, 40, 0.15);
  }
  50% {
    width: 4rem;
    height: 4rem;
    opacity: 1;
    box-shadow: 0 0 24px 8px rgba(0, 90, 40, 0.25);
  }
}

.network__dot:hover {
  z-index: 20;
}

.network__dot:hover .network__dot-pulse {
  animation: none;
  width: 4.375rem;
  height: 4.375rem;
  opacity: 1;
  background: radial-gradient(
    circle,
    rgba(0, 90, 40, 0.45) 0%,
    rgba(0, 90, 40, 0.18) 50%,
    rgba(0, 90, 40, 0) 70%
  );
  box-shadow: 0 0 28px 10px rgba(0, 90, 40, 0.28);
}

/* --- Per-region dot colors (all unified to black) --- */

/* --- Map Dialog --- */
.network__dialog {
  position: absolute;
  top: 50%;
  left: calc(100% + 1rem);
  transform: translateY(-50%);
  background: #fff;
  border-radius: 0.375rem;
  padding: 2.5rem;
  width: min(30rem, 90vw);
  box-shadow:
    0 4px 4px rgba(0, 0, 0, 0.3),
    0 8px 12px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
  pointer-events: none;
  text-align: left;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Arrow default: left center (dialog to the right of dot) */
.network__dialog::after {
  content: "";
  position: absolute;
  right: 100%;
  top: var(--dialog-arrow-top, 50%);
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-right-color: #fff;
}

.network__dot:hover .network__dialog {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- Per-region dialog positioning --- */
/* North America: dialog to the left */
[data-region="north-america"] .network__dialog {
  left: auto;
  right: calc(100% + 1rem);
}
[data-region="north-america"] .network__dialog::after {
  right: auto;
  left: 100%;
  border: 10px solid transparent;
  border-left-color: #fff;
}

.network__dialog-title {
  font-size: 2rem;
  font-weight: 700;
  color: #29aa33;
  letter-spacing: 0.08rem;
  text-align: center;
  line-height: 1.75;
}

.network__dialog-image {
  width: 100%;
  height: 11rem;
  border-radius: 4px;
  overflow: hidden;
}

.network__dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-region="india"] .network__dialog-image img {
  object-position: center top;
}

[data-region="asean"] .network__dialog-image img {
  object-position: center 20%;
}

.network__dialog-image--placeholder {
  background: #d9d9d9;
}

.network__dialog-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.04rem;
  color: #1a1c1d;
}

/* --- Region Buttons (SP only) --- */
.network__region-buttons {
  display: none;
}

.network__region-btn {
  background: #fff;
  color: #29aa33;
  border: 2px solid #29aa33;
  border-radius: 2.5rem;
  padding: 0.625rem 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
  text-align: center;
  width: 100%;
}

.network__region-btn:hover,
.network__region-btn:active {
  background: #29aa33;
  color: #fff;
}

/* --- Network Modal --- */
.network__modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.network__modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.network__modal-content {
  position: relative;
  background: #fff;
  border-radius: 0.75rem;
  padding: 2.5rem 1.5rem 2rem;
  width: calc(100% - 2.5rem);
  max-width: 30rem;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.network__modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #666;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.network__modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #29aa33;
  letter-spacing: 0.08rem;
  text-align: center;
  line-height: 1.75;
}

.network__modal-image {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.network__modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.network__modal-image--placeholder {
  height: 12.5rem;
  background: #d9d9d9;
}

.network__modal-text {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.04rem;
  color: #1a1c1d;
}

/* --- Dot Breathe Animation --- */
@keyframes dotBreathe {
  0%,
  100% {
    width: 0.5rem;
    height: 0.5rem;
    box-shadow: 0 0 4px rgba(95, 121, 97, 0.6);
  }
  50% {
    width: 0.75rem;
    height: 0.75rem;
    box-shadow: 0 0 8px rgba(95, 121, 97, 1);
  }
}

/* =============================================
   Case Studies
   ============================================= */
.case {
  padding: 5rem 0;
  background: #fff;
}

.case__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.case__list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.case__item {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.case__item-image {
  width: 13.75rem;
  height: 13.75rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.case__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case__item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.case__item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #29aa33;
  line-height: 1.75;
  letter-spacing: 0.06rem;
}

.case__item-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.04rem;
  color: #111;
}

/* =============================================
   CTA Section
   ============================================= */
.cta {
  position: relative;
  padding: 2.5rem 1rem;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

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

.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

.cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 0.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
}

.cta__text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(to right, #29aa33, #006835);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.cta__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* =============================================
   Flow Section
   ============================================= */
.flow {
  padding: 6.5rem 0;
  background: #e2f4e7;
}

.flow__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.flow__steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.625rem;
}

.flow__step {
  background: #fff;
  border: 1px solid #29aa33;
  border-radius: 0.75rem;
  padding: 1rem;
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.flow__step-badge {
  display: inline-block;
  background: linear-gradient(to right, #29aa33, #006835);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  padding: 0.625rem 1.5rem;
  border-radius: 4.125rem;
}

.flow__step-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  background: linear-gradient(to right, #29aa33, #006835);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flow__step-text {
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.04rem;
  color: #111;
  text-align: left;
}

.flow__step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 0.75rem;
}

.flow__step-arrow svg {
  display: block;
}

/* =============================================
   FAQ Section
   ============================================= */
.faq {
  padding: 5rem 0;
  background: #fff;
}

.faq__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  border: 1px solid #29aa33;
  border-radius: 0.375rem;
}

.faq__question {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  gap: 1.5rem;
}

.faq__q-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #29aa33;
  flex-shrink: 0;
  letter-spacing: 0.06rem;
  line-height: 1.75;
}

.faq__q-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.04rem;
  line-height: 1.75;
}

.faq__toggle {
  color: #29aa33;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

.faq__toggle svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

.faq__item.is-open .faq__toggle {
  transform: rotate(360deg);
}

.faq__answer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq__item.is-open .faq__answer {
  max-height: 18.75rem;
  padding: 0 1.5rem 1rem;
}

.faq__a-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f29b03;
  flex-shrink: 0;
  letter-spacing: 0.06rem;
  line-height: 1.75;
}

.faq__a-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.04rem;
  line-height: 1.75;
}

/* =============================================
   Company Info
   ============================================= */
.company {
  padding: 4rem 0;
  background: #e2f4e7;
  position: relative;
}

.company__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 2;
}

.company__table-wrap {
  max-width: 33.75rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.375rem;
  padding: 0 1.5rem;
}

.company__table {
  width: 100%;
}

.company__table tr {
  border-bottom: 1px solid #ececec;
}

.company__table th,
.company__table td {
  padding: 1rem 0;
  line-height: 1.75;
  vertical-align: top;
}

.company__table th {
  font-size: 0.875rem;
  font-weight: 700;
  color: #29aa33;
  white-space: nowrap;
  width: 7.5rem;
  letter-spacing: 0.035rem;
  text-align: left;
}

.company__table td {
  font-size: 1rem;
  color: #111;
  letter-spacing: 0.04rem;
  padding-left: 2.5rem;
}

.company__table td small {
  display: block;
  font-size: 0.75rem;
  color: #111;
  letter-spacing: 0.03rem;
}

/* =============================================
   Footer CTA
   ============================================= */
.cta--footer {
  margin-bottom: 0;
}

/* =============================================
   Hamburger Menu (hidden on desktop)
   ============================================= */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3125rem;
  width: 3.75rem;
  height: 3.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  flex-shrink: 0;
}

.header__hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #333;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay Nav (hidden by default) */
.header__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.header__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.header__overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.header__overlay-link {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  transition: color 0.3s;
}

.header__overlay-link:hover {
  color: #29aa33;
}

.header__overlay-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff7f00;
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.125rem;
  font-weight: 900;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* =============================================
   Responsive: Tablet (768px以下)
   ============================================= */
@media screen and (max-width: 768px) {
  /* --- Responsive Break --- */
  .sp-br {
    display: inline;
  }

  /* --- Header --- */
  .header {
    height: 60px;
  }

  html {
    scroll-padding-top: 60px;
  }

  .header__inner {
    padding: 0 0 0 16px;
  }

  .header__logo img {
    width: 120px;
    height: auto;
  }

  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  /* --- Hero --- */
  .hero {
    padding-top: 60px;
    min-height: 600px;
  }

  .hero__content {
    padding: 0 40px;
    gap: 40px;
    transform: translateY(-24px);
  }

  .hero__tag {
    font-size: 16px;
    padding: 0 14px;
  }

  .hero__title {
    font-size: 36px;
    letter-spacing: 1px;
  }

  .hero__badges {
    width: auto;
  }

  .hero__badge {
    font-size: 14px;
    padding: 3px 12px;
  }

  .hero__cta-area {
    align-self: stretch;
  }

  .hero__cta-buttons .btn {
    font-size: 18px;
    padding: 10px 24px;
  }

  /* --- Section headings --- */
  .section-heading__title {
    font-size: 24px;
    letter-spacing: 0.5px;
  }

  /* --- About --- */
  .about {
    padding: 60px 0 64px;
  }

  .about__inner {
    padding: 0 20px;
  }

  .about__lead-highlight {
    font-size: 22px;
  }

  .about__logo-area {
    border-radius: 40px 40px 0 0;
    padding: 32px 16px 32px;
  }

  .about__kbx-logo {
    max-width: 300px;
    height: auto;
  }

  .about__cards {
    flex-direction: column;
    gap: 32px;
  }

  .about__card-heading span b {
    font-size: 20px;
  }

  .about__card-image {
    width: 160px;
    height: 160px;
  }

  /* --- Lineup --- */
  .lineup {
    padding: 48px 0;
  }

  .lineup__inner {
    padding: 0 20px;
  }

  .lineup__service-header-text {
    font-size: 18px;
  }

  .lineup__services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px 16px;
    padding-top: 64px;
  }

  .lineup__service-card {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .lineup__service-img {
    height: 80px;
  }

  .lineup__service-img img {
    height: 100%;
  }

  #service-packaging .lineup__service-img img {
    object-position: center 0%;
  }

  .lineup__service-desc {
    text-align: center;
    font-size: 11px;
  }

  .lineup__troubles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .lineup__trouble-card {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .lineup__trouble-q {
    width: 100%;
    height: auto;
    min-height: 76px;
    font-size: 14px;
    padding: 10px 16px;
  }

  .lineup__trouble-a-wrap {
    margin-top: 0;
  }

  .lineup__trouble-card.is-open .lineup__trouble-a-wrap {
    min-height: 0;
    padding: 16px;
  }

  /* --- Network / Map --- */
  .network__inner {
    padding: 0 16px;
  }

  .network__dot {
    width: 32px;
    height: 32px;
  }

  .network__dialog {
    width: 360px;
    padding: 24px;
  }

  .network__dialog-title {
    font-size: 24px;
  }

  .network__dialog-image {
    height: 180px;
  }

  .network__dialog-text {
    font-size: 14px;
  }

  .network__region-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 24px 16px;
  }

  .network__dot {
    pointer-events: none;
  }

  .network__dot-pulse {
    display: none;
  }

  .network__dot-core {
    background: #005a28;
    box-shadow: 0 0 6px rgba(0, 90, 40, 0.8);
    animation: dotBreathe 2s ease-in-out infinite;
  }

  /* --- Case Studies --- */
  .case {
    padding: 60px 0;
  }

  .case__inner {
    padding: 0 20px;
  }

  .case__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .case__item-image {
    width: 160px;
    height: 160px;
  }

  .case__item-title {
    font-size: 20px;
  }

  .case__item-text {
    text-align: left;
  }

  /* --- CTA --- */
  .cta__content {
    padding: 24px;
    width: 100%;
    max-width: 100%;
  }

  .cta__text {
    font-size: 16px;
  }

  .cta__buttons {
    width: 100%;
    gap: 10px;
  }

  .cta__buttons .btn {
    flex: 1;
    font-size: 18px;
    padding: 10px 16px;
  }

  .hero__cta-buttons .btn {
    font-size: 18px;
    padding: 10px 16px;
  }

  /* --- Flow --- */
  .flow {
    padding: 60px 0;
  }

  .flow__inner {
    padding: 0 20px;
  }

  .flow__steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .flow__step {
    width: 100%;
    max-width: 400px;
  }

  .flow__step-arrow {
    padding: 8px 0;
  }

  .flow__step-arrow svg {
    transform: rotate(90deg);
  }

  /* --- FAQ --- */
  .faq {
    padding: 60px 0;
  }

  .faq__inner {
    padding: 0 20px;
  }

  .faq__question {
    padding: 12px 16px;
    gap: 12px;
  }

  .faq__answer {
    padding: 0 16px;
    gap: 12px;
  }

  .faq__item.is-open .faq__answer {
    padding: 0 16px 12px;
  }

  /* --- Company --- */
  .company {
    padding: 48px 0;
  }

  .company__inner {
    padding: 0 20px;
  }

  .company__table-wrap {
    max-width: 100%;
    padding: 0 16px;
  }

  .company__table th {
    width: 100px;
    font-size: 13px;
  }

  .company__table td {
    font-size: 14px;
    padding-left: 24px;
  }

  .company__table td small {
    font-size: 11px;
  }
}

/* =============================================
   Responsive: Smartphone (480px以下)
   ============================================= */
@media screen and (max-width: 480px) {
  /* --- Hero --- */
  .hero {
    min-height: 500px;
  }

  .hero__content {
    padding: 0 20px;
    gap: 124px;
    transform: translateY(-16px);
  }

  .hero__tag {
    font-size: 14px;
    padding: 0 10px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__cta-buttons {
    gap: 8px;
    width: 100%;
  }

  .hero__cta-buttons .btn {
    flex: 1;
    font-size: 14px;
    padding: 10px 8px;
  }

  .hero__cta-area {
    width: 100%;
    padding: 10px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.85);
  }

  .hero__cta-text {
    font-size: 14px;
  }

  /* --- Section headings --- */
  .section-heading__title {
    font-size: 20px;
  }

  /* --- About --- */
  .about {
    padding: 40px 0 48px;
  }

  .about__inner {
    padding: 0 16px;
  }

  .about__lead-highlight {
    font-size: 18px;
  }

  .about__card-heading span b {
    font-size: 18px;
  }

  .about__card-image {
    width: 140px;
    height: 140px;
  }

  .about__card-text {
    font-size: 14px;
  }

  /* --- Lineup --- */
  .lineup__inner {
    padding: 0 16px;
  }

  .lineup__service-header-text {
    font-size: 16px;
  }

  .lineup__troubles-title {
    font-size: 20px;
  }

  .lineup__troubles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- Network / Map --- */
  .network__dialog {
    width: 280px;
    padding: 16px;
  }

  .network__dialog-title {
    font-size: 20px;
  }

  .network__dialog-image {
    height: 140px;
  }

  .network__dialog-text {
    font-size: 13px;
  }

  .network__dot {
    width: 24px;
    height: 24px;
  }

  .network__dot-pulse {
    width: 32px;
    height: 32px;
  }

  /* --- Case Studies --- */
  .case__item-image {
    width: 120px;
    height: 120px;
  }

  .case__item-title {
    font-size: 18px;
  }

  .case__item-text {
    font-size: 14px;
  }

  /* --- CTA --- */
  .cta__content {
    padding: 20px 16px;
  }

  .cta__text {
    font-size: 14px;
  }

  .cta__buttons .btn {
    font-size: 14px;
    padding: 10px 8px;
  }

  /* --- Flow --- */
  .flow__step-title {
    font-size: 20px;
  }

  /* --- FAQ --- */
  .faq__q-text {
    font-size: 14px;
  }

  .faq__a-text {
    font-size: 14px;
  }

  .faq__q-label,
  .faq__a-label {
    font-size: 22px;
  }

  /* --- Company --- */
  .company__inner {
    padding: 0 16px;
  }

  .company__table-wrap {
    padding: 0 12px;
  }

  .company__table,
  .company__table tbody,
  .company__table tr,
  .company__table th,
  .company__table td {
    display: block;
    width: 100%;
  }

  .company__table tr {
    padding: 12px 0;
  }

  .company__table th {
    width: 100%;
    font-size: 13px;
    padding: 0;
    text-align: left;
  }

  .company__table td {
    font-size: 14px;
    padding: 4px 0 0;
  }

  .company__table td small {
    font-size: 11px;
  }
}

/* =============================================
   Footer
   ============================================= */
#footer {
  background: #111111;
  color: #fff;
  padding: 2.5rem 0 1.5rem 0;
}

#footer a {
  color: #fff;
}

.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0 0 1.5rem 0;
  list-style: none;
}

.footer-menu ul li {
  margin: 0;
  padding: 0;
}

.footer-menu ul li a {
  color: inherit;
  text-decoration: underline;
  font-size: 0.75rem;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.footer-menu ul li a:hover {
  text-decoration: none;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.5rem 0;
}

.footer-copy {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .footer-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
