/* 家づくり動画ガイド
   静かな高級感。写真が主役、UIは罫線と余白で区切る。角丸0・影なし。 */
:root {
  --text: #333333;
  --title: #1B1B1B;
  --sub: #7D7D7D;
  --dark: #434343;
  --black: #000000;
  --white: #FFFFFF;
  --gray: #EEEEEE;
  --line: #DEDEDE;
  --orange: #F27400;
  --mint: #91D2DC;
  --yellow: #EFE45A;

  --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;

  --ls: 1.75px;
  --w: 520px;
  --gutter: 24px;
  --cta-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gray);
  color: var(--text);
  font-family: var(--ja);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: var(--ls);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--black); outline-offset: 3px; }

/* スマホ幅の1カラム。PCでは中央に置く */
.header, main, .footer, .fixed-cta, .drawer {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
}
main { background: var(--white); }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 22px;
  background: var(--dark);
  color: var(--white);
  line-height: 1.3;
}
.header__logo-ja { font-size: 15px; font-weight: 500; letter-spacing: .2em; }
.header__logo-en { font-family: var(--en); font-size: 10px; letter-spacing: .2em; color: var(--yellow); }
.header__menu {
  width: 60px;
  display: grid;
  place-content: center;
  gap: 7px;
}
.header__menu span { display: block; width: 24px; height: 1px; background: var(--title); }

/* ---------- メニュー ---------- */
.drawer {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--white);
  overflow-y: auto;
  padding: 0 var(--gutter) 48px;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 60px; border-bottom: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.drawer__en { font-family: var(--en); font-size: 14px; letter-spacing: .1em; color: var(--sub); }
.drawer__close { width: 44px; height: 44px; position: relative; margin-right: -10px; }
.drawer__close::before, .drawer__close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: var(--title); }
.drawer__close::before { transform: rotate(45deg); }
.drawer__close::after { transform: rotate(-45deg); }
.drawer__list { padding-top: 16px; }
.drawer__list a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--title); }
.drawer__list svg { width: 28px; height: 28px; flex: none; }
.drawer__list--sub a { font-size: 13px; color: var(--text); }

/* ---------- 共通パーツ ---------- */
.section { padding: 88px var(--gutter); background: var(--white); }
.section--tight { padding-block: 64px; }
.section--center { text-align: center; }
.section--texture {
  background-color: var(--gray);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding-inline: 16px;
}
.panel { background: var(--white); padding: 56px 24px; }

.heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 40px; }
.heading--center { justify-content: center; }
.heading__ja { font-size: 24px; font-weight: 300; letter-spacing: .2em; color: var(--title); line-height: 1.5; }
.heading__en { font-family: var(--en); font-size: 14px; font-weight: 500; letter-spacing: .1em; color: var(--sub); }

/* 正方形の枠から細い線が伸びるマーク */
.mark { position: relative; display: inline-block; width: 34px; height: 9px; flex: none; }
.mark::before { content: ""; position: absolute; right: 0; top: 0; width: 9px; height: 9px; border: 1px solid currentColor; }
.mark::after { content: ""; position: absolute; left: 0; right: 4px; top: 4px; height: 1px; background: currentColor; }
.mark--back { transform: scaleX(-1); width: 24px; }

.label { display: inline-block; background: var(--black); color: var(--white); font-size: 11px; font-weight: 500; line-height: 1; padding: 7px 10px; letter-spacing: 1px; }
.badge { display: inline-block; color: var(--white); font-size: 11px; font-weight: 500; line-height: 1; padding: 7px 10px; letter-spacing: 1px; }
.badge--orange { background: var(--orange); }
.badge--mint { background: var(--mint); }

.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 56px; padding: 0 20px;
  font-size: 13px; letter-spacing: 1px; line-height: 1.5;
}
.btn--black { background: var(--black); color: var(--white); }
.btn--line { border: 1px solid var(--title); color: var(--title); background: var(--white); }

/* ---------- ヒーロー ---------- */
.hero { padding: 72px var(--gutter) 24px; text-align: center; }
.hero__en { font-family: var(--en); font-size: 13px; letter-spacing: .3em; color: var(--sub); margin-bottom: 20px; }
.hero__title { font-size: 25px; font-weight: 300; letter-spacing: .2em; line-height: 1.9; color: var(--title); }
.hero__lead { margin-top: 24px; font-size: 13px; color: var(--text); }
.hero__line { display: block; width: 1px; height: 56px; margin: 40px auto 0; background: var(--sub); }

/* ---------- 悩みタイル ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: center;
}
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 188px; padding: 30px 10px 22px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--title);
  transition: background-color .2s;
}
.tile:active { background: var(--gray); }
@media (hover: hover) { .tile:hover { background: #F7F7F7; } }
.tile__icon { width: 56px; height: 56px; color: var(--title); }
.tile__icon svg { width: 100%; height: 100%; }
.tile__title { margin-top: 18px; font-size: 13px; line-height: 1.75; letter-spacing: 1.5px; text-wrap: balance; }
.tile__en { margin-top: auto; padding-top: 12px; font-family: var(--en); font-size: 11px; letter-spacing: .12em; color: var(--sub); }

/* 地域タイル（横長） */
.area {
  display: grid; grid-template-columns: 72px 1fr; gap: 0 18px; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--title);
}
.area__icon { width: 72px; height: 72px; }
.area__icon svg { width: 100%; height: 100%; }
.area__title { font-size: 15px; line-height: 1.7; }
.area__note { margin-top: 4px; font-size: 12px; color: var(--sub); line-height: 1.65; }
.area__go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--title); }

/* ---------- カテゴリページ ---------- */
.cat-head { padding: 28px var(--gutter) 48px; text-align: center; border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--sub); margin-bottom: 40px; align-self: flex-start; }
.cat-head .back { display: flex; width: fit-content; }
.cat-head__icon { width: 64px; height: 64px; margin: 0 auto; color: var(--title); }
.cat-head__icon svg { width: 100%; height: 100%; }
.cat-head__en { margin-top: 18px; font-family: var(--en); font-size: 13px; letter-spacing: .14em; color: var(--sub); }
.cat-head__title { margin-top: 6px; font-size: 22px; font-weight: 300; letter-spacing: .16em; line-height: 1.7; color: var(--title); text-wrap: balance; }
.cat-head__lead { margin-top: 18px; font-size: 13px; color: var(--text); }

.cards { padding: 48px 0 8px; display: grid; gap: 48px; }
.card { display: block; width: 100%; text-align: left; }
.card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .card:hover .card__thumb img { transform: scale(1.03); } }
.card__play {
  position: absolute; right: 12px; bottom: 12px;
  width: 44px; height: 44px; background: rgba(0,0,0,.72);
  display: grid; place-items: center;
}
.card__play::before { content: ""; margin-left: 3px; border-left: 11px solid var(--white); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.card__body { padding: 16px var(--gutter) 0; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.card__title { font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: var(--ls); color: var(--text); }
.empty { padding: 0 var(--gutter); font-size: 13px; color: var(--sub); text-align: center; }

.share { padding: 48px var(--gutter) 0; text-align: center; }
.share__btn { font-size: 12px; color: var(--sub); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.share__done { margin-top: 8px; font-size: 12px; color: var(--sub); }

.chips { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.chip { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--title); }
.chip svg { width: 32px; height: 32px; }
.chip__go { font-size: 14px; color: var(--sub); }

/* ---------- 問い合わせ ---------- */
.panel__lead { font-size: 13px; margin: -16px 0 32px; }
.buttons { display: grid; gap: 12px; }
.tel { display: block; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.tel__label { display: block; font-size: 12px; color: var(--sub); }
.tel__num { display: block; font-family: var(--en); font-size: 30px; letter-spacing: .08em; color: var(--title); line-height: 1.4; }
.tel__hours { display: block; font-size: 12px; color: var(--sub); }

/* ---------- 拠点 ---------- */
.places { display: grid; gap: 48px; }
.place { border-top: 1px solid var(--line); padding-top: 24px; }
.place__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.place__name { font-size: 16px; font-weight: 400; color: var(--title); letter-spacing: .14em; }
.place__en { font-family: var(--en); font-size: 12px; color: var(--sub); letter-spacing: .1em; }
.place__addr { margin-top: 12px; font-size: 12px; line-height: 1.65; color: var(--sub); }
.place__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.place__btns .btn { min-height: 48px; padding: 0 14px; font-size: 12px; }
.place__btns .btn .mark { width: 20px; }

/* ---------- SNS ---------- */
.sns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sns a { display: grid; place-items: center; gap: 8px; width: 96px; padding: 18px 0 14px; border: 1px solid var(--line); font-family: var(--en); font-size: 12px; letter-spacing: .08em; color: var(--title); }
.sns svg { width: 24px; height: 24px; }

/* ---------- フッター ---------- */
.footer { background: var(--dark); color: var(--white); padding: 40px var(--gutter) calc(var(--cta-h) + 40px + env(safe-area-inset-bottom, 0px)); }
.footer__acc > li { border-bottom: 1px solid rgba(255,255,255,.25); }
.footer__acc > li:first-child { border-top: 1px solid rgba(255,255,255,.25); }
.footer__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 0; font-size: 13px; text-align: left; }
.footer__plus { position: relative; width: 12px; height: 12px; }
.footer__plus::before, .footer__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .25s; }
.footer__plus::after { transform: rotate(90deg); }
.footer__toggle[aria-expanded="true"] .footer__plus::after { transform: rotate(0); }
.footer__sub { padding: 0 0 18px 12px; }
.footer__sub a { display: block; padding: 8px 0; font-size: 12px; color: rgba(255,255,255,.8); }
.footer__name { margin-top: 40px; font-size: 14px; letter-spacing: .2em; }
.footer__copy { margin-top: 4px; font-family: var(--en); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.6); }

/* ---------- 固定CTA ---------- */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.fixed-cta__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.fixed-cta__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 62px; font-size: 11px; letter-spacing: 1px; color: var(--title);
  border-right: 1px solid var(--line);
}
.fixed-cta__btn:last-child { border-right: 0; }
.fixed-cta__btn svg { width: 20px; height: 20px; }
.fixed-cta__bar {
  display: block; background: var(--dark); color: var(--white); text-align: center;
  font-size: 12px; letter-spacing: 1.5px; line-height: 42px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- プレーヤー ---------- */
.player {
  position: fixed; inset: 0; z-index: 60;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.player__inner { max-width: var(--w); margin: 0 auto; padding-bottom: 64px; }
.player__top { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 1; }
.player__en { font-family: var(--en); font-size: 12px; letter-spacing: .14em; color: var(--sub); }
.player__close { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--title); height: 44px; }
.player__close span { position: relative; width: 14px; height: 14px; }
.player__close span::before, .player__close span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.player__close span::before { transform: rotate(45deg); }
.player__close span::after { transform: rotate(-45deg); }
.player__frame { position: relative; aspect-ratio: 16 / 9; background: var(--black); }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__body { padding: 24px var(--gutter) 0; }
.player__title { margin-top: 14px; font-size: 15px; font-weight: 400; line-height: 1.7; color: var(--title); letter-spacing: var(--ls); }
.player__actions { margin-top: 28px; }
.player__next-h { margin-top: 48px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.next li { border-bottom: 1px solid var(--line); }
.next button { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: start; width: 100%; padding: 16px 0; text-align: left; }
.next .card__thumb { width: 128px; }
.next__title { font-size: 12px; line-height: 1.65; color: var(--text); letter-spacing: 1px; }

/* 画面切り替えのフェード */
.view { animation: fade .5s ease both; }
@keyframes fade { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 521px) {
  body { padding-bottom: 0; }
  .drawer { max-width: var(--w); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view { animation: none; }
  .card__thumb img, .tile, .footer__plus::after { transition: none; }
}

/* ---------- 追加 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header__logo-mark { font-family: var(--en); font-size: 21px; font-weight: 500; letter-spacing: .14em; color: var(--mint); line-height: 1.1; }
.header__logo-m { color: var(--yellow); }
.header__logo-sub { margin-top: 2px; font-size: 9px; letter-spacing: .18em; color: var(--white); }
.tiles--odd > li:last-child { grid-column: 1 / -1; }
.tiles--odd > li:last-child .tile { min-height: 0; flex-direction: row; justify-content: center; gap: 18px; padding: 24px 16px; }
.tiles--odd > li:last-child .tile__title { margin-top: 0; }
.tiles--odd > li:last-child .tile__en { display: none; }
.place__badges { display: flex; gap: 6px; margin-top: 14px; }
.footer__legal { margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.7); }
.footer__note { margin-top: 20px; font-size: 11px; color: rgba(255,255,255,.6); }
.card__thumb, .card__body, .card__title, .area__title, .area__note, .next__title { display: block; }
.card__body { min-width: 0; }
.sns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sns a { width: auto; }
.card__thumb img.is-broken { visibility: hidden; }
.hero__photo { margin: 0 0 8px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray); }
.hero__photo a, .hero__photo img { display: block; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; }
.hero__line { height: 40px; margin-top: 32px; }
.hero { padding-bottom: 40px; }
img.is-broken { visibility: hidden; }
.hero { padding: 36px var(--gutter) 8px; }
.hero__en { margin-bottom: 10px; }
.hero__title { font-size: 20px; line-height: 1.8; text-wrap: balance; }
.hero__lead { margin-top: 10px; font-size: 12px; color: var(--sub); text-wrap: balance; }
.hero__photo { margin: 0; }
.section--concerns { padding-top: 40px; }
.section--concerns .heading { margin-bottom: 28px; }
.header__logo { padding: 0 18px; }
.header__logo-img { width: 136px; height: auto; }
.place__note { margin-top: 6px; font-size: 12px; line-height: 1.65; color: var(--sub); }
.events { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--title); }
.events__en { display: block; font-family: var(--en); font-size: 11px; letter-spacing: .14em; color: var(--sub); line-height: 1.4; }
.header__logo { padding: 0 20px; }
.header__logo-img { width: 150px; height: auto; }

/* 環境による共有・埋め込み制限への代替導線 */
.share__url { display: block; width: 100%; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--text); font: inherit; font-size: 12px; letter-spacing: 0; }
.player__youtube { display: block; width: fit-content; margin-bottom: 16px; padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--sub); }
#contact, #access, #sns, #concerns, #area { scroll-margin-top: 60px; }
.sns { grid-template-columns: repeat(3, 1fr); }
