:root {
  --orange: #e8601f;
  --orange-deep: #e8601f;
  --teal: #1f8a9e;
  --text: #1f2937;
  --muted: #6b7280;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  /* overflow-x: hidden; */
}

body {
  position: relative;
  margin: 0;
  width: 100%;
  font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
  /* font-family: Meiryo,sans-serif; */
  color: var(--text);
  /* line-height: 1.8; */
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

section {
  margin-bottom: 0 !important;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  background: var(--orange);
  border-top: 5px solid #f1ccb1;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.nav a {
  color: #fff;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ハンバーガーボタン */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
}

.nav-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-toggle-bar + .nav-toggle-bar { margin-top: 6px; }

main.page_furue .subpage_mv{
    background: url("../img/furue/main_img.jpg") no-repeat center center / cover;    
}

.kv {
  position: relative;
  isolation: isolate;
}

.kv-media {
  position: relative;
  height: 480px;
  background: #dfeef8 url('../img/furue/main_img.jpg') center/cover no-repeat;
}

.kv-caption {
  position: absolute;
  inset: 0;
}

.kv-cap-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  text-align: left;
  position: relative;
  height: 100%;
}

.kv-logo {
  position: absolute;
  top: clamp(78px, 9vw, 200px);
  /* left: clamp(24px, 11vw, 220px); */
  left: calc(53vw - 1200px / 2);
  width: min(26vw, 265px);
  max-width: 265px;
}

.kv-logo img {
  display: block;
  width: 265px;
  height: auto;
}

.kv-band {
  position: absolute;
  left: 0;
  bottom: 24px;
  background: rgba(255,127,36,.5);
  --kvRightPad: 28px;
  padding: 16px var(--kvRightPad) 14px 0;
  width: 43%;
  box-shadow: none;
  text-align: right;
}

.kv-band-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0;
  align-items: end;
}

.kv-border-fill {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  border-bottom: 5px solid #ff7f24;
  margin-right: calc(var(--kvRightPad) * -1);
}

.kv-band-text { display: inline-block; text-align: left; }

.kv-band-title {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: left;
  line-height: 1.4;
  font-size: clamp(32px,5.2vw,48px);
  grid-column: 2;
  grid-row: 1;
}

.kv-band-sub {
  margin: 8px 0 0;
  color: var(--orange-deep);
  font-weight: 800;
  letter-spacing: .16em;
  text-align: left;
  font-style: italic;
  font-size: 14px;
  grid-column: 2;
  grid-row: 2;
}

.copy {
  padding: 28px 0;
}

.copy h2 {
  margin: 0;
  color: var(--teal);
  font-weight: 900;
  line-height: 1.6;
  font-size: clamp(18px,4vw,40px);
  letter-spacing: .02em;
}

.copy .lg {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: clamp(28px,4vw,44px);
  font-weight: 900;
  letter-spacing: .02em;
}

/* 古江イメージ（プロジェクトメッセージ前） */
.furue-figure {
  margin: 0 auto 12px;
  max-width: var(--maxw);
}

.furue-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.ribbon {
  position: fixed;
  right: 0;
  top: 230px;
  z-index: 50;
}

.ribbon a {
  position: relative;
  display: flex;
  color: #fff;
  width: 60px;
  padding: 18px 10px 13px;
  font-weight: 900;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-align: center;
  box-shadow: none;
  font-size: 20px;
  line-height: 1.8;
}

/* 本体形状（上端を斜めカット） */
.ribbon a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  /* 上端・下端を斜めにする */
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

/* 下に突き出る三角の尻尾 */
.ribbon a::after {
  content: "";
  position: absolute;
  left: 61px;
  bottom: -43px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 22px 0 0 62px; /* 高さ, 右, 下, 左 (=本体幅) */
  border-color: transparent transparent transparent var(--orange);
  transform: rotate(180deg);
  transform-origin: left top;
}

.ribbon a span {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px auto 10px; /* アイコン間隔 */
  font-size: 20px;
  line-height: 1;
  opacity: .95;
  color: #a64f1a; /* 封筒アイコン色 */
}

.ribbon a img {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  transform: none;
}

.vision {
  padding: 48px 0;
}

.vision-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 16px 50px;
  background-image: url(../img/furue/vision_img.jpg);
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
}

.vision-content {
  max-width: 655px;
}

.vision-title {
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.45;
  font-size: clamp(16px,3.6vw,31px);
}

.vision-title span {
  display: block;
  border-bottom: 2px solid #368d97;
  padding-bottom: 4px;
}

.vision-body {
  color: #111;
}

.vision-body p {
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: clamp(16px,2.2vw,16px);
}

.map {
  padding: 48px 0;
}

.map h2 {
  margin: 0 0 16px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(22px,3.6vw,2.8rem);
  /* 右端に見出しを寄せ、下線を画面左端から伸ばす */
  position: relative;
  display: inline-block;
  margin-left: auto;
  width: fit-content;
  padding-bottom: 8px;
}

.map h2::after {
  content: "";
  position: absolute;
  right: 0;
  left: calc(-100vw + 100%);
  bottom: 0;
  height: 4px;
  background: var(--teal);
}

/* 他セクションの見出しにも同様のスタイルを適用 */
.pricing h2,
.neigh h2,
.poi h2,
.access h2,
.contact h2,
.spec h2 {
  position: relative;
  display: inline-block;
  margin-left: auto;
  width: fit-content;
  padding-bottom: 8px;
}

.neigh h2::after,
.poi h2::after,
.access h2::after,
.contact h2::after,
.spec h2::after {
  content: "";
  position: absolute;
  right: 0;
  left: calc(-100vw + 100%);
  bottom: 0;
  height: 4px;
  background: var(--teal);
}

.map-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  background: #fff;
}

.map-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* 面積/価格表 */
.pricing {
  padding: 48px 0;
}

/* 面積/価格表 専用の横幅指定 */
.pricing .container {
  max-width: 900px;
}

.pricing h2 {
  margin: 0 0 16px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(18px,3.6vw,2.8rem);
  /* 中央寄せ + 左右ライン */
  position: static;            /* 既存の relative を打ち消し */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding-bottom: 0;           /* 既存の下線余白を打ち消し */
  text-align: center;
}

/* 既存の共通下線（absolute）を無効化し、左右ラインを作成 */
.pricing h2::after { content: ""; }
.pricing h2::before,
.pricing h2::after {
  position: static;
  left: auto; right: auto; bottom: auto; /* 既存指定の打ち消し */
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: #475569;        /* 見本のようなグレーのライン */
}

.pricing .filter {
  margin: 0 0 12px;
  display: flex;
  justify-content: center;
}

.pricing select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 14px;
  border: 2px solid #111;
  background-color: #fff;
  /* カスタム下向き三角アイコン */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="10" viewBox="0 0 16 10"><path fill="%231f8a9e" d="M8 10 0 0h16z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 10px;
  padding-right: 40px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-align-last: center;
  min-width: 320px;
  cursor: pointer;
  font-size: clamp(16px,2.2vw,16px);
}

.pricing select option { text-align: center; }

.table-wrap {
  overflow-x: auto;
}

.lots-table {
  width: 100%;
  border-collapse: collapse;
  /* min-width: 720px; */
}

.lots-table th {
  background: #b7e7f1;
  color: #0f172a;
  font-weight: 900;
  text-align: center;
  padding: 12px;
  border-bottom: 3px solid #9bd6e4;
}

.lots-table th:nth-child(1) {
  width: 72px;
}
.lots-table th:nth-child(2) {
  width: 307px;
}
.lots-table th:nth-child(3) {
  width: 202px;
}
.lots-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  text-align: center;
  font-size: clamp(12px,2.2vw,16px);
}

.lots-table td:nth-child(1) {
  text-align: center;
  font-weight: 800;
}
@media (max-width: 640px) {
  .lots-table td {
    padding: 12px 3px;
  }
}

/* 売主別の行カラーリングと区画Noバッジ */
.lots-table tbody tr { color: #0f172a; }

/* 行全体の文字色を売主色に */
.lots-table tbody tr.row-seller-misawa { color: #357cbc; }
.lots-table tbody tr.row-seller-hebel  { color: #cca129; }
.lots-table tbody tr.row-seller-totate { color: #e5658a; }
.lots-table tbody tr.row-seller-sekisui{ color: #57aa39; }

/* 区画Noセルの基本（セル自体は余白を持ち、内側のspanをバッジ化） */
.lots-table tbody tr td:nth-child(1) {
  width: 72px;
  padding: 12px;
  height: auto;
  line-height: normal;
}
@media (max-width: 640px) {
  .lots-table th:nth-child(1) {
    width: 50px;
  }
  .lots-table th:nth-child(2) {
    width: 90px;
  }
  .lots-table th:nth-child(3) {
    width: 95px;
  }
  .lots-table tbody tr td:nth-child(1) {
    width: 50px;
    padding: 12px 0;
  }
}

/* Noバッジ */
.lot-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  font-weight: 900;
  color: #fff; /* バッジ内の文字は白 */
}
@media (max-width: 640px) {
  .lot-no {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
  }
}

/* 売主色ごとのNoバッジ背景色 */
.lots-table tbody tr.row-seller-misawa .lot-no { background: #357cbc; }
.lots-table tbody tr.row-seller-hebel  .lot-no { background: #cca129; }
.lots-table tbody tr.row-seller-totate .lot-no { background: #e5658a; }
.lots-table tbody tr.row-seller-sekisui .lot-no { background: #57aa39; }

.price {
  font-weight: 500;
  letter-spacing: .04em;
}

.coming {
  color: #16a34a;
  font-weight: 500;
}

.seller {
  font-weight: 500;
}

.seller-misawa {
  color: #357cbc;
}

.seller-hebel {
  color: #cca129;
}

.seller-totate {
  color: #e5658a;
}

.seller-sekisui {
  color: #57aa39;
}

.note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

@media (max-width: 960px) {
  .pricing {
    padding: 32px 0;
  }
}

@media (max-width: 960px) {
  .map {
    padding: 32px 0;
  }
}

/* 周辺環境 */
.neigh {
  padding: 48px 0 100px;
}

.neigh h2 {
  margin: 0 0 16px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(24px,3.6vw,2.8rem);
}

.neigh-grid {
  padding-top: 50px;
  padding-bottom: 50px;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr; /* 右カラムを広く */
  grid-template-areas: "a ." "b .";
  gap: 24px;
  align-items: start; /* 行高に合わせて伸びないようにする */
  background-image: url(../img/furue/neigh_img3.jpg);
  background-position: right top;
  background-repeat: no-repeat;
  position: relative;
}

.neigh-a { grid-area: a; }
.neigh-b { grid-area: b; }
.neigh-c { 
  display: none; /* デスクトップでは非表示 */
}

.neigh-d {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.neigh figure {
  margin: 0;
}

.neigh img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: none;
}

.neigh-copy {
  margin: 0;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 2;
  color: #111;
  font-size: clamp(16px,2.2vw,24px);
}

@media (max-width: 960px) {
  .neigh {
    padding: 32px 0;
  }
  .neigh-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d";
    gap: 14px;
    background-image: none;
    background-size: 100% auto;
    background-position: center top;
  }
  .neigh-c {
    display: block; /* スマホでは表示 */
    grid-area: c;
  }
  .neigh-d {
    position: static;
  }
  .neigh-grid figure {
    display: block;
    width: 100%;
  }
  .neigh-grid img {
    display: block;
    width: 100%;
    height: auto;
  }
  .neigh-a, .neigh-b { aspect-ratio: auto; }
  .neigh-copy {
    padding: 12px;
    line-height: 1.6;
  }
}

/* 施設カード帯 */
.facilities {
  padding: 24px 0 56px;
}

.fac-band {
  background: #9cdbd8;
  border-radius: 0;
  padding: 0 30px;
  height: 210px;
}

.fac-grid {
    position: relative;
    top: -50px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.fac-card {
  background: transparent;
  overflow: hidden;
  box-shadow: none;
  margin: 3px;
}

.fac-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* スクショに近い横長比率 */
  object-fit: cover;
}

.fac-cap {
  padding: 10px 12px;
  text-align: center;
}

.fac-name {
  margin: 0;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(18px,2.6vw,24px);
}

.fac-dist {
  margin: 0;
  color: #111;
  font-weight: 500;
  font-size: 20px;
}

@media (max-width: 960px) {
  .fac-grid { grid-template-columns: repeat(2,1fr); }
  .fac-card img { height: 140px; }
}

/* 周辺施設一覧 */
.poi {
  padding: 0 0 64px;
}

/* 周辺施設一覧 専用の横幅指定 */
.poi .container {
  max-width: 970px;
}

.poi h2 {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(24px,3.6vw,2.8rem);
}

.poi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.poi-group h3 {
  margin: 30px 0 8px;
  font-weight: 900;
  color: #111;
  font-size: 22px;
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 6px;
}

.poi-group h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--teal);
}

.poi-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.poi-item {
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(14px,2.2vw,16px);
}

.poi-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poi-name::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background: #111;
  border-radius: 1px;
}

.poi-dist {
  white-space: nowrap;
  color: #111;
}

@media (max-width: 960px) {
  .poi-grid { grid-template-columns: 1fr; gap: 0; }
  .poi-group h3 { font-size: 20px; }
}

/* 交通アクセス */
.access {
  padding: 48px 0;
}

.access h2 {
  margin: 0 0 16px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(24px,3.6vw,2.8rem);
}

.access-copy {
  margin: 0 0 16px;
  text-align: center;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: clamp(16px,4vw,33px);
  line-height: 1.6;
  color: #111;
}

.access-media {
  display: grid;
  gap: 16px;
}

.access-figure {
  margin: 0 auto;
  box-shadow: none;
}

.access-figure.af1 {
  margin-top: 70px;
  padding-bottom: 30px;
  background: #9cdbd8;
  margin-right: calc(-100vw + 100%);
  padding-right: calc(100vw - 100%);
}

.access-figure.af2 {
  margin-top: 30px;
}

.access-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.access-figure.af1 img {
  margin: -50px 0 0 -50px;
}

.access-figure.af2 img {
    max-width: 760px;
}

.access-figure .access-note {
  margin: 20px auto 0;
  max-width: 760px;
  text-align: left;
  font-size: 12px;
  line-height: 1.8;
  color: #333;
}

.access-figure .access-map-wrap {
  margin: 50px auto 0;
  text-align: center;
}

.access-figure .access-map {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.access-figure.af2 img {
  margin: 0 auto;
}

.access-figure.af2 img.access-map {
  max-width: 100%;
}

/* お問い合わせ */
.contact {
  padding: 48px 0;
}

/* 背景は .contact-grid に適用 */

.contact h2 {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(24px,3.6vw,2.8rem);
  text-align: center;
}

.contact .lead {
  margin: 0 0 20px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 2;
  font-size: clamp(16px,2.2vw,24px);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: url('../img/furue/contact_bg.jpg') center/cover no-repeat;
  padding: 20px;
  text-align: center;
  margin-right: calc(-100vw + 100%);
  padding-right: calc(100vw - 100% + 20px);
}

.contact-card {
    flex: 0 0 400px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.contact-card .btn {
  margin-top: auto;
}

.contact-title {
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: clamp(22px,2.6vw,32px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-title img {
  display: block;
  margin: 0 auto;
}

.contact-sub {
  margin: 0;
  font-weight: 800;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-phone {
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: .06em;
  font-size: 22px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--teal);
  color: #fff;
  margin: 0 auto;
  padding: 16px 24px;
  width: 100%;
  max-width: 320px;
  border-radius: 0;
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 18px;
  line-height: 1;
  position: relative;
}

.btn::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 14px;
  width: 32px;
  height: 32px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter"><path d="M5 12h14M12 5l7 7"/></svg>') center/contain no-repeat;
}

.btn:hover { opacity: .96; }

@media (max-width: 960px) {
  .contact { padding: 36px 0; }
  .contact-grid { grid-template-columns: max-content; gap: 14px; justify-content: center;margin-right: 0; }
}

/* 物件概要 */
.spec {
  padding: 48px 0;
}

/* 物件概要 専用の横幅指定 */

.spec h2 {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(24px,3.6vw,2.8rem);
}

.spec-body {
  color: #111;
}

.spec-body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.org-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
  max-width: 900px;
}

.org-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: none;
  padding: 18px;
  display: flex;
  align-items: flex-start;
}

.org-label {
  flex: 0 0 auto;
  display: inline-block;
  color: #000;
  border: 1px solid #000;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 4px 10px;
  margin: 4px 14px 0 0;
}

.org-content { flex: 1 1 auto; }

.org-name {
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: .02em;
}

.org-detail {
  margin: 0 0 4px;
  font-size: 14px;
}

@media (max-width: 960px) {
  .org-grid { grid-template-columns: 1fr; }
  .org-card { 
    display: block;
  }
  .org-label {
    text-align: center;
    margin: 0 0 10px 0;
  }
}

/* フッター */
.footer {
  background: var(--orange);
  color: #fff;
}

.footer .container {
  padding: 28px 16px;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  letter-spacing: .06em;
}

.footer-nav a {
  color: #fff;
}

.footer-rule {
  height: 2px;
  background: #fff;
  opacity: .6;
  margin: 10px auto 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  width: 420px;
  max-width: 50vw;
  height: auto;
}

.footer-company {
  letter-spacing: .02em;
}

.footer-addr {
  margin: 0;
  line-height: 1.9;
  font-style: normal;
}

.footer-copy {
  background: #f4d2bd;
  color: #e06322;
  text-align: center;
  font-size: 12px;
  padding: 10px 0;
}

@media (max-width: 960px) {
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-logo img { width: 180px; }
}

@media (max-width: 960px) {
  .header-inner { height: 56px; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    background: var(--orange);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s step-end;
    box-shadow: none;
    z-index: 40;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .nav ul {
    display: block;
    padding: 8px 0;
  }
  .nav li { border-top: 1px solid rgba(255,255,255,.25); }
  .nav li:first-child { border-top: 0; }
  .nav a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
  }
  .nav a:hover { text-decoration: none; opacity: 1; background: rgba(0,0,0,.06); }
  .kv-logo {
    top: clamp(80px, 18vw, 160px);
    width: min(70vw, 320px);
  }
  .kv-media {
    height: 300px;
  }
  .kv-band { bottom: 16px; --kvRightPad: 18px; padding: 14px var(--kvRightPad) 12px 0; border-top-width: 4px; width: 80%; max-width: 100%; }
  .kv-band-title { font-size: clamp(26px,7.5vw,40px); }
  .copy { padding: 0 0 030px 0; }
  .ribbon { display: none; }
  .vision { padding: 32px 0; }
  .vision-media { min-height: 220px; }
}

@media (max-width: 960px) {
  .brand img { height: 24px; }
}

/* 追加のスマホ最適化 */
@media (max-width: 640px) {
  .kv-logo {
    left: calc(58vw - 400px / 2);
    top: clamp(13px, 5vw, 90px);
    width: min(78vw, 114px);
  }
  .kv-logo img {
    width: 100%;
    height: auto;
  }
  .vision-inner {
    position: relative;
    overflow: hidden;
  }
  .vision-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
  }
  .vision-content,
  .vision-content * {
    position: relative;
    z-index: 1;
  }
  .fac-band {
    height: 100%;
  }
  .fac-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px;
  }
  .contact-card {
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Safari対策: 子要素のoverflow計算を正しくする */
    max-width: 100%;
  }
  .contact-card .btn {
    width: 100%;
    justify-content: center;
  }
  .poi-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .kv-band { 
    bottom: 14px; 
    --kvRightPad: 16px; 
    padding: 12px var(--kvRightPad) 10px 0; 
    width: 80%;
    max-width: 100%;
  }
  .kv-band-row { row-gap: 2px; }
  .kv-band-title { grid-row: 1; }
  .kv-band-sub { grid-row: 2; margin-top: 6px; line-height: 1.4; }

  .kv-border-fill {
    border-bottom: 3px solid #ff7f24;
    margin-right: 0 !important;
  }

  .vision-inner {
    background-image: url(../img/furue/vision_img.jpg);
    background-size: auto 100%;
    background-position: 45% center;
    background-repeat: no-repeat;
  }

  .access-figure.af1 {
    margin-right: 0 !important;
    margin-top: 20px;
    padding: 10px !important;
    padding-right: 10px !important;
    background: #9cdbd8;
  }

  .access-figure.af1 img {
    margin: 0;
  }

  .access-figure.af2 {
    margin-top: 0;
  }

  /* 見出しの下線を通常表示に（画面外に伸ばさない） */
  .map h2::after,
  .neigh h2::after,
  .poi h2::after,
  .access h2::after,
  .contact h2::after,
  .spec h2::after {
    left: 0;
  }

  /* セレクトボックスの固定幅を解除 */
  .pricing select {
    min-width: 0;
    max-width: 100%;
  }

  /* コンテナの余白を確実に保つ */
  .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }

  /* テーブルコンテナの横スクロールを制御 */
  .table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .access-figure .access-map-wrap {
    margin: 20px auto 0;
  }

  .footer-nav ul {
    margin: 0 0 16px;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .footer-nav ul:last-child {
    margin-bottom: 0;
  }

  .neigh-grid {
    padding-top: 20px;
  }

  .fac-dist {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .pricing select {
    min-width: 0;
    width: 100%;
  }
}

