/* =========================================================
   Reset CSS（OrderHub Minimal Reset）
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.link-underline{
    text-decoration: underline;
    text-underline-offset: 3px;
    color: revert;
}
.link-underline:hover{
    text-decoration: underline;
}

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

html {
    -webkit-text-size-adjust: 100%;
}

input,
button,
textarea,
select {
    font-family: inherit;
}

strong,
b {
    font-weight: 600;
}



/* =========================================================
   Variables
   ========================================================= */
:root {
    --primary-color: #014695;
    --light-primary-color: #e8f1ff;
    --accent-color: #0EA5E9;
    --soft-accent-color: #BAE6FD;
    --white: #ffffff;
    --black: #1a1a1a;
    --red: #DC2626;
    --soft-red: #ffded8;
    --text-bold: #1F2937;
    --text-base: #4B5563;
    --text-light: #6B7280;
    --gray-100: #F9FAFB;
    --gray-200: #F3F4F6;
    --gray-400: #CBD5E1;
    --gray-600: #9CA3AF;

    --header-height: 65px;
    --sidebar-width: 255px;

    --font-size-h1: 22px;
    --font-size-h2: 18px;
    --font-size-h3: 15px;
    --font-size-h4: 14px;
    --font-size-h5: 13px;

    --font-size-base: 14px;
    --font-size-small: 12px;
    --font-size-lg: 15px;
}


/* =========================================================
   Global Base
   ========================================================= */
html, body {
    height: 100%;
}

body {
    background: var(--gray-100);
    color: var(--text-base);
    font-family: 'Inter', 'Roboto', 'Noto Sans JP', 'Noto Sans', sans-serif;
    font-size: var(--font-size-base);
}

.layout {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
}

.layout > main {
    flex: 1;
}


/* =========================================================
   Font Size
   ========================================================= */
h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: 500;
}

h5 {
    font-size: var(--font-size-h5);
    font-weight: 500;
}

p {
    font-size: var(--font-size-base);
}

/* =========================================================
   Layout Rules
   ========================================================= */
.w-100 {
    width: 100% !important;
}
.w-50 {
    width: 50% !important;
}

.inner-header {
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================
   Button
   ============================ */

.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    font-size: var(--font-size-base);
    cursor: pointer;
    border: 1px solid transparent;
}


.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 11px 14px;
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: 6px 11px;
    border-radius: 4px;
    font-size: var(--font-size-small);

}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline-primary {
    /* background: transparent; */
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-text-primary {
    background: var(--white);
    color: var(--primary-color);
    border-color: transparent;
}

/* グレー系のアウトラインボタン */
.btn-outline-secondary {
    background: var(--white);
    color: var(--text-base);
    border: 1px solid var(--gray-400);
}

.btn i {
    margin-right: 5px;
    /* アイコンと文字の距離 */
    -webkit-text-stroke: 1px;
}

a.btn.is-disabled{
    opacity: .45;
    pointer-events: none;  /* クリック無効 */
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    background: var(--gray-400);
}

a.btn.is-disabled:hover{
    box-shadow: none;
    transform: none;
}

/* =========================================================
   Header
   ========================================================= */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    background: var(--white);
    z-index: 1000;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 65px;

    padding-left: 112px;
    padding-right: 112px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 24px;
}

.menu-btn {
    display: none;
    font-size: 28px;
    padding: 4px;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-link {
    color: var(--primary-color);
}

.header-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 3px;
}

/* ============================
   Error
   ============================ */
.error::before {
    content: "＊";
}

.error {
    color: var(--red);
    font-weight: 600;
}

.error-area {
    height: 30px;
    text-align: center;
    font-size: var(--font-size-h2);
    background-color: var(--soft-red);
    color: var(--red);
}


/* =========================================================
   Footer
   ========================================================= */
.footer {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    min-height: 254px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 80px;
    display: flex;
    justify-content: flex-start;
    gap: 80px;
}

.footer-col h4 {
    margin-bottom: 14px;
    font-weight: bold;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--white);
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
}


/* ============================
   Sidebar
   ============================ */

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    z-index: 1000;
}

.sidebar-inner {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.sidebar-logo img {
    height: 24px;
}

/* MENU ラベル */
.sidebar-label {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.08em;
}

.cms-sidebar-label {
    padding: 0 0 12px;
    font-weight: 800;
    letter-spacing: .6px;
}

/* ナビ本体 */
.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-nav ul i {
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-text-stroke: 0.5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-base);
    padding: 2px 0;
}

.sidebar-nav li.is-active {
    color: var(--primary-color);
}

.sidebar-nav li.is-active > a {
    color: var(--primary-color);
}

.sidebar-nav-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    /* 非アクティブ時のベース色はグレー */
    filter: grayscale(1);
    opacity: 0.8;
}


/* ボタンをaタグっぽくする（既存CSSがあっても邪魔しにくい最小限） */
.sidebar-nav .content-menu-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: inherit;
    font: inherit;
}

/* sub menuの見た目（最低限） */
.sidebar-sub-nav {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.sidebar-nav li.has-children.is-open .chev {
    transform: rotate(90deg);
}

/* 初期は閉じる */
.sidebar-nav li.has-children .sidebar-sub-nav {
    display: none;
}

/* 開いたときだけ表示 */
.sidebar-nav li.has-children.is-open .sidebar-sub-nav {
    display: block;
}

/* アクティブ行のアイコンだけカラーに */
.sidebar-nav li.is-active .sidebar-nav-icon {
    filter: none;
    opacity: 1;
}

/* お問い合わせボックス */
.sidebar-contact {
    padding: 16px;
    background: var(--gray-100);
    border-radius: 6px;
}

.contact-label {
    font-weight: 600;
    color: var(--text-bold);
    margin-bottom: 4px;
}

.contact-text {
    font-size: var(--font-size-small);
    color: var(--text-base);
    margin-bottom: 12px;
}

/* お問い合わせボタンの中に電話アイコン */

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    border: 1px solid var(--gray-600);
}


/* ============================
   リンクをホバーしたときの動作
   ============================ */
.link-back:hover {
    text-decoration: underline;
}

.link {
    /* text-decoration: var(--primary-color); */
    color: var(--primary-color);
}

.link:hover {
    text-decoration: underline;
}



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

.page-home {
    padding-top: 32px;
    padding-bottom: 48px;
}

.section {
    margin-top: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.section-lead {
    margin-top: 4px;
}

.row {
    display: grid;
    gap: 24px;
}

.row-2 {
    grid-template-columns: 1fr 1fr;
}


/* ============================
   Style Guide Page
============================ */
.page-styleguide {
    background: var(--white);
}

.page-styleguide section {
    margin-bottom: 40px;
}

.page-styleguide h1,
.page-styleguide h2 {
    margin-bottom: 16px;
}

/* ---------- Colors ---------- */

.color-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.color-swatch {
    width: 120px;
    text-align: center;
    font-size: var(--font-size-small);
}

.color-box {
    width: 100%;
    height: 60px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    margin-bottom: 6px;
}

/* ---------- Buttons ---------- */

.button-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.button-grid.size {
    align-items: flex-end;
}

.button-block {
    margin-top: 24px;
}

.button-subtitle {
    margin-bottom: 8px;
    font-size: var(--font-size-h4);
    font-weight: 600;
}

.button-block .button-grid .btn,
.button-block .button-grid .btn-sm,
.button-block .button-grid .btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Fonts ---------- */

.font-samples h1,
.font-samples h2,
.font-samples h3,
.font-samples h4,
.font-samples h5,
.font-samples p {
    margin-bottom: 12px;
}

/* ---------- Code Block ---------- */

.code-block {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    overflow-x: auto;
    margin-top: 12px;
}

.code-block code {
    white-space: pre;
    display: block;
}


/* ============================
   アラート関連
   ============================ */

.alert-danger,
.alert-success {
    font-size: var(--font-size-h2);
    text-align: center;
    padding: 10px;
}

.alert-success {
    background: var(--light-primary-color);
}

.alert-danger {
    background: var(--soft-red);
}

/* ============================
   Hero（画像スライダーの枠）
   ============================ */

.hero {
    margin-bottom: 40px;
}

.hero-inner {
    border-radius: 8px;
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.hero-slides {
    position: relative;
}

.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide img {
    width: 100%;
}

/* 矢印・ドット：色は変数のみ */
.hero-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.hero-arrow {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    pointer-events: auto;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--white);
    background: transparent;
}

.hero-dot.is-active {
    background: var(--white);
}



/* ============================
   Card
   ============================ */

.card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-400);
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-media img {
    border-radius: 6px;
    display: block;
    width: 70%;
    margin: 0 auto;
    padding: 30px 0px;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.card-title-left {
    color: var(--text-bold);
    margin-bottom: 8px;
}

.card-text {
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-meta {
    margin-bottom: 12px;
}

.card-meta-row {
    background: var(--gray-100);
    margin-bottom: 10px;
    border-radius: 6px;
    padding: 10px;
}

.card-meta-row dt {
    color: var(--text-base);
}

.card-meta-row dd {
    font-weight: 600;
    color: var(--text-bold);
    margin: 0;
}

.card-list {
    color: var(--black);
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin-bottom: 4px;
}

.card-list-icon {
    color: var(--primary-color);
    font-size: var(--font-size-base);
    margin-top: 2px;
}

.card-list li span {
    color: var(--black);
}

.card-footer {
    margin-top: auto;
    padding-top: 8px;
}



/* ============================
   List / Tag
   ============================ */

.list-row+.list-row {
    margin-top: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 4px;
    background: var(--gray-200);
    color: var(--text-base);
}



/* ============================
   ログインページ
============================ */

.page-login {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.login-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 32px;
    border-radius: 8px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.04);
}

.login-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.login-subtext {
    font-size: var(--font-size-small);
    color: var(--text-base);
    margin-bottom: 24px;
}

/* -------- FORM -------- */

.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    font-size: var(--font-size-base);
    background: var(--white);
}

.forgot-link {
    font-size: var(--font-size-small);
    color: var(--primary-color);
}

.login-note {
    margin-top: 20px;
    font-size: var(--font-size-small);
    color: var(--text-base);
}

/* セレクト関係 */
.select-wrap {
    position: relative;
}

.select-wrap select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.select-wrap::after {
    content: "";
    position: absolute;
    pointer-events: none;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--gray-600);
}


/* ================================
   ページヘッダー（画像内の青い帯）
   ================================ */
.page-header {
    background-color: var(--primary-color);
    padding: 24px 48px;
    color: var(--white);
    position: sticky;
    top: 65px;
    z-index: 2000; /* これがないとコンテンツが画面のヘッダーの上に被ることがあるため入れておく */
}

.page-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 0px 30px;
}

.page-header-inner > div {
    display: flex;
    gap: 16px;
}

/* マイページの人型のアイコン */
.mypage-icon {
    color: var(--white);
    font-size: 38px;
}


/* ================================
   コンテンツエリア内
   ================================ */
.content-area {
    margin-bottom: 50px;
}


/* ================================
   マイページ
   ================================ */

/* セクションタイトルと下線 */
.content-title {
    margin-bottom: 10px;
}

/* カード一覧：横並び */
.content-area .card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    margin-top: 15px;
}

/* コンテンツ内カード */
.content-area a.card {
    align-items: center;
    width: 290px;
}

/* ホバー時の軽い浮き */
.content-area a.card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.content-area .card-section {
    margin-top: 50px;
}

/* アイコンの丸背景部分 */
.content-area .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 30px;
}

/* タイトル・説明文 */
.content-area .card-content {
    text-align: center;
}

.content-area .card-title {
    color: var(--black);
}

.content-area .card-description {
    font-size: var(--font-size-small);
    color: var(--text-base);
}

.content-note {
    margin-bottom: 15px;
}

/* ================================
   お見積り作成画面
   ================================ */
.content-area .card-media img {
    width: 100%;
    border-radius: 0;
    padding: 0;
}

/* 納期 / 最小ロットを横並びにする */
.content-area .card-meta {
    margin-top: 20px;
    margin-bottom: 12px;   /* 既存のままでもOK */
    display: flex;         /* 横並び */
    gap: 16px;             /* ボックス間の余白 */
}

.content-area .card-meta-row {
    background: var(--gray-100);
    margin-bottom: 0;      /* 縦方向の余白は gap に任せる */
    border-radius: 6px;
    padding: 10px;
    flex: 1;               /* 2つを等幅にする */
}

.quantity-unit {
    position: absolute;
    right: 35px;
    top: 25px;
    transform: translateY(-50%);
}

.delivery-table {
    width: 100%;
    border-collapse: collapse;
    /* table-layout: fixed; */
}

.delivery-table__head {
    padding: 10px 8px;
    border: 1px solid var(--gray-200);
    background: var(--gray-200);
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

.delivery-table__head--blank {
    width: 120px;
}

.delivery-table__row-title {
    padding: 10px 8px;
    border: 1px solid var(--gray-200);
    text-align: left;
    font-weight: 600;
    background: var(--gray-100);
    white-space: nowrap;
}

.delivery-table td {
    padding: 10px 8px;
    border: 1px solid var(--gray-200);
    text-align: center;
    padding: 4px;
}

.delivery-note {
    margin-top: 10px;
}

.delivery-table tbody td:hover {
    background-color: var(--light-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.delivery-table tbody td:active {
    outline: 3px solid var(--primary-color);
}

td.is-active {
    outline: 3px solid var(--primary-color);
    background-color: var(--light-primary-color);
    outline-offset: -3px; /* 内側に描画 */
}

/* ===== Options ===== */

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.option-row .form-wrap.right {
    width: 350px;
    display: flex;
}

.option-row .form-select {
    width: 150px;
    padding: 15px 14px;
    margin-right: 20px;
}

.option-delivery-day {
    color: var(--red);
    font-weight: 700;
}

.estimate-name .form-wrap {
    display: flex;
}

.estimate-name .form-wrap label {
    width: 100px;
    margin: auto 0;
}

.estimate_name_error {
    margin-left: 90px;
}


/* エラーメッセージ（下段） */
.form-wrap .input-error{
    display: none;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    color: var(--red);
}

/* エラー状態（JSで .is-error を form-wrap に付ける想定） */
.form-wrap.is-error .form-input{
    border-color: var(--red);
    background: var(--soft-red);
}

.form-wrap.is-error .input-error{
    display: block;
}



/* ↓ここから */

.confirm-grid {
    margin: 20px;
}

.confirm-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--gray-200);
    padding: 15px 15px;
}

.confirm-row:last-child {
    margin-bottom: 20px;
}

.confirm-row:not(:last-child) .confirm-td {
    font-weight: 700;
}

.confirm-list li::before {
    content: "・";
}

.price-box {
    border-radius: 8px;
    background: var(--light-primary-color);
    padding: 14px 14px 12px;
}

.price-breakdown,
.price-total {
    width: 50%;
    margin-left: auto;
}

.price-total {
    display: flex;
}

.price-total__value {
    margin-left: auto;
}

.price-total__yen {
    color: var(--primary-color);
    font-size: var(--font-size-h1);
    font-weight: 700;
}

.price-total__label,
.price-row {
    font-weight: 700;
}

.price-row,
.price-subrow {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.price-row {
    margin: 10px 0;
}

.price-row:last-child {
    border-bottom: 1pt solid var(--gray-400);
    padding-bottom: 10px;
}

.price-subrows {
    width: 95%;
    margin-left: auto;
}

.confirm-actions {
    display: grid;
    max-width: 400px;
    margin: 18px auto 0;
    gap: 10px;
}




/* ↑ここまで */


/* ================================
   お見積り作成STEPサイドバー
   ================================ */

/* ステップリスト */
.steps {
    margin: 0 0 24px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    position: relative;
    font-size: var(--font-size-h3);
    font-weight: 600;
    opacity: 0.45;
}

.step::after {
    content: "";
    position: absolute;
    left: 22px;           /* バッジの中心に合わせる値（バッジサイズ 22px 想定） */
    top: 22px;            /* バッジの下あたりからスタート */
    bottom: -15px;         /* 次のステップとの間まで伸ばす（お好みで調整） */
    width: 3px;
    background: var(--gray-200);  /* デフォルトはグレー */
}

/* 一番下のステップは線を描かない */
.step:last-child::after {
    content: none;
}

/* バッジを線の上に見せるために z-index を上げる */
.step__badge {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    font-weight: 700;
    z-index: 1;
    line-height: 1;
    /* margin: 0 3px; */
}

/* ラベル全体を縦並びに */
.step__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step__sub {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

/* 戻るリンク */
.sidebar__back {
    display: inline-flex;
    margin: 8px 0 24px;
    color: var(--primary-color);
}

.step-summary {
    width: 160px;
    border-radius: 10px;
    background: var(--light-primary-color);
    padding: 15px 15px 0 15px;
    margin-top: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    font-size: var(--font-size-small);
}

.step-summary dd {
    color: var(--gray-600);
    font-weight: 600;
    font-size: var(--font-size-small);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-base);
    white-space: nowrap;
}

.chip--long {
    background: rgba(var(--primary-rgb), 0.05);
    /* font-size: 11.5px; */
}

.summary-scroll {
    /* display: flex; */
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin; /* Firefox */
}

/* WebKit系 */
.summary-scroll::-webkit-scrollbar {
    height: 6px;
}

.summary-scroll::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.25);
    border-radius: 3px;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.border-bottom {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
}


/* ------- 状態ごとの色変化 ------- */

.step.is-complete {
    align-items: flex-start;
    opacity: 0.85;
}

.step.is-active {
    opacity: 0.85;
    font-weight: 700;
}

/* 完了ステップ：バッジと線を青に */
.step.is-complete .step__badge {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.step.step.is-complete .step__label {
    margin-top: 3px;
}

.step.is-complete::after {
    background: var(--primary-color);
}

/* アクティブステップ：バッジだけ青枠／線はまだグレー */
.step.is-active .step__badge {
    background: var(--primary-color);
    color: var(--white);
}

.step.is-active .step__label {
    color: var(--primary-color);
    font-weight: 700;
}




/* =====================
   見積もり履歴
   ===================== */

/* ========== 見積もり履歴 ========== */
/* 履歴カード */
.history-card {
    background: var(--white);
    border: 2px solid var(--gray-400);
    border-radius: 10px;
    /* padding: 14px 16px 12px; */
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.history-card:last-child {
    margin-top: 20px;
}

/* 上部のメタ（薄い帯） */
.history-meta {
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* 本体：左（内容）＋右（金額） */
.history-body {
    display: grid;
    grid-template-columns: 1fr 330px;
    /* gap: 16px;
    align-items: start; */
    padding: 30px;
}

/* @media (max-width: 980px) {
    .history-body {
        grid-template-columns: 1fr;
    }
} */

.history-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 0;
    /* border-bottom: 1px solid var(--gray-200); */
}

.history-row dd {
    font-weight: 700;
}

.history-row dd .history-option-list li::before {
    content: "・";
}

.history-row dd .history-option-list li {
    font-weight: 500;
}

/* オプションの箇条書き */
/* .history-option-list {
    margin: 0;
    padding-left: 16px;
}

/* 右側：金額ボックス */
.history-price {
    background: var(--light-primary-color);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
}

.history-price > div {
    display: flex;
}

.price-total__label {
    min-width: 110px;
}

.history-price .price-subrows {
    color: var(--gray-600);
}

/* 下部ボタン列 */
.history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}


/* =====================
   モーダル
   ===================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none; /* JS で block にする */
}

/* 背景の暗い＆ぼかし部分 */
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

/* 中央のダイアログ */
.modal-dialog {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 8px;
    padding: 24px 32px 20px;
}

/* 表示状態用クラス */
.modal.is-active {
    display: block;
}

/* モーダル内レイアウト */
.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-title::before {
    content: "ⓘ";
    margin-right: 5px;
    padding: 5px;
    background: var(--light-primary-color);
    text-align: center;
    font-weight: 700;
    border-radius: 50%;
    color: var(--primary-color);
}

.modal-lead {
    margin: 4px 0 16px;
}

.modal-service {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--light-primary-color);
    margin-bottom: 12px;
}

.modal-service-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: var(--font-size-h2);
    margin-left: 3px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal .bi-check-circle::before {
    color: var(--primary-color);
    font-size: var(--font-size-h1);
    width: 22px;
    height: 21px;
    background-color: var(--white);
    border-radius: 50%;
    margin-top: 8px;
}

/* ===== Radio: “チップ”風 / 均等配置 / 周りのフォームと統一 ===== */
.order-option-check-input {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3択想定。2択/4択なら数字を変える */
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

/* label を “ボタン” っぽくする */
.form-wrap .order-option-check-input label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;               /* 他フォームの高さ感に寄せる */
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    /* justify-content: flex-start; */
    /* width: 100%; */
    /* border: 1px solid var(--gray-300); */
    /* background: var(--white); */
    /* font-size: 14px; */
    /* color: var(--text-base); */
    /* user-select: none; */
    /* transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .05s ease; */
}

/* hover（シンプルに） */
.form-wrap .order-option-check-input label:hover {
    background:  var(--light-primary-color);
}

/* radio本体：四角のチェック */
.form-wrap .order-option-check-input input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--gray-400);
    border-radius: 4px;
    background: var(--white);
    flex: 0 0 auto;
    display: grid;
    place-content: center;
    transition: border-color .15s ease, background-color .15s ease;
}

/* checked のとき：中のチェック + ラベル全体も強調 */
.form-wrap .order-option-check-input input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

/* 選択時にラベル全体を薄く色づけ */
.form-wrap .order-option-check-input label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background:  var(--light-primary-color);
    box-shadow: 0 0 0 3px rgba(13, 94, 168, 0.12);
}

/* スマホでは縦に落とす（読みやすい） */
@media (max-width: 640px) {
    .order-option-check-input {
        grid-template-columns: 1fr;
    }
}

.option-form-wrap {
    margin: 15px;
}

.option-form-wrap label {
    min-height: 44px;
    margin: 15px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
}

.option-form-wrap label:hover {
    background: var(--light-primary-color);
}

.option-form-wrap input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--gray-400);
    border-radius: 4px;
    background: var(--white);
    flex: 0 0 auto;
    /* display: grid;
    place-content: center;
    transition: border-color .15s ease, background-color .15s ease; */
}

/* checked のとき：中のチェック + ラベル全体も強調 */
.option-form-wrap input[type="checkbox"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

/* 選択時にラベル全体を薄く色づけ */
.option-form-wrap label:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-color);
    background:  var(--light-primary-color);
    box-shadow: 0 0 0 3px rgba(13, 94, 168, 0.12);
}

/* ===== フォームカード ===== */
.form-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-help-link {
    font-size: var(--font-size-small);
    color: var(--primary-color);
}

.form-help-link::before {
    content: "ⓘ";
    font-size: var(--font-size-small);
    margin-right: 5px;
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--gray-400);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
      linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    line-height: 1.5;
}

.form-select-radio {
    /* width: 100%; */
    padding: 12px 14px;
    /* border-radius: 6px;
    border: 1px solid var(--gray-400);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
      linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    line-height: 1.5; */
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--gray-400);
    appearance: none;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    line-height: 1.5;
}

.form-footer {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.form-wrap {
    position: relative;
    width: 100%;
}

.form-wrap.right {
    width: 300px;
    text-align: right;
}

.page-title {
    font-weight: 700;
    margin: 0 0 8px;
}


/* ============================
   注文ページ本体
   ============================ */
.order-page {
    padding-top: 24px;
    padding-bottom: 65px;
}

.order-section-header {
    margin-bottom: 24px;
    margin-top: 8px;
}

.order-section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 4px;
}

.order-section-caption {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

/* 2カラムレイアウト */
.order-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    margin-top: 8px;
}

/* ============================
   左：注文詳細カード
   ============================ */

.order-detail-card {
    padding: 24px 38px;
}

.detail-table {
    width: 100%;
}

.detail-row {
    display: grid;
    grid-template-columns: 80px 1fr 72px;
    column-gap: 18px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-row.detail-row-multi {
    align-items: flex-start;
}

.detail-label {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--text-light);
}

.detail-main {
    font-size: var(--font-size-small);
    color: var(--text-base);
}

.detail-action {
    text-align: right;
}

.detail-row-multi .detail-main {
    padding-top: 2px;
}



.order-page .detail-main > ul,
.order-page .detail-main > ol {
    list-style: disc;
    padding-left: 1.4em;
}

.detail-list li {
    margin-bottom: 6px;
}

/* ============================
   右：サマリーカード
   ============================ */
.order-summary-card {
    padding: 22px 20px 20px;
}

.card.order-summary-card {
    display: block;
}

.summary-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-label {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

.summary-qty-box {
    min-width: 72px;
    padding: 5px 10px;
    text-align: left;
    border: 1px solid var(--gray-400);
    background: var(--white);
    font-size: var(--font-size-small);
}

.summary-leadtime {
    border: 1px solid var(--soft-accent-color);
    padding: 8px 10px;
    margin-bottom: 18px;
    border-radius: 3px;
}

.leadtime-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 4px 0;
    background: transparent;
    border: none;
}

.leadtime-item + .leadtime-item {
    margin-top: 6px;
}

.leadtime-label {
    font-size: var(--font-size-small);
    color: var(--text-base);
    margin-bottom: 2px;
}

.leadtime-date {
    font-size: var(--font-size-small);
    font-weight: 700;
    color: var(--primary-color);
}

.leadtime-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--accent-color);
    color: var(--white);
    white-space: nowrap;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 18px 0;

    margin-top: 18px;
    margin-bottom: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.summary-total-label {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

.summary-total-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.summary-total-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-bold);
}

.summary-total-unit {
    font-size: var(--font-size-small);
}

.summary-submit {
    width: 100%;
    margin-bottom: 10px;
}

.summary-download {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


/* ============================
   注文最終ページ（1カラム縦長）
   ============================ */

.order-final-page {
    padding-top: 24px;
    padding-bottom: 80px;
}

.order-final-section {
    margin-bottom: 32px;
}

/* スクロール位置調整（固定ヘッダー分のオフセット） */
#proof-shipping,
#delivery-shipping {
    scroll-margin-top: 250px;
}

.order-final-heading {
    margin-bottom: 20px;
    color: var(--black);
}

/* --- ご注文内容カード -------------------------------- */

.order-final-summary {
    padding: 24px 35px 32px;
    gap: 0px;
}

.order-final-summary .detail-row {
    grid-template-columns: 100px 1fr;
    border-bottom: 1px solid var(--gray-400);
    padding: 16px 0;
}

/* 一番最後のrowだけ下線なし */
.order-final-summary .detail-row:last-child {
    border-bottom: none;
}

hr.order-separate-dotted {
    border: none;
    border-top: 2px dotted var(--gray-400);
    margin-top: 24px;
}

.order-final-summary .detail-label {
    font-size: var(--font-size-lg);
}

.order-final-summary .detail-main {
    font-size: var(--font-size-lg);
}

.order-final-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.order-final-qty-row .detail-label {
    flex: 0 0 auto;
    min-width: 45px;
    white-space: nowrap;
}

.order-final-note-danger {
    margin-top: 6px;
    font-size: 11px;
    color: var(--red);
}


.btn-outline-secondary.order-edit {
    border: 1px solid var(--gray-600);
}

/* --- 配送先カード ------------------------------------ */

.order-address-card {
    padding: 35px;
}

.order-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-lg);
}

.order-address-card > hr.order-separate-dotted,
.order-address-card > hr.order-separate-dotted {
    border-top: 1px dotted var(--gray-400);
    margin-top: 0px;
}

.order-address-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-base);
}

.order-address-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 2px;
    font-size: var(--font-size-base);
    color: var(--text-base);
    margin-bottom: 16px;
}

.order-address-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-address-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-address-field-label {
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.05em;
}

.order-address-field-value {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--text-bold);
    line-height: 1.4;
}

.order-address-field-text {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-bold);
    line-height: 1.4;
}

/* 下部の細い行（配送伝票の種類 ～） */

.order-slip-section {
    margin-top: 18px;
}

.order-slip-title {
    margin-bottom: 8px;
}

.order-slip-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-slip-label {
    font-size: var(--font-size-base);
    color: var(--text-light);
    white-space: nowrap;
    font-weight: 600;
}

/* --- 説明文カード（キャンセル / 納品後） -------------- */

.order-info-card {
    padding: 24px 20px;
    font-size: var(--font-size-base);
}

.order-info-card.no-gap {
    gap: 0px;
}

.order-info-danger {
    color: var(--red);
    margin-bottom: 4px;
}

.order-info-text {
    color: var(--text-base);
    line-height: 1.6;
}

.order-info-list {
    margin-top: 6px;
    padding-left: 1.4em;
    list-style: disc;
}

.order-info-list li {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* --- 下部フォーム ------------------------------------ */
.form-label {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.badge-required {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: var(--font-size-small);
    line-height: 1.6;
    border-radius: 3px;
    background: var(--red);
    color: var(--white);
    vertical-align: middle;
}

.order-form-section .form-group {
    margin-bottom: 20px;
}

.order-consent-row {
    border-top: 1px solid var(--gray-400);
    margin-top: 34px;
    margin-bottom: 18px;
    padding-top: 24px;
    text-align: center;
}

.order-consent-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-base);
    color: var(--text-base);
}

.order-consent-item input {
    width: 16px;
    height: 16px;
}

.order-submit-area {
    text-align: center;
}

.order-submit-btn {
    min-width: 360px;
}

.order-submit-note {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.6;
}





/* =========================
     BackEnd CMS　↓ここから
  ========================= */

/* =========================
     Content wrapper
  ========================= */

.cms-content {
    padding-top: 14px;
}

/* =========================
     Search bar
  ========================= */

.search-bar {
    max-width: 720px;
    margin: 0 auto 14px;
    padding: 14px 14px;
    background: var(--white);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 52px 1fr 80px;
    align-items: center;
    gap: 10px;
}

.search-bar__label {
    font-weight: 700;
    color: var(--text);
}

.search-bar__input {
    outline: none;
    border: none;
}

.search-bar__btn {
    height: 34px;
    border-radius: 6px;
    background: var(--primary-color);
    color: var(--white);
}


/* =========================
     Pager
  ========================= */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 18px 0 18px;
}
  
.pager-btn,
.pager-num {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--gray-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
  
.pager-num.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}
  
.pager-btn[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none;
}

.pager-ellipsis{
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}



/* =========================
     Table
  ========================= */
.table-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: 8px;
    overflow: hidden;
}

.cms-table thead th {
    background: var(--gray-200);
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-400);
}

.cms-table tbody td {
    border-bottom: 1px solid var(--gray-400);
    font-size: var(--font-size-small);
}

.cms-table tbody td:not(:last-child) {
    padding-left: 10px;
}

.cms-table tbody tr:last-child td {
    border-bottom: none;
}

/* 縦の罫線（画像の雰囲気） */
.cms-table th + th,
.cms-table td + td {
    border-left: 1px solid var(--gray-400);
}

.col-num {
    width: 16%;
}

.col-actions {
    width: 18%;
}

/* 操作ボタン（右端の縦並び） */
.row-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;  /* row-actions__btn:first-childとここは同じマージン */
}

.row-actions .row-actions__btn:first-child {
    margin-top: 8px;  /* row-actionsmargin-bottomとここは同じマージン */
}

.row-actions__btn {
    width: 115px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--gray-400);
    font-weight: 800;
}

form .card {
    margin-bottom: 20px;
}

.form-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center; /* 横中央 */
    gap: 12px;              /* ボタン間の余白 */
}


/* お問合せ */
.thanks-center {
    text-align: center;
    margin: 0 auto;
    margin-bottom: 24px;
}

.thanks-center p {
    font-size: var(--font-size-lg);
}

.thanks-center .page-title {
    font-weight: 700;
    margin: 0 0 16px;
}

.card.contact-thanks {
    max-width: 600px;
    margin: 0 auto;
    gap: 25px;
}

.help {
    font-size: var(--font-size-small);
}


/* 問い合わせベルマーク */
.bell-icon {
    color: var(--primary-color);
    font-size: 25px;
    margin-left: 8px;
}

.bell-wrap{
    position: relative;
    display: inline-block;
}

.bell-badge{
    position: absolute;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* 問い合わせ詳細 */
.contact-page {
    max-width: 1150px;
    margin-top: 24px;
}

.contact-detail-meta {
    margin-bottom: 12px;
}

.contact-detail-meta .meta-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-detail-meta .meta-k{
    font-size: var(--font-size-small);
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-detail-meta .meta-v{
    color: var(--text-bold);
    font-weight: 700;
}

.contact-thread{
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.mail-item{
    padding: 16px 18px;
}

.mail-head{
    display:flex;
    justify-content: flex-end;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 10px;
}

.mail-from{
    font-weight: 800;
    color: var(--text-bold);
}

.mail-date{
    font-size: var(--font-size-small);
    color: var(--text-light);
    font-weight: 700;
}

.mail-attachments{
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--gray-400);
}

.att-title{
    font-size: var(--font-size-small);
    font-weight: 800;
    color: var(--text-bold);
    margin-bottom: 6px;
}

.att-list{
    margin: 0;
    padding-left: 1.2em;
}


.reply-dialog {
    width: min(720px, calc(100% - 24px));
    border: none;
    padding: 0;
    border-radius: 12px;
}

.reply-dialog::backdrop {
    background: rgba(0,0,0,.35);
}

.reply-dialog__inner {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.reply-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--gray-200);
    border-bottom: 1px solid var(--gray-400);
}

.reply-dialog__title {
    font-weight: 700;
    color: var(--text-bold);
}

.reply-dialog__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--gray-400);
    background: var(--white);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.reply-dialog__body {
    padding: 16px;
}
  
.contact-actions--right{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.form-actions--right{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.contact-reply {
    margin-top: 18px;
}

.contact-tabs{
    display:flex;
    gap:10px;
    margin: 6px 0 14px;
}

.contact-tab{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 8px 12px;
    border: 1px solid var(--gray-400);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-base);
    font-weight: 700;
    text-decoration: none;
}

.contact-tab.is-active{
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.contact-note--closed{
    font-size: var(--font-size-small);
    color: var(--text-light);
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    border-radius: 6px;
}

/* ============================
   問い合わせ一覧（CMS）テーブル
   ============================ */
.cms-table th,
.cms-table td {
  border: 1px solid var(--gray-400);
  padding: 14px 12px;          /* 画像の行高さ寄せ */
  vertical-align: middle;
}

.cms-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.cms-table--inquiry {
    width: 100%;
    table-layout: fixed; /* ←これが重要 */
}
  
/* 日時：固定 */
.cms-table--inquiry th.col-date,
.cms-table--inquiry td.col-date {
    width: 180px;
    white-space: nowrap;
}
  
/* 顧客：やや広め */
.cms-table--inquiry th.col-customer,
.cms-table--inquiry td.col-customer {
    width: 270px;
}
  
/* 種別：中くらい（リンクが多いなら少し広げる） */
.cms-table--inquiry th.col-kind,
.cms-table--inquiry td.col-kind {
    width: 300px;
    white-space: nowrap;
}
  
/* 内容：残り全部 + 省略 */
.cms-table--inquiry th.col-message,
.cms-table--inquiry td.col-message {
    width: auto;
}
  
.cms-table--inquiry td.col-message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
  

tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: var(--gray-100); }


.inquiry-meta-row--status{
    display: flex;
    align-items: flex-end;  /* ラベル/値の下端に揃える */
    justify-content: space-between;
    gap: 16px;
}

.inquiry-meta-label{
    font-size: var(--font-size-small);
    color: var(--text-light);
    font-weight: 700;
}

.inquiry-meta-value{
    margin-top: 6px;
    font-size: var(--font-size-base);
    color: var(--text-bold);
    font-weight: 700;
}

.inquiry-meta-action{
    margin-left: auto;
}

.badge-read{
    display:inline-block;
    margin-left:8px;
    padding:2px 8px;
    font-size: var(--font-size-small);
    border-radius: 4px;
    line-height:1.4;
    background:var(--light-primary-color);
    color:var(--white);
    vertical-align:middle;
}

.badge-unread{
    display:inline-block;
    margin-left:8px;
    padding:2px 8px;
    font-size: var(--font-size-small);
    border-radius: 4px;
    line-height:1.4;
    background:var(--red);
    color:var(--white);
    vertical-align:middle;
}

.contact.table-wrap {
    max-width: 920px;
    align-items: center;
}

.mail-item--row{
    padding: 20px 18px;
}

.mail-row{
    display: grid;
    grid-template-columns: 150px 1px 1fr; /* 左の日付幅は好みで調整 */
    column-gap: 16px;
    align-items: start;
}

.mail-date-col{
    font-size: var(--font-size-small);
    color: var(--text-light);
    font-weight: 700;
    white-space: nowrap;
}

.mail-divider{
    background: var(--gray-200);
    width: 1px;
    height: 100%;
}

.mail-body-col{
    min-width: 0; /* 長文折返し安定 */
}

.mail-body{
    line-height: 1.5;
    color: var(--text-base);
    white-space: normal;
    word-break: break-word;
}

.mail-user{
    font-weight: 800;
    color: var(--text-bold);
    line-height: 1.3;
    margin-bottom: 6px;
}

/* ユーザー名の下の破線 */
.mail-user-divider{
    border-top: 1px dashed var(--gray-400);
    margin-bottom: 8px;
}

/* 左カラム：日付（既存の mail-date-col を使う想定） */
.mail-date-col .mail-date{
    font-size: var(--font-size-small);
    color: var(--text-light);
    font-weight: 700;
    white-space: nowrap;
}

.contact.page-header {
    padding: 16px 40px;
}
.contact.page-title {
    font-size: var(--font-size-h2);
}
.contact.page-subtitle {
    font-size: var(--font-size-base);
}

.notice {
    color: var(--red);
    font-size: var(--font-size-small);
}





/* ============================
   配送先ページ
   ============================ */

/* セクションヘッダー（タイトル + ボタン） */
.section-shipping-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* カードリスト */
.shipping-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* 配送先カード共通 */
.shipping-card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    position: relative;
}

/* 選択中のカード */
.shipping-card.is-selected {
    background-color: var(--light-primary-color);
    border-color: var(--primary-color);
    box-shadow: 0px 0px 0px 2px var(--primary-color);
}

/* カード左側（配送先情報） */
.shipping-card-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 479px;
}

/* カード右側（運送会社・時間指定など） */
.shipping-card-right {
    position: relative;
    flex: 1;
    min-height: 206px;
    border-left: 1px solid var(--gray-200);
    padding-left: 33px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* フィールドグループ */
.shipping-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shipping-field-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 11px;
    padding-bottom: 2px;
}

.shipping-field-kana {
    font-size: 12px;
    color: var(--text-base);
    line-height: 16.8px;
}

.shipping-field-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bold);
    line-height: 22.4px;
}

.shipping-field-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-bold);
    line-height: 21px;
}

.shipping-field-text-sm {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-bold);
    line-height: 19.5px;
}

/* カードアクションボタン */
.shipping-card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

/* 選択中ラベル */
.shipping-selected-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 5.5px 12px 7.5px;
}

/* 削除ボタン（ゴミ箱） */
.shipping-delete-btn {
    position: absolute;
    top: 8px;
    right: 11px;
    padding: 6px;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.shipping-delete-btn:hover {
    background-color: var(--gray-100);
}

.shipping-delete-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ============================
   配送先モーダル
   ============================ */

.modal-shipping .modal-dialog-shipping {
    position: relative;
    max-width: 600px;
    width: 600px;
    max-height: 90vh;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 10px 10px -5px rgba(0, 0, 0, 0.04), 0px 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header-shipping {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title-shipping {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text-bold);
    line-height: 1;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--gray-600);
}

.modal-close-btn:hover {
    color: var(--text-bold);
}

.modal-body-shipping {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-section-border-top {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.modal-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.modal-section-header i {
    font-size: var(--font-size-h3);
    color: var(--text-bold);
}

.modal-section-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--text-bold);
    line-height: 1;
}

.modal-form-group-mt {
    margin-top: 16px;
}

.modal-form-row {
    display: flex;
    gap: 16px;
}

.modal-form-group-sm {
    flex: 0 0 auto;
    width: 140px;
}

.modal-form-group-flex {
    flex: 1;
}

.modal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-bold);
    cursor: pointer;
}

.modal-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.modal-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.modal-proxy-options {
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--gray-200);
}

.modal-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: 6px;
}

.modal-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-base);
    color: var(--text-bold);
    cursor: pointer;
}

.modal-radio {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.modal-shipper-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.modal-footer-shipping {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}

.modal-footer-shipping .btn {
    min-width: 120px;
}