/* ===== Design tokens ===== */
:root {
  --navy: #0e2a47;
  --navy-2: #14365c;
  --gold: #c79a3a;
  --gold-soft: #e3c277;
  --ink: #23303b;
  --gray: #5d6b78;
  --line: #e4e8ec;
  --tint: #f4f7fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(14, 42, 71, 0.08);
  --maxw: 1080px;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Meiryo", sans-serif;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* 日本語を文節単位で自然に折り返す（非対応ブラウザは通常折り返し） */
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.sp-br { display: none; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { color: var(--navy); display: flex; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: .02em; line-height: 1.2; display: block; }
.brand__sub { font-size: 10px; letter-spacing: .18em; color: var(--gray); display: block; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav a:hover { color: var(--gold); }
.nav__cta {
  background: var(--navy); color: #fff !important; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; transition: background .2s;
}
.nav__cta:hover { background: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(199,154,58,.30), transparent 60%),
    linear-gradient(160deg, #0b2440 0%, #143a63 55%, #0e2a47 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 120px 22px 90px; width: 100%; }
.hero__eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .14em; color: var(--gold-soft);
  border: 1px solid rgba(227,194,119,.5); padding: 5px 14px; border-radius: 999px; margin: 0 0 24px;
}
.hero__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(15px, 4.6vw, 46px);
  line-height: 1.4; margin: 0 0 24px; letter-spacing: 0; white-space: nowrap;
}
.hero__lead { font-size: clamp(15px, 1.8vw, 17px); color: rgba(255,255,255,.9); margin: 0 0 36px; max-width: 600px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__since { font-size: 12.5px; letter-spacing: .04em; color: rgba(255,255,255,.7); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s; cursor: pointer;
}
.btn--primary { background: var(--gold); color: #2a2008; box-shadow: 0 8px 20px rgba(199,154,58,.35); }
.btn--primary:hover { transform: translateY(-2px); background: var(--gold-soft); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ===== Section ===== */
.section { padding: 92px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; margin-bottom: 52px; }
.section__en { font-size: 13px; letter-spacing: .22em; color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.section__title { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); color: var(--navy); margin: 0 0 18px; letter-spacing: .03em; }
.section__title::after { content: ""; display: block; width: 46px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }
.section__desc { color: var(--gray); margin: 0; font-size: 15.5px; }
.section__desc strong { color: var(--navy); }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 760px; margin: 0 auto; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card__icon { font-size: 36px; margin-bottom: 16px; }
.card__title { font-family: var(--serif); font-size: 20px; color: var(--navy); margin: 0 0 12px; }
.card__text { color: var(--gray); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.card__link { color: var(--gold); font-weight: 700; font-size: 14px; }

/* ===== Duo ===== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.duo__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; }
.section:not(.section--tint) .duo__item { background: var(--tint); border-color: transparent; }
.duo__title { font-family: var(--serif); font-size: 19px; color: var(--navy); margin: 0 0 14px; padding-left: 14px; border-left: 4px solid var(--gold); }
.duo__item p { margin: 0 0 8px; color: var(--gray); font-size: 14.5px; }
.duo__item--link { display: block; transition: transform .2s, box-shadow .2s, border-color .2s; }
.duo__item--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.duo__cta { display: inline-block; margin-top: 12px; color: var(--gold); font-weight: 700; font-size: 14px; }

/* ===== Sub page hero ===== */
.page-hero { background: linear-gradient(160deg, #0b2440 0%, #143a63 60%, #0e2a47 100%); color: #fff; padding: 124px 0 60px; text-align: center; }
.page-hero__en { color: var(--gold-soft); letter-spacing: .22em; font-size: 13px; font-weight: 700; margin: 0 0 12px; }
.page-hero__title { font-family: var(--serif); font-size: clamp(26px, 5vw, 38px); margin: 0 0 16px; letter-spacing: .03em; }
.page-hero__lead { color: rgba(255,255,255,.85); margin: 0 auto; font-size: 15px; max-width: 640px; }

/* ===== Flow (購入・売却の流れ) ===== */
.flow { max-width: 740px; margin: 0 auto; list-style: none; padding: 0; }
.flow__item { display: flex; gap: 22px; padding-bottom: 26px; position: relative; }
.flow__item::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: -2px; width: 2px; background: var(--gold-soft); }
.flow__item:last-child { padding-bottom: 0; }
.flow__item:last-child::before { display: none; }
.flow__num { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(14,42,71,.18); }
.flow__body { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.flow__title { font-family: var(--serif); font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.flow__text { font-size: 14.5px; color: var(--gray); margin: 0; }

/* ===== Back link / page CTA ===== */
.backlink { display: inline-flex; align-items: center; gap: 11px; padding: 8px 22px 8px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 700; margin-bottom: 36px; transition: border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.backlink:hover { border-color: var(--gold); color: var(--gold); transform: translateX(-3px); box-shadow: var(--shadow); }
.backlink__arrow { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; flex: 0 0 28px; transition: background .2s, transform .2s; }
.backlink:hover .backlink__arrow { background: var(--gold); transform: translateX(-2px); }
.page-cta { text-align: center; margin-top: 52px; }
.page-cta p { color: var(--gray); margin: 0 0 18px; }

/* ===== Properties ===== */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.prop:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prop__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eef2f6; border-bottom: 1px solid var(--line); }
.prop__body { padding: 22px 24px 26px; }
.prop__tag { display: inline-block; background: var(--tint); color: var(--navy); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.section--tint .prop__tag { background: #eaf0f6; }
.prop__title { font-family: var(--serif); font-size: 19px; color: var(--navy); margin: 0 0 10px; }
.prop__meta { font-size: 14px; color: var(--gray); margin: 0; }
.props__note { text-align: center; color: var(--gray); font-size: 13.5px; margin: 32px 0 0; }

/* ===== Profile table ===== */
.profile { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.profile th, .profile td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 0; }
.profile th { width: 34%; background: var(--tint); color: var(--navy); font-weight: 700; }
.profile td { color: var(--gray); }
.profile a { color: var(--navy); font-weight: 700; }

/* ===== Timeline ===== */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--gold-soft); }
.timeline li { position: relative; padding: 0 0 22px 34px; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.timeline__year { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 15px; }
.timeline__body { color: var(--gray); font-size: 14.5px; }

/* ===== Contact ===== */
.section--contact { background: linear-gradient(160deg, #0b2440, #143a63); color: #fff; }
.section__en--light { color: var(--gold-soft); }
.section__title--light { color: #fff; }
.section__title--light::after { background: var(--gold-soft); }
.section__desc--light { color: rgba(255,255,255,.85); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.contact__box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 34px 28px; text-align: center; }
.contact__label { font-size: 14px; color: var(--gold-soft); margin: 0 0 14px; font-weight: 700; }
.contact__tel { font-family: var(--serif); font-size: 34px; font-weight: 700; color: #fff; display: block; letter-spacing: .02em; }
.contact__hours { font-size: 13px; color: rgba(255,255,255,.7); margin: 12px 0 0; }

/* ===== Footer ===== */
.footer { background: #08203a; color: rgba(255,255,255,.8); padding: 54px 0 26px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__name { font-family: var(--serif); font-size: 18px; color: #fff; margin: 0 0 12px; }
.footer__addr, .footer__license { font-size: 13px; margin: 0 0 6px; line-height: 1.8; }
.footer__copy { text-align: center; font-size: 12px; color: rgba(255,255,255,.55); margin: 24px 0 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .cards, .props { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 64px; }
  .sp-br { display: inline; }
  .nav {
    position: fixed; top: 64px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 12px; border-bottom: 0 !important; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 38px; }
  .cards, .props, .duo, .contact { grid-template-columns: 1fr; }
  .duo { gap: 16px; margin-bottom: 40px; }
  .hero { min-height: 78vh; }
  .hero__actions .btn { flex: 1; }
  .footer__inner { flex-direction: column; gap: 24px; }
  /* 会社概要テーブルをモバイルで縦積みに */
  .profile, .profile tbody, .profile tr, .profile th, .profile td { display: block; width: 100%; }
  .profile th { background: var(--tint); border-bottom: 0; padding: 14px 20px 4px; }
  .profile td { padding: 4px 20px 16px; }
}
@media (max-width: 420px) {
  .contact__tel { font-size: 28px; }
}
