/* =========================================================
ENISHIブランドトップ
対象：トップ（body.is-brand）だけ
========================================================= */

.is-brand .enishi-container{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;
}

.is-brand .enishi-sectionTitle{
  font-size:20px;
  letter-spacing:.08em;
  text-align:center;
  margin:0 0 40px;
}

.is-brand .enishi-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

@media(max-width:768px){
  .is-brand .enishi-grid{
    grid-template-columns:repeat(2,1fr);
    gap:16px;
  }
}

/* ① hero */
.is-brand .enishi-hero{
  position:relative;
  height:100vh;
  overflow:hidden;
  background:#000;
}
.is-brand .enishi-hero__slider{position:absolute;inset:0;}
.is-brand .enishi-hero__slide{position:absolute;inset:0;opacity:0;transition: opacity 1.4s ease-in-out;}
.is-brand .enishi-hero__slide.is-active{opacity:1;}
.is-brand .enishi-hero__slide img{width:100%;height:100%;object-fit:cover;}
.is-brand .enishi-hero__dots{position:absolute;left:24px;bottom:24px;z-index:3;display:flex;gap:10px;}
.is-brand .enishi-hero__dot{width:8px;height:8px;border-radius:99px;border:0;background:rgba(255,255,255,.45);cursor:pointer;}
.is-brand .enishi-hero__dot.is-active{background:rgba(255,255,255,.95);}

/* ロゴ */
.enishi-hero__logo{
  position: absolute;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);
  opacity: .95;
}
.enishi-hero__logo img{
  height: 185px;
  width: auto;
  display: block;
}
@media (max-width: 768px){
  .enishi-hero__logo img{ height: 120px; }
}

/* ② about */
.is-brand .enishi-about{
  padding:110px 0;
  background:#faf7f2;
}

.is-brand .enishi-about__inner{
  display:grid;
  grid-template-columns:1fr 1.2fr; /* ← 地図側を少し広げる */
  gap:80px;
  align-items:center;
}

/* ===== テキスト調整 ===== */
.is-brand .enishi-about__lead{
  font-size:20px;
  line-height:2.2;
  margin:0 0 22px;
  color:#3a342c;
}

.is-brand .enishi-about__desc{
  font-size:16px;
  line-height:2.1;
  margin:0 0 20px;
  color:#6a635a;
}

/* ===== 地図を大きく ===== */
.is-brand .enishi-about__map{
  display:flex;
  justify-content:center;
}

.is-brand .enishi-about__map img{
  width:115%;          /* ← 少し拡大 */
  max-width:860px;     /* ← 上限設定で暴れ防止 */
  height:auto;
  opacity:.9;          /* ← 少しだけ濃く */
}

/* SP */
@media(max-width:768px){
  .is-brand .enishi-about{
    padding:70px 0;
  }
  .is-brand .enishi-about__inner{
    grid-template-columns:1fr;
    gap:36px;
  }
  .is-brand .enishi-about__map img{
    width:100%;
    max-width:420px;
  }
}

/* =========================================================
③ facilities（背景を薄グレー＋余白調整）
========================================================= */

.is-brand .enishi-facilities{
  background: #ebeae7;              /* 薄いグレー */
  padding: 96px 0 130px;           /* 上下の余白をしっかり */
  color: #1f1f1f;                   /* 文字を濃く */
}

.is-brand .enishi-facilities .enishi-sectionTitle{
  color: #1f1f1f;
  margin-bottom: 48px;             /* タイトル下の余白を少し広めに */
}

.is-brand .enishi-facilities .c-facilityCard__area{
  color: #999999;
}
.is-brand .enishi-facilities .c-facilityCard__name{
  color: #1f1f1f;
  margin-top: 15px;
}

/* カードの視認性を少し上げる（背景が明るくなるので） */
.is-brand .enishi-facilities .c-facilityCard__media{
  background: #e6e8ec;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* hoverも上品に */
@media (hover:hover){
  .is-brand .enishi-facilities .c-facilityCard:hover .c-facilityCard__media img{
    transform: scale(1.04);
  }
}

@media (max-width: 768px){
  .is-brand .enishi-facilities{
    padding: 64px 0 72px;
  }

  .is-brand .enishi-facilities .enishi-sectionTitle{
    margin-bottom: 28px;
  }
}

/* ③ cards */
.is-brand .c-facilityCard{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  text-align:center;
}
.is-brand .c-facilityCard__media{
  display:block;
  border-radius:2px;
  overflow:hidden;
  aspect-ratio:16/10;
  background:#eee;
}
.is-brand .c-facilityCard__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1);
  transition:transform .5s ease;
}
.is-brand .c-facilityCard:hover .c-facilityCard__media img{transform:scale(1.03);}
.is-brand .c-facilityCard__name{
  display:block;
  margin-top:12px;
  font-size:16px;
  letter-spacing:.12em;
  line-height:1.6;
}

/* modal */
.is-brand .c-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.is-brand .c-modal.is-open{
  display: flex;
  align-items: center;
  justify-content: center;
}
.is-brand .c-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}
.is-brand .c-modal__content{
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  background: #fff;
  padding: 56px;
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0,0,0,.15);
  animation: modalFade .6s cubic-bezier(.22,.61,.36,1);
}
@keyframes modalFade{
  from{
    opacity:0;
    transform: translateY(20px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

.is-brand .c-modal__close{
  position:absolute;
  right:20px;
  top:12px;
  border:0;
  background:transparent;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  color:#111;
}
.is-brand .c-modal__grid{
  display:grid;
  grid-template-columns:380px 1fr;
  gap:40px;
  align-items:center;
}
.is-brand .c-modal__brand{
  font-size:12px;
  letter-spacing:.16em;
  margin:0 0 10px;
  color:#5c5c5c;
}
.is-brand .c-modal__name{
  font-size:22px;
  letter-spacing:.08em;
  line-height:1.6;
  margin:0 0 14px;
  color:#111;
}
.is-brand .c-modal__lead{
  font-size:14px;
  line-height:2;
  margin:0 0 20px;
  color:#333;
}
.is-brand .c-modal__meta{
  font-size:13px;
  line-height:1.9;
  margin:20px 0 0;
  color:#555;
}
.is-brand .c-modal__media{border-radius:2px;overflow:hidden;}
.is-brand .c-modal__media img{width:100%;height:auto;display:block;}
@media(max-width:900px){
  .is-brand .c-modal__content{padding: 28px;}
  .is-brand .c-modal__grid{grid-template-columns:1fr;gap:18px;}
}

/* button */
.is-brand .c-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  border:1px solid #334;
  padding:12px 18px;
  font-size:12px;
  letter-spacing:.12em;
}
.is-brand .c-btn--primary{
  background:#2f375a;
  color:#fff;
  border-color:#2f375a;
  transition: all .3s ease;
}
.is-brand .c-btn--primary:hover{
  background:#3f4a75;
  border-color:#3f4a75;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,.12);
}

/* =========================================================
Header / Drawer（ブランド共通：施設トップ寄せ）
========================================================= */

.is-brand .enishi-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #fff;
  z-index: 10000;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.is-brand .enishi-header__inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.is-brand .enishi-header__logo{
  display: flex;
  align-items: center;
  height: 72px;
}
.is-brand .enishi-header__logo img{
  height: 46px;
  width: auto;
  display: block;
}
.is-brand .enishi-header__actions{
  display: flex;
  align-items: center;
  gap: 24px;
}

/* （使うなら）言語ボタン：施設トップの雰囲気に合わせて黒 */
.is-brand .enishi-header__langBtn{
  font-size: 11px;
  letter-spacing: .18em;
  background: transparent;
  border: 0;
  color: #000;
  cursor: pointer;
}
.is-brand .enishi-header__menuBtn{
  width: 28px;
  height: 18px;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.is-brand .enishi-header__menuBtn span{
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #000;
  transition: transform .3s ease, opacity .3s ease;
}
.is-brand .enishi-header__menuBtn span:nth-child(1){ top: 0; }
.is-brand .enishi-header__menuBtn span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.is-brand .enishi-header__menuBtn span:nth-child(3){ bottom: 0; }

body.active .enishi-header__menuBtn span:nth-child(1){
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
body.active .enishi-header__menuBtn span:nth-child(2){
  opacity: 0;
}
body.active .enishi-header__menuBtn span:nth-child(3){
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Drawer（全画面） */
.is-brand .enishi-drawer{
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.96);
  color: #fff;
  display: none;
  z-index: 9999;
}
.is-brand .enishi-drawer.is-open{ display: block; }
.is-brand .enishi-drawer__inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.is-brand .enishi-drawer__nav{
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.is-brand .enishi-drawer__nav li{ margin: 18px 0; }
.is-brand .enishi-drawer__nav a{
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: .12em;
}
.is-brand .enishi-drawer__nav a:hover{ opacity: .7; }
.is-brand .enishi-drawer__close{
  display: none;
}

/* スマホ：施設トップの高さに寄せる */
@media (max-width: 768px){
  .is-brand .enishi-header{
    height: 58px;
    padding: 0 16px;
  }
  .is-brand .enishi-header__logo img{
    width: 100px;
    height: auto;
  }
  .is-brand .enishi-header__menuBtn{
    width: 28px;
    height: 18px;
  }
  .is-brand .enishi-drawer{
    top: 58px; /* SPヘッダー高さ */
  }
}

/* =========================================================
モーダル 改行
========================================================= */
.c-modal__meta { white-space: pre-line; }

/* =========================================================
ABOUT / FACILITIES 背景タイポ（LOCATION / FACILITIES）
========================================================= */

/* 位置基準 */
.is-brand .enishi-about,
.is-brand .enishi-facilities{
  position: relative;
  overflow: hidden; /* はみ出しを綺麗に隠す */
}

/* LOCATION（about右下） */
.is-brand .enishi-about::after{
  content: "LOCATION";
  position: absolute;
  right: 0%;
  bottom: -6px;           /* 下に少し食い込ませる */
  font-family: "Noto Serif JP", serif;
  font-size: 74px;
  letter-spacing: .08em;
  line-height: 1;
  color: #efe9df;
  pointer-events: none;
  user-select: none;
}

/* FACILITIES（facilities右上） */
.is-brand .enishi-facilities::before{
  content: "FACILITIES";
  position: absolute;
  left: 0%;
  top: -16px;              /* 上に少し食い込ませる */
  font-family: "Noto Serif JP", serif;
  font-size: 74px;
  letter-spacing: .08em;
  line-height: 1;
  color: rgba(0,0,0,.06);  /* 薄く */
  pointer-events: none;
  user-select: none;
}

/* タイトルやカードより後ろに回す（安全策） */
.is-brand .enishi-about__inner,
.is-brand .enishi-facilities .enishi-container{
  position: relative;
  z-index: 1;
}

/* SPでも表示：サイズと位置を調整 */
@media (max-width: 768px){
  .is-brand .enishi-about::after{
    display: block;
    font-size: 44px;
    bottom: -4px;
    letter-spacing: .06em;
    color: #efe9df;
  }

  .is-brand .enishi-facilities::before{
    display: block;
    font-size: 44px;
    top: -9px;
    letter-spacing: .06em;
    color: rgba(0,0,0,.05);
  }
}

/* =========================================================
④ related（セクション全体リンク / 基本白 → hoverでベージュ / ロゴ丸は左上にはみ出し / 左下にコピー）
========================================================= */

.is-brand .enishi-related{
  padding: 0;
  position: relative;
  overflow: visible; /* ← hidden をやめる */
  z-index: 2;        /* ← facilities より前に出す */
}

/* 左下の薄いコピー */
.is-brand .enishi-related::after{
  content: "感じる。あそぶ。トトノウ。";
  position: absolute;
  right: 0%;
  bottom: 2px;
  font-size: 56px;
  letter-spacing: .12em;
  line-height: 1;
  color: #efe9df;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.is-brand .enishi-related__link{
  display: block;
  text-decoration: none;

  /* 基本：白 */
  background: #ffffff;
  color: #816b40;

  transition: background .35s ease, color .35s ease;
}

/* hover：ベージュに */
.is-brand .enishi-related__link:hover{
  background: #e4cea3;
}

/* 中身のレイアウト（ロゴ丸は absolute なので2カラムでOK） */
.is-brand .enishi-related__inner{
  position: relative;
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;          /* ← 縦中央 */
  gap: 24px;
  padding: 86px 24px 86px; /* 下のコピー分も含めて厚め */
}

/* 左上にはみ出すロゴ丸（ロゴ色切替不要の白寄り背景） */
.is-brand .enishi-related__logo{
  position: absolute;
  left: -80px;
  top: -36px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: #e4cea3;
  border: 1px solid rgba(0,0,0,.06);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .35s ease, background .35s ease;
  z-index: 5;
}

/* ロゴ画像：SVG推奨（単色） */
.is-brand .enishi-related__logo img{
  width: 70%;
  height: auto;
  display: block;

  /* 画像をCSSで反転できる想定（SVG/単色が理想） */
  filter: brightness(0) invert(1); /* ← 白に寄せる（ベージュ背景で白ロゴ） */
  transition: filter .35s ease, opacity .35s ease;
  opacity: .95;
}

/* hoverで丸が白、ロゴがベージュに反転 */
.is-brand .enishi-related__link:hover .enishi-related__logo{
  background: #ffffff;
  transform: translateY(-8px);
}

.is-brand .enishi-related__link:hover .enishi-related__logo img{
  /* 白背景で「ベージュ」に寄せる */
  filter: brightness(0) saturate(100%) invert(78%) sepia(17%) saturate(879%) hue-rotate(2deg) brightness(93%) contrast(92%);
}

/* テキスト（ロゴ丸の分だけ左に余白を確保） */
.is-brand .enishi-related__text{
  padding-left: 170px;
}

.is-brand .enishi-related__kicker{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .14em;
  opacity: .75;
}

.is-brand .enishi-related__title{
  margin: 0;
  font-size: 26px;
  letter-spacing: .08em;
}

/* 右の矢印 */
.is-brand .enishi-related__arrow{
  font-size: 42px;
  line-height: 1;
  opacity: .65;
  transition: transform .35s ease, opacity .35s ease;
}

.is-brand .enishi-related__link:hover .enishi-related__arrow{
  transform: translateX(6px);
  opacity: 1;
}

/* SP */
@media (max-width: 768px){
  .is-brand .enishi-related__inner{
    padding: 96px 18px 74px;
    gap: 18px;
  }

  .is-brand .enishi-related__logo{
    left: -8px;
    top: -18px;
    width: 128px;
    height: 128px;
  }

  .is-brand .enishi-related__text{
    padding-left: 110px;
  }

  .is-brand .enishi-related__title{
    font-size: 20px;
  }

  .is-brand .enishi-related::after{
    left: 16px;
    bottom: 14px;
    font-size: 22px;
    letter-spacing: .08em;
    color: rgba(91,74,47,.16);
  }
}
