/* ============================================================
   frize-hd.jp（株式会社フライズホールディングス）
   1 画面の会社サイト（スマホは縦に並べる）。

   色: ホールディングスの色は「グループの色がすべて混ざった色」＝こげ茶（ロゴの円 #302927）。
   サイトは明るさを保ったまま、生成りの地・こげ茶の文字・ブロンズの小見出しにする。
   グループ会社のカードだけ、その会社の色（--c）を差す。

   動き: 上に虹の 7 色の光がずっとゆっくり漂う。開いたときは光 → 見出し → 文 → カードの順に現れる。マウスに合わせて光が少し動く。
   動きを減らす設定の端末では止める。
   ============================================================ */
:root {
  --hd: #302927;
  --ink: #2B2522;
  --body: #4B423D;
  --muted: #7D7169;
  --faint: #A69A90;
  --accent: #9A7253;
  --line: #EFE8E1;
  --bg: #FAF7F3;
  --card: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(48, 41, 39, .04), 0 18px 40px rgba(48, 41, 39, .07);
  --shadow-hover: 0 1px 2px rgba(48, 41, 39, .05), 0 26px 52px rgba(48, 41, 39, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }

/* 決まっていない値の印。公開の前にすべて外す */
.tbd {
  display: inline-block;
  padding: 0 8px;
  border-radius: 6px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* ---------- 全体（PC では 1 画面） ---------- */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

/* ---------- 7 色の光 ----------
   虹の 7 色の光がずっとゆっくり漂う。グループの会社が増えたら色を足していく、という考え方の絵。
   色・位置・動く向き・速さは HTML の 1 つずつの span の style に書く（--col・--l・--t・--ax〜--by・--dur・--delay）。
   光どうしは普通に重ねる（multiply だと 7 色が混ざって暗くなるため） */
.aura {
  position: absolute;
  left: 50%;
  top: -160px;
  width: min(1500px, 170vw);
  height: 780px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  animation: aura-in 1.6s var(--ease) both;
}
@keyframes aura-in { from { opacity: 0; } to { opacity: 1; } }
.aura__in {
  position: absolute;
  inset: 0;
  transform: translate(calc(var(--mx, 0) * 36px), calc(var(--my, 0) * 22px));
  transition: transform 1.2s var(--ease);
}
.aura__b {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: 30%;
  height: 46%;
  border-radius: 50%;
  background: var(--col);
  opacity: .42;
  filter: blur(70px);
  will-change: transform;
  animation: moya var(--dur, 18s) ease-in-out var(--delay, 0s) infinite;
}
/* スクリプトが動かしているときは CSS のアニメーションを止める（スクリプトがないときの予備） */
.aura--js .aura__b { animation: none; }
@keyframes moya {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(var(--ax), var(--ay)) scale(1.18); }
  50%  { transform: translate(var(--bx), var(--by)) scale(.86); }
  75%  { transform: translate(calc(var(--ax) * -.6), calc(var(--by) * .8)) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
/* 光の下の端を地の色に溶かす */
.aura::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(250, 247, 243, 0), var(--bg));
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- ヘッダー ---------- */
.hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}
.hd__logo img { width: auto; height: 40px; }
.hd__cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--hd);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .25s ease, transform .25s ease;
}
.hd__cta:hover { background: #4A3D37; transform: translateY(-1px); }

/* ---------- ひとこと ---------- */
.hero {
  position: relative;
  padding: 0 0 36px;
  text-align: center;
}
.hero__en {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .42em;
}
.hero__title {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .08em;
}
/* 見出しは 1 行ずつ下からせり上がる */
.ln { display: block; overflow: hidden; padding-bottom: .04em; }
.ln > span { display: inline-block; }
.hero__lead { color: var(--body); font-size: 15px; letter-spacing: .06em; }

/* ---------- 会社概要・グループ会社・所在地 ----------
   PC: 上の段は左に会社概要、右にグループ会社 2 枚を縦に。下の段に所在地（住所と大きめの地図）を横いっぱい */
.grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-areas:
    "company co1"
    "company co2"
    "access access";
  gap: 20px;
  padding-bottom: 32px;
}
#company { grid-area: company; }
.grid > .co:nth-of-type(1) { grid-area: co1; }
.grid > .co:nth-of-type(2) { grid-area: co2; }
#access { grid-area: access; }
.col {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.col__h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: .1em;
}
.col__en {
  color: var(--accent);
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.kv { margin: 0; font-size: 13.5px; }
.kv div { display: flex; gap: 16px; padding: 5px 0; }
.kv dt { flex: none; width: 4em; color: var(--faint); }
.kv dd { margin: 0; }

/* グループ会社のカード。--c はその会社の色。右上にその色をごく薄くにじませる */
.co {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  border-radius: 20px;
  background: var(--card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.co::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.co::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.co:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.co:hover::before { transform: scale(1.5); }
.co:hover::after { transform: scaleX(1); }
.co__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.co__top img { width: 28px; height: auto; transition: transform .45s var(--ease); }
.co:hover .co__top img { transform: rotate(-8deg) scale(1.06); }
.co__label {
  color: var(--faint);
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.co__arrow {
  margin-left: auto;
  color: var(--c);
  font-style: normal;
  transition: transform .35s var(--ease);
}
.co:hover .co__arrow { transform: translate(3px, -3px); }
.co__name { margin: 0 0 4px; color: var(--ink); font-size: 16px; letter-spacing: .04em; }
.co__desc { color: var(--muted); font-size: 12.5px; }
.co__url {
  margin-top: auto;
  padding-top: 12px;
  color: var(--c);
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.access { display: grid; grid-template-columns: 1fr 2.2fr; gap: 28px; align-items: stretch; }
.access__text { display: flex; flex-direction: column; }
.addr { font-size: 14px; color: var(--ink); }
.addr__note { margin-top: 8px; color: var(--faint); font-size: 12px; }
.map { min-height: 240px; overflow: hidden; border-radius: 14px; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.12); }

/* ---------- 代表メッセージ ---------- */
.msg {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 40px;
  margin-bottom: 48px;
  padding: 44px 48px;
  border-radius: 20px;
  background: var(--card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.msg__title { margin: 6px 0 0; color: var(--ink); font-size: 22px; letter-spacing: .1em; }
.msg__body p { margin: 0 0 1.2em; font-size: 15px; line-height: 2.05; letter-spacing: .04em; }
.msg__sign {
  margin: 28px 0 0 !important;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  letter-spacing: .1em;
}
.msg__sign span { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }

/* ---------- 読み物のページ（プライバシーポリシー・サイトのご利用について） ---------- */
.page--doc main { justify-content: flex-start; }
.doc {
  width: 100%;
  max-width: 820px;
  margin: 40px auto 56px;
  padding: 48px 56px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  font-size: 14.5px;
  line-height: 1.95;
}
.doc__title { margin: 6px 0 20px; color: var(--ink); font-size: 26px; letter-spacing: .08em; }
.doc__lead { margin-bottom: 8px; }
.doc h2 {
  margin: 36px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  letter-spacing: .06em;
}
.doc p { margin: 0 0 .8em; }
.doc ul { margin: 0 0 .8em; padding-left: 1.3em; }
.doc li { margin: .3em 0; }
.doc a { color: var(--hd); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.doc a:hover { text-decoration-color: currentColor; }
.doc__kv { margin-top: 8px; }
.doc__date { margin-top: 36px !important; color: var(--faint); font-size: 12.5px; text-align: right; }

/* ---------- フッター ---------- */
.ft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 18px 40px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: .06em;
}

.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ft__links a { color: var(--muted); transition: color .25s ease; }
.ft__links a:hover { color: var(--hd); }

.br-pc { display: inline; }
.br-sp { display: none; }
.nw { white-space: nowrap; }

/* ---------- 開いたときの動き（JS が html に .js を付けたときだけ隠す） ---------- */
/* 動きが終わったあとは transform を残さない（カードのマウスを載せたときの動きを邪魔しないため） */
.js .rv { opacity: 0; }
.js .rv.in { opacity: 1; animation: rise .9s var(--ease) var(--d, 0s) backwards; }
.js .ln > span { transform: translateY(105%); }
.js .hero.in .ln > span { animation: line-up 1.1s var(--ease) .65s both; }
.js .hero.in .ln:nth-child(2) > span { animation-delay: .8s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .aura, .aura__b { animation: none; }
  .aura__in { transition: none; transform: none; }
  .js .rv, .js .rv.in { opacity: 1; animation: none; }
  .js .ln > span, .js .hero.in .ln > span { transform: none; animation: none; }
  .co, .co::before, .co::after, .co__top img, .co__arrow { transition: none; }
}

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  main { padding: 0 16px; }
  .hd { padding: 14px 16px; }
  .hd__logo img { height: 32px; }
  .hero { padding: 48px 0 40px; }
  .aura { top: -80px; width: 115vw; height: 600px; }
  .aura__b { width: 40%; height: 34%; filter: blur(36px); }
  .hero__lead { font-size: 14px; }
  .br-pc { display: none; }
  .br-sp { display: inline; }
  .grid { grid-template-columns: 1fr; grid-template-areas: "company" "co1" "co2" "access"; gap: 16px; }
  .access { grid-template-columns: 1fr; gap: 16px; }
  .col { padding: 20px 18px; }
  .map { min-height: 0; height: 220px; }
  .doc { margin: 24px 0 32px; padding: 30px 22px; }
  .doc__title { font-size: 21px; }
  .msg { grid-template-columns: 1fr; gap: 16px; padding: 28px 22px; margin-bottom: 32px; }
  .msg__body p { font-size: 14px; line-height: 1.95; }
  .ft { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
}
