/* FF11 レスポンシブ版 / ホワイト・レッド・イエロー・グレー配色
   RMT KING の色づかいを参考にしたオリジナル配色です。
   HTML・JavaScript・レスポンシブレイアウトは変更していません。
   カラーは :root のカスタムプロパティから調整できます。 */
:root {
    --pink: #d32f2f; /* メインの赤（既存の変数名を維持） */
    --deep-plum: #4a4a4a; /* グレー */
    --soft-pink: #ffe27a; /* 黄色 */
    --blush: #ffffff; /* 白 */
    --line: #d9dde2; /* 境界線 */
    --rose: #c62828; /* 濃い赤 */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #333333;
    background: #ffffff;
    font: 14px/1.75 "Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
    color: #be2525;
}

a: hover {
    text-decoration: none;
}

.site-wrap {
    max-width: 1120px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 2px 22px #00000012;
}

.site-header {
    background: linear-gradient(120deg,#ffffff,#f7f7f7);
    border-bottom: 4px solid var(--pink);
}

.brand-row {
    min-height: 112px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    font-family: Georgia,"Yu Mincho",serif;
    font-size: 35px;
    font-weight: bold;
    color: #c62828;
    text-decoration: none;
    letter-spacing: .03em;
}

.brand span {
    color: #e4a900;
}

.brand-sub {
    margin: 0;
    color: #555555;
    font-weight: bold;
}

.brand-note {
    white-space: nowrap;
    font-weight: bold;
    color: #616161;
}

.promise-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    background: #55585e;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.promise-strip span {
    padding: 9px 6px;
    border-right: 1px solid #ffffff55;
}

.page-columns {
    display: grid;
    grid-template-columns: 225px minmax(0,1fr);
    gap: 20px;
    padding: 20px;
}

.sidebar {
    align-self: start;
    border: 1px solid var(--line);
    background: #fafafa;
}

.sidebar-title {
    background: var(--pink);
    color: #fff;
    font-weight: bold;
    padding: 9px 12px;
}

.sidebar-group {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.sidebar-group h2 {
    margin: 0 0 6px;
    color: #444444;
    font-size: 15px;
}

.sidebar nav {
    display: grid;
}

.sidebar nav a {
    display: block;
    border-top: 1px dotted #dddddd;
    padding: 6px 4px;
    text-decoration: none;
}

.sidebar nav a:hover,.sidebar nav a.current {
    background: #fff4d2;
}

.sidebar-hint {
    padding: 0 12px;
}

.main-content {
    min-width: 0;
}

.breadcrumbs {
    font-size: 12px;
    margin: 0 0 12px;
    color: #666666;
}

.page-heading {
    background: linear-gradient(120deg,#d32f2f,#b71c1c);
    border: 2px solid #ffdd66;
    color: white;
    padding: 17px 22px;
}

.heading-eyebrow {
    font-family: Georgia,serif;
    color: #fff2cc;
    font-size: 12px;
    letter-spacing: .22em;
}

.page-heading h1 {
    font-size: 24px;
    line-height: 1.4;
    margin: 2px 0;
}

.info-line {
    padding: 10px 12px;
    background: #fff7d6;
    border: 1px solid #f1d57b;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.cta {
    background: #c62828;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 22px;
    border-radius: 4px;
    text-align: center;
}

.cta.secondary {
    background: #fff3c7;
    color: #7b1b1b;
    border: 1px solid #ead17c;
}

.section {
    margin: 25px 0 32px;
}

.section-title {
    border-left: 6px solid #c62828;
    background: #f2f3f5;
    border-bottom: 2px solid #d9dde2;
    padding: 9px 12px;
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.rate-note {
    font-weight: bold;
    text-align: center;
    color: #c62828;
}

.offer-card {
    border: 2px solid #f0cb58;
    background: #fffcf0;
    padding: 16px 18px;
    margin: 14px 0;
}

.offer-card h3 {
    text-align: center;
    color: #b71c1c;
    font-size: 18px;
    margin: 0 0 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border-bottom: 1px dotted #e4e4e4;
    font-size: 18px;
}

.price-row span {
    font-weight: bold;
    color: #c62828;
}

.offer-card p {
    margin: 4px 8px 10px;
    font-size: 13px;
}

.offer-card small {
    display: block;
    margin-top: 12px;
}

.rates-box {
    border: 1px solid var(--line);
    padding: 12px 16px;
}

.rates-box h3 {
    margin: 0 0 8px;
    color: #444444;
}

.small {
    font-size: 12px;
}

.muted {
    color: #666666;
}

.steps {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding: 14px 10px;
    background: #fff9e8;
    border: 1px solid #e9dba8;
    min-width: 0;
    text-align: center;
}

.steps li:before {
    content: counter(step);
    display: block;
    margin: 0 auto 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #c62828;
    color: white;
    line-height: 26px;
}

.steps strong,.steps span {
    display: block;
}

.steps span {
    font-size: 12px;
}

.notice {
    padding: 8px 15px;
    background: #ffffff;
    border-left: 3px solid #edbf43;
}

.notice p {
    margin: 8px 0;
}

.demo-warning {
    padding: 12px;
    background: #fff8e2;
    border: 1px solid #f0da98;
    margin: 12px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 205px minmax(0,1fr);
    border: 1px solid #d9dde2;
    border-bottom: none;
    min-width: 0;
}

.form-row:last-of-type {
    border-bottom: 1px solid #d9dde2;
}

.form-row>label:first-child,.field-label {
    padding: 12px;
    background: #f2f3f5;
    font-weight: bold;
    border-right: 1px solid #d9dde2;
}

.form-row>input,.form-row>select,.form-row>textarea,.form-row>div,.form-row>.checkbox-label {
    margin: 10px;
    min-width: 0;
}

.form-row input:not([type=checkbox]),.form-row select,.form-row textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #b8bfc7;
    border-radius: 3px;
    width: calc(100% - 20px);
    max-width: 100%;
    background: white;
}

.form-row>div input {
    width: 100%!important;
}

.form-row em {
    font-style: normal;
    color: #c62828;
    font-size: 11px;
    margin-left: 5px;
}

.form-row p {
    margin: 5px 0;
}

.checkbox-label {
    font-weight: normal!important;
    background: none!important;
    border: 0!important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-label input {
    margin-top: 6px;
    flex-shrink: 0;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.form-buttons button {
    font: inherit;
    font-weight: bold;
    border: 0;
    border-radius: 4px;
    padding: 12px 25px;
    background: #c62828;
    color: #fff;
    cursor: pointer;
}

.form-buttons .reset-button {
    color: #424242;
    background: #e4e6e9;
}

.subheading {
    color: #444444;
    border-bottom: 1px solid #dddddd;
    font-size: 16px;
}

.back-top {
    text-align: right;
}

.footer {
    padding: 24px;
    background: #4b4d52;
    color: white;
    text-align: center;
    font-size: 12px;
}

.footer a {
    color: white;
}

.mobile-only,.menu-toggle {
    display: none;
}

@media(max-width:800px) {
    .page-columns {
        grid-template-columns: 185px minmax(0,1fr);
        gap: 12px;
        padding: 14px;
    }

    .steps {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .brand-row {
        padding: 18px;
    }

    .brand {
        font-size: 29px;
    }

    .brand-note {
        font-size: 11px;
    }

    .promise-strip {
        grid-template-columns: repeat(2,1fr);
    }

}

@media(max-width:640px) {
    body {
        font-size: 15px;
        background: #fff;
    }

    .site-wrap {
        box-shadow: none;
    }

    .brand-row {
        min-height: 0;
        display: block;
        padding: 15px;
    }

    .brand {
        font-size: 28px;
    }

    .brand-note {
        display: inline-block;
        margin-top: 6px;
    }

    .promise-strip {
        font-size: 11px;
    }

    .menu-toggle {
        display: block;
        width: calc(100% - 24px);
        margin: 12px;
        padding: 11px 14px;
        background: #d32f2f;
        color: #fff;
        font: inherit;
        font-weight: bold;
        border: none;
        text-align: left;
        border-radius: 4px;
        cursor: pointer;
    }

    .page-columns {
        display: block;
        padding: 0 12px 20px;
    }

    .sidebar {
        display: none;
        margin: 0 0 16px;
    }

    .sidebar.open {
        display: block;
    }

    .main-content {
        width: 100%;
    }

    .page-heading {
        padding: 14px;
    }

    .page-heading h1 {
        font-size: 21px;
    }

    .section-title {
        font-size: 16px;
    }

    .mobile-only {
        display: block;
    }

    .cta-row>* {
        flex: 1;
        min-width: 130px;
    }

    .offer-card {
        padding: 12px;
    }

    .offer-card h3 {
        font-size: 16px;
    }

    .price-row {
        font-size: 16px;
    }

    .steps {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .form-row {
        display: block;
        border-bottom: 1px solid #d9dde2;
        margin-bottom: 8px;
    }

    .form-row>label:first-child,.field-label {
        display: block;
        padding: 8px 10px;
        border-right: 0;
        border-bottom: 1px solid #d9dde2;
    }

    .form-row>input,.form-row>select,.form-row>textarea,.form-row>div {
        display: block;
        margin: 9px 10px;
        width: calc(100% - 20px);
    }

    .form-row input:not([type=checkbox]),.form-row select,.form-row textarea {
        font-size: 16px;
    }

    .form-row>.checkbox-label {
        display: flex;
        padding: 6px 10px;
    }

    .form-buttons button {
        flex: 1;
        padding: 12px 6px;
    }

    .footer {
        padding: 18px 12px;
    }

}

@media(max-width:360px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .price-row {
        font-size: 15px;
    }

    .brand {
        font-size: 25px;
    }

}

/* --- メールフォームのレスポンシヴ対応 --- */
@media (max-width: 768px){

  /* テーブルをブロック化して縦積みにする */
  table.mailform,
  table.mailform tbody,
  table.mailform tr,
  table.mailform th,
  table.mailform td{
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* nowrapを無効化して折り返しOKに */
  table.mailform th{
    white-space: normal !important;
  }

  /* セルの余白調整（任意） */
  table.mailform th{
    padding: 10px 8px 6px;
  }
  table.mailform td{
    padding: 0 8px 12px;
  }

  /* input/textarea/selectを画面幅に合わせる */
  table.mailform input[type="text"],
  table.mailform input[type="email"],
  table.mailform input[type="tel"],
  table.mailform textarea,
  table.mailform select{
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* cols/size指定で横が出ないようにする */
  table.mailform textarea{
    max-width: 100%;
  }

  /* チェックボックス群が横にはみ出すのを防ぐ */
  table.mailform td{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}