@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --black: #101010;
  --white: #f7f6f1;
  --cream: #ebe9e0;
  --gray: #a7a59d;
  --line: rgba(16, 16, 16, 0.22);
  --dark-line: rgba(247, 246, 241, 0.32);
  --accent: #c8482b;
  --display: "Playfair Display", "Hiragino Mincho ProN", serif;
  --sans: "Manrope", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}


/* ヘッダー */

.site-header {
  align-items: flex-start;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 26px 34px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.site-logo {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.global-nav {
  display: flex;
  gap: 2rem;
}

.global-nav a {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  position: relative;
  text-transform: uppercase;
}

.global-nav a::after {
  background: currentColor;
  bottom: -5px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  width: 100%;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: none;
  height: 36px;
  position: relative;
  width: 42px;
  z-index: 30;
}

.menu-button span {
  background: currentColor;
  height: 1px;
  left: 0;
  position: absolute;
  transition: transform 0.25s ease;
  width: 100%;
}

.menu-button span:first-child {
  top: 13px;
}

.menu-button span:last-child {
  top: 22px;
}

.menu-button.is-open span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.menu-button.is-open span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* HERO */

.hero {
  background: #74746d;
  color: var(--white);
  min-height: min(900px, 100svh);
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-image {
  background:
    url("../images/hero-running.jpg") center center / cover no-repeat,
    linear-gradient(120deg, #3d3e38, #919084);
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.15) 64%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 42%);
}

.hero-content {
  bottom: clamp(100px, 12vh, 145px);
  left: clamp(28px, 8vw, 130px);
  max-width: 850px;
  position: absolute;
  z-index: 2;
}

.eyebrow,
.section-number,
.card-index {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 10.2rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.85;
  margin: 1.5rem 0 2.3rem;
}

.hero-description {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 2;
  max-width: 360px;
}

.scroll-indicator {
  align-items: center;
  bottom: 32px;
  display: flex;
  gap: 13px;
  left: 34px;
  position: absolute;
  z-index: 2;
}

.scroll-indicator span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.scroll-indicator i {
  background: var(--white);
  display: block;
  height: 1px;
  position: relative;
  width: 48px;
}

.scroll-indicator i::after {
  border-bottom: 1px solid var(--white);
  border-right: 1px solid var(--white);
  content: "";
  height: 5px;
  position: absolute;
  right: 0;
  top: -2px;
  transform: rotate(-45deg);
  width: 5px;
}

.hero-side-text,
.shoes-side-text {
  bottom: 36px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  position: absolute;
  right: 34px;
  transform: rotate(90deg);
  transform-origin: right bottom;
  z-index: 2;
}

/* INTRO */

.intro-section {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(150px, 1fr) minmax(300px, 2fr);
  margin: 0 auto;
  max-width: 1440px;
  padding: clamp(100px, 14vw, 210px) clamp(28px, 8vw, 130px);
}

.intro-label {
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding-top: 12px;
}

.intro-lead {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.intro-copy {
  font-size: 0.93rem;
  line-height: 2.2;
  margin-left: auto;
  margin-top: 4rem;
  max-width: 460px;
}

/* RUNNING JOURNAL */

.feature-section {
  padding: 0 clamp(18px, 4vw, 64px) clamp(100px, 12vw, 180px);
}

.section-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin: 0 auto clamp(45px, 7vw, 95px);
  max-width: 1440px;
}

.section-heading h2,
.related-heading h2 {
  font-family: var(--display);
  font-size: clamp(3.3rem, 8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.85;
  text-align: right;
}

.journal-grid {
  display: grid;
  gap: clamp(18px, 2.7vw, 42px);
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.85fr);
  margin: 0 auto;
  max-width: 1440px;
}

.journal-card {
  display: block;
  overflow: hidden;
  position: relative;
}

.journal-card-large {
  color: var(--white);
  min-height: 680px;
}

.journal-image {
  background-color: #87857c;
  inset: 0;
  position: absolute;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.journal-image-main {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.05) 70%),
    url("../images/journal-main.png") center / cover no-repeat,
    #74746c;
}

.journal-image-sub {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.05) 70%),
    url("../images/journal-sub.jpg") center / cover no-repeat,
    #8b8a83;
}

.journal-card:hover .journal-image {
  transform: scale(1.06);
}

.journal-card-content {
  bottom: 0;
  left: 0;
  padding: clamp(26px, 4vw, 62px);
  position: absolute;
  right: 0;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0, 35, 45, 0.72);
}

.journal-card-content h3 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 1.2rem 0 2.5rem;
}

.link-arrow,
.text-link {
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.66rem;
  gap: 20px;
  letter-spacing: 0.12em;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.link-arrow b,
.text-link b {
  font-size: 1rem;
  font-weight: 400;
  line-height: 0.8;
}

.journal-side {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.7vw, 42px);
}

.journal-card-small {
  color: var(--white);
  min-height: 340px;
}

.journal-small-copy {
  bottom: 28px;
  font-family: var(--mono);
  font-size: 0.68rem;
  left: 28px;
  letter-spacing: 0.08em;
  position: absolute;
  right: 28px;
  z-index: 2;
}

.journal-small-copy p {
  font-size: 0.58rem;
  margin-bottom: 9px;
}

.latest-journal-image {
  background-color: #eaf7fd;
  background-image: url("../images/running-log-2026-09-21.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 104px;
}

.latest-journal-card .journal-small-copy {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(45, 118, 157, 0.18);
  bottom: 0;
  color: #174f70;
  left: 0;
  min-height: 104px;
  padding: 10px 16px;
  right: 0;
  text-shadow: none;
}

.latest-journal-card .journal-small-copy strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.45;
  margin: 0.35rem 0 0.55rem;
}

.personal-note {
  background: var(--accent);
  color: var(--white);
  flex: 1;
  min-height: 300px;
  padding: clamp(28px, 3.5vw, 48px);
}

.note-title {
  font-family: var(--mono);
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
  margin: 4rem 0 2rem;
}

.note-title strong {
  font-family: var(--display);
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.note-copy {
  font-size: 0.77rem;
  line-height: 2;
}

/* SHOE SELECTOR */

.shoes-section {
  background: #61645e;
  color: var(--white);
  min-height: 870px;
  overflow: hidden;
  position: relative;
}

.shoes-image,
.shoes-overlay {
  inset: 0;
  position: absolute;
}

.shoes-image {
  background:
    url("../images/shoe-selector.png") center / cover no-repeat,
    linear-gradient(115deg, #565a53, #9f9c8e);
  transition: transform 1.1s ease;
}

.shoes-section:hover .shoes-image {
  transform: scale(1.03);
}

.shoes-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 54%, rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.24), transparent 50%);
}

.shoes-content {
  left: clamp(28px, 8vw, 130px);
  max-width: 750px;
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.shoes-content .eyebrow {
  margin-top: 2.2rem;
}

.shoes-content h2 {
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 9.2rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.85;
  margin: 2rem 0 2.8rem;
}

.shoes-copy {
  font-size: 0.9rem;
  line-height: 2.1;
}

.large-link {
  align-items: center;
  border-bottom: 1px solid var(--white);
  display: inline-flex;
  font-size: 0.85rem;
  justify-content: space-between;
  margin-top: 4rem;
  min-width: 280px;
  padding-bottom: 13px;
  transition: min-width 0.25s ease;
}

.large-link b {
  font-size: 1.35rem;
  font-weight: 400;
}

.large-link:hover {
  min-width: 330px;
}

/* ABOUT */

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr);
  min-height: 800px;
}

.about-image-wrap {
  min-height: 680px;
  overflow: hidden;
}

.about-image {
  background:
    url("../images/about-runner.png") center / cover no-repeat,
    linear-gradient(130deg, #b6afa3, #737773);
  height: 100%;
  transition: transform 0.8s ease;
}

.about-image-wrap:hover .about-image {
  transform: scale(1.05);
}

.about-content {
  align-self: center;
  padding: clamp(70px, 10vw, 150px);
}

.eyebrow-dark {
  color: #77766f;
  margin-top: 2rem;
}

.about-content h2 {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.88;
  margin: 2rem 0 3rem;
}

.about-content > p:not(.section-number):not(.eyebrow) {
  font-size: 0.88rem;
  line-height: 2.2;
  max-width: 440px;
}

.text-link {
  margin-top: 3rem;
}

/* QUOTE */

.quote-section {
  align-items: center;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 710px;
  padding: 80px 28px;
  text-align: center;
}

.quote-mark {
  color: var(--accent);
  font-family: var(--display);
  font-size: 6rem;
  height: 80px;
  line-height: 1;
}

.quote-section blockquote {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.6vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.quote-caption {
  color: #aaa9a2;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  margin-top: 4.2rem;
}

/* 関連 */

.related-section {
  padding: clamp(100px, 12vw, 180px) clamp(28px, 8vw, 130px);
}

.related-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(55px, 8vw, 110px);
}

.related-heading h2 {
  font-size: clamp(2.8rem, 6vw, 6.5rem);
}

.related-list {
  border-top: 1px solid var(--line);
}

.related-link {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 60px minmax(210px, 1fr) minmax(160px, 0.8fr) 30px;
  padding: 25px 0;
  transition: padding 0.25s ease, color 0.25s ease;
}

.related-link:hover {
  color: var(--accent);
  padding-left: 14px;
  padding-right: 14px;
}

.related-number {
  font-family: var(--mono);
  font-size: 0.63rem;
}

.related-name {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 3.4rem);
  letter-spacing: -0.045em;
}

.related-jp {
  font-size: 0.77rem;
}

.related-link b {
  font-size: 1.3rem;
  font-weight: 400;
  text-align: right;
}

/* FOOTER */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(58px, 8vw, 120px) clamp(28px, 5vw, 72px) 26px;
}

.footer-main {
  align-items: flex-end;
  border-bottom: 1px solid var(--dark-line);
  display: flex;
  justify-content: space-between;
  padding-bottom: clamp(70px, 9vw, 135px);
}

.footer-title {
  font-family: var(--display);
  font-size: clamp(3.3rem, 7vw, 8rem);
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
}

.footer-links a:hover {
  color: #bab9b1;
}

.footer-bottom {
  align-items: center;
  color: #aaa9a2;
  display: flex;
  font-family: var(--mono);
  font-size: 0.56rem;
  justify-content: space-between;
  letter-spacing: 0.1em;
  padding-top: 24px;
}

.footer-logo {
  color: var(--white);
  font-size: 0.64rem;
}

/* スマホ */

@media (max-width: 760px) {
  .site-header {
    padding: 20px 22px;
  }

  .global-nav {
    background: var(--black);
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding-left: 13vw;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.25s ease;
  }

  .global-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .global-nav a {
    font-family: var(--display);
    font-size: 2.5rem;
    letter-spacing: -0.04em;
    text-transform: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    bottom: 105px;
    left: 28px;
    right: 24px;
  }

  .hero-title {
    font-size: clamp(4rem, 19vw, 6.4rem);
  }

  .hero-side-text,
  .shoes-side-text {
    display: none;
  }

  .scroll-indicator {
    bottom: 26px;
    left: 28px;
  }

  .intro-section {
    display: block;
    padding: 100px 28px;
  }

  .intro-content {
    margin-top: 3.2rem;
  }

  .intro-copy {
    margin: 3rem 0 0;
  }

  .section-heading,
  .related-heading {
    display: block;
  }

  .section-heading h2,
  .related-heading h2 {
    margin-top: 2rem;
    text-align: left;
  }

  .feature-section {
    padding: 0 18px 100px;
  }

  .journal-grid {
    display: block;
  }

  .journal-card-large {
    min-height: 560px;
  }

  .journal-side {
    margin-top: 18px;
  }

  .journal-card-small {
    min-height: 280px;
  }

  .personal-note {
    min-height: 280px;
  }

  .shoes-section {
    min-height: 760px;
  }

  .shoes-content {
    padding: 100px 28px;
  }

  .shoes-content h2 {
    font-size: clamp(3.9rem, 17vw, 6rem);
  }

  .large-link {
    min-width: 100%;
  }

  .about-section {
    display: flex;
    flex-direction: column;
  }

  .about-image-wrap {
    min-height: 450px;
  }

  .about-content {
    padding: 86px 28px 104px;
  }

  .related-link {
    gap: 0.5rem;
    grid-template-columns: 35px 1fr 24px;
    padding: 21px 0;
  }

  .related-jp {
    display: none;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 4rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   Scroll reveal animation
========================================== */

/* JavaScript が有効なときだけ、表示前の状態を適用 */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* 画面内に入った要素 */
.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 左から現れる */
.js-enabled [data-reveal="left"] {
  transform: translate3d(-48px, 0, 0);
}

.js-enabled [data-reveal="left"].is-visible {
  transform: translate3d(0, 0, 0);
}

/* 右から現れる */
.js-enabled [data-reveal="right"] {
  transform: translate3d(48px, 0, 0);
}

.js-enabled [data-reveal="right"].is-visible {
  transform: translate3d(0, 0, 0);
}

/* 写真は拡大状態からゆっくり元のサイズへ */
.js-enabled [data-reveal-image] {
  opacity: 0;
  overflow: hidden;
}

.js-enabled [data-reveal-image] > * {
  transform: scale(1.12);
  transition:
    opacity 1s ease,
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled [data-reveal-image].is-visible {
  opacity: 1;
  transition: opacity 0.7s ease;
}

.js-enabled [data-reveal-image].is-visible > * {
  transform: scale(1);
}

/* 順番に表示するためのディレイ */
.delay-1 {
  transition-delay: 0.1s !important;
}

.delay-2 {
  transition-delay: 0.2s !important;
}

.delay-3 {
  transition-delay: 0.3s !important;
}

.delay-4 {
  transition-delay: 0.4s !important;
}

.delay-5 {
  transition-delay: 0.5s !important;
}

/* 動きが苦手なユーザーにはアニメーションを無効化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-enabled [data-reveal],
  .js-enabled [data-reveal="left"],
  .js-enabled [data-reveal="right"] {
    opacity: 1;
    transform: none;
  }

  .js-enabled [data-reveal-image] {
    opacity: 1;
  }

  .js-enabled [data-reveal-image] > * {
    transform: none;
  }
}

/* ==========================================
   Section reveal
   セクション全体が下から現れるアニメーション
========================================== */

.js-enabled .scroll-section {
  opacity: 0;
  transform: translate3d(0, 90px, 0);
  transition:
    opacity 0.9s ease,
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* 画面内に入ったセクション */
.js-enabled .scroll-section.is-section-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 写真を含む大きなセクションは、ややゆっくり表示 */
.js-enabled .scroll-section.section-large {
  transform: translate3d(0, 120px, 0);
  transition-duration: 1.3s;
}

.js-enabled .scroll-section.section-large.is-section-visible {
  transform: translate3d(0, 0, 0);
}

/* 動きを減らす設定を利用するユーザー向け */
@media (prefers-reduced-motion: reduce) {
  .js-enabled .scroll-section,
  .js-enabled .scroll-section.section-large {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ==========================================
   PACE ACADEMY / Light Blue Theme Override
   レイアウト・動きはそのまま、配色のみ変更
========================================== */

:root {
  --black: #16383b;          /* メイン文字色：真っ黒より柔らかい深い青緑 */
  --white: #ffffff;          /* テキスト背景 */
  --cream: #f4feff;          /* サブカラー */
  --gray: #6f8b8e;
  --line: rgba(22, 56, 59, 0.18);
  --dark-line: rgba(255, 255, 255, 0.45);
  --accent: #4ed4e0;         /* アクセントカラー */
}

/* サイト全体背景 */
html {
  background: #f9f9f9;
}

body {
  background: #f9f9f9;
  color: var(--black);
}

/* ローディング画面 */
.loading {
  background: #4ed4e0;
  color: #ffffff;
}

/* HERO */
.hero {
  background: #4ed4e0;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(11, 72, 78, 0.64) 0%,
      rgba(11, 72, 78, 0.19) 64%,
      rgba(11, 72, 78, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(11, 72, 78, 0.25),
      transparent 42%
    );
}

/* 導入文エリア */
.intro-section {
  background: #ffffff;
}

/* 日記・記事エリア */
.feature-section {
  background: #f9f9f9;
}

/* 記事下の囲い・ランナーノート */
.personal-note {
  background: #ccf6f9;
  color: #16383b;
}

/* NOTE 内のアクセント文字 */
.note-title strong {
  color: #179daa;
}

/* シューズ診断セクション */
.shoes-section {
  background: #4ed4e0;
}

.shoes-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(11, 72, 78, 0.66) 0%,
      rgba(11, 72, 78, 0.25) 54%,
      rgba(11, 72, 78, 0.08)
    ),
    linear-gradient(
      0deg,
      rgba(11, 72, 78, 0.2),
      transparent 50%
    );
}

/* シューズ診断のCTA */
.large-link:hover {
  color: #ffffff;
  opacity: 0.82;
}

/* ABOUT セクション */
.about-section {
  background: #ffffff;
}

.eyebrow-dark {
  color: #5f8588;
}

/* 名言エリア：従来の黒から深い青緑へ */
.quote-section {
  background: #16383b;
  color: #ffffff;
}

.quote-mark {
  color: #4ed4e0;
}

.quote-caption {
  color: #c3e9ec;
}

/* 関連リンクエリア */
.related-section {
  background: #f4feff;
}

.related-link:hover {
  color: #179daa;
}

/* フッター */
.site-footer {
  background: #16383b;
  color: #ffffff;
}

/* リンク下線・区切りの色 */
.link-arrow,
.text-link,
.large-link {
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    min-width 0.25s ease;
}

/* 通常リンクのホバー色 */
.global-nav a:hover,
.footer-links a:hover,
.footer-bottom a:hover {
  color: #4ed4e0;
}

/* 見出し下・カードまわりの淡いブルー演出 */
.journal-card-large::after,
.journal-card-small::after {
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(78, 212, 224, 0.16) 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

/* 文字コンテンツが画像オーバーレイより前に出るようにする */
.journal-card-content,
.journal-small-copy {
  z-index: 2;
}

/* スクロール表示時の白背景セクションに自然な境界を追加 */
.intro-section,
.about-section {
  box-shadow: 0 1px 0 rgba(22, 56, 59, 0.05);
}

/* モバイルメニュー背景 */
@media (max-width: 768px) {
  .global-nav {
    background: #16383b;
  }

  .personal-note {
    color: #16383b;
  }
}


/* ==========================================
   PACE ACADEMY / Brand Logo
========================================== */
.site-logo {
  display: inline-flex;
  align-items: center;
  width: min(230px, 34vw);
}

.site-logo img {
  display: block;
  height: auto;
  width: 100%;
}

.diagnosis-logo {
  display: inline-flex;
  align-items: center;
  width: min(230px, 34vw);
}

.diagnosis-logo img {
  display: block;
  height: auto;
  width: 100%;
}

@media (max-width: 760px) {
  .site-logo,
  .diagnosis-logo {
    width: min(190px, 52vw);
  }
}




/* traced PACE ACADEMY logo */
.site-logo img,.header-logo img,.logo img{width:clamp(250px,31vw,430px);height:auto;display:block}
@media(max-width:720px){.site-logo img,.header-logo img,.logo img{width:min(285px,76vw)}}


/* =========================================================
   PACE ACADEMY — photographic hero
   ========================================================= */
.hero {
  min-height: clamp(620px, 88vh, 900px);
  position: relative;
  overflow: hidden;
}
.hero-image {
  background-image: url("../images/hero-running.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transform: scale(1.001);
}
.hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(4, 28, 49, .62) 0%,
      rgba(4, 28, 49, .34) 32%,
      rgba(4, 28, 49, .08) 58%,
      rgba(4, 28, 49, .02) 100%);
}
.hero-content {
  max-width: 680px;
}
.hero-title,
.hero-description,
.hero .section-label {
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

@media (max-width: 820px) {
  .hero {
    min-height: 720px;
  }
  .hero-image {
    /* keep the runner visible on narrow screens */
    background-position: 62% center !important;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(4, 28, 49, .16) 0%,
        rgba(4, 28, 49, .20) 40%,
        rgba(4, 28, 49, .72) 100%);
  }
  .hero-content {
    align-self: end;
    padding-bottom: 72px;
  }
}


/* =========================================================
   Mobile vertical-spacing fix
   Prevent large blank areas caused by desktop min-heights.
   ========================================================= */
@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
  }

  .intro-section,
  .feature-section,
  .journal-section,
  .shoes-section,
  .about-section,
  .quote-section,
  .related-section {
    min-height: 0 !important;
  }

  .about-section {
    display: block;
  }

  .about-image-wrap {
    min-height: 0 !important;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .about-image {
    width: 100%;
    height: 100%;
    background-position: center !important;
  }

  .about-content {
    padding: 44px 28px 72px !important;
  }

  .about-content .section-number {
    margin: 0 0 28px;
  }

  .about-content .eyebrow-dark {
    margin-top: 0;
  }

  .journal-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .shoes-content {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .quote-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .related-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}


/* =========================================================
   PACE ACADEMY — Mobile UX optimization
   ========================================================= */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
}

/* Tablet */
@media (max-width: 900px) {
  .container {
    width: min(100% - 40px, 1080px);
  }

  .site-header,
  .header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content {
    width: min(100% - 40px, 680px);
  }
}

/* Phone */
@media (max-width: 760px) {
  :root {
    --mobile-gutter: 22px;
  }

  .container {
    width: auto !important;
    max-width: none !important;
    margin-left: var(--mobile-gutter) !important;
    margin-right: var(--mobile-gutter) !important;
  }

  /* Header */
  .site-header,
  .header {
    min-height: 68px;
    padding: 10px var(--mobile-gutter) !important;
  }

  .site-logo img,
  .header-logo img,
  .logo img {
    width: min(245px, 66vw) !important;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
  }

  .menu-toggle,
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  /* Hero: preserve the runner and avoid browser-bar vh jumps */
  .hero {
    min-height: 100svh !important;
    height: auto !important;
  }

  .hero-image {
    background-position: 64% center !important;
  }

  .hero-content {
    width: auto !important;
    max-width: none !important;
    margin: 0 var(--mobile-gutter);
    padding: 0 0 max(64px, env(safe-area-inset-bottom)) !important;
  }

  .hero-title {
    font-size: clamp(38px, 11vw, 58px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em;
    max-width: 8em;
  }

  .hero-description {
    max-width: 31em;
    font-size: 14px !important;
    line-height: 1.9 !important;
  }

  /* Global section rhythm */
  section {
    scroll-margin-top: 72px;
  }

  .section-number {
    margin-bottom: 24px !important;
  }

  .section-title,
  .section-heading {
    font-size: clamp(30px, 8.8vw, 44px) !important;
    line-height: 1.16 !important;
    overflow-wrap: anywhere;
  }

  /* Cards and grids become single-column */
  .journal-grid,
  .feature-grid,
  .related-grid,
  .shoe-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .journal-card,
  .related-card,
  .feature-card {
    min-width: 0;
  }

  /* ABOUT */
  .about-section {
    grid-template-columns: 1fr !important;
  }

  .about-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .about-content {
    padding: 42px var(--mobile-gutter) 68px !important;
  }

  /* Shoe section */
  .shoes-section {
    grid-template-columns: 1fr !important;
  }

  .shoes-content {
    padding: 64px var(--mobile-gutter) !important;
  }

  /* Buttons / links: finger-friendly */
  .button,
  .btn,
  .cta,
  .text-link {
    min-height: 44px;
  }

  /* Footer */
  footer,
  .site-footer {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }
}

/* Small phones */
@media (max-width: 430px) {
  :root {
    --mobile-gutter: 18px;
  }

  .site-logo img,
  .header-logo img,
  .logo img {
    width: min(215px, 64vw) !important;
  }

  .hero-image {
    background-position: 67% center !important;
  }

  .hero-title {
    font-size: clamp(36px, 11.5vw, 49px) !important;
  }

  .hero-description {
    font-size: 13px !important;
  }

  .journal-section,
  .related-section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}

/* Very narrow devices */
@media (max-width: 360px) {
  :root { --mobile-gutter: 16px; }

  .site-logo img,
  .header-logo img,
  .logo img {
    width: 190px !important;
  }

  .hero-title {
    font-size: 38px !important;
  }
}


/* =========================================================
   Official PACE ACADEMY content imagery
   ========================================================= */
.journal-image-main {
  background-image: url("../images/journal-main.png") !important;
  background-position: center 58% !important;
  background-size: cover !important;
}
.journal-image-sub {
  background-image: url("../images/journal-sub.jpg") !important;
  background-position: center 54% !important;
  background-size: cover !important;
}
.shoes-image {
  background-image: url("../images/shoe-selector.png") !important;
  background-position: center center !important;
  background-size: cover !important;
}
.about-image {
  background-image: url("../images/about-runner.png") !important;
  background-position: center 64% !important;
  background-size: cover !important;
}

@media (max-width: 760px) {
  .journal-image-main { background-position: 44% center !important; }
  .journal-image-sub  { background-position: 44% center !important; }
  .shoes-image        { background-position: 57% center !important; }
  .about-image        { background-position: center 72% !important; }
}
