@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

.cost-simulation-form {
    margin-top: 20px;
    font-family: "Noto Sans JP", sans-serif;
}

.cost-simulation-table {
    width: 100%;
    border-collapse: collapse;
}

.cost-simulation-table tr:nth-child(odd) {
    background: #f5f5f5;
}

.cost-simulation-table th {
    width: 28%;
    padding: 14px 10px;
    text-align: left;
    font-weight: bold;
    vertical-align: middle;
    white-space: normal;
}

.cost-simulation-table td {
    padding: 12px;
}

.cost-simulation-table input[type="number"],
.cost-simulation-table input[type="date"],
.cost-simulation-total input[type="number"] {
    width: 220px;
    height: 34px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.cost-simulation-table .short-input {
    width: 60px !important;
}

.cost-simulation-table .short-input {
    width: 60px;
}

/* =========================
   概算お見積り金額
   ========================= */
.cost-total-highlight {
    display: grid;
    grid-template-columns: 1.6fr auto 0.6fr;
    align-items: center;
    min-height: 112px;
    padding: 14px 20px;
    background: #27108d;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(33, 0, 111, 0.25);
    box-sizing: border-box;
    column-gap: 20px;
}

/* 左：アイコン＋ラベル */
.cost-total-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-self: start;
}

.cost-total-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    background: #0874c9;
    border-radius: 50%;
    color: #fff;
}

.cost-total-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cost-total-label {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    white-space: nowrap;
}

/* 中央：金額 */
.cost-total-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.cost-total-price #cost-total {
    color: #ffdc4a;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.cost-total-yen {
    margin-left: 8px;
    font-size: clamp(20px, 2.2vw, 30px);
}

/* 右：リセット */
.cost-reset-button {
    justify-self: end;
    min-width: 150px;
    padding: 10px 28px;
    background: #fff;
    color: #27108d;
    border: none;
    border-radius: 999px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
}

.cost-reset-button:hover {
    opacity: 0.9;
}

.cost-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cost-flex-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.cost-flex-result {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 140px;
    white-space: nowrap;
    font-weight: bold;
}

.cost-flex-result .calculated-amount {
    display: inline-block;
    min-width: 90px;
    text-align: right;
}

/* ヘッダメニューのサイズ調整 */
.navimenu li.big_b {
    width:11.11% !important;
}

/* 説明文のスタイル */
.cost-simulation-notice {
    margin-top: -30px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f5f8fc;
    border-left: 4px solid #2a2a8f;
    font-size: 14px;
    line-height: 1.6;
}
.cost-simulation-note {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.cost-help {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: normal;
    color: #666;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.cost-simulation-table td {
    vertical-align: middle;
}

/* 強調表示 */
.calculated-amount,
.calculated-days {
    font-size: 24px;
    font-weight: bold;
    color: #2a2a8f;
}

/* number inmputの矢印を非表示 */
/* Chrome, Safari, Edge */
.cost-simulation-form input[type="number"]::-webkit-outer-spin-button,
.cost-simulation-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.cost-simulation-form input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 見積もりフォーム下部用 */
.cost-result-cta {
    margin: 40px auto;
}

.cost-cta-arrow {
    text-align: center;
    color: #ff7a00;
    font-size: 34px;
    margin: 16px 0 10px;
}

/* お問い合わせエリア */
.cost-contact-area {
    position: relative;
    margin-top: 32px;
    padding: 36px 28px 28px;
    background: #fff;
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cost-contact-area::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid #ff5a52;
    z-index: 2;
}

/* 見出し */
.cost-contact-heading {
    text-align: center;
    margin-bottom: 28px;
}

.cost-contact-heading p {
    margin: 0;
    font-size: 28px;
    line-height: 1.5;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.3em;
    position: relative;
}

.cost-contact-heading span {
    color: #ff3b30;
}

.cost-contact-accent {
    display: inline-block;
    width: 22px;
    height: 18px;
    margin-right: 0px;
    vertical-align: top;
    transform: translateY(-6px) rotate(-40deg);
}

.cost-contact-accent svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #ff5a52;
    stroke-width: 2.8;
    stroke-linecap: round;
}

/* CTAボタン */
.cost-contact-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.cost-contact-button {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 20px 52px 20px 28px;
    border-radius: 14px;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.cost-contact-button small {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.cost-contact-button strong {
    display: block;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

/* 右矢印 */
.cost-contact-button-arrow {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    font-size: 38px;
    line-height: 1;
    font-weight: 300;
}

/* 左ボタン */
.cost-contact-button--outline {
    background: #fffafa;
    border: 2px solid #ff5b56;
    color: #ff3b30;
}

.cost-contact-button--outline:hover {
    background: #fff2f1;
    color: #ff3b30;
}

/* 右ボタン */
.cost-contact-button--primary {
    background: #ff3224;
    border: 2px solid #ff3224;
    color: #fff;
}

.cost-contact-button--primary:hover {
    background: #e92e22;
    border-color: #e92e22;
    color: #fff;
}

.cost-contact-button--outline .cost-contact-button-arrow {
    color: #ff3b30;
}

.cost-contact-button--primary .cost-contact-button-arrow {
    color: #fff;
}

/* 電話エリア */
.cost-contact-tel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #fffaf4;
    border: 1px solid #f6d7b7;
    border-radius: 12px;
}

/* 電話アイコン */
.cost-contact-tel-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff5a52;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

/* 電話情報 */
.cost-contact-tel-text {
    flex: 1;
    min-width: 0;
}

.cost-contact-tel-text p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    color: #222;
}

.cost-contact-tel-number {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.cost-contact-tel-number span {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.cost-contact-tel-number a {
    color: #ff3b30;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
}

.cost-contact-tel-number a:hover {
    opacity: 0.8;
}

.cost-contact-tel-number .cost-contact-company {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* 電話番号 */
.cost-contact-tel-number .cost-contact-phone-number {
    color: #ff3b30;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* 受付時間 */
.cost-contact-hours {
    flex: 0 0 138px;
    padding: 10px 10px;
    text-align: center;
    background: #fff;
    border: 1px solid #f6d7b7;
    border-radius: 10px;
    box-sizing: border-box;
}

.cost-contact-hours strong,
.cost-contact-hours span,
.cost-contact-hours small {
    display: block;
}

.cost-contact-hours strong {
    margin-bottom: 5px;
    color: #ff3b30;
    font-size: 14px;
}

.cost-contact-hours span {
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.cost-contact-hours small {
    margin-top: 3px;
    color: #333;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.cost-contact-examples {
    display: grid;
    grid-template-columns: 95px 1fr;
    align-items: center;
    column-gap: 18px;

    padding: 18px 22px;
    background: #fffdf8;
    border: 1px solid #f6d7b7;
    border-radius: 12px;
}

/* 黄色い丸 */
.cost-contact-examples-title {
    position: relative;

    grid-row: 1;
    width: 130px;
    height: 80px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff0bd;
    border-radius: 50%;

    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: #222;
}

.cost-contact-example:first-child {
    border-left: 2px dashed #666;
}

.cost-contact-examples {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    column-gap: 22px;
    align-items: center;
    padding-top: 18px;
    padding-right: 10px;
    padding-left: 20px;
    padding-bottom: 0px;
    background: #fffdf8;
    border: 1px solid #f6d7b7;
    border-radius: 12px;
}

/* 3つの相談例 */
.cost-contact-example-list {
    grid-column: 2;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin: 0;
}

/* 各相談例 */
.cost-contact-example {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 6px;
    padding: 8px 14px;
    box-sizing: border-box;
}

/* 黄色い楕円の右側を含めて、各項目の左に点線 */
.cost-contact-example {
    border-left: 3px dashed #222;
}

.cost-contact-example + .cost-contact-example {
    border-left: 2px dashed #666;
}

.cost-contact-example-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #555;
}

/* 受話器アイコン用 */
.cost-contact-tel-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    stroke: none;
    color: #fff;
}

/* 他アイコン用 */
.cost-contact-example-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cost-contact-example p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    text-align: left;
}

/* 下の説明文 */
.cost-contact-examples-note {
    grid-column: 1 / -1;
    margin-top: 18px;

    text-align: center;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    color: #333;
}

/* =========================
   タブレット対応（iPadなど）
   ========================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .cost-total-highlight {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "heading heading"
            "price reset";

        row-gap: 14px;
        column-gap: 12px;

        padding: 16px;
        min-height: auto;
    }

    .cost-total-heading {
        grid-area: heading;
        justify-self: start;
        gap: 12px;
    }

    .cost-total-icon {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .cost-total-icon svg {
        width: 24px;
        height: 24px;
    }

    .cost-total-label {
        font-size: 18px;
    }

    .cost-total-price {
        grid-area: price;
        justify-self: start;
    }

    .cost-total-price #cost-total {
        font-size: clamp(36px, 10vw, 56px);
    }

    .cost-total-yen {
        font-size: 22px;
    }

    .cost-reset-button {
        grid-area: reset;
        justify-self: end;

        min-width: 110px;
        padding: 8px 18px;
        font-size: 15px;
    }

    .cost-contact-area {
        padding: 32px 20px 24px;
    }

    .cost-contact-heading p {
        font-size: 24px;
        letter-spacing: 0.12em;
    }

    .cost-contact-buttons {
        gap: 12px;
    }

    .cost-contact-button {
        min-height: 118px;
        padding: 18px 44px 18px 20px;
    }

    .cost-contact-button small {
        font-size: 13px;
    }

    .cost-contact-button strong {
        font-size: 22px;
    }

    .cost-contact-tel {
        gap: 14px;
        padding: 14px 16px;
    }

    .cost-contact-tel-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .cost-contact-tel-text p {
        font-size: 14px;
    }

    .cost-contact-tel-number .cost-contact-company {
        font-size: 18px;
    }

    .cost-contact-tel-number .cost-contact-phone-number {
        font-size: 24px;
    }

    .cost-contact-hours {
        flex-basis: 120px;
    }

    .cost-contact-examples {
        grid-template-columns: 110px minmax(0, 1fr);
        column-gap: 14px;
        padding-left: 14px;
        padding-right: 8px;
    }

    .cost-contact-examples-title {
        width: 108px;
        height: 72px;
        font-size: 13px;
    }

    .cost-contact-example {
        gap: 4px;
        padding: 8px 8px;
    }

    .cost-contact-example-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .cost-contact-example p {
        font-size: 13px;
    }

    .cost-contact-examples-note {
        font-size: 13px;
    }
}


/* =========================
   スマホ対応
   ========================= */
@media (max-width: 768px) {
    /* 見積もり金額エリア全般 */
    .cost-total-highlight {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "price"
            "reset";
    }

    .cost-total-heading,
    .cost-total-price,
    .cost-reset-button {
        justify-self: center;
    }

    .cost-total-price {
        margin-top: 4px;
    }

    .cost-reset-button {
        margin-top: 8px;
    }

    /* 問い合わせエリア全体 */
    .cost-contact-area {
        margin-top: 26px;
        padding: 28px 14px 20px;
        border-radius: 14px;
    }

    /* 見出し */
    .cost-contact-heading {
        margin-bottom: 22px;
    }

    .cost-contact-heading p {
        font-size: 21px;
        line-height: 1.55;
        letter-spacing: 0.08em;
    }

    .cost-contact-accent {
        width: 18px;
        height: 15px;
    }

    /* CTAボタンを縦並び */
    .cost-contact-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cost-contact-button {
        width: 100%;
        min-height: 105px;
        padding: 16px 48px 16px 20px;
    }

    .cost-contact-button small {
        font-size: 12px;
    }

    .cost-contact-button strong {
        font-size: 21px;
    }

    .cost-contact-button-arrow {
        right: 18px;
        font-size: 32px;
    }

    /* 電話エリア */
    .cost-contact-tel {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 12px;
        padding: 16px;
    }

    .cost-contact-tel-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .cost-contact-tel-text p {
        font-size: 13px;
    }

    .cost-contact-tel-number {
        gap: 6px;
    }

    .cost-contact-tel-number .cost-contact-company {
        font-size: 16px;
    }

    .cost-contact-tel-number .cost-contact-phone-number {
        font-size: 23px;
    }

    /* 受付時間は下段いっぱい */
    .cost-contact-hours {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 4px;
    }

    /* 相談内容エリアを縦並び */
    .cost-contact-examples {
        display: block;
        padding: 18px 14px 14px;
    }

    .cost-contact-examples-title {
        width: 130px;
        height: 72px;
        margin: 0 auto 16px;
    }

    .cost-contact-example-list {
        display: block;
    }

    .cost-contact-example {
        border-left: none;
        border-top: 2px dashed #666;
        padding: 14px 8px;
    }

    .cost-contact-example:first-child {
        border-left: none;
    }

    .cost-contact-example + .cost-contact-example {
        border-left: none;
    }

    .cost-contact-example-icon {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
    }

    .cost-contact-example p {
        font-size: 14px;
    }

    .cost-contact-examples-note {
        margin-top: 14px;
        font-size: 12px;
        line-height: 1.7;
    }
}