/* ── ヘッダー上の余計な余白を消す ───────────────── */

/* まず body / html のトップ補正をゼロに */
html { margin-top: 0 !important; }      /* WP管理バー対策 */
body { padding-top: 0 !important; margin-top: 0 !important; }

/* ヘッダー自身の余白をゼロに（Lightning 等のテーマ対策）*/
header.siteHeader {
  margin-top: 0 !important;
  padding-top: 0 !important;
  top: 0;
}



/* ヘッダー隠し*/
/* ヘッダーを非表示（フェード用に透明化） */
.siteHeader {
  opacity: 0;
  pointer-events: none; /* 非表示時クリック不可 */
  transition: opacity 0.4s ease;
}

/* スクロールしたら表示 */
.siteHeader.visible {
  opacity: 1;
  pointer-events: auto;
}






/* ヘッダー内のコンテナに余白があるテーマ向け */
header.siteHeader .container,
header.siteHeader .siteHeader_container,
header.siteHeader .l-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* “最初のセクションが margin-top を持っていて押している”ケースも潰す */
.hero { margin-top: 0 !important; }

/* ログイン時に管理バーで押し下げられる場合（任意） */
.admin-bar #wpadminbar { position: fixed !important; }


/* 背景動画を全画面固定 */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* 背景に */
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* 全画面に拡大 */
}
/* デフォルトはPC */
.video-pc { display: block; }
.video-sp { display: none; }


/* フッターの固定 */
.content {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  padding-top: 200px; /* 上に余白 */
  height: 100vh; /* 1画面分の高さ確保 */
}

/* 共通の最大幅（ここだけ変えれば両方一緒に変わる） */
:root{
  --frame-max: 1200px;   /* 好きな上限に。1400pxなどに増やしてOK */
  --frame-vw:  92vw;     /* 画面幅に対する割合 */
}

/* ヘッダーの内側コンテナと、お問い合わせボックスに同じ幅を適用 */
header.siteHeader .l-container,
header.siteHeader .siteHeader_container,
header.siteHeader .container,
.contact-box{
  width: min(var(--frame-max), var(--frame-vw));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* テーマ側で内側に左右パディングがある場合はゼロに（幅がズレるのを防止） */
header.siteHeader .l-container,
header.siteHeader .siteHeader_container,
header.siteHeader .container{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Lightning の本文コンテナの左右paddingを無効化（ページ全体に影響） */
.l-contents__main .l-container,
.entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 黒枠は共通幅で中央寄せ */
.contact-box{
  width: min(var(--frame-max, 1200px), 96vw);
  margin: 50px auto;
  padding: 40px;
  background: rgba(0,0,0,.6);
  border-radius: 12px;
  color: #fff;
  box-sizing: border-box;
}



/* ーーーーサイドメニュー表示部分ーーーー */
#gMenu_outer{ background: rgba(0,0,0,.55) !important; }
#gMenu_outer .sub-menu{
  background: rgba(0,0,0,.92) !important;
  border: 1px solid rgba(255,255,255,.18);
}





/* 全体配置 */
.sweth-catchcopy {
  text-align: center;
  margin-top: 40px;
}

/* SVG書き順アニメーションは既存の .script.write-solid を継承 */

/* サブキャッチコピー */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left; /* 横並びなので左寄せに */
}

.headline-wrap {
  display: flex;
  flex-direction: column; /* ← 並びに変更 */
  align-items: center;
  gap: 10px; /* SWETH とテキストの間隔 */
}

.subcopy-wrap {
  display: flex;
  flex-direction: column; /* キャッチコピーは縦並び */
  gap: 10px;
}

.subcopy {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700;
  color: #111;
  margin: 0;
}

.subcopy .highlight {
  font-size: 1.6em; /* ← 通常より大きくする */
  color: #000000;   /* お好みで色も変えられる（例: 赤） */
  font-weight: 1000; /* 強調 */
}









/* クリック波紋 */


/* クリック波紋（ripple） */
.ripple {
  position: relative;
  overflow: hidden;              /* はみ出しを隠す */
  --ripple-color: rgba(255,255,255,.35); /* 好みで変えてOK */
}

/* 全画面クリック波紋（色はJSで決定） */
.ripple__effect {
  position: fixed;
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  opacity: 0.5;
  animation: ripple 2s ease-out;
  z-index: 9999;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* ユーザーが低速アニメーション指定の場合は無効化（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  .ripple__effect { animation: none; }
}



/* 背景くろのcss */
.about-section {
  padding: 60px 10%;
}

.about-content {
  display: flex;
  align-items: stretch; /* 高さをそろえる */
  gap: 40px;
}

.text-block {
  flex: 1; /* 均等幅 */
  color: white;
}

.image-block {
  flex: 1; /* 均等幅に変更 */
}

.image-block img {
  width: 100%;
  height: 100%; /* 高さも合わせたい場合 */
  object-fit: cover; /* アスペクト維持しつつ切り抜き */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}


.about-section .text-inner {
  background-color: rgba(0, 0, 0, 0.3); /* うっすら暗く */
  backdrop-filter: blur(8px); /* 背景ぼかし */
  -webkit-backdrop-filter: blur(8px); /* Safari対応 */
  padding: 20px 30px;
  border-radius: 8px;
  color: #fff !important;
}

.about-section .text-inner h3,
.about-section .text-inner h2,
.about-section .text-inner p {
  color: #fff !important;
}

.text-block h3 {
  font-size: 18px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.text-block h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.text-block p {
  line-height: 1.8;
}

.text-block .signature {
  margin-top: 20px;
  font-weight: bold;
}

.image-block {
  flex: 0 0 350px; /* 画像サイズ固定 */
}

.image-block img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ヘッダー背景を半透明黒に */
header.siteHeader {
    background-color: rgba(0, 0, 0, 0.5) !important; /* 半透明黒 */
}

/* メニュー文字を白にする */
header.siteHeader a {
    color: #fff !important;
}
/* フッター背景を半透明黒に */
footer.siteFooter {
  position: relative;
  z-index: 100; /* 動画より手前に出す */
	width: 100% !important;   /* 横幅いっぱいに */
  max-width: 100% !important;
  margin: 0;
  padding: 20px 0;          /* 上下の余白を調整 */
  background: rgba(0,0,0,0.6); /* 半透明黒など必要なら */
}

footer.siteFooter .container {
  max-width: 100% !important; /* コンテナの制限を解除 */
  padding: 0 20px;            /* 左右余白を少し残す */
}

/* フッター内文字色を白 */
footer.siteFooter,
footer.siteFooter a {
    color: #fff !important;
}



.copySection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* 文字とアイコンの間隔 */
}

.copySection .sns-icon {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s;
}

.copySection .sns-icon:hover {
  color: #E4405F; /* Instagramのブランドカラー */
}










/* 中央部分のCSS、SWETH文言 */
/* ===== 画面全体レイアウト ===== */
.bg{
  position: fixed; inset: 0; z-index: 0;
}
.bg::after{
  content:""; position:absolute; inset:0;
  background:#fff;            /* 白を固定 */
  opacity:.85;                /* 初期は白く */
  transition: opacity .5s ease;
  pointer-events:none;
}
body.bg-clear .bg::after{ opacity:0; }  /* クリアに */



/* レイアウト */
html, body { margin:0; min-height:100%; }
.hero{
  position:relative; z-index:1;
  min-height:100svh;
  display:flex; align-items:center; justify-content:center;
  padding: 6rem 5vw 4rem;
}
.page{ position:relative; z-index:1; background:#fff; padding:3rem 5vw; }

.headline{
  display:flex; 
	align-items:center; gap:min(2vw,16px);
  flex-wrap:wrap; justify-content:center;
  color:#111; line-height:1.2; text-align:center;
}
.headline .jp{
  font: 700 clamp(28px, 5vw, 60px) 'Noto Sans JP', system-ui, sans-serif;
  letter-spacing: .08em;
}

/* 日本語：1文字ずつ出現 */
.headline .jp span{
  opacity:0; transform: translateY(40px);
  display:inline-block; animation: fadeUp .5s forwards;
}
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0) } }


/* ====== 筆記体“書いていく”アニメーション（SVG） ====== */
.script{
  width: clamp(280px, 40vw, 720px);
  height: auto;
  overflow: visible;
  color: #111;                     /* currentColor として使う */
}

/* ここが超重要：svg直下のtextにピンポイント指定 */
/* SVGの “SWETH” に Libre Baskerville を適用（イタリック太め推奨） */
/* ここを置き換え */
.script > text{
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 180px;

  /* !important を外す：アニメで上書きできるように */
  fill: transparent;               /* ← ここ */
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;

  /* このルールではアニメ指定しない（write-solid で上書きする） */
  /* animation: none; でもOK */
}


@keyframes draw{ to{ stroke-dashoffset: 0 } }
@keyframes ink { to{ fill: currentColor } }
/* Safari用フォールバック：左→右にマスクで露出させる */
.script.reveal {                 /* HTML 側で class="script reveal" と併記する */
  -webkit-mask: linear-gradient(90deg, #000 0 0) left/0% 100% no-repeat;
          mask: linear-gradient(90deg, #000 0 0) left/0% 100% no-repeat;
  animation: reveal 3s linear forwards; /* 線のアニメと同じ位の長さに */
}

/* フォールバック用：最初から塗りありにして“マスクで現れる” */
.script.reveal > text{
  fill: currentColor !important;
  stroke: none !important;       /* 線アニメが効かない環境で線は消す */
  animation: none;               /* draw/ink は無効化 */
}

@keyframes reveal {
  to {
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
  }
}












/* 一文字ずつアニメーション */
body {
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: #111; /* シンプルに黒背景 */
  margin: 0;
}







/* 限界突破ｃｓｓ */
/* セクションをフル幅化して中央に */
.contact-box{
  /* 画面幅の92%か、最大1200pxの小さい方に */
  margin: 50px auto;
  padding: 40px;
  background: rgba(0,0,0,.6);
  border-radius: 10px;
  color: #fff;
  box-sizing: border-box; /* パディング込みで幅計算 */
}

/* 黒枠の実幅を決める */
.contact-section{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding-inline: clamp(16px, 4vw, 40px); /* 端の安全余白 */
}
.contact-section .contact-box{
  width: min(var(--frame-max, 1200px), 96vw);
  margin: 50px auto;
}


.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  flex: 1;
  text-align: right;
  font-size: 16px;
  margin-right: 20px;
}

.contact-value {
  flex: 2;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  flex-wrap: wrap;
}

.contact-value span {
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
  animation: fadeInUp 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ーーーーBUISINESS部分CSSーーーー */
/* セクション全体をフルブリード化して、上の黒枠と左右位置を合わせる */
.business.business--intro{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding-block: clamp(40px, 6vw, 80px);
  padding-inline: clamp(16px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

/* 枠の横幅はサイト共通の幅ルールで中央に */
.business--intro .business__frame{
  width: min(var(--frame-max), var(--frame-vw));
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 36px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}

/* 見出し */
.bizintro__eyebrow{
  color: rgba(255,255,255,.9);
  font-weight: 800;
  letter-spacing: .06em;
  font-size: clamp(22px, 3.4vw, 44px);  /* “BUSINESS” を大きく */
  line-height: 1.1;
  margin: 0 0 .25em 0;
}
.bizintro__title{
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: .06em;
  margin: 0 0 .8em 0;
  display: flex; align-items: center; gap: .6em;
}
.bizintro__title::before{
  content:"";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, #ff9d3f);
  box-shadow: 0 0 0 6px rgba(255,157,63,.18);
}

/* 本文（読みやすいタイポグラフィ） */
.bizintro__prose{
  color: var(--text-weak);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.9;
  max-width: 70ch;            /* 1行の長さを適正に */
  margin: 0;                  /* 枠の左に寄せる。中央にしたければ margin:0 auto; */
}
.bizintro__prose p{ margin: 0 0 0.8em; }
.bizintro__prose p:last-child{ margin-bottom: 0; }

/* 任意のボタン導線 */
.bizintro__actions{
  display: flex; gap: 12px;
  margin-top: clamp(16px, 2vw, 24px);
  flex-wrap: wrap;
}
.btn-pill{
  display:inline-flex; align-items:center; justify-content:center;
  height: 44px; padding: 0 18px;
  border-radius: 999px;
  color: rgba(255,255,255,.95);
  text-decoration:none;
  font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-pill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.34);
}

/* 既存のカードグリッドを使っていた場合は、このセクションでは非表示に */
.business--intro .business__grid{ display:none !important; }

.bizintro__media{
  width: min(100%, 980px);
  margin: clamp(18px, 2.8vw, 32px) auto 0;
}
.bizintro__media img{
  display:block;
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid var(--glass-bd, rgba(255,255,255,.18));
  box-shadow:0 12px 32px rgba(0,0,0,.28);
}







/* ーーーー事業内容CSSーーーー */


/* 共通の最大幅（ヘッダーやお問い合わせと揃えたいときに使えます） */
:root{
  --frame-max: 1200px;   /* 上限。好きに 1400px などに */
  --frame-vw:  92vw;     /* 画面に対する割合 */
  --glass-bg: rgba(0,0,0,.54);
  --glass-bd: rgba(255,255,255,.18);
  --text-strong: #fff;
  --text-weak: rgba(255,255,255,.9);
  --accent: #ff9d3f;
}

/* セクション外側 */
.business{
  /* 画面幅ベースにして親のpaddingを無視 */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);   /* 画面中央に合わせる */

  /* 上下の余白だけ。端の安全余白はここで付ける */
  padding-block: clamp(40px, 6vw, 80px);
  padding-inline: clamp(16px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

/* 黒いガラス枠（横幅は上の変数で統一） */
.business__frame{
  width: min(var(--frame-max), var(--frame-vw));
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}

/* 見出し */
.business__title{
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: .06em;
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: .6em;
}

/* 3カラムグリッド */
.business__grid{
  list-style:none; margin:0; padding:0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

/* カード本体 */
.biz__card{
  position: relative;
  display:block;
  overflow:hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--glass-bd);
  text-decoration:none;
  color: inherit;
  isolation:isolate;
}
.biz__img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s ease, filter .5s ease;
}

/* オーバーレイ（初期は非表示） */
.biz__overlay{
  position:absolute; inset:0;
  display:grid;
  grid-template-columns: 1fr 1.2fr;  /* 左：サムネ小、右：テキスト */
  gap: 16px;
  align-items:center;
  padding: clamp(14px, 2vw, 22px);
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
  color: var(--text-weak);
  opacity:0;
  transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease;
}

/* オーバーレイ内の小画像（差し替え可） */
.biz__overlay-media{
  width:100%; aspect-ratio: 4/3; overflow:hidden; border-radius:10px;
  border:1px solid var(--glass-bd);
}
.biz__overlay-media img{
  width:100%; height:100%; object-fit:cover;
}

/* オーバーレイ本文 */
.biz__overlay-body h3{
  margin:0 0 6px; color:#fff; font-size: clamp(16px, 1.6vw, 20px);
}
.biz__overlay-body p{
  margin:0; line-height:1.7; font-size: clamp(13px, 1.2vw, 15px);
}

/* ホバー/フォーカスで表示（スマホはタップで :focus-within） */
.biz__card:hover .biz__overlay,
.biz__card:focus .biz__overlay,
.biz__card:focus-within .biz__overlay{
  opacity:1; transform: translateY(0);
}
.biz__card:hover .biz__img,
.biz__card:focus .biz__img,
.biz__card:focus-within .biz__img{
  transform: scale(1.06);
  filter: brightness(.85);
}
/* グリッドの各要素を「縦並び（画像→キャプション）」に */
.business__grid .biz{
  display: flex;
  flex-direction: column;
  gap: 10px;                    /* 画像と文字の間隔 */
}

/* キャプションの体裁 */
.biz__caption{
  color: #fff;
  text-align: center;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.4;
  /* 行が折り返されても高さを揃えたいときは次を有効化
  min-height: 1.8em;
  */
}

/* 既定（中央トリミング） */
.biz__img{
  object-fit: cover;
  object-position: center;
}

/* ライバー画像だけ「頭から」見せる（必要に応じて％で微調整） */
.img-top{ object-position: top center; }

/* レスポンシブ */
@media (max-width: 1024px){
  .business__grid{ grid-template-columns: repeat(2, 1fr); }
  .biz__overlay{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .business__grid{ grid-template-columns: 1fr; }
}

/* アニメーションを抑制設定のユーザーに配慮 */
@media (prefers-reduced-motion: reduce){
  .biz__img, .biz__overlay{ transition: none; }
}








/* SWETH：書く → 黒塗り → 枠線を消す（既存を強制上書き） */
svg.script.write-solid > text{
  fill: transparent;           /* 初期は透明 */
  stroke: #111;
  stroke-width: 2.6;
  animation:
    swethDraw 2.6s ease-out forwards,
    swethFill .01s linear 2.6s forwards,     /* 黒で塗り */
    swethHideStroke .3s ease 2.6s forwards;  /* 縁を消す */
}
@keyframes swethDraw       { to { stroke-dashoffset: 0; } }
@keyframes swethFill       { to { fill:#111; } }
@keyframes swethHideStroke { to { stroke-width: 0; } }





 /* instagramのアイコン */
.footerMenu .menu-item a i.fab.fa-instagram {
  font-size: 22px;
  margin-left: 6px;
}

.footerMenu .menu-item-home {
  position: relative;
}

.footerMenu .menu-item-home .sub-menu {
  display: block !important; /* 強制表示 */
  position: absolute;
  left: 0;
  top: 100%;
}

.footerMenu .menu-item-home .sub-menu a {
  display: inline-block;
  padding: 4px;
}



/* 社員紹介ページのcss */
.member-list {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  gap: 40px; /* 各社員カードの間隔 */
  max-width: 600px;
  margin: 0 auto;
}

.member {
  text-align: center;
}

.member img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}





@media screen and (max-width: 768px) {
  .video-pc { display: none !important; }
  .video-sp { display: block !important; }
}