/* =========================================================
   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: var(--link-text-color);
}

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;
    --link-text-color: #0066cc;
    --text-bold: #1F2937;
    --text-base: #4B5563;
    --text-light: #6B7280;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-300: #EAEAEA;
    --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;
    font-weight: 100;
}


.btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.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-danger {
    background: var(--red);
    color: var(--white);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline-primary {
    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-300);
}

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

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

.history-actions a.in-line {
    display: inline-flex;
    align-items: center;
}

/* =========================================================
   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: 30px;
    padding-right: 50px;

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

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

.logo img {
    height: 55px;
}

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

.btn-header-outline {
    background: #1f2937;
    color: var(--white);
    font-weight: 600;
}

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

.error.is-no-error-before::before {
    content: none !important;
    display: none !important;
}

.error.is-no-error-before {
    box-shadow: none !important;
}

.error,
.js-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);
}

.form-error-area {
    display: flex;
    align-items: center;
    justify-content: center;
  
    min-height: 30px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.form-error-left {
    text-align: left;
}
  
.form-error-left .error-item {
    color: var(--red);
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 8px;
}




/* =========================================================
   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));
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-right: 1px solid var(--gray-300);
    z-index: 1000;
}

.sidebar-inner {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.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: 10px;
    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-sub-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-sub-nav a .badge-unread {
    margin-left: auto;
}

.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;
    max-width: 1400px;
}

/* ============================
   Home: Section Header
   ============================ */
.page-home .home-hd {
    text-align: center;
    margin-bottom: 48px;
}

.page-home .home-hd-ttl {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.page-home .home-hd-line {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background-color: var(--primary-color);
}

.page-home .home-hd-sub {
    color: var(--text-light);
    margin-top: 16px;
    font-size: var(--font-size-base);
}

/* ============================
   Home: Cards Grid
   ============================ */
.page-home .home-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 0 auto;
    align-items: stretch;
}

/* ============================
   Home: Card
   ============================ */
.page-home .home-card-media {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 24px;
}

.page-home .home-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.page-home .home-card-name {
    font-weight: 700;
    font-size: var(--font-size-h1);
    margin-bottom: 16px;
    text-align: center;
    color: var(--primary-color);
    letter-spacing: 0.025em;
}

.page-home .home-card-desc {
    color: var(--text-base);
    font-size: var(--font-size-base);
    line-height: 1.625;
    text-align: justify;
    margin-bottom: 8px;
}

/* Card Middle */
.page-home .home-card-mid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

/* Link Button */
.link-btn {
    padding: 10px 0;
}

.page-home .link-btn-inner {
    color: var(--primary-color);
    font-weight: 700;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.page-home .link-btn-txt {
    border-bottom: 1px solid var(--primary-color);
}

.page-home .link-btn-ico {
    font-size: 16px;
    margin-left: 8px;
}

/* Card Footer / CTA Button */
.page-home .home-card-foot {
    margin-top: auto;
}

.page-home .home-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    width: 100%;
}



/* ============================
   Service html_description
   ============================ */

/* --- Spec Grid --- */
.page-home .spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.page-home .spec-box {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 16px;
}

.page-home .spec-ttl {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-home .spec-ico {
    font-size: 16px;
    color: var(--gray-600);
    margin-right: 8px;
    flex-shrink: 0;
}

.page-home .spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-home .spec-item {
    display: flex;
    align-items: flex-start;
    font-size: var(--font-size-base);
    color: var(--text-base);
}

.page-home .dot {
    width: 4px;
    height: 4px;
    margin-top: 8px;
    margin-right: 8px;
    border-radius: 9999px;
    flex-shrink: 0;
    background-color: var(--gray-300);
}

/* --- Features --- */
.page-home .feat {
    padding-top: 8px;
}

.page-home .feat-ttl {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 16px;
    padding: 0 4px;
    text-align: center;
}

.page-home .feat-list {
    border-bottom: 1px solid var(--gray-100);
}

.page-home .feat-item {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    font-size: var(--font-size-base);
    color: var(--text-base);
    border-top: 1px solid var(--gray-100);
}

.page-home .feat-item:first-child {
    border-top: none;
}

.page-home .feat-ico {
    font-size: 16px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #22c55e;
}

.page-home .feat-txt {
    line-height: 1.375;
}



.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-50);
    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-50);
    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-300);
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.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-50);
    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-50);
    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-300);
    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: 15px 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;
    max-width: 1024px;
    margin: 0 auto;
}

.page-header-inner > div {
    display: flex;
    align-items: center;
    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: max-content;   /* 表の実幅を保つ */
    /* min-width: 100%; */
    width: 100%;
    border-collapse: collapse;
    /* table-layout: fixed; */
    border-collapse: separate; /* stickyのために安定しやすい */
    border-spacing: 0;
}

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

.delivery-table tr th {
  position: sticky;
  left: 0;
  z-index: 2;                /* 他セルの上に */
  /* background: #fff;          透け防止（重要） */
}


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

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

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

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

.price-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.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; /* 内側に描画 */
}

/* ===== DataOptionフォーム ===== */

.data-option,
.form-group.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.option-subtotal {
    font-size: var(--font-size-h2);
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
    /* margin-top: 20px; */
}

.option-delivery-day {
    font-size: var(--font-size-h2);
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

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

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

.estimate_name_error {
    margin-left: 90px;
}

.btn-section {
    width: 100%;
    padding: 24px;
    text-align: center;
}


/* エラーメッセージ（下段） */
.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 auto;
    border-bottom: 1px solid var(--gray-50);
    padding: 15px 15px;
    align-items: center;
}

.confirm-row.order {
    grid-template-columns: 130px 1fr auto;
}

.confirm-row.confirm-row--top {
    align-items: start;
}

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

.confirm-row .confirm-td {
    font-weight: 700;
}

.confirm-list li {
    font-weight: 500;
}

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

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

.margin-top-15px {
    margin-top: 15px;
}

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

.subtotal_amount__yen { 
    /* color: var(--primary-color); */
    font-weight: 700;
}

.form-footer .confirm-actions {
    width: 100%;
    margin: 0 auto;
}

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

.is-negative,
.summary-value.is-negative {
    color: var(--red);
}

.right-btn {
    text-align: right;
}

.note-wrap {
  position: relative;
  align-items: start;
}

.note-wrap {
  position: relative;
}


.note {
  max-height: 200px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding-bottom: 32px; /* 続き表示分の余白 */
  /* align-items: start; */
  text-align: left;      /* ←中央寄せを殺す */
  display: block;        /* ←inline/inline-block/flex影響を避ける */
  width: 100%;
  min-width: 0;
}

/* 下のフェード（さりげなく） */
.note-wrap.has-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0.9)
  );
}

/* 続きボタン */
.note-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.note-wrap.has-more .note-indicator {
  opacity: 1;
}

.note-wrap.at-bottom .note-indicator {
  opacity: 0;
}

/* 見積履歴ページだけ：備考ブロックを基準にする */
.history-card .detail-row:last-child > div {
    position: relative;
  }


/* ================================
   お見積り作成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-50);  /* デフォルトはグレー */
}

/* 一番下のステップは線を描かない */
.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-50);
    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);
}

.copyright_fee {
    font-size: var(--font-size-h2);
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

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

.step-summary {
    width: 145px;
    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-top {
    padding-top: 10px;
    border-top: 1px solid var(--gray-50);
}

/* ===== 規定外のご案内 ===== */
.estimate-info {
    background-color: var(--light-primary-color);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.estimate-info-ico {
    color: var(--primary-color);
    background-color: var(--white);
    padding: 8px;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.estimate-info-ttl {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.estimate-info-desc {
    color: var(--text-base);
    line-height: 1.75;
    margin-bottom: 12px;
}

.estimate-info-bold {
    font-weight: 700;
    color: var(--text-bold);
}

.estimate-info-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--primary-color);
}

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

.estimate-info-note {
    color: var(--primary-color);
}

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

.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: 1px solid var(--gray-300);
    border-radius: 10px;
    /* padding: 14px 16px 12px; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1)
}

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

/* 上部のメタ（薄い帯） */
.history-meta {
    display: flex;
    justify-content: space-between;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-300);
    border-radius: 8px 8px 0 0;
    padding: 10px 24px;
    font-weight: 600;
}

.history-header-estimate-name {
    margin-top: 5px;
    display: flex;
    /* align-items: center; */
    width: 400px;
    position: relative;
    height: 40px;
}


.history-meta-other {
    margin:0;
    display:grid;
    grid-template-columns: auto auto; /* dt/dd の2列 */
    column-gap:16px;
    /* row-gap:6px; */
    text-align:right;
    color: var(--text-light);
    align-items: center;
}

.history-meta__row {
    display: contents;
}

.history-meta__row {
    font-size: var(--font-size-small);
    color: var(--text-bold);
    font-weight: 700;
    line-height: 1.8;
}

.history-meta__row span{
    color: var(--text-base);
    font-weight: 700;
}


.history-header-estimate-name p {
    font-size: var(--font-size-h2);
    font-weight: 700;
}


.adj-forms .form-group {
    margin-bottom: 0;
}

.adj-forms .form-wrap {
    display: grid;
    grid-template-columns: 1fr 100px 150px 150px 150px;
    gap: 6px;
}

.adjustment-form-unit {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px; /* input と 単位の間 */
}

.adjustment-form-unit .unit {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* 注文一覧：詳細確認ボタン付き */
.history-header-order-name .history-meta__row {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* 注文詳細モーダル */
.order-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-h4);
}

.order-detail-table th {
    text-align: left;
    padding: 12px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-300);
    color: var(--text-bold);
    width: 30%;
    font-weight: normal;
}

.order-detail-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-300);
    color: var(--text-bold);
}

.order-detail-table ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: disc;
}

.order-detail-group-header {
    background-color: var(--gray-100);
    font-weight: 700;
    font-size: var(--font-size-h4);
}

.confirm-row.order.note-wrap .confirm-td,
.confirm-row.note-wrap b.confirm-td {
  position: relative;          /* ← absolute の基準をここに固定 */
}

/* 共通の left:50% がズレるのを抑えるため、確実に中央へ */
.confirm-row.order.note-wrap .note-indicator,
.confirm-row.note-wrap b .note-indicator {
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 8px;                 /* 位置は好みで */
  margin: 0 !important;
}

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

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

.history-row {
    display: grid;
    grid-template-columns: 112px 1fr auto;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-50);
    align-items: baseline;
}

.history-row:last-child {
    border-bottom: 0;
}

.history-row.order-option {
    align-items: start;
}

.history-row dt {
    font-weight: 500;
    color: var(--text-light);
}

.history-row dd {
    font-weight: 700;
    color: var(--text-bold);
}

.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 > dl {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.history-header-estimate-name .history-meta__value {
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 30px;
}

/* 右のフェード */
.history-header-estimate-name .history-meta__value::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 40px;
    pointer-events: none;

    background: linear-gradient(
        to right,
        rgba(249,250,251,0) 0%,
        rgba(249,250,251,0.4) 40%,
        rgba(249,250,251,0.8) 70%,
        rgba(249,250,251,1) 100%
    );
}


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

/* ===== モーダル - 基本構造 ===== */
.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;
    background: #fff;
    border-radius: 8px;
    padding: 24px 32px 20px;
}

/* 表示状態用クラス */
.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== モーダル開閉アニメーション ===== */

/* 背景: フェードイン */
.modal .modal-backdrop {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}
.modal.is-open .modal-backdrop {
    opacity: 1;
}

/* ダイアログ: フェード＋スライドアップ */
.modal .modal-dialog {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.modal.is-open .modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 閉じるアニメーション */
.modal.is-closing .modal-backdrop {
    opacity: 0;
}
.modal.is-closing .modal-dialog {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

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

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

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

.modal-service {
    display: flex;
    align-items: center;
    gap: 6px;
    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: center;
    gap: 12px;
}

.modal-actions.center {
    justify-content: center;
}

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

/* ===== モーダル - 警告ボックス ===== */
.modal-warning {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dc2626;
    border-radius: 8px;
    margin: 16px 0;
}

.modal-warning > i {
    color: #dc2626;
    font-size: 18px;
    flex-shrink: 0;
}

.modal-warning-content {
    flex: 1;
}

.modal-warning-title {
    font-weight: bold;
    color: var(--text-bold);
    margin-bottom: 4px;
    font-size: var(--font-size-h5);
}

.modal-warning-text {
    font-size: var(--font-size-h5);
    color: var(--text-base);
    line-height: 1.6;
}

.modal-warning-text strong {
    text-decoration: underline;
}

.modal-note {
    margin: 16px 0;
}

.modal-note > span {
    font-size: var(--font-size-h5);
    color: var(--text-light);
}


/* ===== サービス確認モーダル ===== */
.modal-dialog--confirm {
    width: 400px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ブランドカラーヘッダー */
.modal-header--confirm {
    padding: 16px 24px;
    background: var(--primary-color);
    margin-bottom: 0;
}

.modal-header--confirm .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: var(--font-size-h2);
    letter-spacing: 0.05em;
}

.modal-header--confirm .modal-title::before {
    display: none;
}

/* 確認モーダルのボディ */
.modal-confirm-body {
    padding: 24px;
}

/* リードテキスト */
.modal-confirm-lead {
    font-size: var(--font-size-base);
    color: var(--text-base);
    line-height: 1.7;
    margin: 0 0 20px;
}

/* サービス表示エリア */
.modal-confirm-service {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    margin-bottom: 20px;
}

.modal-confirm-service__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 16px;
    color: var(--primary-color);
}

.modal-confirm-service__name {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text-bold);
}

/* 補足テキスト（ⓘアイコン + テキスト） */
.modal-confirm-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-confirm-note svg {
    color: var(--text-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-confirm-note span {
    font-size: var(--font-size-small);
    color: var(--text-light);
    line-height: 1.6;
}

/* ボタンエリア */
.modal-confirm-actions,
.modal-delete-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.modal-delete-confirm-actions {
    padding-bottom: 10px;
}

/* ===== インフォメーションモーダル ===== */
.modal-dialog--info {
    max-width: 560px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* インフォヘッダー: 白背景 + 円形アイコン + 閉じるボタン */
.modal-header--info {
    padding: 24px 32px 8px;
    margin-bottom: 0;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header--info .modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header--info .modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    flex-shrink: 0;
}

.modal-header--info .modal-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text-bold);
}

.modal-header--info .modal-title::before {
    display: none;
}

.modal-header--info .modal-close {
    color: var(--text-light);
    padding: 4px;
    border-radius: 50%;
}

.modal-header--info .modal-close:hover {
    color: var(--text-base);
    background: var(--gray-50);
}

.modal-info-body {
    display: block;
    margin: 16px 0 0;
    padding: 0 32px 16px;
    line-height: 1.8;
    font-size: var(--font-size-base);
    color: var(--text-base);
}

.modal-info-body p {
    margin: 0 0 12px;
}

.modal-info-body p:last-child {
    margin-bottom: 0;
}

.modal-info-subtitle {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-bold);
    margin: 16px 0 8px;
}

.modal-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-info-list li {
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 6px;
    font-size: var(--font-size-small);
    line-height: 1.6;
    display: flex;
    gap: 0;
}

.modal-info-label {
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.modal-info-label::after {
    content: "→";
    margin: 0 6px;
    color: var(--text-light);
}

/* インフォフッター */
.modal-info-footer {
    padding: 16px 32px 32px;
    display: flex;
    justify-content: center;
}

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

/* ===== ワイド/配送先リストモーダル ===== */
.modal-dialog--wide {
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body.address-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-header--shipping {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    justify-content: space-between;
}

.modal-title--shipping {
    font-size: var(--font-size-h2);
}

.modal-title--shipping::before {
    display: none;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    padding: 0 8px;
    line-height: 1;
    cursor: pointer;
}

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

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

.modal-inner {
    overflow-y: auto;
}

/* ===== 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-300);
    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 0;
}

.option-form-wrap label {
    min-height: 44px;
    margin: 15px 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 40%;
    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-300);
    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);
}

.option-info-icon {
    color: var(--primary-color);
    cursor: pointer;
    font-size: var(--font-size-base);
    margin-left: auto;
    flex-shrink: 0;
    line-height: 1;
}

.option-info-icon:hover {
    opacity: 0.7;
}

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

.form-label-wrap {
    display: flex;
    align-items: center;
}

.form-label {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--black);
}

.backend .form-label {
    font-size: var(--font-size-h3);
}

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

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

.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-help-link:hover {
    cursor: pointer;
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    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-300);
    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:disabled {
    background-color: var(--gray-300);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    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;
    /* border-top: 1px solid var(--gray-300); */
    padding-top: 25px;
}

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

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

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

/* .notice-area.right {
    text-align: right;
} */

.notice-area.right div {
    width: 230px;
    margin-left: auto;
}

.notice-area.right p::before {
    content: "※";
}

.notice-area.right p {
    font-size: var(--font-size-small);
    padding-left: 1.2em;
    text-indent: -1.2em;
}

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

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

.notice-right-block {
    font-size: var(--font-size-small);
    width: 400px;
    margin-left: auto;
}

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


/* ============================
   注文ページ本体
   ============================ */

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


/* 金額カード（右カラム）をコンテンツ量に応じた高さにする */
.order-content > aside {
    align-self: start;
}

/* ============================
   右：サマリーカード
   ============================ */
.card.order-summary-card {
    display: block;
}

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

.summary-qty-input {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.summary-qty-box {
    min-width: 72px;
    padding: 5px 10px;
    text-align: left;
    border: 1px solid var(--gray-300);
    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;
}



/* ============================
   注文確認ページ
   ============================ */

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

.shipping-err {
    border: 3px solid var(--red);
}

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

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

.order-confirm-summary {
    gap: 0px;
}

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

.detail-label {
    white-space: nowrap;
    font-size: var(--font-size-lg);
    width: 120px;
    color: var(--text-base);
    flex-shrink: 0;
}

.order-confirm-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-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-lg);
}

.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-body.address-list {
    margin-bottom: 0px;
}

.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-section.address-list {
    margin-top: 0px;
}

.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-slip-value {
    font-size: var(--font-size-base);
    color: var(--text-default);
}

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

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

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

.order-info-list {
    padding-left: 1.4em;
    list-style: disc;
}

/* --- 下部フォーム ------------------------------------ */

.order-consent-row {
    border-top: 1px solid var(--gray-300);
    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　↓ここから
  ========================= */

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

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

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

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

.search-bar__actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

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

.search-bar__reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--gray-200);
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}

.search-bar__reset:hover {
    background: var(--gray-300);
}


/* =========================
     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-300);
    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 {
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.table-wrap article {
    padding: 0 24px 24px 24px;
}

/* ============================
   Table
   ============================ */
.table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.table th,
.table td {
    border: 1px solid var(--gray-300);
    padding: 14px 12px;
    vertical-align: middle;
}

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

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

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

/* 縦の罫線 */
.table th + th,
.table td + td {
    border-left: 1px solid var(--gray-300);
}

.col-num {
    width: 16%;
}

.col-actions {
    width: 18%;
}


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

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

.estimate-edit div.table-wrap:not(:first-child) {
    margin-top: 20px;
}


/* お問合せ */
.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);
}

.help-text {
    font-size: clamp(10px, 1.2vw, var(--font-size-small));
    color: var(--gray-600);
    /* white-space: nowrap; */
}


/* 問い合わせベルマーク */
.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-50);
    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-300);
}

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

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


.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-50);
    border-bottom: 1px solid var(--gray-300);
}

.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-300);
    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-bottom: 20px;
}

.contact-tab{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    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-50);
    background: var(--gray-100);
    border-radius: 6px;
}

/* ============================
   問い合わせ一覧テーブル
   ============================ */
.table--inquiry {
    width: 100%;
    table-layout: fixed;
}

.table--inquiry th.col-date,
.table--inquiry td.col-date {
    width: 180px;
    white-space: nowrap;
}

.table--inquiry th.col-customer,
.table--inquiry td.col-customer {
    width: 270px;
}

.table--inquiry th.col-kind,
.table--inquiry td.col-kind {
    width: 360px;
    white-space: nowrap;
}

.table--inquiry th.col-message,
.table--inquiry td.col-message {
    width: auto;
}

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

tr.row-link .contact-type {
    display: flex;
    gap: 10px;
}

tr.row-link td .badge-unread.right {
    margin-left: auto;
}


.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;
    padding:2px 8px;
    font-size: var(--font-size-small);
    border-radius: 4px;
    line-height:1.4;
    background:var(--accent-color);
    color:var(--white);
    vertical-align:middle;
}

.badge-unread{
    display:inline-block;
    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: 1000px;
    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-50);
    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-300);
    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;
}

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





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

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

.content-title.shipping {
    margin-bottom: 0px;
}

/* カードリスト */
.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-50);
    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-50);
    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;
}

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

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

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

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

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

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

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


.modal-content {
    display: flex;
    justify-content: space-between;
}

.modal-subtitle {
    font-weight: 700;
}



/* =========================
   注文履歴
   ========================= */

/* 注文履歴 - 本体 */
.order-history-body {
    display: flex;
}

.order-history-detail {
    flex: 1;
    border-right: 1px solid var(--gray-300);
}

/* 注文履歴 */
.order-history-row {
    display: flex;
    border-bottom: 1px solid var(--gray-300);
    min-height: 60px;
}

.order-history-row:last-child {
    border-bottom: none;
}

.order-history-row__label {
    width: 160px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: var(--font-size-h5);
    color: var(--text-base);
    background-color: var(--gray-50);
    flex-shrink: 0;
}

.order-history-row__content {
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: var(--font-size-base);
    color: var(--text-base);
    border-left: 1px solid var(--gray-300);
}

.order-history-row__content--status {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.order-history-row__text {
    line-height: 1.6;
}

.order-history-row__sub {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: 4px;
}

.order-history-row__list {
    margin: 0;
    padding-left: 1.2em;
    list-style: disc;
}

.order-history-row__list li {
    line-height: 1.6;
}

.order-history-row__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-history-row__actions .btn {
    flex-shrink: 0;
}

.order-history-row__status {
    width: 250px;
    padding: 16px 24px;
    border-left: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-history-row__status-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-history-row__status-item {
    display: flex;
    color: var(--text-base);
    align-items: center;
}

.order-history-row__status-value {
    color: var(--text-light);
}

/* ステータスバッジ（共通コンポーネント） */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--text-base);
    font-weight: 500;
    padding: 12px 14px;
    font-size: var(--font-size-small);
    max-width: 100%;
}


.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: var(--gray-600);
    flex-shrink: 0;
}

/* 値 + アイコンラッパー */
.order-history-row__value-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 注文履歴 - 右側アクションボタン */
.order-history-actions-side {
    width: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

/* 注文履歴 - フッターアクション */
.history-actions--order {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.history-actions__group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.history-actions--order .history-actions__group .btn {
    width: 180px;
}

.btn-outline-secondary:disabled {
    background: var(--gray-50);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}



/* ============================
   アセット入稿ページ
   ============================ */

/* サイドバーヘッダー（入稿対象パターン） */
.asset-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 12px;
}

.asset-sidebar-header-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bold);
}

.asset-sidebar-header-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--light-primary-color);
    padding: 2px 10px;
    border-radius: 12px;
}

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

.asset-order-name {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text-base);
}

/* フォームラベル横の対応形式表示 */
.asset-upload-format {
    font-size: var(--font-size-base);
    color: var(--text-light);
}

.asset-upload-description {
    font-size: var(--font-size-base);
    color: var(--text-base);
    line-height: 1.5;
}

.asset-upload-description p {
    margin: 0;
}

.asset-upload-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* ドラッグ&ドロップエリア */
.asset-upload-dropzone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 14px 16px;
    border: 1px dashed var(--gray-300);
    border-radius: 6px;
    margin-top: 8px;
}

.asset-upload-dropzone-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-upload-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-primary-color);
    border-radius: 4px;
}

.asset-upload-icon i {
    font-size: 18px;
    color: var(--primary-color);
}

.asset-upload-text {
    display: flex;
    flex-direction: column;
}

.asset-upload-text-main {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-base);
}

.asset-upload-text-sub {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

/* アップロード済み表示 */
.asset-upload-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--light-primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: var(--font-size-base);
}

.asset-upload-current i {
    font-size: 18px;
}

/* セパレーター */
.separator {
    border: none;
    border-top: 1px dashed var(--gray-300);
    margin: 0;
}



/* ============================
   コンテンツ入稿ページ
   ============================ */

.content-item-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-item-card {
    flex-direction: row;
    padding: 0px;
    gap: 0px;
}

/* 番号表示部分（左側の帯） */
.content-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: var(--light-primary-color);
    border-right: 1px solid var(--gray-300);
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--primary-color);
    border-radius: 8px 0 0 8px;
}

.content-item-body {
    position: relative;
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-item-row {
    display: flex;
    gap: 16px;
}

.content-item-type {
    width: 280px;
}

.content-item-name {
    flex: 1;
}

.content-add-area {
    display: flex;
    justify-content: center;
    padding: 8px 0 16px;
}

.content-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.content-add-btn:hover {
    background: var(--gray-50);
}

.content-add-btn i {
    font-size: 18px;
}

/* データ容量バー（固定フッター） */
.data-capacity-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-300);
    box-shadow: 0px -4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 12px 24px;
    z-index: 100;
}

.data-capacity-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6px;
}

.data-capacity-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-capacity-info i {
    font-size: 16px;
    color: var(--text-base);
}

.data-capacity-label {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-bold);
}

.data-capacity-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.data-capacity-current {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
}

.data-capacity-max {
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--text-light);
}

.data-capacity-progress {
    max-width: 720px;
    margin: 0 auto;
    height: 8px;
    background: var(--gray-300);
    border-radius: 999px;
    overflow: hidden;
}

.data-capacity-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    transition: width 0.3s ease;
}



/* ============================
   FAQ（よくある質問）ページ
   ============================ */

.section-label {
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: var(--font-size-h2);
    background: var(--gray-400);
    color: var(--text-bold);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
}

.faq-question-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-q-mark {
    font-weight: 700;
    font-size: var(--font-size-h1);
    color: var(--primary-color);
}

.faq-q-text {
    font-weight: 700;
    font-size: var(--font-size-h3);
    color: var(--text-bold);
    padding-top: 3px;
}

.faq-chevron {
    font-size: 16px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.is-open .faq-answer {
    opacity: 1;
}

.faq-answer-inner {
    padding: 16px 0px 20px 0px;
    border-top: 1px solid var(--gray-300);
    margin: 0 50px;
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-base);
}

.faq-contact {
    margin-top: 40px;
    text-align: center;
}

.faq-contact-text {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* --- FAQ 内テーブル（シンプル） --- */
.faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 8px;
    font-size: var(--font-size-base);
}

.faq-table th,
.faq-table td {
    border: 1px solid var(--gray-300);
    padding: 8px 12px;
    text-align: center;
}

.faq-table thead th {
    background: var(--gray-50);
    font-weight: 700;
    color: var(--text-bold);
}

/* --- FAQ テーブル注釈 --- */
.faq-table-notes {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: var(--font-size-small);
    color: var(--text-light);
    line-height: 1.8;
}

/* --- FAQ 内テーブル（横スクロール） --- */
.faq-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0 0;
}

/* --- シェア対応表 --- */
.faq-share-matrix {
    border-collapse: collapse;
    min-width: 900px;
    width: max-content;
    font-size: var(--font-size-base);
}

.faq-share-matrix th,
.faq-share-matrix td {
    border: 1px solid var(--gray-300);
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
}

.faq-share-matrix thead th {
    background: var(--gray-50);
    font-weight: 700;
    color: var(--text-bold);
}

.faq-share-matrix__os {
    font-weight: 700;
    background: var(--gray-50);
}

.faq-share-matrix__left {
    text-align: left;
}


/* ============================
   入稿データフォーマットページ
   ============================ */

/* --- 入稿データ用 card オーバーライド --- */
.service-guides-toc ~ .card {
    gap: 0;
    margin-bottom: 24px;
}

.service-guides-toc ~ .card .service-guides-section-content:last-child {
    margin-bottom: 0;
}

/* --- タブ --- */
.guide-tabs {
    display: flex;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.guide-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: var(--font-size-base);
    background: var(--white);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

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

/* --- セクションヘッダー --- */
.guide-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-300);
    gap: 16px;
}

.guide-section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text-bold);
}

.guide-download-buttons {
    display: flex;
    gap: 10px;
}

.guide-description {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* --- ダウンロードボタン --- */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.download-btn--pdf {
    border: 1px solid #e11d2a;
}

.download-btn--pdf:hover {
    background: #fef2f2;
}

.download-btn--pdf .download-btn__text {
    color: #e11d2a;
}

.download-btn--ai {
    border: 1px solid #ff9a00;
}

.download-btn--ai:hover {
    background: #fff7ed;
}

.download-btn--ai .download-btn__text {
    color: #ff9a00;
}

.download-btn__icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.download-btn__text {
    font-weight: 700;
    font-size: var(--font-size-small);
    line-height: 20px;
    white-space: nowrap;
}

/* --- 仕様テーブル --- */
.spec-table {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.spec-table__row {
    display: flex;
    border-bottom: 1px solid var(--gray-300);
}

.spec-table__row--last {
    border-bottom: none;
}

.spec-table__label {
    width: 200px;
    padding: 14px 20px;
    font-weight: 700;
    color: var(--text-bold);
    background: var(--gray-50);
}

.spec-table__value {
    padding: 14px 20px;
    color: var(--text-base);
}

/* --- 注意書き --- */
.guide-alert {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: var(--red);
    font-size: var(--font-size-base);
    line-height: 1.8;
}

/* --- 仕様カード --- */
.spec-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.spec-card__header {
    font-weight: 700;
    font-size: var(--font-size-h3);
    color: var(--text-bold);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-300);
}

.spec-card__header--with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.spec-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-card__grid--single {
    grid-template-columns: 1fr;
}

.spec-card__item {
    background: var(--gray-50);
    border-radius: 6px;
    padding: 14px 16px;
}

.spec-card__item-title {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--primary-color);
    margin-bottom: 8px;
}

.spec-card__list li {
    font-size: var(--font-size-base);
    color: var(--text-base);
    line-height: 1.8;
}

.spec-card__list li::before {
    content: "• ";
    font-weight: 700;
    color: var(--text-bold);
}

.spec-card__list-label {
    font-weight: 700;
    color: var(--text-bold);
}

/* ============================
   入稿データガイド（service-guides）
   旧サイトと共通クラス
   ============================ */

.service-guides-page-title {
    margin-bottom: 2rem;
}

.service-guides-page-title-text {
    width: fit-content;
    font-weight: 600;
    color: var(--text-bold);
    font-size: var(--font-size-h1);
}

.service-guides-section-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.service-guides-section-header[id] {
    scroll-margin-top: calc(var(--header-height) + 150px);
}

.service-guides-section-title {
    padding: 0px 0px 11px;
    position: relative;
}

.service-guides-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.service-guides-section-title-text {
    font-weight: 600;
    color: var(--text-bold);
    font-size: var(--font-size-h2);
    line-height: 1.5;
    margin-bottom: 0;
}

.service-guides-section-content {
    margin-bottom: 60px;
}

.service-guides-table-wrapper {
    overflow-x: auto;
}

.service-guides-table {
    display: inline-flex;
    flex-direction: column;
}

.service-guides-table-row {
    display: flex;
}

.service-guides-table-header-cell {
    display: flex;
    width: 210px;
    align-items: center;
    justify-content: center;
    padding: 8.5px 13px;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-300);
}

.service-guides-table-header-text {
    font-weight: 700;
    color: var(--text-base);
    font-size: var(--font-size-base);
}

.service-guides-table-data-cell-wide {
    min-width: 200px;
    padding: 8.5px 13px;
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    flex: 1;
}

.service-guides-table-cell-text {
    position: relative;
    width: 100%;
    margin-top: -1.00px;
    font-weight: 400;
    color: var(--text-base);
    font-size: var(--font-size-base);
    letter-spacing: 0;
    line-height: 24px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.service-guides-subsection-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 0px 8px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    margin-top: 24px;
}

.service-guides-subsection-title-text {
    font-weight: 600;
    color: var(--text-bold);
    font-size: var(--font-size-h2);
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.service-guides-data-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--text-bold);
    padding-left: 16px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 1rem;
}

/* --- 目次ボックス --- */
.service-guides-toc {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 48px;
    width: 100%;
}

.service-guides-toc-title {
    font-weight: 600;
    color: var(--text-bold);
    font-size: var(--font-size-h2);
    margin-bottom: 16px;
}

.service-guides-toc-list {
    display: block;
}

.service-guides-toc-link {
    font-weight: 400;
    color: var(--link-text-color);
    font-size: var(--font-size-base);
    line-height: 24px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: fit-content;
    margin-bottom: 8px;
}

.service-guides-toc-link:hover {
    text-decoration: underline;
}

.service-guides-toc-link--sub {
    padding-left: 24px;
    font-size: var(--font-size-base);
    margin-bottom: 6px;
    position: relative;
}

.service-guides-toc-link--sub::before {
    content: "└ ";
    position: absolute;
    left: 8px;
    color: #999;
}

/* --- テンプレートダウンロードボックス --- */
.service-guides-template-box {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 60%;
}

.template-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-box-icon {
    width: 24px;
    height: 24px;
    color: #333;
}

.template-box-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-bold);
    margin: 0;
}

.template-box-desc {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin: 0;
}

/* --- ダウンロードボタン（service-guides） --- */
.service-guides-download-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.service-guides-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7.5px 16px 8.3px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e11d2a;
    text-decoration: none;
}

.service-guides-btn-pdf:hover {
    background-color: #fef2f2;
}

.service-guides-btn-pdf .btn-icon {
    width: 20px;
    height: 20px;
}

.service-guides-btn-pdf .btn-text {
    font-weight: 700;
    color: #e11d2a;
    font-size: var(--font-size-small);
    line-height: 20px;
    white-space: nowrap;
}

.service-guides-btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7.5px 16px 8.3px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ff9a00;
    text-decoration: none;
}

.service-guides-btn-ai:hover {
    background-color: #fff7ed;
}

.service-guides-btn-ai .btn-icon {
    width: 20px;
    height: 20px;
}

.service-guides-btn-ai .btn-text {
    font-weight: 700;
    color: #ff9a00;
    font-size: var(--font-size-small);
    line-height: 20px;
    white-space: nowrap;
}

/* --- リンクボタン（矢印付き） --- */
.service-guides-button-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    margin-top: 16px;
}

.service-guides-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    position: relative;
    flex: 0 0 auto;
    background: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.service-guides-button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    color: var(--white);
    font-weight: 400;
    font-size: var(--font-size-base);
    text-align: center;
}

.service-guides-button-text .arrow {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    stroke: currentColor;
    transition: transform 0.2s ease;
    inline-size: 1.4em;
    block-size: 1.4em;
}

.service-guides-button-primary:hover .arrow {
    transform: translateX(3px);
}

/* --- 動画リスト --- */
.service-guides-video-list {
    margin-bottom: 24px;
}

.service-guides-video-list-item {
    margin-bottom: 8px;
    font-size: var(--font-size-base);
    color: var(--text-base);
}

/* --- 注意事項リスト --- */
.service-guides-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    flex: 0 0 auto;
}

.service-guides-list-item {
    position: relative;
    align-self: stretch;
    width: 100%;
    min-height: 24px;
}

.service-guides-list-item-text {
    position: relative;
    font-weight: 400;
    color: var(--text-base);
    font-size: var(--font-size-base);
    letter-spacing: 0;
    line-height: 24px;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.service-guides-list-item-text::before {
    content: "•";
    position: absolute;
    left: 0;
}

/* --- 注記テキスト --- */
.text-note {
    display: block;
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-bottom: 4px;
}

/* --- カード仕様テーブル --- */
.card-spec-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    margin-bottom: 5px;
}

.card-spec {
    width: 100%;
    font-size: var(--font-size-base);
    color: var(--text-bold);
    text-align: left;
    border-collapse: collapse;
    min-width: 500px;
}

.card-spec-hd {
    background-color: var(--gray-50);
    border-bottom: 2px solid var(--gray-300);
}

.card-spec-hd th {
    padding: 14px 16px;
}

.card-spec-th-type  { min-width: 100px; }
.card-spec-th-feat  { min-width: 200px; }
.card-spec-th-size  { white-space: nowrap; }
.card-spec-th-tmpl  { min-width: 180px; }

.card-spec tbody tr {
    border-bottom: 1px solid var(--gray-300);
}

.card-spec tbody tr:last-child {
    border-bottom: none;
}

.card-spec td {
    padding: 14px 16px;
}

.card-spec-name {
    font-weight: 700;
}

.card-spec-desc {
    margin-bottom: 4px;
}

.card-spec-sub {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

.card-spec-note {
    font-size: var(--font-size-small);
    color: var(--text-light);
    text-align: right;
}

.card-spec-dl {
    display: flex;
    gap: 8px;
}

/* --- 外部サイト誘導カード --- */
.ext-wrap {
    padding: 32px 0;
}

.ext-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--gray-200);
    padding: 48px;
    text-align: center;
    max-width: 672px;
    margin: 0 auto;
}

.ext-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background-color: var(--gray-50);
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 28px;
}

.ext-ttl {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 12px;
}

.ext-desc {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.75;
}

.ext-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 700;
}

.ext-note {
    margin-top: 24px;
    font-size: var(--font-size-small);
    color: var(--text-light);
}


/* ============================
   印刷納期と納品ページ
   ============================ */

.schedule-description {
    font-size: var(--font-size-base);
    color: var(--text-base);
    line-height: 2.4;
    margin-bottom: 20px;
}

/* --- 画像プレースホルダー --- */
.schedule-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-400);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.schedule-placeholder--tall {
    height: 500px;
}

.schedule-placeholder--wide {
    height: 300px;
}

.schedule-placeholder__icon {
    font-size: 48px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.schedule-placeholder__text {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--gray-600);
}

.schedule-placeholder__sub {
    font-size: var(--font-size-small);
    color: var(--gray-600);
    margin-top: 4px;
}

/* --- セクション画像 --- */
.schedule-image {
    text-align: center;
}

.delivery-image__img {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
}

.proof-image__img {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
}
/* --- 補足ノート --- */
.schedule-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: var(--font-size-base);
    color: var(--text-light);
}

/* --- カードグリッド --- */
.schedule-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.schedule-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 24px;
}

.schedule-card__title {
    font-weight: 700;
    font-size: var(--font-size-h3);
    color: var(--text-bold);
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--gray-300);
}

.schedule-card__text {
    font-size: var(--font-size-base);
    color: var(--text-base);
    margin-bottom: 14px;
    line-height: 1.6;
}

.schedule-card__list {
    margin: 0;
    padding-left: 1.2em;
    list-style: disc;
    margin-bottom: 14px;
}

.schedule-card__list li {
    font-size: var(--font-size-base);
    color: var(--text-base);
    line-height: 1.8;
}

.schedule-card__note {
    font-size: var(--font-size-small);
    color: var(--gray-600);
}


/* ============================
   サービス選択ページ
   ============================ */

.service-heading {
    text-align: center;
    margin-bottom: 40px;
}

.service-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 12px;
}

.service-lead {
    font-size: var(--font-size-base);
    color: var(--text-light);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    min-height: 400px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(1, 70, 149, 0.1),
                0 10px 10px -5px rgba(1, 70, 149, 0.04);
    border-color: var(--primary-color);
}

.service-card__hover {
    position: absolute;
    inset: 0;
    background: var(--light-primary-color);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover .service-card__hover {
    opacity: 1;
}

.service-card__logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin-bottom: 24px;
}

.service-card__logo-img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
}

.service-card__body {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card__desc {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
    transition: color 0.3s;
}

.service-card:hover .service-card__desc {
    color: var(--text-base);
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    transition: color 0.3s;
}

.service-card:hover .service-card__cta {
    color: var(--primary-color);
}

.service-card__cta-text {
    font-size: var(--font-size-base);
    font-weight: 700;
}


/* ============================
   サービス紹介ページ（OSHIVO）
   ============================ */

/* 個々のカードのボーダー・丸みを無効化 */
.card[class*="svc-"] {
    border: none;
    border-radius: 0;
}

/* --- ブランドヘッダー --- */
.svc-brand {
    text-align: center;
    padding: 56px 32px;
}

.svc-brand__logo {
    max-height: 60px;
    margin: 0 auto 16px;
}

.svc-brand__tagline {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--text-base);
    margin-bottom: 40px;
}

.svc-brand__accent {
    color: #eb2784;
}

.svc-brand__desc {
    color: var(--text-base);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.svc-brand__text {
    font-size: var(--font-size-h2);
}

.marker-highlight {
    background: linear-gradient(transparent 60%, rgba(235, 39, 132, 0.15) 60%);
    padding-bottom: 2px;
    font-weight: bold;
    color: var(--text-bold);
}

/* --- 3つの特徴 --- */
.svc-features {
    background: rgba(255, 20, 147, 0.08);
    padding: 48px 32px;
}

.svc-features__title {
    text-align: center;
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 40px;
}

.svc-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.svc-features__card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--white);
}

.svc-features__icon {
    width: 64px;
    height: 64px;
    background: rgba(235, 39, 132, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #eb2784;
}

.svc-features__card-title {
    font-weight: 700;
    color: var(--text-bold);
    font-size: var(--font-size-h2);
    margin-bottom: 12px;
}

.svc-features__card-text {
    font-size: var(--font-size-base);
    color: var(--text-base);
    line-height: 1.8;
    text-align: left;
}

/* --- メイン機能のご紹介 --- */
.svc-functions {
    padding: 48px 32px;
    background-image: url('/static/front/img/orderer/dashboard/back_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.svc-functions__grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}

.svc-functions__card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-300);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.svc-functions__card--reverse {
    flex-direction: row-reverse;
}

.svc-functions__img-wrap {
    width: 50%;
    flex-shrink: 0;
}

.svc-functions__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-functions__body {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.svc-functions__card-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: #eb2784;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.svc-functions__card-icon {
    color: #eb2784;
    margin-right: 8px;
    font-size: 1.2em;
    -webkit-text-stroke: 1px currentColor;
}

.svc-functions__card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: var(--font-size-base);
    color: var(--text-base);
    line-height: 1.8;
}

.svc-functions__callout {
    font-size: var(--font-size-small);
    background: var(--gray-50);
    padding: 16px;
    border-radius: 8px;
}

.svc-functions__cta-btn {
    margin-top: 16px;
    color: #eb2784;
    border-color: #eb2784;
    border-width: 2px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.svc-functions__cta-note {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: 8px;
}



/* --- OSHIVOが選ばれる理由 --- */
.svc-merit {
    background: var(--gray-100);
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
    max-width: 1024px;
    margin: 0 auto;
}

.svc-merit__heading {
    text-align: center;
    margin-bottom: 56px;
}

.svc-merit__heading-badge {
    display: inline-block;
    background: #eb2784;
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: var(--font-size-h2);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(235, 39, 132, 0.2);
}

.svc-merit__list {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.svc-merit__row {
    display: flex;
    gap: 48px;
    align-items: center;
    position: relative;
}

.svc-merit__row--reverse {
    flex-direction: row-reverse;
}

.svc-merit__number {
    position: absolute;
    font-family: 'Arial', sans-serif;
    font-size: 120px;
    font-weight: 900;
    color: rgba(235, 39, 132, 0.05);
    line-height: 1;
    z-index: 0;
    top: -120px;
    left: -16px;
}

.svc-merit__row--reverse .svc-merit__number {
    left: auto;
    right: -16px;
}

.svc-merit__img-wrap {
    flex: 0 0 45%;
    position: relative;
    z-index: 1;
}

.svc-merit__img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    border: none;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: rotate(2deg);
}

.svc-merit__row--reverse .svc-merit__img {
    transform: rotate(-2deg);
}

.svc-merit__body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.svc-merit__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 8px;
}

.svc-merit__subtitle {
    color: #eb2784;
    font-weight: 700;
    margin-bottom: 24px;
}

.svc-merit__text {
    color: var(--text-base);
    line-height: 2;
}

.svc-merit__deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.svc-merit__circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(235, 39, 132, 0.03);
}

.svc-merit__circle--top {
    width: 334px;
    height: 334px;
    top: 20px;
    left: 20px;
}

.svc-merit__circle--bottom {
    width: 500px;
    height: 500px;
    bottom: 40px;
    right: 40px;
}

/* --- CTAエリア --- */
.svc-cta {
    text-align: center;
    padding: 76px 32px;
    background: none;
}

.svc-cta__heading {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 24px;
}

.svc-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.svc-cta__btn.btn-primary {
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 700;
    background-color: #eb2784;
    border-color: #eb2784;
}

.svc-cta__btn.btn-primary:hover {
    background-color: #d01f73;
    border-color: #d01f73;
}


/* --- AR演出のラインナップ --- */
.svc-ar-lineup {
    padding: 48px 32px;
    background-image: url('/static/front/img/includes/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.svc-ar-lineup__lead {
    text-align: center;
    color: var(--text-base);
    font-size: var(--font-size-base);
    margin-top: -40px;
    margin-bottom: 16px;
}

.svc-ar-lineup__list {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 960px;
    margin: 0 auto;
}

.svc-ar-lineup__item {
    display: flex;
    gap: 32px;
    align-items: start;
}

.svc-ar-lineup__item--reverse {
    flex-direction: row-reverse;
}

.svc-ar-lineup__phone {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
}

.svc-ar-lineup__body {
    flex: 1;
}

.svc-ar-lineup__badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(235, 39, 132, 0.1);
    color: #eb2784;
    border-radius: 50px;
    font-size: var(--font-size-small);
    font-weight: 700;
    margin-bottom: 8px;
}

.svc-ar-lineup__title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 900;
    color: var(--text-bold);
    margin-bottom: 16px;
}

.svc-ar-lineup__desc {
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: var(--font-size-base);
    color: var(--text-base);
}

.svc-ar-lineup__desc a {
    color: var(--link-text-color);
    font-weight: bold;
    text-decoration: underline;
}

.svc-ar-lineup__cta {
    text-align: center;
    margin-top: 16px;
}

.svc-ar-lineup__cta p {
    color: var(--text-light);
    margin-top: 16px;
    font-size: var(--font-size-small);
}

.svc-ar-lineup__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--white);
    border: 2px solid #eb2784;
    color: #eb2784;
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--font-size-lg);
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.svc-ar-lineup__cta-btn:hover {
    background: rgba(235, 39, 132, 0.04);
    box-shadow: 0 4px 16px rgba(235, 39, 132, 0.15);
    transform: translateY(-2px);
}

.svc-ar-lineup__cta-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(235, 39, 132, 0.1);
}

/* --- AR演出: スマートフォンフレーム --- */
.svc-ar-lineup .smartphone-frame {
    position: relative;
    display: inline-block;
    border: 9px solid var(--frame-color, #202020);
    border-radius: 38px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: visible;
    width: clamp(240px, 70%, 420px);
    margin: 0 auto;
    background: transparent;
}

.svc-ar-lineup .smartphone-frame.frame-gray {
    --frame-color: #202020;
}

.svc-ar-lineup .smartphone-frame .screen {
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    position: relative;
    aspect-ratio: 9 / 19.5;
}

.svc-ar-lineup .smartphone-frame .screen img,
.svc-ar-lineup .smartphone-frame .screen video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svc-ar-lineup .smartphone-frame .notch {
    position: absolute;
    top: 1.2%;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 3.4%;
    background: var(--frame-color, #202020);
    border-radius: 14px;
    z-index: 2;
}

.svc-ar-lineup .smartphone-frame .side-btn {
    position: absolute;
    display: block;
    width: 4px;
    background: var(--frame-color, #202020);
    border-radius: 2px;
    padding: 6px;
}

.svc-ar-lineup .smartphone-frame .side-btn-vol-up {
    left: -12px;
    top: 15%;
    height: 6%;
}

.svc-ar-lineup .smartphone-frame .side-btn-vol-down {
    left: -12px;
    top: 23%;
    height: 6%;
}

.svc-ar-lineup .smartphone-frame .side-btn-power {
    right: -12px;
    top: 20%;
    height: 12%;
}

/* --- AR演出: 動画ラッパー --- */
.svc-ar-lineup .video-wrap {
    position: relative;
}

.svc-ar-lineup .video-wrap .ar-preview {
    display: block;
    width: 100%;
    height: auto;
}

.svc-ar-lineup .video-tap-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 14%;
    cursor: pointer;
    background: transparent;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    z-index: -5;
}

:fullscreen .svc-ar-lineup .video-tap-layer,
:-webkit-full-screen .svc-ar-lineup .video-tap-layer {
    display: none !important;
}

/* --- AR演出: プレビュー・サムネイル --- */
.svc-ar-lineup .cardar-detail__preview {
    margin-bottom: 16px;
    display: flex;
    justify-content: start;
    height: 200px;
}

.svc-ar-lineup .cardar-detail__preview img {
    max-width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    max-height: 200px;
}

.svc-ar-lineup .cardar-detail__thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.svc-ar-lineup .cardar-detail__thumbs .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.svc-ar-lineup .cardar-detail__thumbs .thumb.active,
.svc-ar-lineup .cardar-detail__thumbs .thumb:hover {
    border-color: #1EBCE9;
}

/* --- AR演出: 制作に必要なデータ --- */
.svc-ar-lineup .cardar-detail__how_create {
    background: var(--light-primary-color);
    border-radius: 4px;
    padding: 16px;
    margin-top: 24px;
}

.svc-ar-lineup .cardar-detail__how_create p {
    font-size: var(--font-size-base);
}

.svc-ar-lineup .how-icon {
    font-size: 22px;
    color: var(--accent-color);
}

.svc-ar-lineup .cardar-detail__how-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-h2);
    font-weight: bold;
    margin: 0 0 12px 0;
}

.svc-ar-lineup .cardar-detail__how-body {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.svc-ar-lineup .cardar-detail__how-body .how-list {
    margin: 1em 0 0;
    padding-left: 1.2em;
    list-style-type: disc;
    font-size: var(--font-size-base);
}

.svc-ar-lineup .cardar-detail__how-body .how-list li {
    margin-bottom: 1em;
    line-height: 1.6;
}

.svc-ar-lineup .cardar-detail__how_create strong {
    color: var(--text-bold);
    font-weight: bold;
}

.svc-ar-lineup .cardar-detail__how_create a {
    color: var(--link-text-color);
    font-weight: bold;
    text-decoration: underline;
}


/* =========================================================
   Price Summary Panel
   ========================================================= */

/* --- Panel Container --- */
.summary-panel {
    background-color: var(--light-primary-color);
    border-radius: 8px;
    padding: 24px;
    font-size: var(--font-size-base);
    display: flex;
    flex-direction: column;
}

/* --- Section Heading --- */
.summary-heading {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: var(--font-size-h2);
}

/* --- Row List --- */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* --- Row --- */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Label --- */
.summary-label {
    color: var(--text-base);
}

/* --- Value --- */
.summary-value {
    color: var(--text-bold);
    font-weight: 600;
}

/* --- Cost Sections --- */
.summary-costs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Cost Item List --- */
.cost-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

/* --- Option Group --- */

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.option-detail {
    font-size: var(--font-size-small);
    color: var(--text-base);
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-row {
    display: flex;
    justify-content: space-between;
}

/* --- Last Cost Item --- */
.cost-last {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Calc Box --- */
.calc-box {
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 16px;
}

.calc-upper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--accent-color);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-small);
}

.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.calc-total.no-pt {
    padding-top: 0;
}

/* --- Deposit List --- */
.deposit-list {
    margin-bottom: 8px;
}

/* --- Calc Label / Value --- */
.calc-label {
    color: var(--text-base);
}

.calc-value {
    color: var(--text-bold);
    font-weight: 600;
}

/* --- Grand Total --- */
.grand-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 3px solid var(--gray-400);
}

.total-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.total-label {
    color: var(--text-base);
    padding-bottom: 4px;
}

.total-amount {
    font-size: var(--font-size-h1);
    font-weight: 600;
    color: var(--primary-color);
}


/* =========================================================
   Detail Rows (Left Column - estimate_list.html)
   ========================================================= */

.detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    flex-direction: row;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-50);
}

.detail-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-50);
    justify-content: space-between;
}

.action-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.detail-value {
    color: var(--text-bold);
    font-weight: 600;
}

.detail-wrap {
    color: var(--text-bold);
    font-weight: 600;
    line-height: 1.625;
}

.detail-sub {
    font-size: var(--font-size-small);
    color: var(--gray-600);
    margin-top: 2px;
}


/* =========================================================
   Container Overrides
   ========================================================= */

.history-price:has(.summary-panel) {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-box > .summary-panel {
    background: none;
    padding: 0;
}

.card > .summary-panel {
    background: none;
    padding: 0;
}

/* --- 納期目安パネル --- */
.summary-panel--schedule {
    background-color: var(--gray-100);
}

/* price-box に schedule パネルがある場合、親のスタイルを解除 */
.price-box:has(.summary-panel--schedule) {
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-box:has(.summary-panel--schedule) > .summary-panel:not(.summary-panel--schedule) {
    padding: 24px;
    border-radius: 8px;
    background-color: var(--light-primary-color);
}

.price-box:has(.summary-panel--schedule) > .summary-panel--schedule {
    padding: 24px;
    border-radius: 8px;
    background-color: var(--gray-100);
}

/* price-box内のパネル: 背景100%、中身50%左寄せ */
.price-box > .summary-panel > .summary-section,
.price-box > .summary-panel > .summary-costs,
.price-box > .summary-panel > .grand-total {
    width: 40%;
}

.delivery-day-header {
    display: flex;
}

.delivery-day-header button {
    margin-left: auto;
}

.form-label-wrap.row.border-top {
    margin-bottom: 20px;
}




/* =========================================================
   入稿データ確認 - モーダル内カテゴリカード
   ========================================================= */
   .order-data-category-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-data-category-card {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
}

.order-data-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-bold);
    transition: background 0.15s;
    gap: 10px;
}

.order-data-category-link:hover {
    background: var(--gray-100);
    border-radius: 8px;
}

.order-data-category-link--empty {
    color: var(--text-light);
    cursor: default;
}

.order-data-category-link--empty:hover {
    background: transparent;
}

.order-data-category-name {
    font-size: var(--font-size-h3);
    font-weight: 600;
    flex: 1;
}

.order-data-category-link .bi-chevron-right {
    font-size: 14px;
    color: var(--text-light);
}

.order-data-category-empty {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

/* パターングループ */
.order-data-pattern-group {
    margin-bottom: 24px;
}

.order-data-pattern-group:last-child {
    margin-bottom: 0;
}

.order-data-pattern-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

/* ステータスバッジ */
.order-data-category-status {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-left: auto;
    flex-shrink: 0;
}

.order-data-category-status--uploaded {
    color: var(--primary);
    font-weight: 600;
}

.order-data-category-status--checked {
    color: var(--success, #22c55e);
    font-weight: 600;
}

/* =========================================================
   入稿データ確認 - 詳細ページ ファイル一覧
   ========================================================= */
.order-data-file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.order-data-file-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: var(--gray-50);
    gap: 16px;
}

.order-data-file-preview {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-data-file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.order-data-file-info {
    flex: 1;
    min-width: 0;
}

.order-data-file-name {
    font-weight: 600;
    color: var(--text-bold);
    margin-bottom: 4px;
    word-break: break-all;
}

.order-data-file-meta {
    font-size: var(--font-size-small);
    color: var(--text-light);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.order-data-file-desc {
    font-size: var(--font-size-small);
    color: var(--text-base);
    margin-top: 4px;
}

.order-data-file-actions {
    flex-shrink: 0;
}

.order-data-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
}

/* =========================================================
   入稿データ確認 - 詳細ページ リデザイン（CMS）
   ========================================================= */

/* カード内パディング */
.data-detail-card-inner {
    padding: 0 32px;
}

/* ファイルボックス */
.data-detail-file-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--gray-300);
    background-color: rgba(249, 250, 251, 0.5);
    border-radius: 8px;
    padding: 20px;
}

.data-detail-file-box--center {
    align-items: center;
}

/* ファイル情報エリア */
.data-detail-file-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.data-detail-file-info > div {
    min-width: 0;
}

/* ファイルアイコン（非画像ファイル用） */
.data-detail-file-ico {
    width: 80px;
    height: 80px;
    background-color: var(--light-primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--gray-300);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 36px;
}

/* サムネイル（画像ファイル用） */
.data-detail-file-thumb {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.data-detail-file-thumb img,
.data-detail-file-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.data-detail-file-thumb--video {
    position: relative;
}

.data-detail-file-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

a.data-detail-file-thumb,
a.data-detail-file-ico {
    display: flex;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

a.data-detail-file-thumb:hover,
a.data-detail-file-ico:hover {
    opacity: 0.8;
}

/* ファイル名 */
.data-detail-file-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bold);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* メタ情報 */
.data-detail-file-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
    font-size: var(--font-size-small);
    color: var(--text-light);
}

/* アクションボタン列 */
.data-detail-file-acts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 192px;
    flex-shrink: 0;
}

.data-detail-file-acts .btn {
    width: 100%;
}

.data-detail-file-acts label.btn input[type="file"] {
    display: none;
}

/* 差し替えファイル名表示 */
.data-detail-file-selected {
    font-size: var(--font-size-small);
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 4px;
    display: none;
}

/* =========================================================
   シリアル登録画面
   ========================================================= */

.serial-list-table-wrap {
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
}

.serial-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

.serial-list-table thead {
    position: sticky;
    top: 0;
    background: var(--gray-100);
    z-index: 1;
}

.serial-list-table th,
.serial-list-table td {
    padding: 8px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.serial-list-th-no,
.serial-list-td-no {
    width: 60px;
    color: var(--text-light);
}

/* ============================================================
   入稿データ確認サイドバー
   ============================================================ */
.asset-sidebar-back {
    padding: 8px 16px 12px;
}

.asset-sidebar-back-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.15s;
}

.asset-sidebar-back-link:hover {
    color: var(--primary-color);
}

.asset-sidebar-back-link i {
    font-size: 20px;
}

.asset-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.asset-sidebar-pattern-title {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-sidebar-pattern-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--light-primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.asset-sidebar-sections {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asset-sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.asset-sidebar-link:hover {
    background: var(--gray-100);
}

.asset-sidebar-link--active {
    background: var(--light-primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.asset-sidebar-link-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-sidebar-status--checked {
    color: var(--primary-color);
    font-size: 20px;
    width: 24px;
}

.asset-sidebar-status--pending {
    color: var(--gray-300);
    width: 24px;
    font-size: 20px;
}

.asset-sidebar-badge-nocheck {
    font-size: 10px;
    background: var(--gray-300);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

/* コンテンツ追加ボタン（サイドバー内） */
.asset-sidebar-add {
    padding: 4px 16px 8px;
}

.asset-sidebar-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
    font-size: 13px;
    color: var(--primary-color);
    background: none;
    border: 1px dashed var(--light-primary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.asset-sidebar-add-btn:hover {
    background: var(--light-primary-color);
}

.asset-sidebar-add-btn i {
    margin-right: 4px;
}

/* 容量ゲージ（サイドバーフッター） */
.asset-sidebar-storage {
    padding: 16px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
    flex-shrink: 0;
}

.asset-sidebar-storage-header {
    display: block;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bold);
    margin-bottom: 6px;
}

.asset-sidebar-storage-header i {
    margin-right: 4px;
}

.asset-sidebar-storage-value {
    color: var(--primary-color);
}

.asset-sidebar-storage-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-300);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.asset-sidebar-storage-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s;
}

.asset-sidebar-storage-bar-fill--danger {
    background: #ef4444;
}

.asset-sidebar-storage-note {
    font-size: 10px;
    color: var(--text-light);
    margin: 0;
}

/* パターン紐付けチェックボックス */
.content-pattern-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.content-pattern-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}


.content-pattern-link-item--active {
    border-color: var(--primary-color);
}

/* 2カラムフォーム行 */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 著作権フィールドグループ */
.copyright-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label-sm {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* 削除エリア */
.form-group--danger {
    display: flex;
    justify-content: flex-end;
}

.btn-text-danger {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}

.btn-text-danger:hover {
    background: #fef2f2;
}

/* サイトページ選択モーダル */
.sitepage-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sitepage-row {
    display: flex;
    align-items: center;
    gap:20px;
    padding: 0.8rem 1.2rem;
}

.sitepage-row + .sitepage-row {
    border-top: 1px solid #eee;
}

.sitepage-row__label {
    font-weight: bold;
}


/* =========================================================
   PDFローディング画面用
   ========================================================= */


.pdf-loading-overlay[hidden] {
    display: none !important;
}

.pdf-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.35);
    backdrop-filter: blur(4px);
    z-index: 9999;

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

.pdf-loading-card {
    width: 320px;
    padding: 28px 24px;

    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4mm;

    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    text-align: center;
}

.pdf-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;

    border-radius: 50%;
    border: 4px solid var(--gray-400);
    border-top-color: var(--primary-color);

    animation: pdfSpin 0.9s linear infinite;
}

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

.pdf-loading-text {
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: 1.6;
}

@keyframes pdfSpin {
    to {
        transform: rotate(360deg);
    }
}
