body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #1a1a1a;
    background-color: #fdfdfc; /* 非常に薄いウォームグレー */
    letter-spacing: 0.05em;
}
h1, h2, h3, h4, .serif-font {
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.08em;
}

/* 高級感のあるフェードインアニメーション */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }

/* ボタンの光沢感 */
.btn-luxury {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.btn-luxury::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-luxury:hover::after {
    left: 100%;
}
section.wrap_block.relative, .container.mx-auto.px-6.max-w-3xl.leading-relaxed.text-gray-700 {
    z-index: 0;
}
section.py-24.bg-white {
    z-index: 0;
    position: relative;
}
.mx-auto {position: relative; z-index: 1;}
/*.ec-layoutRole__header,*/.ec-headerCategoryRole, .ec-headerNaviRole__menu, .ec-layoutRole__footer {display: none;}
header.buy_header {padding: 0; max-width: 1740px; margin: auto; z-index: 1; position: relative;}
/* SP（iPhone想定）：fixed にする */
@media (max-width: 768px){
  header.buy_header{
    max-width: none !important;
  }
}
@media (max-width: 580px){
  .buy_header.is-fixed{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.itemList {gap:9%; padding: 3%; max-width: 1400px; margin: auto;}
.itemList>li {width: 18.25%; margin-bottom: 4rem;}
/*.buyother .ec-layoutRole .ec-layoutRole__contents {padding-top: 100px;}*/
.buying span.brand_logo {display: block; width: 0px; height: auto;}
.buying .maker_select {display: flex; gap: 10%; justify-content: center; margin: 2rem auto;}
.buying .maker_select a {white-space: nowrap;}
.buying .ltrTitle {text-align: center; margin: 2rem auto; font-size: min(4vw, 1.2rem);}
.buying .cateList.upper {display: flex; gap: 8%; justify-content: center; background-color: #faf8f2; padding: 1.1rem 0;}
.buying .cataName {text-align: center; margin: 2rem auto; font-size: min(4vw, 1.2rem); padding-top: 100px; margin-top: -100px!important;}
.buying .cataName:first-of-type {padding-top: 90px; margin-top: -20px!important;}
.buying a.oButton {font-size: min(3vw, .875rem);}
.buymax .buymenu_max, .buycanon .buymenu_canon, .buynikon .buymenu_nikon, .buysony .buymenu_sony, .buyfujifilm .buymenu_fujifilm, .buyricoh .buymenu_ricoh {font-weight: 900; color: #837061;}
.buying .buy-g-menu a {display: block; position: relative; padding: 0 0 1.5rem; margin-top: 1.5rem;}
.buying .pulldown-mn-colle {position: absolute; top: 100%; background: #FFF; width: 100vw; left: 50%; transform: translateX(-50%); margin: 0 !important;}
.buying .pulldown-mn-colle .pulldown-mn-colle_inner {display: flex; justify-content: center; position: absolute; left: 0; right: 0; background: #f5f5f4; margin-top: -.2rem;}
.buying .pulldown-mn-colle .pulldown-mn-colle_inner li a {display: block; padding: 1rem 3vw;}
/* 最初は非表示にしておく */
.pulldown-mn-colle {display: none;}
.kaitori-mn-colle {padding-top: 3rem;}
.kaitori-mn-colle .kaitori-mn-colle_inner {display: flex; justify-content: center; margin-bottom: 1rem;}
.kaitori-mn-colle .kaitori-mn-colle_inner li a {padding: 2rem 2vw; display: block;}
.fa-bars:before, .fa-navicon:before {filter: drop-shadow(1px 1px 1px #FFF);}
/*** フォーム ***/
.buyform .ec-off1Grid {padding-bottom: 2rem;}
.buyform .ec-borderedDefs dt {text-align: left; padding-top: .4rem;}
.buyform .ec-radio div, .buyform div.form-check {display: flex; align-items: center;}
.buyform .ec-borderedDefs dl:first-of-type {display: none;}
.buyform .ec-borderedDefs dl {border-top: solid 1px #e0e0e0; padding: 24px 0; margin: 0;}
.buyform .ec-borderedDefs dl .ec-input input {margin: 0;}
.buyform .ec-borderedDefs p.ec-para-normal {text-align: left; font-size: min(3.5vw, 1rem); padding-top: 1rem;}
[class*="afb-confirm-radio-group-"] dd div {display: none;}
[class*="afb-confirm-select-"] [id*="select-"] {display: none;}
.ec-borderedDefs dl {align-items: flex-start;}
#text-1765865619655, #text-1765865707059, #date-1765865769734-0 {width: 160px;}
#text-1765866349334, #text-1765867118630, #text-1765867131528 {width: 50px;}
.buying_complete_msg {text-align: left; line-height: 1.5; font-weight: 400;}
.buying_complete_msg .buying_complete_msg_list {margin-left: 1.5rem; padding: .5rem 0;}
.buying_complete_msg .buying_complete_msg_list li {font-size: min(3vw, .875rem); text-indent: -1rem;}
.buying_complete_msg .buying_complete_msg_list li::before {content: "*"; margin-right: .3rem;}
.strong {font-weight: 600;}

/* タイトル */
.buyform .wrap_block {padding-top: 50px;}
.buyform h1 {font-size: min(4vw, 1.5rem); font-weight: 500; text-align: center; margin-bottom: 24px; letter-spacing: 0.03em;}
.buyform h2 {font-size: min(3.8vw, 1.2rem); font-weight: 500; text-align: center; margin-bottom: 12px; letter-spacing: 0.03em; padding-top: 24px; line-height: 1.5;}
.buyform h2:first-of-type {padding-bottom: 24px;}
.buyform dt, .buyform label {font-size: min(3.4vw, 1rem); font-weight: 500; text-align: center; /*margin-bottom: 6px;*/}
.buyform dt {padding-top: 5px;}
.buyform .col-form-label.required::after, .buyform .form-label.required::after {content: '※'; font-size: .6rem; color: #F40; vertical-align: top;}
.buyform .ec-reportHeading p {font-size: min(3.4vw, 1rem); font-weight: 500;}
.date-select-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 250px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
}

.date-select-dropdown div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.date-select-dropdown div:hover {
    background: #f0f0f0;
}
a.sp_bottom_buttom {display: none;}
.pc-none {width: 0; height: 0; visibility: hidden; overflow: hidden; display: block;}


/* 買取ヘッダー */
.ec-cartNaviWrap, .ec-headerInfoRole .ec-headerInfoRole__text {display: none;}
.ec-headerInfoRole {height: 2px!important;}
@media (max-width: 768px) {
/* 買取ヘッダー */
.ec-headerNaviRole__left {width: 1px; height: 1px; visibility: hidden; overflow: hidden;}
.container.mx-auto.px-6.h-20.flex.items-center.justify-between {height: auto!important;}

/* 買取フッター */
.ec-footerBottomRole__nav {justify-content: center;}
.ec-footerBottomRole__item:nth-child(2), .ec-footerBottomRole__item:nth-child(3), .ec-footerBottomRole__item:nth-child(4) {display: none;}

/* 固定状態 */
.buy_header.is-fixed {
    position: fixed;
    top: 5px;
    right: 0;
    width: 15%;
    z-index: 999;
    background: rgba(255,255,255,0.95); /* 半透明にしたい場合 */
    /* backdrop-filter: blur(6px);        すりガラス効果（不要なら削除）
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
}
.buying .maker_select {gap: 0; justify-content: space-evenly;}
.h-20 {
    height: 3rem!important;
}
}

@media (max-width: 580px) {
    .ec-headerNaviRole .ec-headerNaviRole__main.fixed {
        position: absolute;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    }

.buy_header {background: transparent!important; border-bottom: none; z-index: 9999!important;}
.pc-none {width: auto; height: auto; visibility: visible; overflow: auto; display: inline-block;}
.buyother a.sp_bottom_buttom {
    display: block;
    position: fixed;
    bottom: 0;
    width: 47%;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
    border-radius: 20px 20px 0 0;
    z-index: 999;
}
.buying.index a.sp_bottom_buttom, .buyform a.sp_bottom_buttom {display: none;}
.buyform .ec-contactCompleteRole {padding-left: 10px; padding-right: 10px;}
.topconnect {display: none!important;}
/*.wrap_block {padding-top: 0;}*/
.pt-20 {margin-top: 0rem;}
.itemList {gap: 10%; padding: 3%;}
.itemList>li {width: 45%; margin-bottom: 3rem;}
.buying .cateList.upper {gap: 5%; flex-wrap: wrap;}
.buying .cateList.upper li {width:  calc((100% - 5%) /4); text-align: center; padding: .3rem 0;}
.buying .cateList.upper:has(> li:nth-child(4)) > li {width: calc((100% - 5%) /2); text-align: center; padding: .3rem 0;}

div#mobile-menu {
    top: -5px;
    padding-top: 2rem;
    width: 100vw;
    right: 0;
}
.buying .cateList.upper {padding: .5rem 0;}
}


.pName span.sub {font-size: .7rem; display: block; font-weight: 400; width: 100%; margin-bottom: .1rem;}
li.max .pPhoto {position: relative; aspect-ratio: 1 / 1; display: flex; justify-content: center; align-items: center;}
li.max .pPhoto::after {content: "Max Price"; display: block; background: #dac37b; width: fit-content; padding: .1rem .2rem; font-size: .7rem; margin-top: .1rem; border-radius: 4px; color: #FFF; position: absolute; bottom: 2px; left: 0; white-space: nowrap;}
/* 査定基準 詳細ボックス：初期は閉じる */
.disc-cond {max-height: 0; overflow: hidden; transition: max-height .4s ease;}
/* 開くときのクラス */
.disc-cond.open {}
.discount h4.anchor i.fa-chevron-down{
  display: inline-block;          /* 回転に必須 */
  transition: transform .25s ease;
  transform-origin: 50% 55%;
}

/* open時に180度回転（下→上の向きになる） */
.discount .disc-cond.open + * {} /* ←使わない */
.discount .disc-cond.open {}     /* ←使わない */

/* h4 の直後に .disc-cond がある前提で、h4側に状態クラスを付けるのが一番簡単 */
.discount h4.anchor.is-open i.fa-chevron-down{
  transform: rotate(180deg);
}

.deg-cond, .deg-cond-det {width: 100%; border-collapse: collapse; text-align: center;}
.deg-cond th, .deg-cond td {padding: .7rem; border-bottom: solid 1px #e4e4e4;}
.deg-cond th {text-align: center; background-color: #f7f7f7; border-top: solid 1px #e4e4e4; white-space: nowrap;}
.disc-cond th {border-bottom: solid 1px #c4c4c4; padding: .8rem 0 .4rem; text-align: center;}
.disc-cond td {border-bottom: solid 1px #e4e4e4; padding: .4rem 0;}

.sp-only {display: none;}
/* -------------- */
/* スマホレイアウト */
/* -------------- */
@media (max-width: 1000px) {
.mobile-mn-colle_inner {margin-left: 3rem;}
.mobile-mn-colle_inner li {margin-bottom: 1rem;}
}
@media (max-width: 768px) {
.pc-only {display: none;}
.sp-only {display: block;}
}

/* =========================================
   PC：.deg-cond / .deg-cond-det（表の見た目を安定）
========================================= */
.deg-cond { margin-top: .5rem; }
.deg-cond th, .deg-cond td { vertical-align: middle; }
.deg-cond td.text-left { text-align: left; }

.deg-cond-det { width: 100%; border-collapse: collapse; text-align: center; }
.deg-cond-det th, .deg-cond-det td { border-bottom: solid 1px #e4e4e4; }
.deg-cond-det td.text-left { text-align: left; }
.deg-cond-det td { padding: .45rem .4rem; }
.deg-cond-det th { padding: .8rem 0 .4rem; }

/* =========================================
   表示切替：PC表は残す / SPカードは表示
   ※Twigで pc-only / sp-only を付けた前提
========================================= */
.sp-only { display: none; } /* 既にあるが明示 */
@media (max-width: 768px){
  .pc-only { display: none !important; }
  .sp-only { display: block !important; }
}

/* =========================================
   SP：査定基準（deg-cond）まとめカード：.deg-cond-sp
========================================= */
.deg-cond-sp{ margin-top: 1rem; }
.deg-cond-sp .deg-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: .85rem .9rem;
  margin: 0 0 .9rem;
}
.deg-cond-sp .deg-head{
  font-weight: 800;
  font-size: 13px;
  padding: .1rem 0 .6rem;
  border-bottom: 1px dashed rgba(0,0,0,.16);
  margin-bottom: .65rem;
}
.deg-cond-sp .deg-group{ margin-top: .7rem; }
.deg-cond-sp .deg-group-title{
  font-weight: 800;
  font-size: 12px;
  margin: 0 0 .45rem;
  color: rgba(0,0,0,.78);
}
.deg-cond-sp .deg-list{ list-style:none; padding:0; margin:0; }
.deg-cond-sp .deg-list li{
  display:grid;
  grid-template-columns: 2.4em 1fr;
  gap: .6rem;
  padding: .6rem 0;
  border-top: 1px solid rgba(0,0,0,.06);
  align-items:start;
}
.deg-cond-sp .deg-list li:first-child{ border-top: 0; padding-top: .15rem; }
.deg-cond-sp .deg-rank{
  font-weight: 900;
  font-size: 12px;
  line-height: 1.6;
}
.deg-cond-sp .deg-text{
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}
.deg-cond-sp .deg-meta{
  grid-column: 1 / -1;
  display:flex;
  gap:.6rem;
  flex-wrap: wrap;
  margin-top: .15rem;
  font-size: 12px;
  color: rgba(0,0,0,.72);
}
.deg-cond-sp .deg-meta-line{
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  padding: .2rem .55rem;
  white-space: nowrap;
}

/* =========================================
   SP：査定基準（詳細）カード：.deg-det-sp
========================================= */
.deg-det-sp{ margin-top: .75rem; }
.deg-det-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: .85rem .9rem;
  margin: 0 0 .9rem;
}
.deg-det-head{
  font-weight: 900;
  font-size: 13px;
  padding: .1rem 0 .6rem;
  border-bottom: 1px dashed rgba(0,0,0,.16);
  margin-bottom: .65rem;
}
.deg-det-group{ margin-top: .8rem; }
.deg-det-title{
  font-weight: 900;
  font-size: 12px;
  margin: 0 0 .45rem;
  color: rgba(0,0,0,.78);
}
.deg-det-list{
  list-style:none;
  padding:0;
  margin:0;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.02);
}
.deg-det-list li{
  display:grid;
  grid-template-columns: 2.6em 1fr auto;
  gap: .6rem;
  padding: .6rem .7rem;
  background:#fff;
  border-top: 1px solid rgba(0,0,0,.06);
  align-items:start;
}
.deg-det-list li:first-child{ border-top:0; }
.deg-det-rank{
  font-weight: 900;
  font-size: 12px;
  line-height: 1.6;
}
.deg-det-text{
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}
.deg-det-cut{
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  color: rgba(0,0,0,.72);
}

/* さらに狭い端末で “減額” が詰まる場合の保険 */
@media (max-width: 360px){
  .deg-det-list li{
    grid-template-columns: 2.6em 1fr;
  }
  .deg-det-cut{
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.max-price-icon:after {content: "Max Price"; display: inline-block; background: #dac37b; width: fit-content; padding: .2rem .3rem; margin: 0 .3rem 0 0; line-height: 1.6; font-size: .7rem; border-radius: 4px;  color: #FFF; bottom: 2px; white-space: nowrap;}

/* =========================
   査定基準：見せ方強化
   ========================= */

/* PC表：Max Price列を強調（右端 5列目） */
.deg-cond.pc-only thead th:last-child{
  font-weight: 700;
}

.deg-cond.pc-only tbody td:last-child{
  font-weight: 800;
  background: rgba(212, 175, 55, .10);     /* ゴールド系の薄い背景（brand-gold想定） */
  border-left: 2px solid rgba(212, 175, 55, .35);
}

/* PC表：A社上限買取価格（4列目）は控えめに */
.deg-cond.pc-only tbody td:nth-last-child(2){
  opacity: .72;
}

/* SP：メタ情報の Max Price 行を強調 */
.deg-cond-sp .deg-meta-line:last-child{
  font-weight: 800;
}

/* 「減額なし」を強調（PC表 + SP共通） */
.deg-cond td,
.deg-cond-sp,
.deg-det-sp,
.deg-cond-det{
  /* 既存に影響しないよう“テキスト内一致”だけを狙う */
}

.deg-cond td:has(> :not(script)):where(:not(th)),
.deg-cond-sp,
.deg-det-sp{
  /* ここは空でOK：下の :has() が使えないブラウザ対策はJSでやります */
}

/* --------
   ここからは「CSSだけ」で出来る範囲（文字列一致ができないため、JS併用推奨）
   → JSで 'is-no-cut' / 'is-cut' を付けた時の見た目
   -------- */

/* 減額なし（強） */
.is-no-cut{
  font-weight: 800;
}

/* 減額あり（弱） */
.is-cut{
  opacity: .65;
  font-weight: 500;
}

/* PC表：セル内の強調も分かるように */
.deg-cond.pc-only td .is-no-cut{
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}

.deg-cond.pc-only td:last-child .is-no-cut{
  background: rgba(212,175,55,.18);
}

/* SP：バッジっぽく */
.deg-cond-sp .is-no-cut,
.deg-cond-sp .is-cut{
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
}

.deg-cond-sp .is-no-cut{
  background: rgba(212,175,55,.18);
}

.deg-cond-sp .is-cut{
  background: rgba(0,0,0,.05);
}

.buying_max_detail {margin: 1rem auto 0; padding: 0 1rem .2rem; display: flex; width: fit-content; align-items: center;}
.buying_max_detail_caution {margin: 0 auto 1rem; padding: 0 1rem; font-size: .7rem; text-align: center; color: #7d7661;}
.buying_max_detail div {font-size: .75rem;}
@media (max-width: 580px) {
.buying_max_detail {max-width: 375px;}
.buying_max_detail div {font-size: .75rem; text-align: justify;}
.buying_max_detail_caution {font-size: .7rem; text-align: justify; max-width: 375px;}
}
.footer_buying_form {display: none;}
@media (max-width: 580px) {
.buyother .footer_buying_form {display: block; position: fixed; bottom: 55px; z-index: 999; background: #000; width: 80%; max-width: 160px; text-align: center; padding: .3rem; margin: 0 auto; border-radius: 10px 10px 0 0; left: 0; right: 0;}
.buyother .footer_buying_form a {color: #FFF; font-size: .8rem;}
.buying.buyother.buyform .footer_buying_form {display: none;}
}
.itemList .max .max_level {display: none;}
@media (min-width: 581px) and (max-width: 1300px) {
  .buy_menu {position: absolute; right: 20px;}
}
@media (min-width: 1301px) {
  .buy_menu {position: absolute; right: 0;}
}
.buy_flow_box {display: flex; flex-wrap: wrap; padding: 3rem 0;}
.buy_flow_box h3 {width: 100%; font-size: min(4vw, 1.2rem);}
.buy_flow_box li {width: 33.333%; list-style: none; padding: 0 2%;}
@media (max-width: 580px) {
  .buy_flow_box li {width: 65%; margin: 1rem auto;}
}
/*html:has(.buying) {display: none;}*/