/* ─────────────────────────────────────────
   PAGE WHAT IS SUNATEC
───────────────────────────────────────── */
.sn-what-page {
  background: #FFFFFF;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
}
.sn-what-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* Header Banner */
.sn-what-header-wrapper,
.sn-breadcrumb-wrap.sn-what-breadcrumb {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.sn-what-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 16px 0;
  gap: 17px;
}
.sn-what-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 24px;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 64px;
  background: rgba(0, 143, 141, 0.7);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Intro Section */
.sn-what-intro {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.sn-what-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}
.sn-what-heading-line {
  flex-grow: 1;
  height: 1px;
  background: #008F8D;
  max-width: 300px;
}
.sn-what-heading-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: #008F8D;
  text-align: center;
  letter-spacing: -0.02em;
}

.sn-what-desc {
  text-align: left;
  font-size: 16px;
  line-height: 2;
  color: #243752;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.sn-what-desc p {
  margin: 0 0 18px 0;
}

/* Cards Section */
.sn-what-cards-section {
  width: 100%;
  padding: 0;
}
.sn-what-cards-inner {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.sn-what-card {
  box-sizing: border-box;
  flex: none;
  width: 340px;
  height: 138px;
  background: #008F8D;
  border: 1px solid #008F8D;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sn-what-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.sn-what-card-top {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 16px 10px 10px;
  gap: 4px;
  text-align: center;
  color: #FFFFFF;
}
.sn-what-card-top h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  margin: 0;
  letter-spacing: -0.02em;
}
.sn-what-card-top p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.sn-what-card-bottom {
  box-sizing: border-box;
  height: 38px;
  background: #FFFFFF;
  border-top: 1px solid #008F8D;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  gap: 12px;
}
.sn-what-card-link-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: #008F8D;
}
.sn-what-card-icon {
  width: 24px;
  height: 24px;
  background: #008F8D;
  box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1px;
}
.sn-what-card-icon img {
  width: 14px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Philosophy Section */
.sn-what-philosophy-section {
  width: 100%;
  padding: 0;
}
.sn-what-philosophy-header {
  border-bottom: 2px solid #008F8D;
  margin-bottom: 40px;
  padding-bottom: 8px;
}
.sn-what-philosophy-header h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #008F8D;
  margin: 0;
}
.sn-what-philosophy-banner {
  width: 100%;
  padding: 80px 40px;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}
.sn-what-philosophy-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  max-width: 960px;
  width: 100%;
  padding: 48px 64px;
  border-radius: 16px;
  text-align: center;
}
.sn-what-philosophy-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #008F8D;
  margin: 0 0 32px 0;
  letter-spacing: -0.02em;
}
.sn-what-philosophy-box p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2;
  color: #111112;
  margin: 0;
  text-align: left;
  display: inline-block;
}

/* History Section */
.sn-what-history-section {
  width: 100%;
  padding: 0;
  margin-bottom: 0;
}
.sn-what-history-header {
  border-bottom: 2px solid #008F8D;
  margin-bottom: 18px;
  padding-bottom: 8px;
}
.sn-what-history-header h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #008F8D;
  margin: 0;
}

/* Timeline Base */
.sn-timeline {
  position: relative;
  padding-left: 120px; /* Space for the vertical line and year bubbles */
}
.sn-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54px; /* Centers 2px line at 55px (spans 54px-56px) matching 55px pill & dot center */
  width: 2px;
  background: #B4EBEA;
}

/* Timeline Item */
.sn-timeline-item {
  position: relative;
}

/* Timeline Year Bubble */
.sn-timeline-year {
  position: absolute;
  left: -120px; /* Flush with timeline container left edge (120px - 120px = 0px) */
  top: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 3px 12px;
  gap: 10px;
  width: 110px;
  height: 53px;
  background: #008F8D;
  box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 120px;
  color: #FFFFFF;
  font-family: 'TikTok Sans', 'Noto Sans JP', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 36px;
  line-height: 47px;
  letter-spacing: -0.02em;
  z-index: 2;
  box-sizing: border-box;
}

.sn-timeline-year::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #B4EBEA;
  border-radius: 50%;
  z-index: 3;
}

/* Timeline Content */
.sn-timeline-content {
  padding-top: 6px;
}
.sn-timeline-content.sn-timeline-single {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}
.sn-timeline-content.sn-timeline-single .sn-timeline-event {
  height: 53px;
  display: flex;
  align-items: center;
  padding-bottom: 0;
}
.sn-timeline-event {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 25px; /* According to padding: 0 0 25px */
}
.sn-timeline-month {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: #008F8D;
  white-space: nowrap;
  min-width: 62px;
}
.sn-timeline-month img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}
.sn-timeline-event p {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #061C3D;
}

/* Timeline Media & Notes */
.sn-timeline-media-row {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap; /* allow wrapping if too narrow */
  padding: 14px;
  gap: 14px;
  background: #F9FAFB;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 25px;
}
.sn-timeline-media-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.sn-timeline-media-box img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
}
.sn-timeline-award-box {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 14px;
  background: #F9FAFB;
  border-radius: 10px;
  width: fit-content;
}
.sn-timeline-award-box p {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #061C3D;
}
.sn-timeline-caption {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #061C3D;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Note Box (ひとくちメモ) */
.sn-timeline-note {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 20px 20px;
  isolation: isolate;
  background: #FFFFFF;
  border: 1px solid #008F8D;
  box-shadow: 2px 3px 0px #008F8D;
  border-radius: 8px;
  flex: 1 1 300px;
  min-width: 300px;
  max-width: 100%;
}
.sn-timeline-note-badge {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px 18px;
  gap: 10px;
  position: absolute;
  min-width: 130px;
  width: auto;
  height: 48px;
  left: 20px;
  top: -20px;
  background: #008F8D;
  border: 1px solid #008F8D;
  border-radius: 120px;
  color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  z-index: 2;
}
.sn-timeline-note-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.sn-timeline-note-body p:not(.sn-timeline-note-highlight) {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #061C3D;
  margin: 0;
}
/* SUNATEC etymology brackets — rendered via SVG background for pixel-perfect Figma match */
.sn-timeline-brackets {
  width: 65px;
  height: 89px;
  flex: none;
  background: url('../../images/svg/line_path.svg') center / contain no-repeat;
}
/* Legacy stored HTML may still contain inner <div> lines — hide them (SVG is the source of truth). */
.sn-timeline-brackets > * { display: none; }

.sn-timeline-note-highlight {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: #008F8D;
  margin: 0;
}

/* Responsive */

/* The fixed Pagetop/eService FAB occupies ~67px at the right edge (64px wide
   + 3px offset). The container's 40px gutter is narrower than that, and its
   1280px max-width only starts producing free margin past ~1400px viewport —
   so between here and there the FAB sits on top of the text. Widen the right
   gutter over that range. Below 768px the mobile block sets its own padding. */
@media (min-width: 769px) and (max-width: 1400px) {
  .sn-what-container,
  .sn-what-header-wrapper,
  .sn-breadcrumb-wrap.sn-what-breadcrumb {
    padding-right: 76px;
  }
  /* The etymology rows are inline-styled `display:flex` from ACF content with
     no wrap, so they cannot shrink below their content width and spill past
     the note box. Allow wrapping and let the text lines break. */
  .sn-timeline-note-body div[style*="display: flex"] {
    flex-wrap: wrap;
    min-width: 0;
  }
  .sn-timeline-note-body div[style*="display: flex"] span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 1100px) {
  .sn-timeline-media-row {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 32px;
  }
  .sn-timeline-note {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .sn-what-title {
    font-size: 28px;
    line-height: 36px;
    padding: 10px 20px;
  }
  .sn-what-heading {
    gap: 20px;
    margin-bottom: 32px;
  }
  .sn-what-heading-text {
    font-size: 28px;
    line-height: 1.3;
  }
  .sn-what-desc {
    font-size: 15px;
    line-height: 1.9;
  }
}

@media (max-width: 768px) {
  .sn-what-container { padding: 24px 24px 0; gap: 24px; }
  /* Match .sn-what-container's 24px gutter: the base rule keeps these two at
     the desktop 40px, so the title and breadcrumb sat 16px further in than the
     content below them. */
  .sn-what-header-wrapper,
  .sn-breadcrumb-wrap.sn-what-breadcrumb {
    padding-left: 24px;
    padding-right: 24px;
  }
  .sn-what-header { padding: 0 0 16px 0; }
  .sn-what-title {
    font-size: 22px;
    line-height: 30px;
    height: auto;
    min-height: 52px;
    padding: 10px 16px;
    letter-spacing: -0.01em;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .sn-what-heading { flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .sn-what-heading-line { display: none; }
  .sn-what-heading-text { font-size: 22px; line-height: 1.35; }
  .sn-what-desc { font-size: 14px; line-height: 1.8; }
  .sn-what-desc p { margin-bottom: 14px; }
  .sn-what-cards-inner { flex-direction: column; align-items: center; gap: 16px; }
  .sn-what-card { width: 340px; max-width: 100%; }
  
  .sn-what-philosophy-section { padding: 0; }
  .sn-what-philosophy-banner { padding: 40px 20px; }
  .sn-what-philosophy-box { padding: 24px; }
  .sn-what-philosophy-title { font-size: 24px; }

  /* History Timeline Mobile */
  .sn-what-history-header h2 { font-size: 24px; }
  .sn-timeline { padding-left: 60px; }
  .sn-timeline::before { left: 24px; }
  .sn-timeline-year {
    left: -60px;
    width: 50px;
    height: 32px;
    font-size: 16px;
    line-height: 26px;
    padding: 2px 4px;
    gap: 4px;
  }
  .sn-timeline-year::after {
    bottom: -5px;
    width: 10px;
    height: 10px;
  }
  .sn-timeline-event { gap: 10px; }
  .sn-timeline-month { font-size: 16px; min-width: 50px; }
  .sn-timeline-month img { width: 24px; height: 24px; }
  .sn-timeline-content.sn-timeline-single {
    min-height: 60px;
  }
  .sn-timeline-content.sn-timeline-single .sn-timeline-event {
    height: 32px;
  }
  
  .sn-timeline-media-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Stacked here, so the note sits directly under the image caption. Its
       badge is absolutely positioned at top:-20px and would land on the
       caption with the base 14px gap — 34px clears the overhang. */
    gap: 34px;
  }
  .sn-timeline-media-box { 
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .sn-timeline-award-box {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .sn-timeline-note {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 36px 16px 16px 16px;
  }
  .sn-timeline-note-badge {
    height: 36px;
    top: -18px;
    left: 14px;
    font-size: 14px;
    padding: 0 12px;
  }
  
  .sn-timeline-responsive-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .sn-timeline-brackets {
    display: none !important;
  }
  .sn-responsive-logo {
    width: 100% !important;
    max-width: 200px;
    height: auto !important;
  }
  /* Etymology SUN/A/TEC breakdown rows — tighten gaps, allow wrap.
     Exclude .sn-timeline-award-box (also a last-child in multi-award rows). */
  .sn-timeline-responsive-row > div:last-child:not(.sn-timeline-award-box) { gap: 8px !important; width: 100%; }
  .sn-timeline-responsive-row > div:last-child:not(.sn-timeline-award-box) > div {
    gap: 10px !important;
    align-items: flex-start !important;
  }
  .sn-timeline-responsive-row > div:last-child:not(.sn-timeline-award-box) > div > span:first-child {
    min-width: 30px !important;
    font-size: 15px !important;
  }
  .sn-timeline-responsive-row > div:last-child:not(.sn-timeline-award-box) > div > span:last-child {
    font-size: 13px !important;
    line-height: 1.5;
  }
  /* Closing paragraph — right align only reads well on wider viewports */
  .sn-timeline-note-body p[style*="text-align: right"] {
    text-align: left !important;
  }
  .sn-timeline-note-body { gap: 14px; }

  .sn-what-title {
    font-size: 18px;
    line-height: 26px;
    min-height: 46px;
    padding: 8px 12px;
  }
  .sn-what-container,
  .sn-what-header-wrapper,
  .sn-breadcrumb-wrap.sn-what-breadcrumb {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sn-what-heading {
    gap: 10px;
    margin-bottom: 16px;
  }
  .sn-what-heading-text {
    font-size: 18px;
    line-height: 1.4;
  }
  .sn-what-desc {
    font-size: 13.5px;
    line-height: 1.75;
  }
  .sn-what-desc p {
    margin-bottom: 12px;
  }
}
