/* =======================================================
   Google Fonts - Warm Beauty for Nokaso
======================================================= */

@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Libre+Caslon+Display&family=Noto+Sans+JP:wght@500&family=Noto+Serif+JP:wght@400;500;600;700&family=Poppins:wght@500&display=swap");

/* =======================================================
   1. Design Tokens / CSS Variables
======================================================= */

:root {
  /* ----- Fonts ----- */
  --wb-font-jp: "Noto Serif JP", serif;
  --wb-font-jp-sans: "Noto Sans JP", sans-serif;
  --wb-font-title: "Libre Caslon Display", serif;
  --wb-font-latin: "Libre Baskerville", serif;
  --wb-font-poppins: "Poppins", serif;

  /* ----- Brand colors ----- */
  --wb-color-text: #6A5F55;
  --wb-color-black: #000000;
  --wb-color-white: #FFFFFF;
  --wb-color-title: #A88B62;
  --wb-color-accent: #B09064;
  --wb-color-soft-gold: #A38559;
  --wb-color-green: #B5BDA7;
  --wb-color-bg-light: #EDE9E5;
  --wb-color-bg-soft: #F1E9DC;
  --wb-color-bg-warm: #D9C8B2;
  --wb-color-line: #C9B79B;

  /* ----- Spacing ----- */
  --wb-section-pad-y-mobile: 48px;
  --wb-section-pad-y-tablet: 64px;
  --wb-section-pad-y-desktop: 80px;
  --wb-container-pad-x: 16px;
}

/* ==========================================================
   Guide Page - Mobile First
========================================================== */

.font-poppins {
  font-family: var(--wb-font-poppins);
}

.wb-guide-main {
  color: var(--wb-color-text);
  font-family: var(--wb-font-jp);
  font-size: 15px;
  line-height: 1.9;
  background: var(--wb-color-bg-light);
  overflow-x: clip;
  overflow-y: clip;
}

/* ==========================================================
   Hero
   Figma: 1440 x 675
========================================================== */

.wb-guide-hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 46.875vw, 675px);
  overflow: hidden;
}

.wb-guide-hero-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wb-guide-hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ==========================================================
   Intro
========================================================== */

.wb-guide-intro {
  position: relative;
  padding: 80px 16px 50px;
  text-align: center;
}

.wb-guide-intro-bgimg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: calc(100% + 160px);
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

.wb-guide-intro-inner {
  position: relative;
  z-index: 1;
  max-width: 1141px;
  margin: 0 auto;
}

.wb-guide-title {
  margin: 0;
  color: var(--wb-color-title);
  font-family: var(--wb-font-title);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.6;
}

.wb-guide-subtitle {
  margin: 0 0 18px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.35em;
}

.wb-guide-lead {
  margin: 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
}

.wb-guide-lead > br {
  display: block;
}

/* ==========================================================
   Section
========================================================== */

.wb-guide-section {
  padding: 40px 16px 70px;
}

.wb-guide-section-inner {
  max-width: 1141px;
  margin: 0 auto;
}

.wb-guide-section-heading {
  margin: 0 0 40px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  letter-spacing: 0.05em;
}

/* ==========================================================
   Steps
========================================================== */

.wb-guide-steps {
  display: flex;
  flex-direction: column;
}

.wb-guide-step {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 40px;
  padding: 16px 0;
}

.wb-guide-step-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--wb-color-bg-light);
  border-radius: 2px;
}

.wb-guide-step-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb-guide-step-body {
  display: flex;
  flex-direction: column;
  align-self: start;
  justify-self: start;
  width: 100%;
  max-width: 683px;
}

.wb-guide-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 184px;
  height: 60px;
  padding: 0;
  color: var(--wb-color-text);
  font-family: var(--wb-font-latin);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--wb-color-green);
}

.wb-guide-step-title {
  margin: 32px 0 18px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.wb-guide-step-desc {
  margin: 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.wb-guide-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 0;
}

.wb-step-divider-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--wb-color-title);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wb-step-divider-circle .fa-angle-down {
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

/* ==========================================================
   Button Common
========================================================== */

.wb-guide-cta-wrap {
  margin-top: 56px;
  text-align: center;
}

.wb-guide-btn-primary {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 394px;
  max-width: 100%;
  min-height: 60px;
  padding: 10px 40px;
  color: #fff;
  font-family: var(--wb-font-jp-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  background: var(--wb-color-title);
  border: 1px solid var(--wb-color-title);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.wb-guide-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.wb-guide-btn-primary:visited, .wb-guide-btn-primary:hover, .wb-guide-btn-primary:focus, .wb-guide-btn-primary:active {
    color: #FFFFFF;
    text-decoration: none;
}

.wb-guide-btn-text {
  display: inline-block;
}

.wb-guide-btn-primary::after {
    content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 23px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='23' viewBox='0 0 20 23' fill='none'><path d='M18.8326 9.87201L7.76562 20.9141L8.93189 22.0777L19.9989 11.0357L18.8326 9.87201Z' fill='white'/><path d='M8.93189 0.000423778L7.76562 1.16406L18.8326 12.2061L19.9989 11.0425L8.93189 0.000423778Z' fill='white'/><path d='M18.7193 10.2188H0V11.8656H18.7193V10.2188Z' fill='white'/></svg>") center / contain no-repeat;
  transition: transform 0.25s ease;
}
/* ==========================================================
   Info
========================================================== */

.wb-guide-info {
  isolation: isolate;
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  background: var(--wb-color-bg-soft);
}

.wb-guide-info-bgimg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.wb-guide-info-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
}

.wb-guide-info-title {
  margin: 0 0 48px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
  letter-spacing: 0.08em;
}

.wb-guide-info-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
}

.wb-guide-info-img {
  width: 100%;
  max-height: 372px;
  overflow: hidden;
  background: transparent;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}

.wb-guide-info-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb-guide-info-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

.wb-guide-info-desc {
  margin: 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.wb-guide-info-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 64px 0 0;
}

/* ==========================================================
   Responsive - Tablet >= 769px
========================================================== */

@media (min-width: 769px) {
  .wb-guide-intro {
    padding: 120px 20px 68px;
  }
  
  .wb-guide-lead > br {
    display: none;
  }

  .wb-guide-title {
    font-size: 48px;
  }

  .wb-guide-subtitle {
    margin-bottom: 40px;
    font-size: 14px;
  }

  .wb-guide-section {
    padding: 60px 20px 100px;
  }

  .wb-guide-section-heading {
    margin-bottom: 60px;
  }

  .wb-guide-step {
    padding: 24px 0;
  }

  .wb-guide-step-img {
    height: 280px;
  }

  .wb-guide-step-badge {
    width: 224px;
    height: 70px;
  }

  .wb-guide-step-desc {
    font-size: 18px;
  }

  .wb-guide-cta-wrap {
    margin-top: 70px;
  }

  .wb-guide-info {
    padding: 90px 20px;
  }

  .wb-guide-info-title {
    margin-bottom: 64px;
  }

  .wb-guide-info-row {
    grid-template-columns: 1fr 1fr;
    gap: 75px;
  }

  .wb-guide-info-desc {
    font-size: 18px;
  }

  .wb-guide-info-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
    margin-top: 96px;
  }
}

/* ==========================================================
   Responsive - Desktop >= 1024px
========================================================== */

@media (min-width: 1024px) {
  .wb-guide-step {
    grid-template-columns: 400px 1fr;
    gap: 50px;
  }

  .wb-guide-step-img {
    width: 400px;
    height: 300px;
  }

  .wb-guide-step-title {
    font-size: 32px;
  }

  .wb-guide-step-desc {
    font-size: 20px;
  }

  .wb-guide-step-connector {
    padding: 46px 0;
  }

  .wb-step-divider-circle {
    width: 55px;
    height: 55px;
  }

  .wb-guide-info {
    min-height: 804px;
    padding: 90px 20px;
  }

  .wb-guide-info-title {
    margin-bottom: 94px;
  }

  .wb-guide-info-buttons {
    margin-top: 144px;
  }
}