@charset "UTF-8";

.content-container {
  container-type: inline-size;
  container-name: content-container;
}

.content-container > div {
  font-size: 15px;
  line-height: 1.7;
}

.retainer-wrapper {
  margin: 0;
  color: var(--text-main);
  line-height: 1.7;
  background: #fff;
  --main: #5b3cc4;
  --main-dark: #000000;
  --main-light: #efecfb;
  --main-border: #ddd6f5;
  --main-soft: #f7f5fd;
  --red: #d6334f;
  --red-light: #fdf1f3;
  --red-border: #f6d5da;
  --blue: #2a4fb0;
  --blue-light: #eef3fc;
  --blue-border: #d3e0f6;
  --text-main: #222;
  --text-sub: #555;
  --border-color: #e0e0e0;
  --radius: 8px;
}

.retainer-wrapper img {
  max-width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
}

.retainer-wrapper a {
  color: inherit;
}

.retainer-wrapper .inner {
  margin: 0 auto;
  padding: 0 30px;
}

.retainer-wrapper .section {
  padding: 40px 0;
}

.retainer-wrapper .section-eyebrow {
  text-align: center;
  color: var(--main);
  font-weight: 700;
  font-size: 18px;
  /* margin: 0 0 4px; */
}

.retainer-wrapper .section-eyebrow::before { content: "＼ "; }
.retainer-wrapper .section-eyebrow::after { content: " ／"; }

.retainer-wrapper .section-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--main-dark);
}

.retainer-wrapper .section-title .num {
  font-size: 1.3em;
  color: var(--main);
  font-weight: bold;
  padding: 0 3px;
}

.retainer-wrapper .section-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0 0 8px;
}

.retainer-wrapper .section-lead {
  color: var(--text-sub);
  margin: 0 0 20px;
}

.retainer-wrapper .is-center {
  text-align: center;
}

/* ===================== ヒーロー ===================== */
.hero {
  padding: 0 45px 30px;
  background: linear-gradient(90deg, #ededed 0%, #f6f6f6 36%, rgba(255, 255, 255, 0) 72%), url(../img/top.jpg) right center / cover no-repeat, #fff;
}

.hero-inner {
  padding-top: 40px;
}

.hero-text h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2cqw, 66px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--main-dark), var(--main));
  -webkit-background-clip: text;
  background-clip: text;
  /* color: transparent; */
  color: var(--main);
}

.hero-sub {
  display: block;
  font-size: .5em;
  letter-spacing: 0;
  -webkit-text-fill-color: var(--main-dark);
  padding-bottom: 0.3em;
  font-weight: bold;
}

.hero-catch {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0 0 14px;
}

.hero-lead {
  /* font-size: 14px; */
  max-width: 48%;
  margin: 0 0 12px;
}

.content-container .wrap-service {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 20px;
}

.content-container .box-service {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 8px;
  font-size: 13px;
  line-height: 1.6;
}

.content-container .box-service img {
  grid-row: 1 / 3;
  width: 50px;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 8px;
  background: var(--main);
  border-radius: 50%;
}

.content-container .ttl-service {
  margin-top: auto;
  font-weight: bold;
  font-size: 14px;
}

/* ===================== ストリングリテイナーとは？ ===================== */
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 1.3fr;
  gap: 30px;
  align-items: start;
}

.about-main p {
  margin: 0 0 12px;
}

.about-sub {
  font-size: 22px;
  font-weight: 900;
  color: var(--main-dark);
  border-left: 5px solid var(--main);
  padding-left: 12px;
  margin: 28px 0 12px;
}

.about-answer-box {
  background: var(--main-light);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.about-answer-box p:last-child {
  margin: 0;
}

.about-main .about-answer {
  font-size: 24px;
  font-weight: 900;
  color: var(--main-dark);
  margin: 0 0 4px;
}

.about-figs {
  /* display:flex; */
}

.about-fig + .about-fig {
  margin-top: 1.5em;
  border-top: 1px solid var(--main);
  padding-top: 1.5em;
}

.about-fig-label {
  display: inline-block;
  background: var(--main-light);
  color: var(--main-dark);
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 14px;
  margin: 0 0 8px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.6;
}

.about-fig {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  @container content-container (max-width: 900px) {
     grid-template-columns: 1fr;gap: 20px;
  }    
}

.about-images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===================== 人気3選 ===================== */
.rank-section {
  background: var(--main-soft);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rank-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--main-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.rank-badge {
  position: absolute;
  top: -1px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--main-light);
  color: var(--main);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  padding: 6px 10px 8px;
  border-radius: 0 0 8px 8px;
  width: 50px;
  svg {
    width:35px;
  }
}


.rank-card  {
  > img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 14px;
  }
  &:nth-child(3) > img {
    scale: 0.63;
  }
}

.rank-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0 0 4px;
  line-height: 1.5;
}

.rank-rating {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-sub);
}

.rank-stars {
  --rate: 4.3;
  display: inline-block;
  font-size: 16px;
  letter-spacing: 2px;
  margin-right: 6px;
  background: linear-gradient(90deg, var(--main) calc(var(--rate) / 5 * 100%), #d9d4ee 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rank-rating strong {
  color: var(--text-main);
  margin-right: 4px;
}

.rank-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0 0 14px;
}

.rank-review {
  background: var(--main-light);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.rank-review-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--main);
  margin: 0 0 6px;
}

.rank-review-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 11px;
  border: 2px solid var(--main);
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: -1px;
}

.rank-review ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-review li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
}

.rank-review li + li {
  border-top: 1px dotted var(--main);
  margin-top: 6px;
  padding-top: 6px;
}

a.rank-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--main);
  color: #fff;
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  &:hover {
    filter: saturate(0.4);
  }
}

a.rank-btn::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
}

/* ===================== タイプから選ぶ ===================== */

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

a.type-card {
  border: 1px solid var(--main-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 40%, var(--main-soft));
  padding: 18px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

a.type-card:hover {
  box-shadow: 0 6px 18px rgba(42, 35, 115, .12);
  transform: translateY(-2px);
}

.type-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  margin-bottom: 12px;
}

.type-card:nth-child(6) img {
  scale:.8;
}

.type-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--main-dark);
  margin: 0;
}

.type-card p {
  /* font-size: 13px; */
  color: var(--text-sub);
  margin: 0 0 14px;
  flex-grow: 1;
}

.type-card .type-catch {
  color: var(--main);
  font-weight: 700;
  margin: 0 0 6px;
  flex-grow: 0;
}

.type-btn {
  align-self: flex-end;
  margin-top: auto;
  background: var(--main-light);
  color: var(--main);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.type-btn::after {
  content: " →";
}

/* ===================== 高さを選ぶポイント ===================== */
.height-section {
  background: var(--main-soft);
  margin-top:2.5em;
}

.height-main {
  display: grid;
  grid-template-columns: 490px 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
}

.height-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.height-text {
  background: var(--main-soft);
  border: 1px solid var(--main-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.height-text h3 {
  margin: 0;
  padding: 12px 20px;
  background: var(--main-light);
  color: var(--main-dark);
  font-size: 18px;
  font-weight: 900;
}

.height-text-body {
  padding: 16px 20px;
}

.height-text-body p {
  color: var(--text-sub);
  margin: 0 0 10px;
}

.height-text-body p:last-child {
  margin: 0;
}

.height-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.height-card {
  border-radius: var(--radius);
  padding: 18px 22px;
}

.height-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
}

.height-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.height-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.height-card li + li {
  margin-top: 10px;
}

.height-card li::before {
  content: "✓";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.height-card.is-high {
  background: var(--red-light);
  border: 1px solid var(--red-border);
}

.height-card.is-high h3 { color: var(--red); }
.height-card.is-high li::before { background: var(--red); }

.height-card.is-low {
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
}

.height-card.is-low h3 { color: var(--blue); }
.height-card.is-low li::before { background: var(--blue); }

.notice-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.notice-icon {
  width: 44px;
  height: 40px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: grid;
  place-items: end center;
  padding-bottom: 3px;
  padding-top: 9px;
  box-sizing: border-box;
}

.notice-title {
  font-weight: 900;
  font-size: 20px;
  color: #b4233d;
  margin: 0 0 2px;
}

.notice-body p:last-child {
  margin: 0;
}

/* ===================== 購入前にここをチェック ===================== */
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.check-card {
  background: var(--main-soft);
  border: 1px solid var(--main-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.check-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.check-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.check-head h3 {
  font-size: 17px;
  font-weight: 900;
  color: var(--main-dark);
  margin: 0;
  line-height: 1.4;
}

.check-card > p {
  color: var(--text-sub);
  margin: 0 0 14px;
}

.check-img {
  background:white;
  /* margin-top: auto; */
  
  
  
  img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    margin-top: auto;
  }
}

.check-img.is-crop {
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.spacer-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--main-dark);
  margin-top: 6px;
}

.check-card > .check-note {
  font-size: 13px;
  text-align: center;
  margin: 8px 0 0;
}

.tool-box {
  position: relative;
  margin-top: auto;
  padding: 26px 10px 12px;
  background: #fff;
  border: 1px solid var(--main-border);
  border-radius: var(--radius);
}

.tool-title {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  margin: 0;
  background: var(--main-light);
  color: var(--main-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 14px;
  border: 1px solid var(--main-border);
  border-radius: 999px;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-list li {
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-sub);
}

.tool-list img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 6px;
}

/* ===================== FAQ ===================== */
.faq-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 24px;
  color: var(--main);
}

.faq-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--main);
  font-size: 14px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--main-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary::before {
  content: "Q";
  flex: none;
  background: var(--main);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  transition: transform .2s ease;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--main);
  border-right: 2px solid var(--main);
  transform: rotate(135deg);
}

.faq-item[open] summary::after {
  transform: rotate(315deg);
  top: 14px;
}

.faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  padding-left: 46px;
  border-top: 1px solid var(--main-border);
  color: var(--text-sub);
  position: relative;
}

.faq-answer::before {
  content: "A";
  background: var(--main-light);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--main);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-more {
  margin-top: 24px;
}

.faq-more > summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  background: #fff;
  border: 1px solid var(--main);
  border-radius: var(--radius);
  margin-bottom: 1em;
}

.faq-more > summary:hover {
  background: var(--main-light);
}

.faq-more > summary::-webkit-details-marker {
  display: none;
}

.faq-more > summary::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--main);
  border-right: 2px solid var(--main);
  rotate: 135deg;
  margin-left: 14px;
  top: 15px;
  position: absolute;
  transition: .2s;
}

.faq-more[open] > summary::after {
  rotate: 315deg;
  top: 20px;
}

/* ===================== レスポンシブ ===================== */
@container content-container (max-width: 900px) {
  .content-container > div {
    font-size: 14px;
  }

  .hero {
    padding: 0;
    background:   linear-gradient(rgb(255 255 255 / 74%), rgb(255 255 255 / 78%)),
  url(../img/top.jpg) top right / cover no-repeat;
  }

  .hero-inner {
    padding: 20px 20px 0;
  }

  .hero-lead {
    max-width: none;
  }

  .content-container .wrap-service {
    padding: 0 20px 25px;
  }

  .retainer-wrapper .inner {
    padding: 20px;
  }

  .retainer-wrapper .section {
    padding: 20px 0;
    margin-top: 0em;
  }

  .retainer-wrapper .section-title {
    font-size: 26px;
  }

  .about-layout,
  .height-main,
  .check-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .rank-grid {
    gap: 28px;
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }
  .about-main .about-answer {
    font-size:20px;
  }
  .about-sub {
    font-size:18px;
  }
  .height-card h3 {
    font-size:18px;
  }
  .notice-title {
    font-size:18px;
  }
  .retainer-wrapper .section-sub {
    font-size:18px;
  }

}

@container content-container (max-width: 520px) {
  .type-grid,
  .height-compare {
    grid-template-columns: 1fr;
  }

  .notice-box {
    grid-template-columns: 1fr;
  }

  .retainer-wrapper .section-title {
    font-size: 22px;
  }
  .type-card h3 {
    font-size: 16px;
  }
  
}
