/**
 * File: base.css
 * Usage: 全ページ共通のスタイルを定義します。レイアウト、モジュールなど。
 * Example: ly_header, ly_footer, el_btn, el_gradientGold, el_subpTtl, el_normalTtl
*/

@charset "UTF-8";

/* ================================================  
 リセットの記述
================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
  margin: 0;
}
html:focus-within {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh; /* Fallback */
  min-height: calc(var(--vh, 1vh) * 100);
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
}
img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
input,
button,
textarea,
select {
  font: inherit;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* WordPress管理画面のツールバー */
#wpadminbar {
  display: none !important;
}

/* ================================================  
 フォントの読み込み
================================================ */
/* JIS X 0208 をサブセット化した woff2(全16.5MB → 約2.2MB)。
   400/500 のみ実体を持ち、太字(600/700)は 500 + -webkit-text-stroke で表現する。
   font-synthesis: none で 600/700 指定時の擬似ボールド(にじみ)を防ぐ。 */
@font-face {
  font-family: 'NotoSansJp';
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/NotoSansJP-Regular.woff2) format('woff2');
}
@font-face {
  font-family: 'NotoSansJp';
  font-display: swap;
  font-weight: 500 800;
  src: url(../fonts/NotoSansJP-Medium.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Figtree-Regular.woff2) format('woff2');
}

/* ================================================
 デザイントークン(能登復興応援サイト)
================================================ */
:root {
  --color-main: #da4054;
  --color-accent: #a88d6a;
  --color-black: #1c1c1c;
  --color-dgray: #3c3c3c;
  --color-mgray: #a0a0a0;
  --color-white: #fff;
  --pad-inner: 24px;
  --top-inner: 1080px;
  --header-h: 64px;
}

@media screen and (min-width: 768px) {
  :root {
    --header-h: 80px;
  }
}

/* ================================================
 スタイルの適用(モバイルファーストで記述)
================================================ */
body {
  background-color: #fff;
  color: #333;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: 'NotoSansJp', sans-serif;
  overscroll-behavior: none;
  /* 太字は -webkit-text-stroke で表現するため擬似ボールドを無効化 */
  font-synthesis: none;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.17em;
  margin-top: 0.6em;
  margin-bottom: 0.4em;
}

h4 {
  font-size: 1.12em;
}

h5 {
  font-size: 0.83em;
}

h6 {
  font-size: 0.75em;
}

.clearfix::after {
  clear: both;
}

li {
  list-style: none;
}

html {
  margin-top: 0 !important;
}

/* スクロールバーを非表示(スクロール機能は維持) */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / 旧Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome / Safari / 新Edge */
  width: 0;
  height: 0;
}

/* メディアクエリ用の表示・非表示 */
.sm_only {
  display: block !important;
}
.md_only,
.lg_only {
  display: none !important;
}

/* ================================================  
  レイアウト
================================================ */
/* 全体のレイアウト */
.ly_cont {
  padding-inline: var(--pad-inner);
}

/* TOPページ共通の内側コンテナ(最大1080px) */
.ly_topInner {
  width: 100%;
  max-width: var(--top-inner);
  margin-inline: auto;
  padding-inline: var(--pad-inner);
}

/* ヘッダー(標準=コンテンツ上:白背景＋黒文字) */
.ly_header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  /* SPは透過バー(ハンバーガーのみ白丸で浮かせる)。PCでmedia queryにて白背景へ。 */
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}

/* 下スクロールで隠す / 上スクロールで再表示 */
.ly_header.is_hidden {
  transform: translateY(-100%);
}

/* FV重なり(最上部のみ):透過＋白文字。スクロールすると標準(白背景＋黒文字)へ */
.ly_header__overlay:not(.is_scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}

/* 固定ヘッダー分の余白(FVが無いページのコンテンツが隠れないように) */
.hp_fixedHeaderPad {
  padding-top: var(--header-h);
}

/* フッター(全ページ共通・夕景ビジュアル) */
.ly_footer {
  position: relative;
  background: var(--color-black) center / cover no-repeat;
  background-image: url(../img/top/footer-bg.jpg);
  color: var(--color-white);
  padding: 96px var(--pad-inner) 40px;
  text-align: center;
  overflow: hidden;
}

.ly_footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.3);
  pointer-events: none;
}

/* ================================================
 ブロックモジュール
================================================ */
/* グローバルヘッダー */
.bl_gHeader {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* SP:ハンバーガーを右寄せ(PCで space-between) */
  gap: 16px;
  padding-inline: 16px;
}

.bl_gHeader_brand {
  display: none; /* SPではロゴ非表示(PCで表示) */
  align-items: center;
  gap: 8px;
  color: var(--color-black);
}

.bl_gHeader_logo {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}

.bl_gHeader_text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bl_gHeader_site {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

/* サイト名の下に小さく置くキャッチコピー(色は brand から継承=透過時は白) */
.bl_gHeader_catch {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.bl_gNav {
  display: none;
}

.bl_gNav_list {
  display: flex;
  align-items: center;
  gap: 29px;
}

.bl_gNav_list a {
  color: var(--color-black);
  font-size: 15px;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

.bl_gNav_list a:hover {
  opacity: 0.6;
}

/* FV重なり(透過)時は白文字 */
.ly_header__overlay:not(.is_scrolled) .bl_gHeader_brand,
.ly_header__overlay:not(.is_scrolled) .bl_gNav_list a {
  color: var(--color-white);
}

/* SPドロワー(フルスクリーンの白オーバーレイ) */
.bl_gDrawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bl_gDrawer.is_open {
  opacity: 1;
  visibility: visible;
}

.bl_gDrawer_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: calc(var(--header-h) + 16px) 24px 48px;
  overflow-y: auto;
}

/* ロゴ */
.bl_gDrawer_brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-black);
  text-align: center;
}

.bl_gDrawer_logo {
  width: auto;
  height: 80px;
}

.bl_gDrawer_site {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-black);
}

/* メニュー(余白を吸収して動画カードを下端へ押し下げる) */
.bl_gDrawer_nav {
  margin-top: 56px;
  flex: 1 0 auto;
}

.bl_gDrawer_list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.bl_gDrawer_list a {
  color: var(--color-black);
  font-size: 15px;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

.bl_gDrawer_list a:hover {
  opacity: 0.6;
}

/* 注目動画カード(下部) */
.bl_gDrawer_video {
  position: relative;
  display: block;
  width: 200px;
  margin-top: 40px;
  padding: 24px 16px 16px;
  background: #f5f3f0;
}

.bl_gDrawer_video_thumb {
  display: block;
  aspect-ratio: 184 / 104;
  overflow: hidden;
}

.bl_gDrawer_video_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl_gDrawer_video_badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 16px;
  background: #da4054;
  color: var(--color-white);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
}

.bl_gDrawer_video_ttl {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-black);
  text-decoration: underline;
}

/* メニュー展開中:ヘッダーを透過にしブランドを隠す(ドロワー側にロゴを表示)。常に表示 */
html.is_menuOpen .ly_header {
  background: transparent;
  border-bottom-color: transparent;
  transform: none;
}

html.is_menuOpen .bl_gHeader_brand {
  visibility: hidden;
}

/* グローバルフッター */
.bl_gFooter_inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  min-height: clamp(560px, 72vw, 1000px);
}

.bl_gFooter_top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* キャッチ + サイト名 */
.bl_gFooter_sig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bl_gFooter_catch {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.bl_gFooter_name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bl_gFooter_site {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
}

/* サイト名の下に小さく置くキャッチコピー(色は footer から継承) */
.bl_gFooter_tagline {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.bl_gFooter_sns {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bl_gFooter_sns a {
  display: block;
  transition: opacity 0.3s ease;
}

.bl_gFooter_sns a:hover {
  opacity: 0.7;
}

.bl_gFooter_sns img {
  height: 40px;
  width: auto;
}

.bl_gFooter_bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bl_gFooter_orgLogo {
  height: 44px;
  width: auto;
  margin-inline: auto;
}

.bl_gFooter_orgName {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  -webkit-text-stroke: 0.4px currentColor;
  line-height: 1.4;
}

.bl_gFooter_orgAddr {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.bl_gFooter_copy {
  font-size: 11px;
  line-height: 1.4;
}

/* 投稿 */
.bl_post {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================================================  
  エレメントモジュール
================================================ */
/* ボタン */
.el_btn {
  font-size: 1.125rem;
  font-weight: 600;
  -webkit-text-stroke: 0.25px currentColor;
  background: #23262d;
  color: white;
  border: #333 2px solid;
  width: 300px;
  height: 56px;
  margin-top: 20px;
  margin-inline: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.el_btn_withIcon_img {
  transition: all 0.3s ease;
}

.el_btn:hover,
.el_btn:focus {
  background: white;
  color: #333;
}

.el_btn:hover .el_btn_withIcon_img,
.el_btn:focus .el_btn_withIcon_img {
  border-color: #333;
  stroke: #333;
}

.el_btn_withIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ハンバーガーメニュー(SP:右上コーナーからはみ出す白い丸の上に線) */
.el_humb {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 36px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 下スクロールでヘッダーが隠れるとき、白丸ごと消す(はみ出し分の残像を防ぐ) */
.ly_header.is_hidden .el_humb {
  opacity: 0;
  pointer-events: none;
}

/* トップページ:FVに重なる間だけ ロゴ＋サイト名 を表示(右にハンバーガー)。
   スクロールしてFVを抜けると(is_scrolled)ロゴは消えてハンバーガーのみになる。 */
body.home .ly_header__overlay:not(.is_scrolled) .bl_gHeader {
  justify-content: space-between;
}

body.home .ly_header__overlay:not(.is_scrolled) .bl_gHeader_brand {
  display: flex;
}

/* 右上コーナーからはみ出す白い丸(装飾・線の背面) */
.el_humb::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translate(-40%, -65%);
  transition: opacity 0.3s ease;
}

.el_humb span {
  display: block;
  width: 36px;
  height: 1px;
  background: #1c1c1c;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* FV/ヒーローに重なる間は白丸を出さず、白い線だけで表示(640:411)。
   スクロールしてバーが白くなると白丸＋濃色線へ(2072:630)。 */
.ly_header__overlay:not(.is_scrolled) .el_humb::before {
  opacity: 0;
}
.ly_header__overlay:not(.is_scrolled) .el_humb span {
  background: var(--color-white);
}

/* メニュー展開中は白い丸を消して×をすっきり見せる */
html.is_menuOpen .el_humb::before {
  opacity: 0;
}

/* メニュー展開中(白ドロワー上)の×は濃色 */
html.is_menuOpen .ly_header .el_humb span {
  background: #1c1c1c;
}

.el_humb.is_active span:nth-child(1) {
  transform: translateY(4.25px) rotate(45deg);
}

.el_humb.is_active span:nth-child(2) {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* ================================================  
 ヘルパー
================================================ */
/* 余白の調整 */
.hp_mt20 {
  margin-top: 20px;
}

.hp_mt40 {
  margin-top: 40px;
}

.hp_pb20 {
  padding-bottom: 20px;
}

.hp_pt40 {
  padding-top: 40px;
}

.hp_padX40 {
  padding-inline: 40px;
}

.hp_padY20 {
  padding-block: 20px;
}

.hp_wMax {
  width: max-content;
  margin-inline: auto;
}

/* 色の変更 */
.hp_bgBlack {
  background: #333;
}

/* テキストの調整 */
.hp_txtCenter {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .sm_only {
    display: none !important;
  }
  .md_only,
  .lg_only {
    display: block !important;
  }

  .ly_cont {
    max-width: 1080px;
    margin-inline: auto;
  }

  .ly_normalSec {
    padding-block: 80px;
  }

  /* PCは白背景ヘッダー(SPは透過) */
  .ly_header {
    background: var(--color-white);
    border-bottom-color: rgba(28, 28, 28, 0.08);
  }

  /* ヘッダー(768〜1023は詰めて1行に収める) */
  .bl_gHeader {
    justify-content: space-between;
    gap: 12px;
    padding-inline: 24px;
  }

  .bl_gHeader_brand {
    display: flex; /* PCでロゴ表示 */
    flex-shrink: 0;
  }

  .bl_gHeader_logo {
    height: 56px;
  }

  .bl_gHeader_site {
    font-size: 15px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .bl_gNav {
    display: block;
  }

  .bl_gNav_list {
    gap: 16px;
  }

  .bl_gNav_list a {
    white-space: nowrap;
  }

  .el_humb {
    display: none;
  }

  /* フッター */
  .ly_footer {
    padding-top: 120px;
  }

  .bl_gFooter_sns {
    gap: 48px;
  }

  .bl_gFooter_sns img {
    height: 48px;
  }

  .bl_gFooter_orgLogo {
    height: 48px;
  }

  .el_btn {
    width: 400px;
    height: 64px;
    margin-inline: auto;
    font-weight: 600;
    -webkit-text-stroke: 0.25px currentColor;
    font-size: 1.5rem;
    margin-top: 60px;
    margin-bottom: 40px;
  }

  .el_secTtl {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .hp_borderBold {
    margin-top: 12px;
  }

  .hp_mt40 {
    margin-top: 80px;
  }

  .hp_pt40 {
    padding-top: 80px;
  }

  .bl_breadcrumb {
    padding-block: 40px;
  }

  .el_subpTtl {
    position: relative;
    padding-block: 20px 10px;
    border-bottom: #bb9402 2px solid;
    font-size: 2rem;
  }

  .el_subpTtl span {
    color: #fff;
    opacity: 0.05;
    position: absolute;
    top: -24px;
    left: -100px;
    z-index: 1;
    background: transparent;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: white;
    font-size: 72px;
    translate: -20px -20px;
  }

  .el_normalTtl {
    font-size: 1.5rem;
  }
}

/* 1024px以上は余裕があるのでデザイン本来の余白に戻す */
@media screen and (min-width: 1024px) {
  .bl_gHeader {
    gap: 16px;
    padding-inline: 40px;
  }

  .bl_gNav_list {
    gap: 29px;
  }
}

/* ================================================
 ローディング画面(プリローダー)
================================================ */
.ly_loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ly_loading.is_loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bl_loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bl_loading_logo {
  width: 96px;
  height: auto;
  animation: notoLoadingPulse 1.6s ease-in-out infinite;
}

.bl_loading_site {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-black);
}

.bl_loading_bar {
  position: relative;
  width: 160px;
  height: 2px;
  overflow: hidden;
  background: rgba(28, 28, 28, 0.1);
  border-radius: 999px;
}

.bl_loading_bar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--color-accent);
  border-radius: 999px;
  animation: notoLoadingBar 1.2s ease-in-out infinite;
}

@keyframes notoLoadingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

@keyframes notoLoadingBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

@media (prefers-reduced-motion: reduce) {
  .ly_loading,
  .bl_loading_logo,
  .bl_loading_bar::before {
    animation: none;
    transition: opacity 0.2s ease;
  }
}
