/* リフォームページのグレーセクション */
.reform-gray-section {
    position: relative;
    width: 100%;
    background-color: #f4f4f4;
    margin-top: 300px;
    padding: 80px 20px 40px;
}

.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.05em;
}

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

.reform-choices-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-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: 30px 20px;
}

/* ヘッダー：4つの画像 */
.reform-comparison-header {
    display: grid;
    grid-template-columns: 134fr 262fr 262fr 262fr 262fr;
    gap: 20px;
    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: 20px;
}

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

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

/* ボディ：比較データ */
.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: 80px;
}

.reform-label-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    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;
}

/* リフォーム事例セクション */
.reform-examples-section {
    width: 90%;
    max-width: 1240px;
    margin: 150px auto 0;
}

.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;
    background: #fff;
}

.reform-example-image {
    position: relative;
    width: 45%;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

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

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

.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: 36px;
    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: 2px dotted #ddd;
    margin: 15px 0;
}

.reform-property-info,
.reform-reform-info {
    font-size: 16px;
    color: #222222;
    line-height: 1.8;
    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;
}

.reform-info-amount {
    font-size: 28px;
    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: 150px;
}

.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.05em;
}

.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;
}

.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: 185px;
    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: #333;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.05em;
}

.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 {
    background-color: #e85959;
    min-width: 200px;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
}

.reform-rounded-box .rounded-button:hover {
    background-color: #d04a44;
}

/* 理想の住まいセクション */
.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.05em;
}

.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: 2.3px;
    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: #666;
    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 .rounded-button,
.reform-custom-home-content .button {
    margin-top: 8px;
    align-self: flex-start;
    display: inline-block;
    background-color: #e85959;
    color: white;
    padding: 10px 32px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
    min-width: 160px;
}

.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 (min-width: 960px) {
}

/* タブレット */
@media screen and (min-width: 520px) and (max-width: 959px) {
    .reform-simulation-title {
        font-size: 28px;
    }

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

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

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

    .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-header {
        grid-template-columns: 100fr 200fr 200fr 200fr 200fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .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;
    }

    .reform-custom-home-section {
        padding: 40px 20px 100px;
    }

    .reform-custom-home-box {
        width: 85%;
        height: auto;
        min-height: 250px;
        border-radius: 125px;
        flex-direction: row;
    }

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

    .reform-custom-home-right {
        flex: 0 0 auto;
        width: 100%;
        padding: 30px 30px;
    }

    .reform-custom-home-subtitle {
        font-size: 18px;
        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;
    }
}

@media screen and (max-width: 519px) {
    .reform-simulation-title {
        font-size: 24px;
    }

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

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

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

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

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

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

    .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 {
        border-left-width: 15px;
        border-right-width: 15px;
        border-top-width: 15px;
        margin-top: 40px;
    }

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

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

    .reform-comparison-header {
        grid-template-columns: 80fr 180fr 180fr 180fr 180fr;
        gap: 5px;
        margin-bottom: 15px;
    }

    .reform-comparison-body {
        grid-template-columns: 260fr 180fr 180fr 180fr;
    }

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

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

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

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

    .reform-data-item {
        font-size: 13px;
        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;
    }

    .reform-custom-home-right {
        flex: 0 0 auto;
        width: 100%;
        padding: 20px 20px;
        flex-direction: column;
    }

    .reform-custom-home-icon {
        width: 90px;
        height: 76px;
        right: 20px;
        bottom: 10px;
    }

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

    .reform-custom-home-title .title-small {
        font-size: 20px;
        font-weight: bold;
        color: #222222;
        letter-spacing: 1px;
        line-height: 23px;
    }

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

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

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

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

    .reform-custom-home-content .rounded-button,
    .reform-custom-home-content .button {
        font-size: 12px;
        letter-spacing: 1.2px;
        line-height: 24px;
        padding: 0 16px;
        min-width: auto;
    }
}
