@charset "UTF-8";
/* CSS Document */

.ebisu-howto {
  --ebisu-navy: #172a58;
  --ebisu-navy-light: #275274;
  --ebisu-text: #66717a;
  --ebisu-text-dark: #333b42;
  --ebisu-border: #dfe3e6;
  --ebisu-bg-light: #f5f6f7;
  --ebisu-bg-warm: #f5f2eb;
  --ebisu-gold: #a88b4a;
  --ebisu-red: #b43a32;

  width: 100%;
  margin: 0;
  padding: 0px;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--ebisu-text);
  background: #fff;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
}

.ebisu-howto *,
.ebisu-howto *::before,
.ebisu-howto *::after {
  box-sizing: border-box;
}

/* ========================================
   セクション見出し
======================================== */

.ebisu-howto__heading {
  width: min(100%, 1100px);
  margin: 0 auto 20px;
  text-align: left;
}

.ebisu-howto__eyebrow {
  margin: 0 0 16px;
  color: var(--ebisu-gold);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.ebisu-howto .heading08 {
  margin: 0;
  padding: 0;
  color: var(--ebisu-navy);

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 40px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.ebisu-howto .heading08::before,
.ebisu-howto .heading08::after {
  display: none;
}

.ebisu-howto .heading08 span {
  display: block;
  margin-bottom: 7px;
  color: var(--ebisu-navy-light);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.ebisu-howto__lead {
  margin: 0;
  color: var(--ebisu-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.02em;
}

/* ========================================
   ビューア全体
======================================== */

.ebisu-howto__viewer {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.ebisu-howto__stage {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(320px, 1.1fr);
  align-items: stretch;
  min-height: 400px;
  overflow: hidden;

  border: 1px solid var(--ebisu-border);
  border-radius: 24px;
  background: #fff;

  box-shadow:
    0 4px 12px rgba(23, 42, 88, 0.04),
    0 20px 50px rgba(23, 42, 88, 0.08);
}

/* ========================================
   写真
======================================== */

.ebisu-howto__image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: var(--ebisu-bg-warm);
}

.ebisu-howto__image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(
      180deg,
      transparent 60%,
      rgba(0, 0, 0, 0.16) 100%
    );
}

.ebisu-howto__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;

  transition:
    opacity 0.32s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ebisu-howto__image img.is-changing {
  opacity: 0;
  transform: scale(1.025);
}

/* 写真上の番号 */

.ebisu-howto__number {
  position: absolute;
  right: 24px;
  bottom: 21px;
  z-index: 2;

  display: flex;
  align-items: baseline;
  gap: 6px;

  color: #fff;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 52px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;

  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.ebisu-howto__number small {
  display: inline-block;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-2px);
}

/* ========================================
   説明文
======================================== */

.ebisu-howto__content {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(40px, 5vw, 40px);
  background: #fff;

  transition:
    opacity 0.25s ease,
    transform 0.4s ease;
}

.ebisu-howto__content::before {
  position: absolute;
  top: 70px;
  left: 0;
  width: 3px;
  height: 56px;
  content: "";
  background: var(--ebisu-gold);
}

.ebisu-howto__content.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.ebisu-howto__step-label {
  margin: 0 0 16px;
  color: var(--ebisu-gold);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.ebisu-howto__title {
  margin: 0 0 25px;
  padding: 0;
  color: var(--ebisu-navy);

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.ebisu-howto__title::before,
.ebisu-howto__title::after {
  display: none;
}

.ebisu-howto__text {
  margin: 0;
  color: var(--ebisu-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.015em;
}

.ebisu-howto__notice {
  margin: 24px 0 0;
  padding: 18px 20px;

  border: 0;
  border-left: 3px solid #d8a09b;
  border-radius: 0 6px 6px 0;

  color: #8d4540;
  background: #fff7f6;

  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

/* ========================================
   ステップ切り替え
======================================== */

.ebisu-howto__controls {
  display: flex;
  justify-content: center;
  gap: 8px;

  width: max-content;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 7px;

  overflow-x: auto;
  border: 1px solid var(--ebisu-border);
  border-radius: 100px;
  background: var(--ebisu-bg-light);

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ebisu-howto__controls::-webkit-scrollbar {
  display: none;
}

.ebisu-howto__tab {
  flex: 0 0 auto;
  appearance: none;

  min-width: 142px;
  margin: 0;
  padding: 13px 20px;

  border: 1px solid transparent;
  border-radius: 100px;

  color: var(--ebisu-text);
  background: transparent;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;

  cursor: pointer;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.ebisu-howto__tab span {
  display: inline-block;
  margin-right: 7px;
  color: var(--ebisu-gold);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: translateY(-1px);
}

.ebisu-howto__tab:hover {
  color: var(--ebisu-navy);
  border-color: #ccd2d6;
  background: #fff;
}

.ebisu-howto__tab.is-active {
  color: #fff;
  border-color: var(--ebisu-navy);
  background: var(--ebisu-navy);
  box-shadow: 0 6px 16px rgba(23, 42, 88, 0.18);
}

.ebisu-howto__tab.is-active span {
  color: #d9c38d;
}

.ebisu-howto__tab:focus-visible {
  outline: 3px solid rgba(39, 82, 116, 0.25);
  outline-offset: 3px;
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {
  .ebisu-howto {
    margin: 50px auto;
    padding: 56px 16px;
  }

  .ebisu-howto__heading {
    margin-bottom: 32px;
  }

  .ebisu-howto__eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .ebisu-howto .heading08 {
    font-size: 25px;
    line-height: 1.55;
    letter-spacing: 0.04em;
  }

  .ebisu-howto .heading08 span {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .ebisu-howto__lead {
    margin-top: 19px;
    font-size: 14px;
    line-height: 2;
  }

  .ebisu-howto__stage {
    display: block;
    min-height: 0;
    border-radius: 18px;
  }

  .ebisu-howto__image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ebisu-howto__image img {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .ebisu-howto__number {
    right: 16px;
    bottom: 15px;
    gap: 5px;
    font-size: 40px;
  }

  .ebisu-howto__number small {
    font-size: 12px;
  }

  .ebisu-howto__content {
    min-height: 330px;
    padding: 33px 18px 38px;
  }

  .ebisu-howto__content::before {
    top: 36px;
    width: 3px;
    height: 42px;
  }

  .ebisu-howto__step-label {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .ebisu-howto__title {
    margin-bottom: 19px;
    font-size: clamp(17px, 5.2vw, 22px);
    line-height: 1.55;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .ebisu-howto__text {
    font-size: 14px;
    line-height: 2;
  }

  .ebisu-howto__notice {
    margin-top: 20px;
    padding: 14px 15px;
    font-size: 12px;
    line-height: 1.8;
  }

  .ebisu-howto__controls {
    justify-content: flex-start;

    width: calc(100% + 16px);
    max-width: none;
    margin: 20px 0 0;
    padding: 6px 16px 6px 6px;

    border-right: 0;
    border-radius: 100px 0 0 100px;
  }

  .ebisu-howto__tab {
    min-width: 126px;
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebisu-howto__image img,
  .ebisu-howto__content,
  .ebisu-howto__tab {
    transition: none;
  }
}