@charset "UTF-8";

/* ==========================================================================
   Config / Variables & Reset
   ========================================================================== */
:root {
  --primary-blue: #005bac;
  --arrow-bg: #777;
  --bg-light: #f7f7f7;
}

main {
  font-weight: 400;
}

article .base-width {
  max-inline-size: 768px;
  margin-inline: auto;
}

.text-blue-bold {
  font-weight: bold;
  color: var(--primary-blue);
  font-style: normal;
}

@media (width < 1080px) {
  .disp-m {
    display: none;
  }
}

@media (width >=1080px) {
  article .base-width {
    max-inline-size: 1200px;
  }

}

/* ==========================================================================
   Common Section Parts (各セクション共通)
   ========================================================================== */

/* セクション外枠とアニメーション */
.point-section {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
  padding: 5rem 0 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;

  &:first-child {
    margin-top: 0;
  }
}

.point-section.is-animated {
  opacity: 1;
  transform: translateY(0);
}

/* 背景文字とインナー枠 */
.bg-point-number {
  position: absolute;
  top: 0;
  left: 20px;
  font-weight: bold;
  color: var(--bg-light);
  line-height: 1;
  font-size: 5.5rem;
  pointer-events: none;
  z-index: 0;
}

.section-inner {
  background-color: var(--bg-light);
  border-radius: 20px;
  padding: 40px 5%;
  position: relative;
  z-index: 1;
}

/* 見出し周り */
.section-header {
  text-align: center;
}

.step-num {
  color: var(--primary-blue);
  font-weight: bold;
  display: inline-flex;
  border-bottom: solid 3px var(--primary-blue);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: bold;
  margin: 0.5em 0 1.5em;
  font-size: 2.2rem;
  text-align: left;
}

.icon-check-box {
  inline-size: 2.6rem;
  block-size: 2.6rem;
  background-color: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-intro {
  margin-bottom: 4rem;
  font-size: 1.5rem;
}

/* 検索コンテナ */
.search-container {
  border: 1px solid var(--primary-blue);
  padding: 30px 5%;
  position: relative;
  background-color: #fff;
  margin-top: 4rem;
}

.clip-icon {
  position: absolute;
  top: 0;
  left: 20px;
  transform: translateY(-60%);
  inline-size: 18px;
  block-size: 40px;
  background-image: url('images/clip.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.search-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5em;
}

.search-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-blue);
  position: relative;
  padding-bottom: 5px;
}

.search-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  inline-size: 100%;
  block-size: 4px;
  background: url('images/line_link.svg') repeat-x top left;
}

/* 検索ピル（ボタン） */
.search-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75em 0.5em;
  font-size: 1.4rem;
}

.search-pills.sp-col-one {
  grid-template-columns: 1fr;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.search-pill::before {
  content: "";
  inline-size: 2rem;
  block-size: 2rem;
  background-color: #7d7d7d;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 1.6rem;
  background-position: center;
  background-repeat: no-repeat;
  transition: .3s;
}

@media (width < 768px) {

  .section-title {

    #section2 &,
    #section5 & {
      font-size: 1.75rem;
    }
  }
}

/* --- Common PC --- */
@media (width >=1080px) {
  .point-section {
    padding: 80px 0 0;
  }

  .bg-point-number {
    font-size: 90px;
    left: 40px;
  }

  .section-inner {
    padding: 50px 5.5% 60px;
    border-radius: 40px;
  }

  .step-num {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 3.2rem;
    gap: 1.5rem;
  }

  .icon-check-box {
    inline-size: 4rem;
    block-size: 4rem;
  }

  .section-intro {
    margin-bottom: 6rem;
    font-size: 1.6rem;
    line-height: 1.7;
  }

  .search-container {
    padding: 30px 30px;
    margin-top: 7rem;
  }

  .search-header {
    flex-direction: row;
    align-items: baseline;
    gap: 20px;
  }

  .search-subtitle {
    font-size: 1.2rem;
  }

  .search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1em 1.5em;
  }

  .search-pill {
    font-size: 1.4rem;
  }
}

/* --- Common Hover --- */
@media (hover: hover) and (pointer: fine) {
  .search-pill:hover {
    text-decoration: none;
  }

  .search-pill:hover::before {
    background-color: #02569C;
  }
}

/* ==========================================================================
   1. Main Visual
   ========================================================================== */
.main-visual {
  padding-top: 20px;
  text-align: center;
}

.mv-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
}

.mv-title {
  max-inline-size: 30rem;
  margin-inline: auto;
}

.mv-lead {
  margin-top: 2em;
  line-height: 1.9;
  font-size: 1.5rem;
  font-weight: 500;
}

.mv-image {
  max-inline-size: 768px;
  margin-inline: auto;
}

.lottie-main-visual {
  inline-size: 100%;
  aspect-ratio: 1109 / 889;
}

/* --- Main Visual PC --- */
@media (width >=1080px) {
  .main-visual {
    max-inline-size: 1200px;
    margin-inline: auto;
    padding: 4vw 0;
  }

  .mv-container {
    flex-direction: row;
    align-items: center;
    gap: 3%;
  }

  .mv-title {
    max-inline-size: 500px;
  }

  .mv-lead {
    font-size: 1.7rem;
    text-align: center;
  }

  .mv-image {
    flex: 1.1;
  }
}

/* ==========================================================================
   2. Point Navigation (上部メニュー)
   ========================================================================== */
.point-nav {
  padding-block: 4rem 0;
}

.point-nav-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 1em;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;

  svg {
    inline-size: 0.8em;
    block-size: 1lh;
  }
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.nav-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  inline-size: 48%;
  padding: 15px;
  border: 1.5px solid var(--primary-blue);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  text-align: center;
  transition: 0.2s;
}

.point-label {
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--primary-blue);
  margin-inline: auto;
}

.nav-text {
  font-weight: bold;
}

.icon-arrow {
  margin-inline: auto;
  inline-size: 2.2rem;
  block-size: 2.2rem;
  background-color: var(--arrow-bg);
  border-radius: 50%;
  position: relative;
  transition: .3s;
}

.icon-arrow::after {
  content: '';
  position: absolute;
  top: 47.5%;
  left: 50%;
  inline-size: 0.6rem;
  block-size: 0.6rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* --- Point Nav PC --- */
@media (width >=1080px) {
  .point-nav-title {
    font-size: 2.8rem;
  }

  .nav-container {
    flex-wrap: nowrap;
  }

  .nav-card {
    inline-size: 19%;
    min-block-size: 180px;
  }

  .point-label {
    font-size: 1.4rem;
  }

  .nav-text {
    font-size: 1.8rem;
  }

  .icon-arrow {
    inline-size: 2.4rem;
    block-size: 2.4rem;
  }
}

/* --- Point Nav Hover --- */
@media (hover: hover) and (pointer: fine) {
  .nav-card:hover {
    outline: 2px solid #02569C;
    text-decoration: none;
    background-color: #D7EDFF;
  }

  .nav-card:hover .icon-arrow {
    transform: translateY(5px);
    background-color: #02569C;
  }
}

/* ==========================================================================
   3. Content Layout & Side Navigation (コンテント・サイドナビ)
   ========================================================================== */
.content-wrapper {
  margin-top: 4rem;
}

.side-nav {
  display: none;
}

/* --- Side Nav PC --- */
@media (width >=1080px) {
  .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
    margin-top: 13rem;
  }

  .section-wrapper {
    max-inline-size: 900px;
  }

  .side-nav {
    display: block;
    position: sticky;
    top: 20px;
    inline-size: 240px;
    flex-shrink: 0;
    margin-top: 80px;
  }

  .side-nav-wrap {
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, 0.15);
  }

  .side-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .side-nav-item a {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: #767676;
    font-size: 1.4rem;
    transition: color 0.2s ease, font-size 0.2s ease;
  }

  .side-check-icon {
    inline-size: 1.8rem;
    block-size: 1.8rem;
    border: 1px solid #767676;
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.2rem;
    background-color: #fff;
    transition: border-color 0.2s ease;
  }

  .side-check-icon::after {
    content: "";
    position: absolute;
    left: -1px;
    top: -2px;
    inline-size: 2rem;
    block-size: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'%3E%3Cpath fill='%23005bac' d='M15.6731 22.6342L31.4317 6.82135C32.1857 6.06459 32.1794 4.84214 31.4171 4.0937C30.6547 3.34526 29.4231 3.35149 28.6691 4.10825L15.6731 17.1623L11.8444 13.3702C11.0862 12.6176 9.85467 12.6176 9.09648 13.3702C8.33828 14.1228 8.33828 15.3453 9.09648 16.0979L15.6731 22.6322Z'/%3E%3Cpath fill='%23005bac' d='M23.523 29.7549H7.49001C3.9085 29.7549 0.995117 26.863 0.995117 23.3079V7.20187C0.995117 3.64677 3.9085 0.754883 7.49001 0.754883H22.4423C23.4833 0.754883 24.3273 1.59272 24.3273 2.62598C24.3273 3.65925 23.4833 4.49708 22.4423 4.49708H7.49001C5.98829 4.49708 4.76513 5.71122 4.76513 7.20187V23.31C4.76513 24.8006 5.98829 26.0147 7.49001 26.0147H23.523C25.0248 26.0147 26.2479 24.8006 26.2479 23.31V15.8817C26.2479 14.8484 27.092 14.0106 28.1329 14.0106C29.1739 14.0106 30.0179 14.8484 30.0179 15.8817V23.31C30.0179 26.8651 27.1046 29.7569 23.523 29.7569Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .side-nav-item.active a {
    font-weight: bold;
    font-size: 1.6rem;
    color: #000;
  }

  .side-nav-item.active .side-check-icon {
    border-color: transparent;
  }

  .side-nav-item.active .side-check-icon::after {
    opacity: 1;
  }
}

/* --- Side Nav Hover --- */
@media (hover: hover) and (pointer: fine) {
  .side-nav-item a:hover {
    font-weight: bold;
    color: #000;
  }
}

/* ==========================================================================
   4. Section Specific Styles (POINT 1〜5)
   ========================================================================== */

/* --- POINT 1 --- */
.formula-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: bold;
  text-align: center;

  svg {
    inline-size: 0.75em;
    block-size: 1lh;
  }
}

.formula-white-box {
  padding: 1.5em 1em;
  background-color: #fff;
  border-radius: 20px;
  text-align: center;
}

.formula-white-box img {
  max-inline-size: 100%;
  block-size: auto;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  max-inline-size: 500px;
  margin-inline: auto;
}

.family-item {
  container-type: inline-size;
  border: 1.5px dashed var(--primary-blue);
  border-radius: 50%;
}

.family-circle {
  block-size: 100cqw;
  padding: 12% 10% 0;
  border-radius: 50%;
  border: 1.5px solid #fff;
  text-align: center;
  background: url(images/point1-family1.png) no-repeat center bottom / 66% auto;

  &.family-4 {
    background-image: url(images/point1-family4.png);
  }

  &.family-3 {
    background-image: url(images/point1-family3.png);
  }

  &.family-2 {
    background-image: url(images/point1-family2.png);
  }
}

.family-label {
  font-size: clamp(10px, 10cqw, 13px);
  font-weight: bold;
  margin-bottom: 0.25em;
  white-space: nowrap;
}

.capacity-value {
  font-size: clamp(14px, 18cqw, 20px);
  line-height: 1;
  font-weight: bold;
  margin-bottom: 0.25em;
  white-space: nowrap;
}

@media (width >=1080px) {
  .formula-label {
    font-size: 1.8rem;
  }

  .family-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-bottom: 60px;
    max-inline-size: unset;
  }

  .family-label {
    font-size: clamp(10px, 9cqw, 14px);
  }

  .capacity-value {
    font-size: clamp(16px, 16cqw, 22px);
  }
}

/* --- POINT 2 --- */
.point2-illust-container {
  text-align: center;
}

.point2-illust-container img {
  max-inline-size: 100%;
  block-size: auto;
}

@media (width >=1080px) {
  .point2-illust-container {
    margin-top: 4rem;
  }
}

/* --- POINT 3 --- */
.door-type-title {
  display: flex;
  justify-content: center;
  align-items: center;
  inline-size: 100%;
  max-inline-size: 16em;
  margin-inline: auto;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #02569C;
  background: #FFF;
  font-size: 1.6rem;
  text-align: center;
}

.door-grid {
  display: grid;
  gap: 40px 30px;
}

.door-illust {
  max-inline-size: 500px;
  margin-inline: auto;
  margin-top: 1.5rem;
  padding: 0 15%;
  text-align: center;
}

.door-illust img {
  max-inline-size: 100%;
}

.recommended-box {
  margin-top: 2rem;
  padding: 1em 5%;
  background-color: #fff;
  border-radius: 10px;
}

.recommended-title {
  margin-bottom: 0.5em;
  font-weight: bold;
  text-align: center;
  font-size: 1.6rem;
}

.recommended-list {
  list-style-type: disc;
  padding-left: 1em;
}

.recommended-list li {
  font-size: 1.4rem;
  line-height: 1.6;

  &:not(:first-child) {
    margin-top: 0.5em;
  }
}

@media (width >=1080px) {
  .door-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .door-item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
    /* grid-template-rows: auto auto 1fr; */
  }

  .door-illust {
    padding: 0;
  }

  .recommended-box {
    padding: 1em;
  }
}

/* --- POINT 4 --- */
.energy-info-box {
  text-align: center;
}

.energy-info-box img {
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 10px;
}

/* --- POINT 5 --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.feature-item {
  display: grid;
}

.feature-title-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 12px 10px;
  position: relative;
  text-align: center;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.25));
  margin-bottom: 20px;
}

.feature-title-box::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-top: 10px solid #fff;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.feature-sub {
  font-size: 1.4rem;
}

.feature-img {
  max-inline-size: 500px;
  margin-inline: auto;
}

.feature-img img {
  inline-size: 100%;
  block-size: auto;
  border-radius: 8px;
}

.feature-desc {
  margin-top: 1em;
  font-size: 1.5rem;
}

@media (width >=1080px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px 30px;
    padding: 0 5%;
  }

  .feature-item {
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
  }

  .feature-title-box {
    padding: 15px;
  }
}

/* ==========================================================================
   5. Bottom Buttons (一覧と比較)
   ========================================================================== */
.list-btn-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 8rem auto 0;
  padding: 0;
  list-style: none;
}

.list-btn-links>li {
  inline-size: min(100%, 24.5rem);
}

.list-btn-links .btn-has-arrow-left {
  inline-size: 100%;
}

@media (width >=1080px) {
  .list-btn-links {
    gap: 10%;
    max-inline-size: 55rem;
    margin: 10rem auto 0;
  }

  .list-btn-links .btn-has-arrow-left {
    font-size: 1.8rem;
  }
}