* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #050914;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  color: #fff;
}

/* ===== イントロ（会社名＋メッセージ） ===== */
#intro-overlay{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3; /* canvas(1) と ui(2) の上 */
  pointer-events: none;
  opacity: 1;

  /* フェードアウト */
  transition: opacity 1.2s ease;

  /* 少しだけ上質感を出す薄い幕 */
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255,255,255,0.06) 0%,
    rgba(5,9,20,0.88) 55%,
    rgba(5,9,20,0.98) 100%
  );
}

#intro-overlay.is-hidden{
  opacity: 0;
}

.intro-inner{
  width: min(980px, 92vw);
  text-align: center;
  padding: 28px 18px;
}

/* ★出現演出：最初は少し下＆透明→ふわっと出る */
#intro-overlay .intro-inner{
  transform: translateY(10px);
  opacity: 0;
  transition: transform 1.0s ease, opacity 1.0s ease;
}
#intro-overlay.is-ready .intro-inner{
  transform: translateY(0);
  opacity: 1;
}
#intro-overlay.is-ready .intro-corp{
  opacity: 1;
  transform: translateY(0);
}
/* ブランド（ruby全体） */
.intro-brand{
  display: inline-block;
  padding: 6px 10px;
}

/* rubyの見た目調整 */
.intro-ruby{
  ruby-position: over;
}

/* 株式会社（控えめに信頼感を出す） */
.intro-corp{
  font-size: clamp(12px, 1.8vw, 16px);
  letter-spacing: .25em;
  font-weight: 600;
  color: rgba(200,215,255,.75);
  margin-bottom: 6px;

  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .8s ease .3s, transform .8s ease .3s; 
}


/* 漢字：主役 */
.intro-kanji{
  display: inline-block;
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 750;
  letter-spacing: .06em;
  line-height: 1.05;
  text-shadow: 0 14px 40px rgba(0,0,0,.45);
}

/* ふりがな：控えめに */
.intro-rt{
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(220,230,255,.78);
  transform: translateY(-2px);
}

/* メッセージ：一段下で柔らかく */
.intro-message{
  margin-top: 16px;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.9;
  color: rgba(220,230,255,.92);
  text-shadow: 0 10px 24px rgba(0,0,0,.35);
}

/* モバイル：詰まりすぎを防ぐ */
@media (max-width: 420px){
  .intro-rt{ letter-spacing: .12em; }
  .intro-message{ line-height: 1.85; }
}


/* ===== 球体背景 ===== */
#canvas-container {
  position: fixed;
  inset: 0;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.8s ease;
  z-index: 1;
}

/* ★追加：最初は球体を出さない（intro文字を先に安定表示させる） */
html.preload #canvas-container{
  opacity: 0;
  visibility: hidden;
}
html.ready #canvas-container{
  opacity: 1;
  visibility: visible;
}

/* ===== 腕輪メニュー全体（本体＋フッター） ===== */
#ui-layer {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 12s ease;
  z-index: 2;
}

#ui-layer.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== 中央のステージ（腕輪 + 右側本文） ===== */
.stage {
  width: min(1100px, 100vw - 40px);
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
  padding: 24px 32px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #202b45 0, #050915 45%, #050910 100%);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  max-height: 80vh;
  transform: scale(0.92);
  transition: transform .8s ease;
}
#ui-layer.is-visible .stage { transform: scale(1); }

/* スマホでも横並びのまま、サイズだけ調整
@media (max-width: 768px) {
  .stage {
    flex-direction: row;
    gap: 20px;
    padding: 16px 16px;
    width: 100%;
  }
  .bracelet-wrapper {
    width: 46vw;
    height: 46vw;
    max-width: 260px;
    max-height: 260px;
  }
  .simple-panel {
    max-width: none;
    max-height: 70vh;
  }
} */

@media (max-width: 768px) {
  .stage {
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px;
    width: 100%;
    max-height: 90vh;
  }

  /* 腕輪：少し小さめで収まりよく */
  .bracelet-wrapper {
    width: min(300px, 78vw);
    height: min(300px, 78vw);
    max-width: 300px;
    max-height: 300px;
    margin: 0 auto;
  }

  /* ★中心のMENU円：小さくする */
.bracelet-center {
  width: 74px !important;
  height: 74px !important;
  box-shadow: 0 0 18px rgba(78,143,255,.45);
  opacity: .75;
  background: radial-gradient(
    circle at 30% 20%,
    #fff 0%,
    #dbe8ff 18%,
    #4e8fff 55%,
    transparent 78%
  );
}

.bracelet-center::after {
  font-size: 10px;
  letter-spacing: .22em;
}

  /* ★周囲のアイコン：少し小さく */
  .bracelet-item {
    width: 64px;
    height: 64px;
  }

  /* 右（下）本文：中央寄せの“枠”にして読みやすく */
  .simple-panel {
    max-width: 560px;      /* ← 中央寄せの箱 */
    width: 100%;
    margin: 0 auto;        /* ← 箱自体を中央へ */
    max-height: 48vh;
    padding: 0 6px 6px;
  }

  /* タイトルは中央 */
  .content-title {
    text-align: center;
    font-size: 22px;
  }

  /* 本文は“箱の中で左揃え”が一番読みやすい */
  .content-body {
    text-align: left;
    font-size: 14px;
    line-height: 1.9;
    margin: 0 auto;
  }

  /* dl（会社概要）もスマホは読みやすく縦に */
  .content-body dl {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .content-body dt {
    opacity: .9;
  }
}



/* ===== 腕輪メニュー ===== */
.bracelet-wrapper {
  position: relative;
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bracelet-center {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff 0%, #dbe8ff 20%, #4e8fff 60%, transparent 80%);
  box-shadow: 0 0 40px rgba(78,143,255,.7);
}
.bracelet-center::after {
  content: "MENU";
  position: absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  letter-spacing: .3em; font-size: 12px; color:#001;
}

.bracelet-item {
  position: absolute;
  top:50%; left:50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border:none;
  padding: 0;
  transition: .25s ease;
  background: transparent;
  box-shadow: none;
}

.bracelet-item img {
  width: 100%; height:100%;
  border-radius: 50%; object-fit: cover;
  transition: .25s ease;
}

.bracelet-item.is-active img {
  transform: scale(1.06);
}

/* ===== 右側：タイトル＋本文 ===== */
.simple-panel {
  flex: 1 1 auto;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(80vh - 40px);
  padding-right: 8px;
  padding-left: 6px;
}

.content-title {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

.content-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(220,230,255,.9);
  white-space: normal;
}

/* ===== フッターリンク ===== */
.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #8ac7ff;
  text-decoration: none;
  transition: .2s ease;
}
.footer-links a:hover { color: #cfe6ff; }

/* 会社概要の dl 用 */
.content-body dl {
  display: grid;
  grid-template-columns: 5em 1fr;
  row-gap: 4px;
  column-gap: 12px;
}
.content-body dt {
  font-weight: 600;
  color: #e5eeff;
}
.content-body dd { margin: 0; }

/* 本文とリストのスペース */
.content-body p + ul { margin-top: 12px; }
.content-body ul li { line-height: 1.4; margin-bottom: 6px; }

/* === 代表者プロフィール アコーディオン === */
.profile-toggle-btn {
  margin-top: 16px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(138,199,255,0.7);
  background: rgba(5,9,20,0.7);
  color: #dce6ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.profile-panel {
  margin-top: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
}

.profile-panel.is-open {
  max-height: 500px;
  opacity: 1;
}

/* ===== NEWS CARD ===== */

.news-list{
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.news-card{
  border-radius: 16px;
  background: rgba(20,30,55,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(120,160,255,.15);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.news-toggle{
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.news-meta{
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(160,190,255,.7);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-badge{
  font-size: 10px;
  letter-spacing: .15em;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg,#4e8fff,#6fa8ff);
  color: #001;
  font-weight: 700;
}


.news-title{
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.news-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 20px;
}

.news-card.is-open .news-content{
  max-height: 200px;
  padding: 0 20px 18px 20px;
}

.news-content p{
  font-size: 14px;
  line-height: 1.8;
  color: rgba(220,230,255,.85);
}

/* ===== NEWS メルマガ導線 ===== */

.news-subscribe{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(120,160,255,.15);
  text-align: center;
}

.news-subscribe p{
  font-size: 13px;
  color: rgba(200,220,255,.7);
  margin-bottom: 8px;
}

.news-subscribe-link{
  font-size: 14px;
  font-weight: 600;
  color: #8ac7ff;
  text-decoration: none;
  transition: .2s ease;
}

.news-subscribe-link:hover{
  color: #cfe6ff;
}

.footer-copy{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(200,220,255,.55);
  text-align: center;
  letter-spacing: .05em;
}

/* ===== フッター整理（切れ対策込み） ===== */
#ui-layer{
  padding: 18px 14px 22px; /* 下に余白。モバイルでコピーライト切れにくくする */
}

.site-footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
}

.footer-links{
  display: flex;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a{
  color: #8ac7ff;
  text-decoration: none;
  transition: .2s ease;
}
.footer-links a:hover{ color:#cfe6ff; }

.footer-copy{
  font-size: 12px;
  color: rgba(200,220,255,.55);
  text-align: center;
  letter-spacing: .05em;
}

/* ===== 法務モーダル ===== */
.legal-modal{
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.legal-modal.is-open{
  display: block;
}

.legal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.legal-dialog{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(900px, 92vw);
  max-height: min(78vh, 780px);
  background: radial-gradient(circle at top left, rgba(32,43,69,.95) 0, rgba(5,9,21,.98) 55%, rgba(5,9,16,.98) 100%);
  border: 1px solid rgba(120,160,255,.18);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0,0,0,.65);
  overflow: hidden;
}

.legal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(120,160,255,.14);
}

.legal-title{
  font-weight: 700;
  letter-spacing: .06em;
}

.legal-close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(120,160,255,.20);
  background: rgba(5,9,20,.55);
  color: rgba(220,230,255,.9);
  cursor: pointer;
}

.legal-body{
  padding: 14px 16px 18px;
  overflow: auto;
  max-height: calc(min(78vh, 780px) - 56px);
}

/* ===== 文書の読みやすさ ===== */
.legal-doc h2{
  font-size: 20px;
  margin-bottom: 10px;
}
.legal-doc h3{
  font-size: 15px;
  margin-top: 16px;
  margin-bottom: 6px;
}
.legal-doc p, .legal-doc li{
  font-size: 14px;
  line-height: 1.9;
  color: rgba(220,230,255,.88);
}
.legal-doc ul{
  margin: 6px 0 0 18px;
}
.legal-doc hr{
  border: none;
  border-top: 1px solid rgba(120,160,255,.14);
  margin: 16px 0 12px;
}
.legal-note{
  font-size: 12px;
  color: rgba(200,220,255,.65);
}

/* モバイル：ダイアログを少し背を高く */
@media (max-width: 768px){
  .legal-dialog{
    max-height: 84vh;
  }
  .legal-body{
    max-height: calc(84vh - 56px);
  }
}

/* ===== 企業理念（body-philosophy） ===== */
.wanowa-philosophy{
  max-width: 52ch;
  margin: 0;
  padding: 0.2rem 0;
  line-height: 1.85;
  letter-spacing: 0.02em;
  text-align: left;
  font-size: inherit;
}

.wanowa-lead{
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 1.05em;
}

.wanowa-body p{
  margin: 0.85rem 0;
  opacity: 0.92;
}

.wanowa-sign{
  margin-top: 1.05rem;
  font-weight: 600;
  opacity: 0.95;
}

@media (max-width: 520px){
  .wanowa-philosophy{
    max-width: 60ch;
    line-height: 1.75;
  }
  .wanowa-lead{ font-size: 1.03em; }
}
