/* =============================
   Base
============================= */

html {
  font-size: 62.5%;
  /* 1rem = 10px */
  scroll-padding-top: 5em;
}

@media (max-width: 768px) {
  html {
    font-size: 52.5%;
    /* 1rem = 10px */
    scroll-padding-top: 5em;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Yu Gothic", "YuGothic", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  /* 16px */
  line-height: 26px;
  margin: 0;
  background: #e1ca35;
  color: #231815;
}



h1 {
  font-size: 2.4rem;
  font-weight: 600;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

h3 {
  font-size: 2.8rem;
  font-weight: 600;
}

h4 {
  font-size: 2.3rem;
  font-weight: 600;
  margin: 0.5em 0;
  line-height: 1.5;
}

p {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.5;
  font-weight: 700;
}

.txt-red {
  color: #ef3028;
  font-weight: 900;
}

.big {
  font-size: 2.6rem;
}

.bold {
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* 初期（PC）では改行あり */
.pc-only {
  display: inline;
}

/* スマホでは改行を消す */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

/* =============================
   Header
============================= */
header {
  background-color: #fff;
  height: 80px;
  display: flex;
  align-items: center;
  /* 縦中央（高さある場合） */
  padding: 0 3%;
}

header img {
  width: 75%;
}

@media (max-width: 768px) {
  header {
    height: 50px;
  }

  header img {
    width: 65%;
  }
}


/* =============================
   Section
============================= */

section {
  padding: 0 10%;
}

@media (max-width: 768px) {
  section {
    padding: 0 5%;
  }
}

/* =============================
   Buttons
============================= */

.btn {
  display: block;
  position: relative;
  margin-top: 1.5em;
  padding: 0.5em;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  align-self: center;
  font-weight: bold;
  color: #fff;
  width: 100%;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-red {
  background: linear-gradient(180deg, #ff7b6f 0%, #e73828 55%, #c92618 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  padding: 0.95em 1em;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-decoration: none;
  position: relative;
  overflow: hidden;

  box-shadow:
    0 5px 0 #a81c10,
    0 10px 18px rgba(231,56,40,0.35);

  transition: all 0.25s ease;
}

/* 上のツヤ */
.btn-red::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 8%;
  width: 84%;
  height: 38%;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  z-index: 1;
}

/* 流れる光 */
.btn-red::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  z-index: 2;
}

/* 文字を前面に */
.btn-red span,
.btn-red {
  position: relative;
  z-index: 3;
}

/* hover */
.btn-red:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 0 #a81c10,
    0 14px 24px rgba(231,56,40,0.45);
}

/* hover時に光が流れる */
.btn-red:hover::after {
  animation: shine 0.9s ease;
}

/* クリック時 */
.btn-red:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #a81c10,
    0 4px 10px rgba(0,0,0,0.2);
}

/* 光アニメーション */
@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 140%;
  }
}

.btn-green {
  background: #00913a;
}

.btn-mustard {
  background: #b49229;
}

.btn-blue {
  background: #2ea9d6;
}



/* =============================
   Main
============================= */
.mv {
  margin-bottom: 3em;
}

.mv img {
  width: 100%;
  display: block;
}

.main-title {
  min-height: 500px;
  background: url("../img/title_main_bg.svg") no-repeat center bottom;
  background-size: 100% auto;
  background-position: center bottom;
  /* 一番下 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-main img {
  /* ↓ ここで位置調整 */
  transform: translateY(-10%);
}

.topic {
  position: relative;
}

.side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.side-left {
  left: -10%;
  /* 好きな位置に調整 */
}

.side-right {
  right: -10%;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

.card {
  position: relative;
  background: #f4eed8;
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  padding: 2.5em 3em 1.5em;
  margin: 1em 0;
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1;
}


.card.top {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.card.top .split {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card.top .btn {
  grid-column: 1 / 3;
  justify-self: center;
  margin-top: 1.5em;
}

.split {
  position: relative;
}

.split_01 {
  padding-right: 3em;
}

.split_02 {
  padding-left: 3em;
}


.split+.split::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 2px;
  height: 100%;
  background: #00913a;
}

.label {
  position: absolute;
  left: 18px;
  top: -13px;
  display: inline-block;
  padding: 8px 18px 9px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.label.green {
  background: #00913a;
}

.label.mustard {
  background: #b49229;
}

.label.blue {
  background: #2ea9d6;
}

.title-red {
  color: #e72d28;
  font-weight: bold;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  font-size: 2.8rem;
}

.percent {
  color: #e72d28;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  margin: 2px 0 10px;
  letter-spacing: -0.02em;
}

.percent .num {
  font-size: 4.8rem;
}

.percent .small {
  font-size: 2.6rem;
  margin-left: 6px;
}

.percent .highlight {
  background: linear-gradient(transparent 58%, #f4de47 58%);
  display: inline-block;
  padding: 0 2px;
}


.sub {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 6px;
}

.small-note {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 8px;
}

.center {
  text-align: center;
}

@media (min-width: 768px) {
  .atm_btn_box {
    display: none;
  }
}

@media (max-width: 768px) {
  .mv {
    margin-left: -5%;
    margin-right: -5%;
  }

  .atm_btn_box {
    margin: 0;
    margin-top: 1em;
    padding: 0 5%;
  }

  .main-title {
    min-height: 148px;
  }

  .side {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
    margin-top: 5em;
  }

  .card {
    padding: 3em 2em 1.5em;
  }

  .card.top {
    display: flex;
    flex-direction: column;
    grid-column: auto;
    gap: 1.5em;
  }

  .split_01 {
    padding-right: 0;
  }

  .split_02 {
    padding-left: 0;
  }

  .split+.split::before {
    display: block;

    left: 0;
    top: -1em;
    /* 上に少し余白 */
    width: 100%;
    height: 2px;

    background: #00913a;
  }

  .card.top .btn {
    margin-top: 0;
  }

  .center {
    text-align: left;
  }

  .label {
    left: 50%;
    transform: translateX(-50%);
  }

}




/* =============================
   Detail
============================= */

.benefit {
  padding-top: 4em;
  padding-bottom: 5em;
  margin-top: 4em;
  background-color: #79bebe;
}

.section-title {
  margin-bottom: 4em;
}

.section-title img {
  margin: auto;
}

.benefit-block {
  margin-bottom: 2.4em;
}

.benefit-heading {
  margin: 0 0 -1em 1em;
  position: relative;
  z-index: 2;
}

/* 追加 */
.benefit-heading img {
  height: auto;
  display: block;
}

.benefit-panel {
  position: relative;
  background: #fffced;
  border-radius: 16px;
  padding: 3em 3.2em 2.4em;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.benefit-block--atm .benefit-panel {
  border: 3px solid #ef3028;
}

.benefit-block--special .benefit-panel {
  border: none;
}

.benefit-icon {
  position: absolute;
  right: 2.4rem;
  top: 1.4rem;
  font-size: 4.6rem;
  line-height: 1;
}

.benefit-lead {
  font-size: 2rem;
  line-height: 1.9;
  font-weight: 800;
  margin-bottom: 1.2em;
  color: #2f241f;
}

.benefit-lead.small {
  font-size: 1.7rem;
  line-height: 1.7;
  margin-bottom: 0.8em;
}

.benefit-notes {
  margin: 0;
  padding-left: 0;
}

.benefit-notes li {
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 0.2em;
}

.compact {
  margin-top: 1em;
}

.benefit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  margin-top: 1.8em;
  padding-top: 1.8em;
  border-top: 2px solid #67c8d1;
  border-bottom: 2px solid #67c8d1;
  padding-bottom: 1.8em;
}

.benefit-col h3 {
  margin: 0 0 0.6em;
  font-size: 2rem;
  line-height: 1.45;
  font-weight: 900;
  color: #2f241f;
}

.benefit-col p {

  line-height: 1.7;
  font-weight: 700;
}

.benefit-foot {
  margin-top: 1em;
  font-weight: 700;
}

.loan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  align-items: baseline;
}

.loan-card {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  padding: 2.3em 3em 1.5em;
  min-height: 232px;
}

.loan-card .benefit-heading {
  margin-bottom: 0.2em;
}

.loan-card h3 {
  margin: 0 0 0.6em;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  color: #2f241f;
}

.loan-card p {
  line-height: 1.7;
  font-weight: 700;
}

.car {
  position: absolute;
  top: -2.5rem;
  right: 2.2rem;
  font-size: 4.2rem;
  line-height: 1;
}

.home {
  position: absolute;
  top: -3.8rem;
  right: 2.2rem;
  font-size: 4.2rem;
  line-height: 1;
}

.loan-note {
  margin-top: 0.8em;
  font-size: 1.4rem !important;
}

.info {
  margin-top: 4em;
}

.info img {
  margin: auto;
}

@media (max-width: 768px) {
  .benefit-panel {
    padding: 2em 1em 1.5em;
  }

  .benefit-heading {
    margin: 0 0 -0.5em 0;
  }

  /* 追加 */
  .benefit-heading img {
    width: 100%;
  }

  .benefit-columns {
    grid-template-columns: 1fr;
    gap: 2em
  }

  .benefit-icon,
  .loan-icon {
    display: none;
  }

  .loan-grid {
    grid-template-columns: 1fr;
  }

  .mycar {
    width: 50%;
    margin: auto;
    margin-bottom: -0.5em;
  }

  .homeloan {
    width: 35%;
    margin: auto;
    margin-bottom: -0.5em;
  }

  .loan-card {
    padding: 2em 1em 1.5em;
    min-height: auto;
  }

}

/* =============================
   Footer
============================= */

.footer {
  background: #fff;
  color: #231815;
  text-align: center;
}

.footer__inner {
  padding: 0.25em;
}

.copyright {
  font-size: 1.2rem;
  margin: 0;
}