/* =========================================================
   アーバンレック 新HP 見本
   相続診断ラボ（https://www.heya.co.jp/sozokulabo/）の色と作りに合わせています。
   色や文字は、下の「:root」の中をまとめて変えられます。
   ========================================================= */

:root {
  /* 相続診断ラボと同じ色 */
  --main: #0d5bbc;        /* メインの青 */
  --main-dark: #0a4794;   /* 濃い青（フッター） */
  --teal: #2fb6b8;        /* グラデーションの始まり（緑がかった水色） */
  --blue: #0077d5;        /* グラデーションの終わり（青） */
  --red: #d60042;         /* 「無料相談」ボタン */
  --gray: #f7f7f7;        /* うすいグレーの背景 */
  --grad: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);

  --text: #2b2b2b;
  --text-light: #666;
  --line: #e2e6eb;
  --white: #ffffff;
  --shadow: 10px 10px 20px rgba(0, 84, 121, .16);
  --radius: 10px;

  /* メイリオ（Windows）。Mac・iPhoneではヒラギノ角ゴで表示されます */
  --font: "メイリオ", "Meiryo", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  /* 英語の小見出し用 */
  --font-en: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* ----- 基本 ----- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;          /* 50代以上の方にも読みやすい大きめの文字 */
  line-height: 1.85;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; }
a { color: var(--main); }
h1, h2, h3 { line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 20px;
}

.center { text-align: center; margin-top: 40px; }
p.center { margin-top: 24px; }
.sp-only { display: none; }

/* 写真が入る場所の仮の箱 */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #dfe6ee;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

.sample-note { color: var(--red); font-size: 14px; }

/* ----- ボタン・リンク ----- */
.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .85; }
.btn--large { padding: 16px 48px; font-size: 18px; }
.btn--grad { background: var(--grad); color: var(--white); box-shadow: 0 6px 14px rgba(0, 119, 213, .25); }
.btn--grad::after { content: "　›"; }
.btn--red { background: var(--red); color: var(--white); }

.link-more { font-weight: 700; color: var(--main); }
.link-more::after { content: " ›"; }

/* ----- 見出し（英語の小見出し＋日本語） ----- */
.ttl { text-align: center; margin-bottom: 48px; }
.ttl__en {
  display: block;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .15em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ttl__ja { display: block; font-size: 32px; font-weight: 700; color: var(--text); }
.ttl--left { text-align: left; margin-bottom: 24px; }
.ttl--left .ttl__ja { font-size: 26px; }
.ttl--white .ttl__en { background: none; color: var(--white); opacity: .85; }
.ttl--white .ttl__ja { color: var(--white); }

/* ----- ヘッダー ----- */
/* z-index：ページの中でいちばん手前に表示する（メインビジュアルの文字より上） */
.header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }

.header__inner {
  max-width: 1130px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { text-decoration: none; color: var(--main); display: flex; flex-direction: column; }
.logo__name { font-size: 24px; font-weight: 700; line-height: 1.4; }
.logo__sub { font-size: 12px; color: var(--text-light); line-height: 1.4; }

.header__contact { display: flex; align-items: center; gap: 24px; }
.header__tel { text-decoration: none; display: flex; flex-direction: column; text-align: right; line-height: 1.3; }
.header__tel-number { font-family: var(--font-en); font-size: 26px; font-weight: 700; color: var(--main); }
.header__tel-label { font-size: 12px; color: var(--text-light); }

.nav { background: var(--main); }
.nav__list {
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1130px;
  display: flex;
}
.nav__list li { flex: 1 1 auto; }
.nav__list a {
  display: block;
  padding: 12px 4px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}
.nav__list a:hover { background: rgba(255, 255, 255, .15); }

.menu-button { display: none; }

/* ----- メインビジュアル（LP「答えは、不動産にある。」と同じ作り） ----- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #001f42;      /* 動画が読み込まれるまでの色 */
  color: var(--white);
  overflow: hidden;
}
/* いちばん奥：瀬戸内の動画（暗めに表示） */
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  opacity: .4;
  z-index: 1;
}
/* 動画の上：青いフィルター */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 31, 66, .5) 0%, rgba(0, 61, 122, .2) 100%);
  z-index: 2;
}
/* フィルターの上：左右の人物 */
.hero__person {
  position: absolute;
  bottom: 0;
  width: 42%;
  max-width: 500px;
  height: 95%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: 3;
}
.hero__person--left { left: 2%; background-image: url("../images/morikuni2.png"); }
.hero__person--right { right: 2%; background-image: url("../images/junichiro2.png"); }
/* いちばん手前：文字 */
.hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 20px 40px;
  text-align: center;
}
.hero__lead {
  font-size: clamp(15px, 2.2vw, 22px);
  letter-spacing: .2em;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(34px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, .6);
  margin-bottom: 35px;
}

/* メインビジュアルに重なるメッセージ */
.vision {
  position: relative;
  z-index: 20;
  transform: translateY(-70px);
  margin-bottom: -70px;
  background: var(--main);
  color: var(--white);
  padding: 64px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 42, 90, .15);
}
.vision__title { font-size: 28px; margin-bottom: 20px; }
.vision__text { font-size: 17px; line-height: 1.9; max-width: 900px; margin: 0 auto; }

/* ----- セクション共通 ----- */
.section { padding: 96px 0; }
.section--gray { background: var(--gray); }

/* ----- 事業用不動産の買取 ----- */
.kaitori__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.kaitori__catch {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--main);
  border-bottom: 3px solid var(--teal);
  margin-bottom: 20px;
}
.kaitori__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 24px; }

.kaitori__table-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.kaitori__table { width: 100%; border-collapse: collapse; font-size: 16px; }
.kaitori__table caption {
  text-align: left;
  font-weight: 700;
  color: var(--white);
  background: var(--grad);
  padding: 12px 20px;
}
.kaitori__table th,
.kaitori__table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.kaitori__table tr:last-child th,
.kaitori__table tr:last-child td { border-bottom: none; }
.kaitori__table th { width: 6.5em; color: var(--main); white-space: nowrap; }

.merits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.merit {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border-top: 4px solid var(--teal);
}
.merit__title { font-size: 19px; font-weight: 700; color: var(--main); text-align: center; margin-bottom: 12px; line-height: 1.5; }
.merit__text { font-size: 15px; margin: 0; }

/* ----- ご相談の内容 ----- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s;
}
.service:hover { transform: translateY(-3px); }
.service__image { flex: 0 0 38%; min-height: 200px; }
.service__body { padding: 24px; display: flex; flex-direction: column; }
.service__title { font-size: 20px; color: var(--main); margin-bottom: 8px; }
.service__text { font-size: 15px; flex-grow: 1; }
.service__more { font-size: 15px; font-weight: 700; color: var(--main); }
.service__more::after { content: " ›"; }

/* ----- 特徴 ----- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px 28px 32px;
  margin-top: 32px;
}
.feature__num {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.feature__title { font-size: 21px; color: var(--main); text-align: center; margin-bottom: 16px; }
.feature__text { font-size: 16px; margin: 0; }

/* ----- ご相談の流れ ----- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: none;
}
.flow__step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
}
/* 次のステップへの矢印 */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  border: 10px solid transparent;
  border-left: 14px solid var(--teal);
  transform: translateY(-50%);
}
.flow__num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--teal);
  line-height: 1.2;
  margin-bottom: 8px;
}
.flow__num span { display: block; font-size: 40px; color: var(--main); }
.flow__title { font-size: 21px; margin-bottom: 12px; }
.flow__text { font-size: 15px; margin: 0; text-align: left; }
.flow__notes { margin-top: 28px; text-align: center; font-size: 15px; color: var(--text-light); }

/* ----- 解決事例 ----- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.case__image { aspect-ratio: 3 / 2; }
.case__body { padding: 24px; }
.case__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 16px;
  background: var(--grad);
  color: var(--white);
  border-radius: 999px;
  margin-bottom: 12px;
}
.case__title { font-size: 18px; color: var(--main); margin-bottom: 8px; }
.case__text { font-size: 15px; margin: 0; }

/* ----- 代表あいさつ ----- */
.message {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 56px;
  align-items: center;
}
.message__image { aspect-ratio: 3 / 4; border-radius: var(--radius); box-shadow: var(--shadow); }
.message__sign { text-align: right; margin-top: 24px; }
.message__sign span { font-size: 22px; font-weight: 700; margin-left: 8px; }

/* ----- セミナー・YouTube ----- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
}
.list { margin: 0 0 20px; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.list__date { display: block; font-family: var(--font-en); font-size: 14px; color: var(--text-light); }
.video { aspect-ratio: 16 / 9; margin-bottom: 20px; border-radius: var(--radius); }

/* ----- お知らせ ----- */
.news {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.news li + li { border-top: 1px solid var(--line); }
.news a {
  display: grid;
  grid-template-columns: 7em 7em 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 32px;
  text-decoration: none;
  color: var(--text);
}
.news a:hover .news__title { color: var(--main); text-decoration: underline; }
.news__date { font-family: var(--font-en); color: var(--text-light); }
.news__cat {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 1px 0;
  border: 1px solid var(--main);
  color: var(--main);
  border-radius: 999px;
}

/* ----- お問い合わせ ----- */
.contact {
  background: var(--grad);
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}
.contact .ttl { margin-bottom: 16px; }
.contact__text { font-size: 18px; margin-bottom: 40px; }
.contact__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.contact__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  color: var(--main);
  border-radius: var(--radius);
  box-shadow: 0 15px 15px rgba(0, 0, 0, .12);
  padding: 24px;
  text-decoration: none;
  line-height: 1.4;
  transition: transform .2s;
}
.contact__box:hover { transform: translateY(-3px); }
.contact__box-label { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.contact__tel-number { font-family: var(--font-en); font-size: 38px; font-weight: 700; }
.contact__mail { font-size: 26px; font-weight: 700; color: var(--red); }

/* ----- フッター ----- */
.footer {
  background: var(--main-dark);
  color: #dbe5f5;
  font-size: 14px;
  line-height: 1.8;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer__name { font-size: 20px; font-weight: 700; color: var(--white); }
.footer__license { opacity: .85; }
.footer__heading { color: var(--white); font-weight: 700; }
.footer__links a { color: #dbe5f5; text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__copy {
  text-align: center;
  font-size: 12px;
  padding: 16px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

/* =========================================================
   タブレット（幅 960px 以下）
   ========================================================= */
@media (max-width: 960px) {
  /* タブレット：文字とボタンを上に寄せ、人物は下に（重ならないように） */
  .hero { height: 75vh; align-items: flex-start; }
  .hero__video { opacity: .3; }
  .hero__inner { padding-top: 64px; }
  .hero__person { width: 48%; height: 52%; }
  .vision { transform: translateY(-40px); margin-bottom: -40px; padding: 40px 20px; }
  .kaitori__top { grid-template-columns: 1fr; gap: 32px; }
  .merits { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
  .features, .cases { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
  .flow { grid-template-columns: 1fr; gap: 32px; max-width: 600px; margin: 0 auto; }
  .flow__step:not(:last-child)::after {
    top: auto;
    bottom: -26px;
    right: 50%;
    border: 10px solid transparent;
    border-top: 14px solid var(--teal);
    transform: translateX(50%);
  }
  .nav__list { flex-wrap: wrap; }
  .nav__list li { flex: 1 1 25%; }
}

/* =========================================================
   スマホ（幅 640px 以下）
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sp-only { display: inline; }

  .header__inner { padding: 10px 16px; }
  .logo__name { font-size: 19px; }
  .header__contact { display: none; }

  /* メニューボタン（三本線） */
  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .menu-button span { display: block; height: 2px; background: var(--main); }

  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 0; }
  .nav__list li + li { border-top: 1px solid rgba(255, 255, 255, .2); }
  .nav__list a { text-align: left; padding: 14px 20px; }

  .container { padding: 0 16px; }
  /* スマホ：上に文字とボタン、そのすぐ下に人物2人を横に並べる（重ならず、機種で崩れにくい） */
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    min-height: 0;
  }
  .hero__inner { grid-column: 1 / -1; grid-row: 1; padding: 40px 16px 16px; }
  .hero__person {
    grid-row: 2;
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: 54vw;
  }
  .vision__title { font-size: 21px; }
  .vision__text { font-size: 15px; text-align: left; }

  .section { padding: 64px 0; }
  .ttl { margin-bottom: 32px; }
  .ttl__ja { font-size: 24px; }
  .ttl--left .ttl__ja { font-size: 22px; }

  .kaitori__buttons .btn { width: 100%; }
  .merits { grid-template-columns: 1fr; }
  .service { flex-direction: column; }
  .service__image { flex-basis: auto; min-height: 160px; }
  .two-col { grid-template-columns: 1fr; }
  .box { padding: 32px 20px; }
  .message { grid-template-columns: 1fr; gap: 32px; }
  .message__image { max-width: 220px; margin: 0 auto; }
  .news a { grid-template-columns: auto auto 1fr; gap: 4px 12px; padding: 16px 20px; }
  .news__cat { padding: 1px 10px; }
  .news__title { grid-column: 1 / -1; }

  .contact__actions { grid-template-columns: 1fr; }
  .contact__tel-number { font-size: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
}
