/* =========================================
   Common
========================================= */

:root {
  --color-green: #009b83;
  --color-navy: #0d1b2f;
  --color-light-green: #f1f8f5;
  --color-pale-green: #f0faf5;
  --color-image-bg: #f7fbf8;
  --color-yellow: #ffd85a;
  --color-gray-blue: #8aa0b8;
  --color-text: #222;
  --shadow-card: 0 8px 24px rgba(0,0,0,0.08);
}

body {
  color: var(--color-text);
}

/* 下層ページタイトル */
.page-title-block {
  text-align: center;
  margin-bottom: 32px;
}

.page-title-block h1 {
  font-size: 32px;
  line-height: 1.5;
  color: var(--color-navy);
  font-weight: 700;
  margin: 0;
}

.page-title-block h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  background: var(--color-green);
  margin: 20px auto 0;
}

/* 共通セクション見出し */
.section-en {
  color: var(--color-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-lead {
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 2;
  text-align: center;
}

/* Astra補正 */
body .works-page,
body .about-page {
  margin-left: auto;
  margin-right: auto;
}

body.page .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container.ast-no-sidebar #primary {
  padding-top: 0;
  margin-top: 0;
}

@media (max-width: 768px) {
  .page-title-block h1 {
    font-size: 26px;
  }
}


/* =========================================
   Scroll Reveal Animation
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================================
   Back to Top
========================================= */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;
  padding: 0;

  background: #009b83;
  color: #fff;
  border: none;
  border-radius: 50%;

  font-size: 22px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 155, 131, 0.28);

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.back-to-top:hover {
  background: #0d1b2f;
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(0, 155, 131, 0.3);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 19px;
  }
}