/*! Writen by SCSS */
/* voice.css */

/* メインビジュアル */
.inner_main {
  background-image: url(../images/main.jpg);
}

/* ご契約者様の声 */
.sec01 {
  padding: clamp(50px, 7.5vw, 90px) 0;
}

.sec01 .sec01_item_group {
  padding-top: 80px;
  margin-top: -120px;
  margin-bottom: 40px;
  flex-direction: column;
  row-gap: 60px;
}

.sec01 .sec01_item02 .security_group {
  width: 100%;
}

.sec01 .sec01_item02 .illust img {
  display: block;
  width: 100%;
  height: auto;
  margin: 5rem auto 0;
}

/* 表示切替 */
.pc {
  display: block;
}

.sp {
  display: none;
}

/* PCのみ改行 */
br.vpc480 {
  display: inline;
}

/* SPのみ改行 */
br.vsp480 {
  display: none;
}


/* ランキング見出し */
#voice .voice_rank_ttl {
  width: min(100%, 1200px);
  margin: clamp(60px, 7vw, 90px) auto 0;
  text-align: center;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
}

#voice .voice_rank_ttl .rank_icon {
  margin: 0 0 15px;
}

#voice .voice_rank_ttl .rank_icon img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto;
}

#voice .voice_rank_ttl h3 {
  margin: 0;
  color: #ad312e;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

#voice .voice_rank_ttl h3 small {
  color:#000;
  font-size: 0.7em;
  letter-spacing: 0.04em;
  margin-left: 0.1em;
}

#voice .voice_rank_ttl .num,
#voice .access_txt .num {
  font-family: "Cinzel", serif;
  font-weight: 500;
  line-height: 1;
}

#voice .voice_rank_ttl h3 .num {
  font-size: 1.4em;
}

#voice .voice_rank_ttl .rank_lead .num {
  font-size: inherit;
  line-height: inherit;
}

#voice .voice_rank_ttl .rank_line {
  margin: 12px auto 0;
}

#voice .voice_rank_ttl .rank_line img {
  display: block;
  width: 100%;
  max-width: 850px;
  height: auto;
  margin: 0 auto;
}

#voice .voice_rank_ttl .rank_lead {
  margin: 28px 0 0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  letter-spacing: 0.08em;
  font-weight: 600;
}


/* アクセスレイアウト */
#voice .access_layout {
  width: min(100%, 1300px);
  margin: clamp(45px, 5vw, 70px) auto 0;
  display: grid;
  grid-template-columns: 47% 1fr;
  gap: 22px;
  align-items: start;
}

#voice .access_layout img {
  display: block;
  width: 100%;
  margin: 0;
}

#voice .access_main_img img {
  height: auto;
}

#voice .access_right {
  display: flex;
  flex-direction: column;
  row-gap: 38px;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
}

#voice .access_station_block h4 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

#voice .access_card_group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#voice .access_card {
  min-width: 0;
  text-align: center;
}

#voice .access_photo {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 170;
  margin: 0 0 10px;
  overflow: hidden;
}

#voice .access_photo img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

#voice .access_img_label {
  position: absolute;
  right: 6px;
  bottom: 5px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
}

#voice .access_txt {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 22px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

#voice .access_txt strong {
  color: #9b2d2d;
  font-weight: 400;
}

#voice .access_txt .num {
  font-size: 1.28em;
}

#voice .access_note {
  margin: 4px 0 0;
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

#voice .access_station_block h4 .rail_sub {
  font-size: 0.75em;
  letter-spacing: 0.04em;
  vertical-align: 0.05em;
}

/* スマホ */
@media screen and (max-width: 480px) {
  .inner_main {
    background-image: url(../images/main_sp.jpg);
  }

  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  br.vpc480 {
    display: none;
  }

  br.vsp480 {
    display: inline;
  }

  .sec01 {
    padding: 50px 0;
  }

  #voice .sec01 {
    padding-bottom: 0;
  }

  #voice .sec01 .sec01_item_group {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  #voice .sec01 .sec01_item02 .security_group.sp {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  #voice .sec01 .sec01_item02 .illust img {
    margin: 1rem auto 0;
  }

  #voice .caption_area {
    margin-top: 0;
  }

  #voice .voice_rank_ttl {
    width: 100%;
    margin: 45px auto 0;
  }

  #voice .voice_rank_ttl .rank_icon {
    margin-bottom: 10px;
  }

  #voice .voice_rank_ttl .rank_icon img {
    width: 62px;
  }

  #voice .voice_rank_ttl h3 {
    font-size: 25px;
    line-height: 1.45;
    letter-spacing: 0.04em;
  }

  #voice .voice_rank_ttl h3 small {
    font-size: 0.7em;
  }

  #voice .voice_rank_ttl h3 .num {
    font-size: 1.35em;
  }

  #voice .voice_rank_ttl .rank_line {
    margin-top: 8px;
  }

  #voice .voice_rank_ttl .rank_lead {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: 0.04em;
    text-align: left;
  }

  #voice .access_layout {
    width: calc(100% - 30px);
    display: block;
    margin: 0 auto 0;
  }

  #voice .access_main_img {
    margin: 0 0 15px;
  }

  #voice .access_right {
    row-gap: 32px;
  }

  #voice .access_station_block h4 {
    margin-bottom: 14px;
    font-size: 21px;
  }

  #voice .access_card_group {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  #voice .access_txt {
    font-size: 20px;
  }

  #voice .access_note {
    font-size: 10px;
  }
}

#voice .access_main_img {
  position: relative;
}

#voice .access_main_label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  font-size: clamp(10px, 2.4vw, 15px);
  line-height: 1;
  letter-spacing: 0.04em;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}


/* ご契約者様の声カード */
#voice .voice_review_block {
  width: 100vw;
  margin: clamp(45px, 5vw, 70px) calc(50% - 50vw) 0;
  padding: clamp(35px, 4vw, 55px) clamp(45px, 5vw, 90px) clamp(55px, 6vw, 85px);
  background: #f5f1ea;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  box-sizing: border-box;
}

/* タイトル回りは既存の voice_rank_ttl を使用 */
#voice .voice_review_block .voice_review_head {
  margin: 0 auto clamp(35px, 4vw, 55px);
}

#voice .voice_review_block .voice_review_head h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

/* 声カード */
#voice .voice_review_card {
  display: grid;
  grid-template-columns: 32% 1fr;
  align-items: stretch;
  width: min(100%, 1120px);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

#voice .voice_review_card + .voice_review_card {
  margin-top: 70px;
}

#voice .voice_review_card.reverse {
  grid-template-columns: 1fr 32%;
}

#voice .voice_review_card.reverse .voice_review_photo {
  grid-column: 2;
  grid-row: 1;
}

#voice .voice_review_card.reverse .voice_review_txt {
  grid-column: 1;
  grid-row: 1;
}

#voice .voice_review_photo {
  position: relative;
  margin: 0;
  overflow: hidden;
}

#voice .voice_review_photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

#voice .voice_review_photo span {
  position: absolute;
  left: 8px;
  bottom: 7px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

#voice .voice_review_txt {
  padding: clamp(24px, 2.6vw, 36px) clamp(28px, 4vw, 50px);
}

#voice .voice_review_txt h4 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #aaa;
  color: #1f1b18;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

#voice .voice_review_txt p {
  margin: 0;
  color: #2a2420;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

#voice .voice_review_txt p strong {
  color: #b63838;
  font-weight: 600;
}

#voice .voice_review_txt .voice_review_name {
  margin-top: 18px;
  text-align: right;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
}


/* スマホ：ご契約者様の声カード */
@media screen and (max-width: 480px) {

  #voice .voice_review_block {
    width: 100vw;
    margin: 25px calc(50% - 50vw) 0;
    padding: 45px 0 50px;
    background: #f5f1ea;
  }

  #voice .voice_review_block .voice_review_head {
    width: calc(100% - 64px);
    margin: 0 auto 36px;
  }

  #voice .voice_review_block .voice_review_head h3 {
    font-size: 25px;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }

  #voice .voice_review_block .voice_review_head .rank_line img {
    max-width: 100%;
  }

  #voice .voice_review_card,
  #voice .voice_review_card.reverse {
    display: block;
    width: calc(100% - 66px);
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  }

  #voice .voice_review_card + .voice_review_card {
    margin-top: 45px;
  }

  #voice .voice_review_card.reverse .voice_review_photo,
  #voice .voice_review_card.reverse .voice_review_txt {
    grid-column: auto;
    grid-row: auto;
  }

  #voice .voice_review_photo {
    width: 100%;
    margin: 0;
  }

  #voice .voice_review_photo picture {
    display: block;
    width: 100%;
  }

  #voice .voice_review_photo img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 410 / 158;
    object-fit: cover;
    object-position: center center;
  }

  #voice .voice_review_photo span {
    right: 8px;
    left: auto;
    bottom: 8px;
    color: #fff;
    font-size: 10px;
    text-align: right;
  }

  #voice .voice_review_txt {
    padding: 18px 20px 18px;
  }

  #voice .voice_review_txt h4 {
    margin: 0 0 14px;
    padding-bottom: 12px;
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: 0.04em;
  }

  #voice .voice_review_txt p {
    font-size: 13px;
    line-height: 1.95;
    letter-spacing: 0.02em;
    font-weight: 600;
  }

  #voice .voice_review_txt .voice_review_name {
    margin-top: 10px;
    font-size: 13px;
    text-align: right;
  }
}