:root{
  --frame: 560px;
  --pad: clamp(16px, 4vw, 28px);
  --radius: 10px;

  --ink:#222;
  --muted:#666;

  --beige:#f4f1ef;
  --gray:#d1d1d1;

  --overlayDark: rgba(0,0,0,0.45); /* BUSINESS右半分の黒透過 */
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  margin:0;
  overflow-x:hidden;  /* 横スクロール完全防止 */
  font-family:"Noto Sans JP", system-ui, -apple-system, Segoe UI, sans-serif;
  color:var(--ink);
  background:#fff;
  font-family: 'Cinzel', serif;
}

.title{
  font-family: 'Cinzel', serif;
  letter-spacing: .18em;
}
img{ max-width:100%; height:auto; display:block; }

.frame{
  width: 800px;
  max-width: 100%;        /* ← 追加：800px超の画面でも収まる */
  margin: 0 auto;
  box-sizing: border-box; /* ← 追加：paddingが幅に含まれる */
}

@media (max-width:768px){
  .frame{
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  }
}

/* 改行制御 */
.br-pc{ display:inline; }
.br-sp{ display:none; }
@media (max-width:768px){
  .br-pc{ display:none; }
  .br-sp{ display:inline; }
}

input,
textarea{
  font-family:"Noto Sans JP", system-ui, sans-serif !important;
}

/* ===== TOP video ===== */
.hero{
  position:relative;
  height: 100vh;
  background:#000;
  overflow:hidden;
}
.hero__video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

@media (max-width:768px){
  .hero{ height: 100svh; } /* iOS対策でsvh推奨 */
  .hero__video{
    object-position: 50% 20%; /* 例：上寄せ（数字をいじって調整） */
  }
}


.hero__video--sp{
  display:none;
}

@media (max-width:768px){
  .hero__video--pc{
    display:none;
  }
  .hero__video--sp{
    display:block;
  }
}


/* TOP logo */
.hero__logo{
  position:absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  display:inline-block;
}
.hero__logo img{
  width: clamp(200px, 20vw, 200px);
  height:auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

@media (max-width:768px){
.hero__logo img{
  width: clamp(100px, 20vw, 100px);
  height:auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
}
/* hamburger */
.hamburger{
  position:absolute;
  top: 14px;
  right: 14px;
  z-index: 6;

  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  cursor:pointer;
}
.hamburger span{
  position:absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background:#fff;
  border-radius: 2px;
  transition: transform .15s ease, top .15s ease, opacity .15s ease;
}
.hamburger span:nth-child(1){ top: 14px; }
.hamburger span:nth-child(2){ top: 21px; }
.hamburger span:nth-child(3){ top: 28px; }
.drawer-open .hamburger span:nth-child(1){ top:21px; transform: rotate(45deg); }
.drawer-open .hamburger span:nth-child(2){ opacity:0; }
.drawer-open .hamburger span:nth-child(3){ top:21px; transform: rotate(-45deg); }

/* drawer */
.drawer{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
}
.drawer__panel{
  width: min(360px, 90vw);
  height: 100%;
  margin-left:auto;
  background: rgba(20,20,20,0.95);
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.drawer__panel a{
  color:#fff;
  text-decoration:none;
  padding: 12px 10px;
  border-radius: 10px;
  letter-spacing: .12em;
}
.drawer__panel a:hover{
  background: rgba(255,255,255,0.08);
}

/* ===== sections ===== */
.sec{
  padding: 56px 0;
}
.sec--white{ background:#fff; }
.sec--beige{  background: #e3e6ed; }
.sec--gray{ background: var(--gray); }

.title{
  text-align:center;
  margin: 0 0 8px;
  letter-spacing:.18em;
  font-weight:500;
  color:#666;
  font-size: 2.5em;
}

@media (max-width:768px){
  .title{
    font-size: 1.5em;
  }
}

.subtitle{
  text-align:center;
  margin: 0 0 28px;
  font-size:12px;
  letter-spacing:.22em;
  color:var(--muted);
}
.title--on-dark,
.subtitle--on-dark{
  color: rgba(0,0,0,0.9);
}

/* ===== BUSINESS: bg + right half dark overlay + white text ===== */
.sec--business{
  position:relative;
  overflow:hidden;
  color:#fff;
}
.sec__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  z-index:0;
}
.sec__overlay{
  position:absolute;
  inset:0;
  z-index:1;
}
.sec__overlay--right-dark{
  background: linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 40%, rgb(255 255 255 / 70%) 50%, rgb(255 255 255 / 70%) 100%);
/*  
  background: linear-gradient(
    45deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 50%,
    var(--overlayDark) 50%,
    var(--overlayDark) 100%
  );
*/
}
.sec__content{
  position:relative;
  z-index:2;
}

/* 文字ブロック（右側で収まるように右寄せ） */
.business__text{
  width: min(360px, 100%);
  margin-left:auto;
  font-size: 13px;
  line-height: 2;
  color: rgba(0,0,0,0.92);
  font-size: 1.3em;
}

@media (max-width:768px){
  .business__text{
    font-size: 1.0em;
  }
}

.business__text p{ margin:0; }


/* BUSINESSだけ frame を全幅化（他セクションに影響させない） */
.sec--business .frame{
  width: 100%;
  margin: 0;
}

/* 高さを作って、中央寄せが効く土台にする */
.sec--business .sec__content{
  position: relative;
  min-height: 520px;          /* 好みで調整 */
}

/* 右半分パネル：横=右半分の中央 / 縦=中央 */
.business__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;        /* 横方向：中央 */
  text-align: center;         /* テキスト中央 */

  padding: 0 var(--pad);
}

/* 文字ブロックは “右半分の中” で収まる幅に */
.business__text{
  width: min(400px, 100%);
  margin: 0;
}

/* SPは今まで通り全面表示に戻す（読みやすさ優先） */
@media (max-width:768px){
  .business__panel{
    position: static;
    width: 100%;
    transform: none;
    align-items: flex-start;  /* 左寄せに戻すなら */
    text-align: left;         /* 左寄せに戻すなら */
    padding: 0 20px;
  }

  .sec--business .sec__content{
    min-height: auto;
  }
}


/* ===== Strengths: 3枚横並び + 下テキスト ===== */

/* 画像3枚横並び */
.strengths__photos{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.ph{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 4/3;
  background-color: #eee;
  margin: 0 10px 0 0;
}

/* 下テキストブロック */
.strengths__body{
  text-align: center;
  color: #666;
  line-height: 2;
  padding: 32px 20px 0;
}

.strengths__body p{
  margin: 0 0 16px;
  font-size: 1.1em;
}

@media (max-width:768px){
  .strengths__photos{
    grid-template-columns: 1fr; /* SP: 縦積み */
  }

  .strengths__body{
    text-align: left;
    padding: 24px 10px 0;
  }

  .strengths__body p{
    font-size: 0.9em;
  }
}

/* Strengths banner (anchor image) */
.strengths__banner{
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 30px 100px;
}

@media (max-width:768px){
  .strengths__banner{
    margin-top: 5px;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 10px 20px;
  }
}
.strengths__banner a{ display:block; }
.strengths__banner img{ width:100%; height:auto; display:block; }

/* ===== WORKS fixed 5 mosaic ===== */
/* ===== WORKS : PDFみたいに固定配置 ===== */
/* hero + 下段 */
.works{
  display: grid;
  gap: 12px;
}

/* hero */
.work--hero{
  aspect-ratio: 16 / 10;
}

/* 下4枚を2列で“独立縦積み” */
.works__cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 各列を縦積み（ここが肝） */
.works__col{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 画像共通 */
.work{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  background:#e9e9e9;
}
.work img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 横長 */
.works__col .work:not(.work--tall){
  aspect-ratio: 4 / 3;
}

/* 縦長 */
.work--tall{
  aspect-ratio: 3 / 4;
}

/* SP */
@media (max-width:768px){
  .works__cols{ grid-template-columns: 1fr; }
}
/* ===== table ===== */
.table-wrap{
  background:#fff;
  border:1px solid #d8d8d8;
  border-radius: var(--radius);
  overflow:hidden;
}
table{ width:100%; border-collapse:collapse; }
th, td{
  border-top:1px solid #d8d8d8;
  padding: 12px 14px;
  font-size:0.8em;
  line-height:1.9;
  vertical-align:middle;
  color:#555;
}
tr:first-child th, tr:first-child td{ border-top:none; }
th{
  width: 42%;
  background:#e8ecf2;
  color:#666;
  font-weight:500;
  border-right:1px solid #d8d8d8;
}

/* ===== form ===== */
.form{ display:grid; gap: 12px; }
.field{ display:grid; gap: 6px; font-size: 1em; color:#666; }
input, textarea{
  width:100%;
  border:1px solid #8a8a8a;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  min-height: 44px;
  background:#fff;
}
textarea{ min-height: 180px; resize: vertical; }

.radio-box{
  border-radius: 6px;
  padding: 10px 12px;
  display:grid;
}
.radio-box label{ display:flex; align-items:center; gap:10px; color:#555; }
.radio-box input{ width:18px; height:18px; }

.btn{
  width: 120px;
  margin: 10px auto 0;
  border:none;
  border-radius: 6px;
  padding: 12px 16px;
  background:#6b6b6b;
  color:#fff;
  cursor:pointer;
  letter-spacing:.18em;
}

/* ===== privacy ===== */
.privacy{
  text-align:center;
  color:#666;
  font-size:12px;
  line-height:2;
}
.privacy h3{
  font-size:12px;
  color:#444;
  margin: 22px 0 8px;
  letter-spacing:.08em;
}
.privacy p{ margin:0 0 14px; }


.sp-tel-float{
  display:none;
}

@media (max-width:768px){
  .sp-tel-float{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: #6b6b6b;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
  }

  .sp-tel-float svg{
    width: 26px;
    height: 26px;
    fill: #fff;
  }
}

/* ===== 売却物件募集 ===== */
.sec--sale{
  background: #e8ecf2;
}

/* 説明ボックス */
.sale__intro{
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
  line-height: 2;
  font-size: 0.95em;
  color: #444;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}
.sale__intro h3{
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 10px;
  color: #333;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}
.sale__intro p{ margin: 0; }
.sale__intro strong{ font-weight: 700; }

/* イラスト画像（黒背景透過対応） */
.sale__illust{
  display: block;
  margin: 0 auto;
  max-width: 380px;
  width: 100%;
  mix-blend-mode: multiply;
}

/* ラベル帯 */
.sale__label{
  display: inline-block;
  background: #4a6fa5;
  color: #fff;
  font-size: 0.9em;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 4px;
  margin: 16px 0 16px;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: .05em;
}

/* フロー（売主→当社→買主） */
.sale__flow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.sale__flow-node{
  text-align: center;
  font-size: 0.85em;
  color: #444;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.6;
}
.sale__flow-node img{
  width: 100px;
  height: auto;
  margin: 0 auto 4px;
  mix-blend-mode: multiply;
}

.sale__flow-node_ex {
  width: 60px !important;
}

@media (max-width:768px){
.sale__flow-node img{
  width: 40px;
  height: auto;
  margin: 0 auto 4px;
  mix-blend-mode: multiply;
}

.sale__flow-node_ex {
  width: 40px !important;
}
}

.sale__flow-arrow{
  font-size: 1.6em;
  color: #4a6fa5;
  font-weight: bold;
}

/* 仲介・買取 カード2列 */
.sale__cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.sale__card{
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.85em;
  color: #444;
  line-height: 1.9;
}
.sale__card h4{
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 12px;
  color: #333;
  border-bottom: 2px solid #e8ecf2;
  padding-bottom: 8px;
}
.sale__card img{
  width: 100%;
  max-width: 140px;
  margin: 0 auto 12px;
  display: block;
  mix-blend-mode: multiply;
}
.sale__card p{ margin: 0 0 8px; }

/* メリット・デメリット */
.sale__merit-wrap{
  display: flex;
  gap: 0;
  margin-top: 0;           /* カードと隙間なしで接続 */
  flex-wrap: wrap;
  border: 1px solid #aab4c0;
  border-radius: 0 0 6px 6px;  /* 上角は丸めない（カード直下） */
  overflow: hidden;
  background: #fff;
}
.sale__merit, .sale__demerit{
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  font-size: 0.85em;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 2;
  background: #fff;
  color: #333;
}
.sale__merit{
  border-right: 1px dashed #aab4c0;
}
.sale__merit::before{
  content: "メリット";
  display: block;
  font-weight: 700;
  font-size: 0.82em;
  background: #4a6fa5;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  width: fit-content;
}
.sale__demerit::before{
  content: "デメリット";
  display: block;
  font-weight: 700;
  font-size: 0.82em;
  background: #7a8a9a;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  width: fit-content;
}

/* 媒介契約種類タイトル */
.sale__subtitle{
  font-size: 1em;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #333;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: .05em;
}

/* 黄色マーカー強調（デザイン通り：文字下半分に黄色） */
.sale__hl{
  font-weight: 700;
  background: linear-gradient(transparent 55%, rgba(255, 230, 0, 0.7) 55%);
}

/* introのp間隔 */
.sale__intro p{
  margin: 0 0 6px;
  font-size: 0.95em;
}
.sale__intro p:last-child{ margin-bottom: 0; }

/* フロー下の説明文 */
.sale__flow-desc{
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.9em;
  color: #333;
  line-height: 2;
  margin: 0 0 20px;
  text-align: center;
}

/* ===== 当社・不動産会社での売却 ===== */
.sale__buy-wrap{
  margin: 36px 0 0;               /* ネガティブマージン廃止 */
  background: #c8d0dc;
  padding: 28px 20px 24px;
  border-radius: var(--radius);
}

@media (max-width:768px){
  .sale__buy-wrap{ margin: 36px 0 0; }
}

.sale__buy-title{
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #222;
  margin: 0 0 14px;
  letter-spacing: .05em;
}

/* 白い内枠カード */
.sale__buy-card{
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 20px 16px;
}

/* 買取フロー（OR表記） */
.sale__flow--buy{
  margin-bottom: 14px;
}
.sale__flow-or{
  font-size: 0.85em;
  color: #888;
  font-weight: 700;
  padding: 0 4px;
}

.sale__buy-text{
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.88em;
  color: #444;
  line-height: 1.9;
  margin: 0 0 14px;
}

/* メリット・デメリット 枠線ボックス */
.sale__buy-merit-box{
  border: 1px solid #aab;
  border-radius: 6px;
  overflow: hidden;
}
.sale__buy-merit-inner{
  display: flex;
}
.sale__buy-merit-col{
  flex: 1;
  padding: 10px 12px;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.8em;
  color: #444;
  line-height: 1.8;
}
.sale__buy-merit-col p{ margin: 0; }
.sale__buy-merit-divider{
  width: 1px;
  background: #aab;
  border-style: dashed;
}
.sale__buy-merit-ttl{
  font-weight: 700;
  font-size: 0.9em;
  margin: 0 0 4px;
}
.sale__buy-merit-ttl--m{ color: #2c5282; }
.sale__buy-merit-ttl--d{ color: #c53030; }

@media (max-width:768px){
  .sale__buy-merit-inner{ flex-direction: column; }
  .sale__buy-merit-divider{ width: 100%; height: 1px; }
}

/* 締めテキスト（買取ブロック内） */
.sale__footer-text{
  text-align: center;
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 1.25em;
  font-weight: 700;
  color: #1a2e4a;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 2;
  letter-spacing: .05em;
}


/* カード内フロー図（SVGベース） */
.sale__card-flow-wrap{
  margin: 0 0 14px;
  background: #f0f3f8;
  border-radius: 8px;
  padding: 8px;
}
.baikai-svg-wrap{
  width: 100%;
}
.baikai-svg{
  width: 100%;
  height: auto;
  display: block;
}

/* 旧クラス非表示 */
.baikai-grid,
.bg-node, .bg-arrow, .bg-varrow,
.bg-c11,.bg-c12,.bg-c13,.bg-c14,.bg-c15,
.bg-c21,.bg-c23,.bg-c31,.bg-c33,
.sale__card-flow-row,
.sale__card-flow-direct,
.sale__card-flow-buildings,
.sale__card-flow-col,
.sale__card-flow-node,
.sale__card-flow-arrow,
.sale__card-flow-vline,
.sale__card-flow-row--general{ display:none; }

/* SP */
@media (max-width:768px){
  .sale__intro{ padding: 18px 14px; }
  .sale__cards{ grid-template-columns: 1fr; }
  .sale__flow{ gap: 8px; }
  .sale__illust{ max-width: 300px; }
}

/* ===== footer ===== */
.footer{
  background:#3a5f89;
  color:#fff;
  padding: 22px 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.footer__left{ font-size:12px; line-height:1.9; }
.footer__right{
  font-size:12px;
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer__right a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset: 3px;
}

/* ===== responsive ===== */
@media (max-width:768px){
  .sec{ padding: 42px 0; }

  /* BUSINESS: SPは全面黒透過に寄せた方が読みやすい（不要なら消してOK） */
  .sec__overlay--right-dark{background: rgb(255 255 255 / 80%); }
  .business__text{ width:100%; margin-left:0; }

  .ph{margin:0 0 10px 0;}

  /* table SP縦積み */
  th{ width:auto; border-right:none; }
  tr{ display:block; }
  th, td{ display:block; width:100%; }
  th{ border-bottom:1px solid #d8d8d8; }
  td{ border-top:none; }
}