/*
Theme Name: Canopus
Version: 1.0
Text Domain: canopus
*/

/* Gutenberg safety */
.wp-block {
  margin-top: 0;
  margin-bottom: 0;
}

/* 最後の要素の余白事故防止 */
.site-content > :last-child,
.site-main > :last-child {
  margin-bottom: 0;
}


/* =========================
   Typography Final Set
   ========================= */

:root {
  /* 欧文（英数字） */
  --font-latin: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* ゴシック（見出し・UI） */
  --font-gothic: Meiryo, "Meiryo UI",
                 "Hiragino Kaku Gothic ProN",
                 "Hiragino Sans",
                 "Yu Gothic", sans-serif;

  /* 明朝（本文） */
  --font-mincho: "Noto Serif JP",
                 "Hiragino Mincho ProN",
                 "Yu Mincho",
                 "MS PMincho", serif;
}

/* =========================
   本文（明朝＋英数字）
   ========================= */
body {
  font-family: var(--font-latin), var(--font-mincho);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: #111;
}

/* =========================
   見出し（メイリオ系）
   ========================= */
h1, h2, h3 {
  font-family: var(--font-latin), var(--font-gothic);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 0.6em;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

/* 段落 */
p {
  margin-bottom: 1.6em;
}

/* =========================
   モバイル最適化
   ========================= */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.85;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
}

/* =========================
   SC Button (safe namespace)
   ========================= */

.sc-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

/* 基本ボタン */
.sc-btn {
  --btn-color: #1e88e5;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 200px;
  height: 56px;

  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;

  color: #fff;
  text-decoration: none;

  background: var(--btn-color);
  border-radius: 999px;

  /* 白い縁取り */
  border: 2px solid #fff;

  /* ふわんふわん */
  animation: sc-float 2.8s ease-in-out infinite;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* 浮遊 */
@keyframes sc-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* 波紋 */
.sc-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,0.6);
  opacity: 0;
  animation: sc-ripple 2.8s ease-out infinite;
}

/* 波紋アニメ */
@keyframes sc-ripple {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  70% {
    opacity: 0.15;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* hoverでキリッと */
.sc-btn:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.sc-btn:hover::after {
  animation-play-state: paused;
  opacity: 0;
}

/* =========================
   Color Variations
   ========================= */

.sc-btn--blue  { --btn-color: #4169e1; }
.sc-btn--black { --btn-color: #111111; }
.sc-btn--red   { --btn-color: #d32f2f; }
.sc-btn--green { --btn-color: #2e7d32; }
.sc-btn--gray  { --btn-color: #616161; }



/* ==================================================
   Embed Parts – trailing empty <p> killer
   ================================================== */
.wp-block-canopus-fullwide + p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
footer {
margin-top: -43px !important;
margin-bottom: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}

/*FOOTERの設定*/
footer {
  background: #4169e1;
}
.copyright {
	text-align: center;
	color: #fff;
	padding: 0 0 15px 0;
}

/* ==================================================
   Grobal Menu Settings
   ================================================== */
.g-menu_pc {
	width: 50px;
	margin: 0 auto;
	display: block;
}
.s-menu_pc {
	width: 150px;
	margin: 0 auto;
	display: block;
}


/* ==============================
   PAGE TOP button
============================== */
#page-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.75); /* 白・半透明 */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  text-decoration: none;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

/* 表示状態 */
#page-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* hover */
#page-top:hover {
  transform: translateY(-3px);
}

/* ==============================
   Icon（＞を上向きに）
============================== */
#page-top .page-top__icon {
  display: inline-block;

  font-size: 18px;
  font-weight: 600;
  color: #111;
  line-height: 1;

  transform: rotate(-90deg); /* ＞ を上向きに */
}
#page-top .page-top__font {
	font-size: 6pt;
}

