.button-01.reformcolor {
    --fg: #fff;
    --fg-hover: #e85959;
    background: #e85959;
    margin-top: 15px
  }

  .button-01.reformcolor:hover,
  .button-01.reformcolor:focus-visible {
    color: #e85959;
  }

.reform-comparison-row > .reform-data-item:nth-child(3),
.reform-comparison-row > .reform-data-item:nth-child(4), 
.reform-comparison-row > .reform-data-item:nth-child(5){
  border-left: 2px solid #bdbdbd;
}
/* PC時は .sp-br を非表示にして改行を消す */
.sp-br {
  display: none;
}
.tb-only {
  display: none;
}
@media screen and (max-width: 519px) {
  .sp-br {
    display: inline;
  }
}

/* リフォームページのグレーセクション */
.reform{
    color: #2B9B7D!important;
}

.reform-gray-section {
    position: relative;
    width: 100%;
    background-color: #fff;
    padding: 0 32px;
}

.reform-choices-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #2B9B7D;
    margin-bottom: 40px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.1em;
}

.reform-choices-title::before,
.reform-choices-title::after {
    content: '.....';
    color: #222;
    margin: 0 20px;
}

.reform-choices-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: #222222;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@media screen and (max-width: 520px) {
    .reform-comparison-row > .reform-data-item:nth-child(3),
    .reform-comparison-row > .reform-data-item:nth-child(4) {
      padding-left: 18px ;
    }
  .reform-choices-description{
    font-size: 16px;
  }
  .reform-choices-title{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 24px;
    color: #2B9B7D;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: bold;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0.05em;
  }


  .reform-choices-title::before,
  .reform-choices-title::after{
    content: "...";
    color: #222;
    white-space: nowrap;
    letter-spacing: 2px;
    flex: 0 0 auto;
    margin: 0;
  }


  .reform-choices-title__text{
    font-size: 20px;
    display: block;
    text-align: center;
    max-width: 240px;
    white-space: normal;
  }

  .reform-gray-section{
    padding:48px 32px 0;
  }

}


/* 比較表セクション */
.reform-comparison-section {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    background-color: #f4f4f4;
}

.reform-comparison-container {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    padding: 0px 0px 100px;
}

/* ヘッダー：4つの画像 */
.reform-comparison-header {
    display: grid;
    grid-template-columns: 134fr 262fr 262fr 262fr 262fr;
    gap: 16px;
    margin-bottom: 30px;
}

.reform-comparison-label-spacer {
    /* 縦ラベル列のスペース */
}

.reform-choice-card {
    display: flex;
    justify-content: center;
}

.reform-choice-icon {
    width: 100%;
    aspect-ratio: 262 / 222;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F4F4;
    border-radius: 4px;
    position: relative;
    padding: 30px 40px;
}

.reform-choice-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding-top: 50px;
}

.reform-choice-text {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #222222;
    text-align: center;
    white-space: nowrap;
    font-family: "Zen Kaku Gothic New", sans-serif;
    padding-top: 10px;
}

/* ボディ：比較データ */
.reform-comparison-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #EFEFEF;
}

.reform-comparison-row {
    display: grid;
    grid-template-columns: 134fr 262fr 262fr 262fr 262fr;
    gap: 1px;
    background: #EFEFEF;
    min-height: 103.2px;
}

.reform-label-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #222222;
    font-family: "Zen Kaku Gothic New", sans-serif;
    padding: 15px 10px;
    background: #F3FBF4;
    line-height: 1.6;
}

.reform-data-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.8;
    letter-spacing: 2px;
    color: #222222;
    font-family: "Zen Kaku Gothic New", sans-serif;
    padding: 15px 10px;
    background: white;
}

.reform-data-item.reform-data-green {
    color: #2B9B7D;
}

.tb-only{
        display: none;
    }
.sp-only{
        display: none;
    }
@media screen and (max-width: 1024px) and (min-width: 520px) {
    .tb-only {
  display: block;
}
.reform-choices-title {
    display: flex;
    align-items: center; /* ← これで縦方向の中央揃え */
    justify-content: center; /* ← 必要なら横方向も中央揃え */
    position: relative;
}

}
/* 横スクロール */
@media (max-width: 960px) {
  .reform-comparison-container {
    overflow-x: auto;
  }

  .reform-comparison-header,
  .reform-comparison-row {
    display: grid;
    grid-template-columns: 120px 160px 160px 160px 160px;
    gap: 16px;
    min-width: 760px;
    background: #fff;
  }

  .reform-comparison-label-spacer,
  .reform-label-item {
    position: sticky;
    left: 0;
  }

  .reform-comparison-label-spacer {
    z-index: 4;
  }

  .reform-label-item {
    z-index: 3;
  }
}


/* リフォーム事例セクション */
.reform-examples-wrap{
  width: 100%;
  background: #f4f4f4;
  padding: 150px 80px;
}

.reform-examples-section {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;       /* 中身の位置は今まで通り中央 */
  background: transparent; /* 背景は外側に移したので不要 */
}

.reform-examples-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #2B9B7D;
    margin-bottom: 60px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.05em;
}

.reform-examples-title::before,
.reform-examples-title::after {
    content: '.....';
    color: #2B9B7D;
    margin: 0 20px;
}

.reform-examples-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.reform-example-card {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 120px;
}

.reform-example-card-reverse {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    margin-bottom: 120px;
}

.reform-example-image {
    position: relative;
    width: 49.5%;
    height: 375px;
    flex-shrink: 0;
    overflow: visible;
}

.reform-example-image-clip{
  width: 100%;
  height: 100%;
  overflow: hidden; /* ← 画像だけ切り抜く */
}

.reform-example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-no-left-top {
    font: var(--unnamed-font-style-normal) normal var(--unnamed-font-weight-bold) 143px/215px Ubuntu;
    position: absolute;
    top: -55px;
    left: 0px;

    font-size: 120px;
    font-weight: 700;
    line-height: 1;

    color: white;
}

.photo-no-right-top {
    font: var(--unnamed-font-style-normal) normal var(--unnamed-font-weight-bold) 143px/215px Ubuntu;
    position: absolute;
    top: -55px;
    right: 0px;

    font-size: 120px;
    font-weight: 700;
    line-height: 1;

    color: white;
}

.reform-example-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 520px) {

  .reform-examples-wrap{
    padding: 60px 32px;
  }

  .reform-examples-section{
    width: 100%;
    max-width: none;
    margin: 0;
  }


  .reform-examples-title{
    font-size: 18px;
    margin-bottom: 22px;
  }
  .reform-examples-title::before,
  .reform-examples-title::after{
    margin: 0 10px;
    letter-spacing: 0.1em;
  }

  .reform-examples-grid{
    gap: 60px;
  }


  .reform-example-card,
  .reform-example-card-reverse{
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
  }


  .reform-example-image{
    width: 100%;
    height: 190px;
    flex-shrink: 0;
  }

  .reform-example-image-clip{
    border-radius: 0;
  }

  .photo-no-left-top,
  .photo-no-right-top{
    top: -18px;
    left: 10px;
    right: auto;
    font-size: 84px;
    line-height: 1;
    opacity: 0.95;
    pointer-events: none;
  }


  .reform-example-content{
    width: 100%;
    gap: 10px;
  }


  .reform-property-type-tag{
    display: inline-block;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #2B9B7D;
    color: #fff;
  }


  .reform-total-amount{
    margin-top: 4px;
  }
  .reform-amount-label{
    font-size: 12px;
    font-weight: 700;
    color: #f2a000;
  }
  .reform-amount-value{
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
  }
  .reform-amount-unit{
    font-size: 14px;
    font-weight: 700;
    margin-left: 4px;
  }


  .reform-dotted-line{
    margin: 8px 0;
  }

  .reform-property-info{
    gap: 6px;
  }

  .reform-info-label{
    font-size: 12px;
    font-weight: 700;
    color: #2B9B7D;
  }

  .reform-info-row{
    display: flex;
    gap: 6px;
  }

  .reform-info-amount{
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
  }
  .reform-info-unit{
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
  }

  .reform-info-detail{
    font-size: 12px;
    line-height: 1.6;
    color: #333;
  }
}


.reform-property-type-tag {
    display: inline-block;
    background: #2B9B7D;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 10px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.05em;
}

.reform-total-amount {
    margin-bottom: 10px;
}

.reform-amount-label {
    font-size: 16px;
    color: #FF8C00;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.05em;
}

.reform-amount-value {
    font-size: 40px;
    font-weight: bold;
    color: #222222;
    font-family: "Ubuntu", sans-serif;
}

.reform-amount-unit {
    font-size: 20px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.reform-dotted-line {
    border-top: 3px dotted #0d0d0d;
}

.reform-property-info,
.reform-reform-info {
    font-size: 16px;
    color: #222222;
    line-height: 0.9;
    margin-bottom: 10px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.reform-info-label {
    font-weight: bold;
    color: #FF8C00;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.05em;
}

.reform-info-detail {
    line-height: 1.8;
    font-weight: normal;
}
.reform-info-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.reform-info-amount {
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.reform-info-unit {
    font-size: 16px;
    margin-left: 4px;
}

.reform-info-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.6;
    font-size: 14px;
}

.reform-info-amount {
    font-size: 40px;
    font-weight: bold;
    color: #222222;
    display: inline-block;
    margin-right: 15px;
    font-family: "Ubuntu", sans-serif;
}

.reform-info-unit {
    font-size: 18px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

/* 費用シミュレーションセクション */
.reform-simulation-section {
    width: 100%;
    padding: 100px 20px;
    background: #f0f8f5;
    margin-top: 0px;
}

.reform-simulation-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #2B9B7D;
    margin-bottom: 40px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.1em;
}

.reform-simulation-title::before,
.reform-simulation-title::after {
    content: '.....';
    color: #2B9B7D;
    margin: 0 20px;
}

.reform-simulation-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 16px;
    line-height: 1.8;
    color: #222222;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.reform-cost-calculation {
    width: 90%;
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: nowrap;
}

.reform-cost-box {
    background: white;
    padding: 25px 20px;
    border-radius: 0;
    text-align: left;
    flex: 1;
    min-width: 0;
    aspect-ratio: 2 / 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.reform-cost-box.reform-cost-highlight {
    background: #2B9B7D;
    color: white;
}

.reform-cost-box.reform-cost-optional {
    border: 3px dashed #2B9B7D;
    background: white;
}

.reform-cost-box.reform-cost-total {
    background: transparent;
    color: #2B9B7D;
    box-shadow: none;
}

.reform-cost-label {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.5;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #2B9B7D;
}

.reform-cost-sublabel {
    font-size: 80%;
}

.reform-cost-box:first-child {
    border: 3px solid #2B9B7D;
}

.reform-cost-box:first-child .reform-cost-label {
    color: #222222;
}

.reform-cost-box.reform-cost-highlight .reform-cost-label {
    color: white;
}

.reform-cost-box.reform-cost-highlight .reform-cost-amount {
    color: white;
}

.reform-cost-amount {
    font-size: 36px;
    font-weight: bold;
    font-family: "Ubuntu", sans-serif;
    color: #2B9B7D;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.reform-cost-unit {
    font-size: 60%;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.reform-cost-operator {
    font-size: 40px;
    font-weight: bold;
    color: #2B9B7D;
    font-family: "Ubuntu", sans-serif;
}

/* お問い合わせボックス */
.reform-rounded-box {
    width: 90%;
    max-width: 1240px;
    height: auto;
    margin: 90px auto 0;
    background-color: #ffffff;
    border: 4px solid #e85959;
    border-radius: 92.5px;
    box-sizing: border-box;
    padding: 40px 40px;
    text-align: center;
    margin-bottom: 150px;
}

.reform-rounded-box .rounded-text {
    margin: 0;
    font-size: 27px;
    color: #222;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.1em;
}

.reform-rounded-box .rounded-phone {
    font-size: 36px;
    color: #e85959;
    font-weight: bold;
    font-family: "Ubuntu", sans-serif;
    margin: 0;
}

.reform-rounded-box .rounded-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.reform-rounded-box .rounded-button{
  /* button-01の基本動作を崩さないよう最低限の調整のみ */
  min-width: 240px;
  height: 64px;
  padding: 12px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  /* button-01のbackgroundやcolor, border, transition等は上書きしない */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}


/* .reform-rounded-box .rounded-button::before{
  content:"";
  position:absolute;
  top:50%;
  right: 18px;

  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;

  transform: translateY(-50%) scale(1);
  transform-origin: center;
  opacity: 1;
  z-index: 0;

  transition:
    transform .26s cubic-bezier(.2,.8,.2,1),
    opacity .26s ease;
}


.reform-rounded-box .rounded-button:hover{
  background: #fff;
  color: #e85959;
  border-color: #e85959;
}

.reform-rounded-box .rounded-button:hover::before{
  transform: translateY(-50%) scale(2.2);
  opacity: 0;
} */




/* 理想の住まいセクション */
.reform-ideal-section {
    width: 100%;
    padding: 100px 20px;
    background: #f8f9fa;
}

.reform-ideal-title {
    text-align: center;
    font-size: 32px;
    color: #e85959;
    font-weight: bold;
    margin-bottom: 50px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.1em;
}

.reform-ideal-description {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 24px;
    line-height: 2.4;
    color: #222222;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: bold;
    letter-spacing: 2.4px;
}

.reform-ideal-highlight {
    color: #2B9B7D;
    font-weight: bold;
}

.reform-ideal-arrow {
    width: 0;
    height: 0;
    border-left: 23px solid transparent;
    border-right: 23px solid transparent;
    border-top: 22px solid #E85959;
    margin: 66px auto 0;
}

/* 注文住宅セクション */
.reform-custom-home-section {
    width: 100%;
    padding: 50px 20px 150px;
    background: white;
}

.reform-custom-home-box {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    border: 4px solid #e85959;
    border-radius: 150px;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: white;
    height: 300px;
    position: relative;
}

.reform-custom-home-image {
    flex: 0 0 35%;
    height: 100%;
    border-radius: 150px 0 0 150px;
    overflow: hidden;
}

.reform-custom-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reform-custom-home-right {
    flex: 0 0 65%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 40px 30px 40px;
}

.reform-custom-home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reform-custom-home-subtitle {
    font-size: 23px;
    color: #E85959;
    margin-bottom: 0;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 0.8;
    text-align: left;
}

.reform-custom-home-title {
    font-weight: bold;
    color: #222222;
    margin-bottom: 0;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.05em;
    line-height: 0.8;
}

.reform-custom-home-title .title-small {
    font-size: 30px;
    font-weight: bold;
    color: #222222;
    letter-spacing: 1.5px;
    line-height: 35px;
}

.reform-custom-home-title .title-number {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #222222;
    line-height: 1.5;
}

.reform-custom-home-title .title-text {
    font-size: 54px;
    font-weight: bold;
    letter-spacing: 2.7px;
    color: #222222;
    line-height: 1.5;
}

.reform-custom-home-title .title-large {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #222222;
    line-height: 1.5;
}

.reform-custom-home-features {
    font-size: 16px;
    color: #222;
    margin-bottom: 0;
    margin-top: 0;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.0;
}

.reform-custom-home-content .button{
  margin-top: 16px;
  align-self: flex-start;

  min-width: 160px;
  height: 40px;
  padding: 10px 32px;

  background-color: #e85959;
  color: #fff;

  border: 1px solid transparent;
  border-radius: 50px;

  font-size: 14px;
  font-weight: bold;
  font-family: "Zen Kaku Gothic New", sans-serif;
  letter-spacing: 0.05em;

  cursor: pointer;


  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  position: relative;
  overflow: hidden;
  isolation: isolate;

  transition:
    background-color .26s ease,
    color .26s ease,
    border-color .26s ease;
}


.reform-custom-home-content .button::before{
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;

  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;

  transform: translateY(-50%) scale(1);
  transform-origin: center;
  opacity: 1;
  z-index: 0;

  transition:
    transform .26s cubic-bezier(.2,.8,.2,1),
    opacity .26s ease;
}


.reform-custom-home-content .button:hover{
  background-color: #fff;
  color: #e85959;
  border-color: #e85959;
}


.reform-custom-home-content .button:hover::before{
  transform: translateY(-50%) scale(2.2);
  opacity: 0;
}


.reform-custom-home-icon {
    width: 155px;
    height: 131px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 40px;
    bottom: 19px;
}

.reform-custom-home-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media screen and (max-width: 1280px) {
.reform-custom-home-title .title-number{
    font-size: 40px;
}
.reform-custom-home-title .title-text{
    font-size: 40px;
}

.reform-custom-home-box{
    gap:20px;
}

.reform-custom-home-content {
    gap: 10px;
}

.reform-custom-home-right {
    padding: 40px 40px 40px 10px;
}
}



/* タブレット */

@media screen and (max-width: 1024px) {
/* CTA */
    .reform-rounded-box{
        display: none;
    }
/* シミュレーション*/
    .reform-simulation-title {
        font-size: 28px;
    }


    .reform-simulation-description {
        font-size: 15px;
    }

    .reform-cost-calculation {
        flex-direction: column;
        width: 85%;
        gap:0;
    }

    .reform-cost-box {
        width: 100%;
        max-width: 450px;
        aspect-ratio: 2 / 1;
        padding: 20px 18px;
        align-items: center;
    }

    .reform-cost-label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .reform-cost-sublabel {
        font-size: 75%;
    }

    .reform-cost-amount {
        font-size: 32px;
    }

    .reform-cost-unit {
        font-size: 60%;
    }

    .reform-cost-operator {
        font-size: 36px;
        transform: rotate(90deg);
    }

    .reform-rounded-box .rounded-text {
        font-size: 22px;
    }

    .reform-rounded-box .rounded-phone {
        font-size: 30px;
    }

    .reform-ideal-description {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .reform-ideal-arrow {
        border-left-width: 18px;
        border-right-width: 18px;
        border-top-width: 18px;
        margin-top: 50px;
    }



    .reform-comparison-body {
        grid-template-columns: 300fr 200fr 200fr 200fr;
    }

    .reform-comparison-labels-with-first {
        grid-template-columns: 100fr 200fr;
    }

    .reform-choice-text {
        font-size: 12px;
    }

    .reform-label-item {
        font-size: 14px;
        padding: 12px 8px;
    }

    .reform-data-item {
        font-size: 16px;
        line-height: 28px;
        letter-spacing: 1.6px;
        padding: 12px 8px;
    }

/*homeセクション*/
    .reform-custom-home-section {
        padding: 40px 20px 100px;
    }


    .reform-custom-home-image {
        flex: 0 0 30%;
        height: 100%;
        border-radius: 125px 0 0 125px;
    }


  .reform-custom-home-right{
    flex: 1;
    width: auto;
    padding: 30px;
    gap: 16px;
  }

    .reform-custom-home-subtitle {
        font-size: 40px;
        color: #E85959;
        font-weight: bold;
        letter-spacing: 1.8px;
        line-height: 38px;
        text-align: left;
    }

    .reform-custom-home-title .title-small {
        font-size: 24px;
        font-weight: bold;
        color: #222222;
        letter-spacing: 1.2px;
        line-height: 28px;
    }

    .reform-custom-home-title .title-number {
        font-size: 64px;
        letter-spacing: 3px;
    }

    .reform-custom-home-title .title-text {
        font-size: 44px;
        letter-spacing: 2.2px;
    }

    .reform-custom-home-title .title-large {
        font-size: 64px;
        letter-spacing: 3px;
    }

    .reform-custom-home-features {
        font-size: 14px;
    }

    .reform-custom-home-content .rounded-button,
    .reform-custom-home-content .button {
        font-size: 13px;
        letter-spacing: 1.3px;
        line-height: 28px;
        padding: 0 18px;
        min-width: auto;
    }

    .reform-custom-home-icon {
        width: 120px;
        height: 102px;
        right: 30px;
        bottom: 15px;
    }

     .sp-only{
        display: block;
    }
}

@media screen and (max-width: 520px) {
    /*シミュレーション*/
    .reform-simulation-title {
        font-size: 24px;
    }

    .reform-simulation-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .reform-cost-calculation {
        width: 100%;
    }

    .reform-simulation-section {
    padding: 100px 32px 60px;}

    .reform-simulation-section {
    margin-top: 0px;
}

    .reform-cost-box {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        align-items: center;
    }

    .reform-cost-label {
        font-size: 21px;
        margin-bottom: 10px;
        line-height: 1;
    }

    .reform-cost-sublabel {
        font-size: 70%;
    }

    .reform-cost-amount {
        font-size: 35px;
    }

    .reform-cost-unit {
        font-size: 60%;
    }

    .reform-cost-operator {
        font-size: 28px;
    }

    .reform-rounded-box .rounded-text {
        font-size: 18px;
    }

    .reform-rounded-box .rounded-phone {
        font-size: 24px;
    }

    .reform-ideal-description {
        font-size: 16px;
        letter-spacing: 1.6px;
        line-height: 2;
    }

    .reform-ideal-arrow {
      display: none;
    }

    /* 比較表のスマホ対応 */
    .reform-comparison-section {
        width: 95%;
    }

    .reform-comparison-container {
        padding: 20px 10px;
        margin-bottom: 80px;
    }

    .reform-comparison-header {
        grid-template-columns: 120px 160px 160px 160px 160px;
        gap: 16px;
        min-width: 760px;
        margin-bottom: 15px;
    }

    .reform-comparison-body {
      grid-template-columns: 260fr 180fr 180fr 180fr;
      overflow-x: auto;
      overflow-y: visible;
      white-space: nowrap;
    }

    .reform-comparison-labels-with-first {
        grid-template-columns: 80fr 180fr;
    }

    .reform-choice-icon {
        aspect-ratio: 262 / 222;
        padding: 10px;
    }

    .reform-choice-text {
        font-size: 18px;
        top: 5px;
    }

    .reform-label-item {
        font-size: 14px;
        padding: 8px 5px;
    }

    .reform-data-item {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 1.3px;
        padding: 8px 5px;
    }

    .reform-custom-home-section {
        padding: 30px 20px 80px;
    }

    .reform-custom-home-box {
        width: 95%;
        height: auto;
        min-height: 200px;
        border-radius: 100px;
        flex-direction: row;
    }

    .reform-custom-home-image {
        flex: 0 0 30%;
        height: 100%;
        border-radius: 100px 0 0 100px;
    }

    /*ideal*/
    .reform-ideal-section{
        padding: 60px 32px;
    }
    .reform-ideal-title{
        font-size: 20px;
    }

}
  /* section home sp */
@media screen and (min-width: 520px) and (max-width: 1024px) {
    .reform-info-row{
        display: grid;
    }
.reform-custom-home-section{
    padding: 28px 16px 80px;
  }


  .reform-custom-home-box{
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    min-height: unset;

    flex-direction: column;
    gap: 0;

    border-width: 2px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
  }


  .reform-custom-home-image{
    flex: none;
    width: 100%;
    height: 170px;
    border-radius: 0;
    overflow: hidden;
  }

  .reform-custom-home-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .reform-custom-home-right{
    flex: none;
    width: 100%;
    padding: 18px 18px 16px;
    display: block;
  }

  .reform-custom-home-content{
    gap: 8px;
  }


  .reform-custom-home-subtitle{
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 1.6;
    text-align: left;
    margin: 0 0 6px;
    text-align: center;
  }


  .reform-custom-home-title{
    text-align: center;
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
  }

  .reform-custom-home-title .title-small{
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  .reform-custom-home-title .title-number{
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .reform-custom-home-title .title-text{
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }


  .reform-custom-home-features{
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin: 6px 0 14px;
    padding-right: 54px;
  }


  .reform-custom-home-content .rounded-button,
  .reform-custom-home-content .button{
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 6px;
    align-self: stretch;
    border-radius: 999px;
  }


  .reform-custom-home-icon{
        width: 87px;
        height: 87px;
        right: 16px;
        bottom: 70px;
  }

  .reform-custom-home-icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media screen and (max-width: 520px){


  .reform-custom-home-section{
    padding: 28px 16px 80px;
    background: #f8f9fa;
  }


  .reform-custom-home-box{
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
    min-height: unset;

    flex-direction: column;
    gap: 0;

    border-width: 2px;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
  }


  .reform-custom-home-image{
    flex: none;
    width: 100%;
    height: 170px;
    border-radius: 0;
    overflow: hidden;
  }

  .reform-custom-home-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .reform-custom-home-right{
    flex: none;
    width: 100%;
    padding: 18px 18px 16px;
    display: block;
  }

  .reform-custom-home-content{
    gap: 8px;
  }


  .reform-custom-home-subtitle{
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 1.6;
    text-align: left;
    margin: 0 0 6px;
  }


  .reform-custom-home-title{
    text-align: left;
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
  }

  .reform-custom-home-title .title-small{
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  .reform-custom-home-title .title-number{
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0 6.5px;
  }

  .reform-custom-home-title .title-text{
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }


  .reform-custom-home-features{
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin: 6px 0 14px;
    padding-right: 54px;
    width: 82%;
  }


  .reform-custom-home-content .rounded-button,
  .reform-custom-home-content .button{
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 6px;
    align-self: stretch;
    border-radius: 999px;
  }


  .reform-custom-home-icon{
        width: 87px;
        height: 87px;
        right: 16px;
        bottom: 70px;
  }

  .reform-custom-home-icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media screen and (max-width: 520px) {


        .reform-simulation-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: 0 auto 24px;
        color: #2B9B7D;
        font-family: "Zen Kaku Gothic New", sans-serif;
        font-weight: bold;
        font-size: 22px;
        line-height: 1.35;
        letter-spacing: 0.05em;
    }
    .reform-simulation-line{
        font-size: 20px;
        display: block;
        text-align: center;
        max-width: 240px;
        white-space: normal;
    }
}
