/*
Theme Name: LEE HOME
Theme URI: https://leehome-miyakojima.com/
Author: LEE HOME
Description: 株式会社LEE HOME（宮古島）のグループサイト用テーマ。トップから不動産・レンタカー・清掃・別荘管理の各事業ページへつながる構成。
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: leehome
*/

/* =========================================================
   1. 色と文字の基本設定（ここを変えると全体が変わります）
   ========================================================= */
:root {
  --ink: #1D2329;
  --mute: #5C6670;
  --line: #DCD8CF;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --navy: #17263A;
  --navy-line: #34475E;
  --navy-text: #C5D1DE;

  --corp: #2F5F92;        /* コーポレートブルー（文字・ボタン用） */
  --corp-soft: #B7CADD;

  /* 事業ごとの色（ページごとに下で上書き） */
  --accent: var(--corp);
  --accent-soft: var(--corp-soft);
  --bg: var(--paper);
  --band: var(--corp);
  --band-text: #FFFFFF;
  --contact-bg: var(--navy);
  --contact-label: #A9C2DC;
  --contact-text: var(--navy-text);

  /* 事業の色（トップページなどで使う） */
  --re: #2F5F92;
  --rc: #85662F;
  --rc-light: #C9A86A;
  --cl: #22705E;
  --cl-soft: #A9D3C7;

  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-min: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;

  --wrap: 1312px;
  --gutter: 64px;
  --radius: 0px;
}

/* 不動産：会社の青、少し青みのある背景 */
.biz-re { --accent: var(--re); --accent-soft: var(--corp-soft); --bg: #F1F4F7; --band: var(--re); --line: #D5DDE5; }

/* レンタカー：黒×ブロンズ */
.biz-rc { --accent: var(--rc); --accent-soft: #D9C9A8; --bg: #F1EFEA; --band: #0F1113; --band-text: var(--rc-light);
  --contact-bg: #0F1113; --contact-label: var(--rc-light); --contact-text: #A3A7AD; }

/* 清掃：深いグリーン×ミント、角を丸く */
.biz-cl { --accent: var(--cl); --accent-soft: var(--cl-soft); --bg: #EDF5F1; --band: var(--cl); --line: #CFE3DB;
  --contact-bg: #1D4A40; --contact-label: var(--cl-soft); --contact-text: #C8E0D8; --radius: 14px; }

/* =========================================================
   2. ベース
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { opacity: .8; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.l-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 112px 0; }
.sec--white { background: var(--white); }
.sec--bg { background: var(--bg); }
.sec--tight { padding: 56px 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 写真枠：写真がない場合もレイアウトが崩れないように */
.ph { position: relative; overflow: hidden; background: #C9D3DC; border-radius: var(--radius); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--empty { display: flex; align-items: flex-end; padding: 16px 20px; color: #44515E; font-size: 12px; }

/* =========================================================
   3. 文字の部品
   ========================================================= */
.label { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 40px; }
.head .label { font-size: 15px; }
.head__ja { font-family: var(--font-min); font-weight: 500; font-size: 30px; line-height: 1.5; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.head-row .head { margin-bottom: 0; }
.more { font-weight: 500; font-size: 14px; text-decoration: none; }
.lead { color: var(--mute); line-height: 2.1; }
.title-min { font-family: var(--font-min); font-weight: 500; line-height: 1.55; }
.num { font-family: var(--font-en); font-weight: 300; font-size: 64px; line-height: 1; color: var(--accent-soft); }
.note { font-size: 13px; color: var(--mute); }

/* =========================================================
   4. ボタン
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 32px; font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1px solid var(--accent); border-radius: var(--radius);
  transition: opacity .2s;
}
.biz-cl .btn { border-radius: 999px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--outline { background: transparent; color: var(--accent); }
.btn--white { background: #fff; color: var(--contact-bg); border-color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn .arrow { font-size: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   5. ヘッダー・事業帯・フッター
   ========================================================= */
.site-header { background: #fff; border-bottom: 1px solid #DCD8CF; position: relative; z-index: 20; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.site-logo img { width: 72px; height: 72px; object-fit: contain; }
.gnav { display: flex; align-items: center; gap: 36px; }
.gnav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.gnav a.is-current { color: var(--accent); font-weight: 700; }
.gnav .btn { min-height: 44px; padding: 0 26px; font-size: 14px; color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); min-width: 72px; height: 48px; padding: 0 12px; color: var(--ink); cursor: pointer; font-size: 12px; font-family: var(--font-en); font-weight: 600; letter-spacing: .1em; }

.biz-band { background: var(--band); color: var(--band-text); }
.biz-band__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; font-size: 12px; }
.biz-band a { color: inherit; text-decoration: none; opacity: .85; }
.biz-band .label { color: var(--band-text); font-size: 12px; letter-spacing: .22em; }

.site-footer { background: var(--navy); color: var(--navy-text); font-size: 13px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-top: 88px; padding-bottom: 64px; }
.site-footer__logo { display: inline-block; background: #fff; padding: 6px; margin-bottom: 20px; }
.site-footer__logo img { width: 72px; height: 72px; object-fit: contain; }
.site-footer address { font-style: normal; line-height: 2; }
.fnav { display: flex; gap: 72px; flex-wrap: wrap; }
.fnav h3 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.fnav li { margin-bottom: 8px; }
.fnav a { color: var(--navy-text); text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--navy-line); padding-top: 24px; padding-bottom: 40px; font-size: 12px; }
.site-footer__bottom a { color: var(--navy-text); text-decoration: none; margin-left: 24px; }
.copyright { font-family: var(--font-en); font-weight: 500; letter-spacing: .06em; }

/* =========================================================
   6. トップページ
   ========================================================= */
.top-hero { display: grid; grid-template-columns: 620px 1fr; background: var(--paper); }
.top-hero__text { padding: 104px 64px 72px; display: flex; flex-direction: column; gap: 28px; }
.top-hero__title { font-family: var(--font-min); font-weight: 500; font-size: 52px; line-height: 1.5; }
.top-hero .ph { min-height: 640px; border-radius: 0; }
.top-hero .ph img { position: absolute; inset: 0; }
.entry { border-top: 1px solid var(--ink); }
.entry a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.entry__l { display: flex; align-items: center; gap: 20px; }
.entry__num { font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: .06em; }
.entry__name { font-weight: 700; font-size: 17px; display: block; line-height: 1.5; }
.entry__sub { font-size: 12px; color: var(--mute); }
.c-re { color: var(--re); } .c-rc { color: var(--rc); } .c-cl { color: var(--cl); }

.news-bar { background: #fff; border-bottom: 1px solid var(--line); }
.news-bar__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; font-size: 14px; }
.news-bar__l { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.news-bar a { color: var(--ink); text-decoration: none; }
.date { font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: .08em; color: var(--mute); }
.tag { display: inline-block; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-weight: 500; padding: 1px 10px; line-height: 1.8; }

.about { display: grid; grid-template-columns: 500px 1fr; gap: 96px; align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 28px; }
.about__title { font-family: var(--font-min); font-weight: 500; font-size: 34px; line-height: 1.6; }
.collage { position: relative; height: 540px; }
.collage .ph:first-child { position: absolute; right: 0; top: 0; width: 80%; height: 420px; }
.collage .ph:last-child { position: absolute; left: 0; bottom: 0; width: 42%; height: 240px; border: 10px solid var(--paper); }

.biz { display: grid; grid-template-columns: 700px 1fr; gap: 88px; align-items: center; padding: 56px 0; }
.biz--rev { grid-template-columns: 1fr 700px; }
.biz--rev .biz__photo { order: 2; }
.biz__photo { height: 480px; }
.biz__text { display: flex; flex-direction: column; gap: 22px; }
.biz__no { display: flex; align-items: baseline; gap: 20px; }
.biz__name { font-family: var(--font-min); font-weight: 500; font-size: 36px; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); padding: 4px 14px; font-size: 13px; }
.t-rc { --accent: var(--rc); --accent-soft: #D9C9A8; }
.t-cl { --accent: var(--cl); --accent-soft: var(--cl-soft); }
.t-re { --accent: var(--re); }

.onestop { background: var(--navy); color: #fff; }
.onestop__in { display: grid; grid-template-columns: 480px 1fr; gap: 96px; }
.onestop .label { color: #A9C2DC; }
.onestop__title { font-family: var(--font-min); font-weight: 500; font-size: 30px; line-height: 1.6; margin: 12px 0 20px; }
.onestop p { color: var(--navy-text); font-size: 14px; }
.onestop li { border-top: 1px solid var(--navy-line); padding: 28px 0; }
.onestop li b { display: block; font-size: 16px; margin-bottom: 6px; }
.onestop li span { color: var(--navy-text); font-size: 14px; }

.company { display: grid; grid-template-columns: 600px 1fr; gap: 80px; }
.dl { border-top: 1px solid var(--ink); }
.dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--mute); font-size: 14px; }
.dl dd { line-height: 1.8; }
.map { min-height: 460px; border: 0; width: 100%; height: 100%; border-radius: var(--radius); }

.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-card { background: var(--paper); border-top: 4px solid var(--accent); padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; }
.contact-card__name { font-weight: 700; font-size: 20px; }
.contact-card__tel { font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; }
.contact-card .btn { margin-top: 4px; }

/* =========================================================
   7. 事業ページ共通
   ========================================================= */
.page-hero { display: grid; grid-template-columns: 540px 1fr; gap: 80px; align-items: center; padding: 56px 0 104px; }
.page-hero__text { display: flex; flex-direction: column; gap: 24px; }
.page-hero__title { font-family: var(--font-min); font-weight: 500; font-size: 40px; line-height: 1.5; }
.page-hero .ph { height: 460px; }
.page-hero--rev { grid-template-columns: 1fr 540px; }

.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.col-line { border-top: 1px solid var(--accent); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.col-line__no { font-family: var(--font-en); font-weight: 500; color: var(--accent); font-size: 14px; letter-spacing: .08em; }
.col-line__title { font-weight: 700; font-size: 19px; }
.col-line p { font-size: 14px; color: var(--mute); }

.split { display: grid; grid-template-columns: 640px 1fr; gap: 88px; align-items: center; }
.split--rev { grid-template-columns: 1fr 640px; }
.split .ph { height: 440px; }
.split__text { display: flex; flex-direction: column; gap: 22px; }
.split__title { font-family: var(--font-min); font-weight: 500; font-size: 30px; line-height: 1.6; }

/* 物件カード（見やすさ重視・ゴシック） */
.prop-card { background: #fff; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.prop-card .ph { height: 220px; border-radius: 0; }
.prop-card__body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.prop-card__meta { font-size: 12px; color: var(--mute); }
.prop-card__name { font-weight: 700; font-size: 16px; line-height: 1.5; }
.prop-card__price { font-weight: 700; font-size: 22px; color: var(--accent); }
.prop-card__price small { font-size: 12px; color: var(--mute); font-weight: 400; margin-left: 6px; }

/* 他の事業へ */
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.other { display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center; background: #fff; text-decoration: none; color: var(--ink); padding-right: 32px; border-radius: var(--radius); overflow: hidden; }
.other .ph { height: 170px; border-radius: 0; }
.other__name { font-weight: 700; font-size: 20px; display: block; }
.other__desc { font-size: 13px; color: var(--mute); }

/* お問い合わせ帯 */
.contact-band { background: var(--contact-bg); color: #fff; text-align: center; }
.contact-band .label { color: var(--contact-label); }
.contact-band__title { font-family: var(--font-min); font-weight: 500; font-size: 30px; margin: 10px 0 12px; }
.contact-band p { color: var(--contact-text); font-size: 14px; margin-bottom: 28px; }
.contact-band .btns { justify-content: center; }
.contact-band .btn--white { color: var(--contact-bg); }

/* =========================================================
   8. レンタカー（暗い高級感）
   ========================================================= */
.rc-hero { background-size: cover; background-position: center; position: relative; color: #fff; }
.rc-hero::before { content: ""; position: absolute; inset: 0; background: rgba(15, 17, 19, .6); }
.rc-hero__in { position: relative; padding-top: 150px; padding-bottom: 150px; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.rc-hero .label { color: var(--rc-light); }
.rc-hero .page-hero__title { color: #fff; }
.rc-hero p { color: #D9D6CF; }
.rc-hero .btn--primary { background: var(--rc-light); border-color: var(--rc-light); color: #16181B; }
.rc-hero .btn--outline { color: var(--rc-light); border-color: var(--rc-light); }

.rc-dark { background: #16181B; color: #EDEBE6; }
.rc-dark .label { color: var(--rc-light); }
.rc-dark .lead, .rc-dark .note { color: #A3A7AD; }
.car { background: #22262B; padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.car .ph { height: 250px; }
.car__maker { font-size: 12px; color: #A3A7AD; }
.car__name { font-family: var(--font-en); font-weight: 600; font-size: 24px; letter-spacing: .02em; color: #fff; line-height: 1.2; }
.price-table { width: 100%; border-collapse: collapse; border-top: 1px solid #4A4E54; }
.price-table th, .price-table td { padding: 10px 0; border-bottom: 1px solid #3A3E44; font-size: 14px; }
.price-table th { text-align: left; font-weight: 400; color: #A3A7AD; }
.price-table td { text-align: right; font-weight: 700; font-size: 15px; color: #fff; }
.car .btn { color: var(--rc-light); border-color: var(--rc-light); }

/* =========================================================
   9. 清掃（数字の実績）
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; }
.stat { padding: 32px 40px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__k { font-size: 13px; color: var(--mute); }
.stat__v { font-weight: 700; font-size: 20px; color: var(--accent); line-height: 1.5; }
.stat__v--big { font-size: 36px; }
.svc { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc .ph { height: 220px; border-radius: 0; }
.svc__body { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.svc__name { font-weight: 700; font-size: 18px; }
.svc__desc { font-size: 13px; color: var(--mute); }
.svc__price { font-weight: 700; font-size: 24px; color: var(--accent); }
.svc__price--text { font-size: 15px; }

/* =========================================================
   10. 物件詳細・お知らせ・お問い合わせ・一般ページ
   ========================================================= */
.article { max-width: 880px; margin: 0 auto; }
.article__title { font-family: var(--font-min); font-weight: 500; font-size: 32px; line-height: 1.5; margin: 12px 0 24px; }
.article__body { line-height: 2.1; }
.article__body > * + * { margin-top: 1.4em; }
.article__body h2 { font-size: 22px; font-weight: 700; border-left: 3px solid var(--accent); padding-left: 14px; }
.article__body img { margin: 24px 0; }
.news-list a { display: flex; gap: 24px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.prop-detail { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.prop-detail .ph { height: 480px; }
.prop-detail__price { font-weight: 700; font-size: 32px; color: var(--accent); margin: 8px 0 20px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pager .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pager .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =========================================================
   11. スマホ・タブレット
   ========================================================= */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .top-hero, .about, .biz, .biz--rev, .onestop__in, .company, .page-hero, .page-hero--rev, .split, .split--rev, .prop-detail { grid-template-columns: 1fr; gap: 40px; }
  .biz--rev .biz__photo { order: 0; }
  .top-hero .ph { min-height: 360px; order: -1; }
  .top-hero__text { padding: 48px var(--gutter); }
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .sec { padding: 72px 0; }
  .menu-toggle { display: block; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; border-bottom: 1px solid #DCD8CF; }
  .gnav.is-open { display: flex; }
  .gnav a { padding: 14px 0; border-bottom: 1px solid #EEE; }
  .gnav .btn { margin-top: 16px; }
  .site-logo img { width: 56px; height: 56px; }
  .top-hero .ph { min-height: 240px; }
  .top-hero__text { padding-top: 36px; gap: 22px; }
  .site-header__in { min-height: 76px; }
  .top-hero__title { font-size: 34px; }
  .page-hero__title { font-size: 30px; }
  .head__ja, .onestop__title, .split__title, .contact-band__title { font-size: 24px; }
  .about__title, .biz__name { font-size: 28px; }
  .cols4, .cols3, .cols2, .contact-cards, .others, .stats { grid-template-columns: 1fr; }
  .collage { height: 380px; }
  .collage .ph:first-child { height: 280px; }
  .collage .ph:last-child { height: 160px; }
  .biz__photo, .page-hero .ph, .split .ph { height: 280px; }
  .other { grid-template-columns: 120px 1fr auto; gap: 16px; padding-right: 16px; }
  .other .ph { height: 110px; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .stat:first-child { border-top: 0; }
  .rc-hero__in { padding-top: 96px; padding-bottom: 96px; }
  .site-footer__top { padding-top: 56px; }
  .fnav { gap: 32px; }
}
