@charset "utf-8";

.content-container * { box-sizing: border-box; }

:root .content-container {
  --color-black: #131827;
  --color-gray: #9da3af;
  --color-white: #fff;
  --color-main: #355b36;

  --bg-gray: #f7f7f7;
  --border-gray: #e2e8f0;

  --color-green: #237757;
  --color-blue: #2e3fac;
  --color-brown: #8c4318;
}


/*-- common --*/ 
.content-container {
  max-width: 1420px;
  margin-inline: auto;
  padding-bottom: 3rem;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  @media (max-width:768px) {padding-bottom:0;}
  .section {
    padding-block: 1.5em;
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 1.5em;
    .inner{
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }
  .section:nth-child(odd) {
    background: var(--bg-gray);
  }
  img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
  }
  a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    &:hover img {
      opacity: 0.7;
    }
  }
  span {
    color: inherit;
    font-weight: inherit;
  }
}

@media (max-width: 820px) {
  .content-container{ font-size: 14px;}
}
@media (max-width: 350px) {
  .content-container{ font-size: 13px;}
}

/*-- 共通パーツ --*/
.content-container {
  .heading {
    font-weight: bold;
    font-size: 1.6em;
    margin-bottom: .75em;
    color: var(--color-main);
    text-align: center;
    > span {
      @media (max-width:400px) {display: none;}
      &::after {
        content: "｜";
      }
    }
    @media (max-width:768px) {
      font-size: 1.4em;
    }
  }
  .sub-heading {
    margin-block: -.5em 1em;
    color: #666;
    font-size: .9em;
  }
  .card {
    background: var(--color-white);
    border: solid 1px var(--border-gray);
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .5em;
    align-items: center;
    padding: 1em;
    img {
      margin-bottom: .5em;
    }
    .ttl {
      font-weight: bold;
      color: var(--color-main);
      font-size: 1.1em;
    }
    .desc {
      font-size: .8em;
      color: #64748b;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
    }
  }
  .cta-btn {
    display: inline-block;
    font-size: .9em;
    padding: .5em 1em;
    border-radius: 5px;
    background: var(--color-main);
    color: var(--color-white);
    text-align: center;
    width: 100%;
    &:hover {
      background: var(--color-blue);
    }
  }
}

/* ===================== ヒーロー ===================== */

.hero {
  color: #fff;
  padding: 1em 1.5em;
  background: url(../img/head.jpg) right bottom / cover no-repeat, #191212; 
  @media (max-width: 1024px) { background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url(../img/head.jpg) right center / cover no-repeat; }
  @media (max-width: 768px) { padding: 1em; }
  .hero-inner {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1em;
  }
  .h-heading {
    .h-text { font-size: 1.1em; }
    h2 {
      font-size: 4.1em;
      font-weight: bold;
      line-height: 1.2;
      letter-spacing: 0.025em;
      @media (max-width:768px) { font-size: 3.5em;}
    }
  }
  .hero-lead { font-size: 1.1em; }
  .catch-point {
    display: flex;
    gap: 1.5em;
    li {
      display: flex;
      align-items: center;
      gap: .5em;
      font-weight: bold;
      img {
        width: 50px;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: .5em;
        background: var(--color-main);
        border-radius: 50%;
      }
    }
    @media (max-width:768px) {
      display: grid;
      grid-template-columns: repeat(2,170px);
      gap: 1em;
    } 
    @media (max-width:400px) {
      grid-template-columns: repeat(1,150px);
      li img { width: 40px;}
    }
  }
}

/* ===================== 形状から選ぶ ===================== */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
  .card img {
    max-width: 150px;
    margin-bottom: 0;
  }
  @media (max-width:1024px) {
    grid-template-columns: repeat(auto-fit, minmax(max(200px, 40%), 1fr));
  }
}

/* ===================== 素材から選ぶ ===================== */
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em; 
  @media (max-width:1024px) {
    grid-template-columns: repeat(auto-fit, minmax(max(200px, 40%), 1fr));
  }
  .card img {
    max-width: 120px;
  }
  .para {
    width: 100%;
    background: var(--bg-gray);
    color: #64748b;
    font-size: .85em;
    padding: .5em 1em;
    margin-bottom: .5em;
    p {
      width: 100%;
      display: inline-flex;
      justify-content: space-between;
      span {
        font-weight: bold;
      }
    }
    p + p {
      margin-top: .3em;
      padding-top: .3em;
      border-top: dotted 1px var(--color-gray);
    }
  }
}

/* ===================== 厚さ(ゲージ)から選ぶ ===================== */
.gauge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
  @media (max-width:1024px) {
    grid-template-columns: repeat(auto-fit, minmax(max(200px, 40%), 1fr));
  }
  .cta-btn {
    padding-block: 1.3em;
    &:hover {
      opacity: 0.7;
    }
  }
  .cta-btn + .cta-btn {
    margin-top: .5em;
  }
  .card {
    padding: 0;
    gap: 0;
    justify-content: flex-start;
    .ttl {
      width: 100%;
      padding: .7em 1em;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: var(--color-green);
      color: var(--color-white);
      span {
        font-size: .75em;
        font-weight: normal;
        white-space: nowrap;
      }
    }
    > div {
      flex: 1;
      padding: 1em;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1em;
      &::before {
        content: "";
        width: 100%;
        height: 5px;
        background: rgba(35, 119, 87, .5);
        border-radius: 9999px;
      }
      > div { width: 100%;
        .cta-btn {
          padding-block: .3em;
          font-size: .85em;
        }
      }
    }
    .comment {
      width: 100%;
      font-size: .85em;
      padding: .5em 1em;
      border-radius: 4px;
      background: rgba(35, 119, 87, .2);
      flex: 1;
      &::before {
        content: "こんな方へ：";
        display: block;
      }
    }
  }
  .thin {
    .cta-btn {
      background: var(--color-green);
    }
  }
  .medium {
    .cta-btn, .ttl {
      background: var(--color-blue);
    }
    > div {
      &::before {
        height: 7.5px;
        background: rgba(46, 63, 172, .5);
      }
    }
    .comment {background: rgba(46, 63, 172, .2);}
  }
  .heavy {
    .cta-btn, .ttl {
      background: var(--color-brown);
    }
    > div {
      &::before {
        height: 10px;
        background: rgba(140, 67, 24, .5);
      }
    }
    .comment {background: rgba(140, 67, 24, .2);}
  }
  .ex-heavy {
    .cta-btn, .ttl {
      background: var(--color-black);
    }
    > div {
      &::before {
        height: 12px;
        background: rgba(19, 24, 39, .5);
      }
    }
    .comment {background: rgba(19, 24, 39, .2);}
  }
}

/* ===================== おすすめブランド ===================== */
.brand-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4 , 1fr);
  gap: 1em;
  margin-bottom: 1.5em;
  @media (max-width:1024px) {
    grid-template-columns: repeat(auto-fit, minmax(max(150px, 25%), 1fr));
  }
  .card {
    height: 100%;
    justify-content: space-between;
    gap: 0;
    &:hover {
      box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    }
    .note {
      display: flex;
      flex-direction: column;
      gap: .3em;
      text-align: center;
      > span {
        font-size: .9em;
        font-weight: bold;
        color: #131827;
        @media (max-width:600px) {display:none;}
      }
    }
    .desc {
      font-size: .75em;
      display: inline-block;
      text-align: center;
      > span {
        display: inline-block;
      }
      @media (max-width:768px) {
        text-align: left;
        > span {
          display: inline;
        }
        > span.period {
          &::before {
            content: "　";
          }
        }
      }
    }
  }
  & + .cta-btn {
    width: 30%;
    min-width: fit-content;
  }
}
/* ===================== ランキング ===================== */
.ranking-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: .5em;
  @media (max-width: 1024px) {
    width: auto;
    grid-template-columns: repeat(5, minmax(0, 100px));
  }
  @media (max-width: 520px) {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5em;
  }
  a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5em;
    &:hover {
      text-decoration: underline;
    }
    img {
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 8px;
      border: solid 1px var(--border-gray);
      padding: .25em;
    }
    p {
      font-weight: bold;
      font-size: .75em;
      text-align: center;
      color: #666;
      span {
        display: block;
        color: var(--color-black);
      }
    }
  }
}

/* ===================== FAQ ===================== */
  .faq-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2 , 1fr);
    gap: .5em;
    @media (max-width:768px) {
      grid-template-columns: repeat(1 , 1fr)
    }
    > li {
      border-radius: 10px;
      border: solid 1px var(--border-gray);
      background: var(--color-white);
      overflow: hidden;
    }
    summary {
      list-style: none;
      cursor: pointer;
      padding: .5em 1em;
      padding-right: 2em;
      color: var(--color-main);
      font-weight: bold;
      display: flex;
      justify-content: space-between;
      position: relative;
      line-height: 1.6em;
      &::after {
      content: "";
      position: absolute;
      right: 1em;
      top: 50%;
      width: .5em;
      height: .5em;
      border-right: 2px solid var(--color-main);
      border-bottom: 2px solid var(--color-main);
      transform: translateY(-70%) rotate(45deg);
      transition: transform 0.3s ease;
      }
    }
    details[open] summary::after {
      transform: translateY(-30%) rotate(-135deg);
    }
    summary > span, .answer {
        display: inline-flex;
      &::before {
        content: "Q";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-weight: bold;
        width: 1.6em;
        height: 1.6em;
        margin-right: .5em;
        background: var(--color-main);
        color: var(--color-white);
        flex-shrink: 0;
      }
    } 
    .answer {
      display: flex;
      padding: .5em 1em;
      line-height: 1.6;
      &::before {
        content:"A";
        background: var(--color-blue);
      }
      > div , p {
        font-size: .9em;
      }
    }
  }