/* ==========================================================================
   OSCO — Global Stylesheet
   Apple-inspired modern design system
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /* Apple Japan (apple.com/jp) 公式 font-family 宣言を完全再現。
     - Apple端末: SF Pro JP (システム) / Hiragino にフォールバック
     - その他環境: Noto Sans JP (Google Fonts) にフォールバック
     - palt はAppleが本文で使わないので無効、特定のヘッドラインでのみ有効化 */
  font-family: "SF Pro JP", "SF Pro Text", "SF Pro Icons",
    "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
    Meiryo, "メイリオ", Osaka, "MS PGothic",
    "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1d1d1f;
  background-color: #ffffff;
  letter-spacing: -0.022em;
  font-weight: 300;              /* Apple Japan は本文 W3 (300) が標準 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Apple typography — ワンサイズ縮小 (80→64, 56→48, 40→32, 21→17) */
.headline {
  font-size: 64px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #1d1d1f;
  text-align: center;
}

.headline--medium {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.headline--small {
  font-size: 32px;
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
}

.eyebrow {
  font-size: 17px;
  line-height: 1.23;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 10px;
}

.subhead {
  font-size: 17px;
  line-height: 1.42;
  font-weight: 300;              /* Apple Japan サブヘッドは細字 */
  letter-spacing: 0.011em;
  color: #6e6e73;
  text-align: center;
  margin-top: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* 英語UIテキスト（ナビ、ボタン）はAppleの-0.022em詰めを維持 */
.global-nav__menu a,
.btn,
.card__eyebrow,
.global-footer {
  letter-spacing: -0.01em;
}

a {
  color: #0071e3;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0077ed;
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   Top Navigation Bar (Apple style)
   ============================================================ */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.global-nav__inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.global-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.global-nav__logo svg,
.global-nav__logo img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Force any navbar logo to render white (works on both dark and red navbars) */
.global-nav__logo img {
  filter: brightness(0) invert(1);
}

.global-nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.global-nav__menu li {
  margin: 0 12px;
}

.global-nav__menu a {
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.88;
  transition: opacity 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav__menu a:hover {
  opacity: 1;
  text-decoration: none;
}

.global-nav__menu a.active {
  opacity: 1;
}

.global-nav__spacer {
  width: 22px;
}

/* ============================================================
   Sub-navigation (page title bar)
   ============================================================ */
.sub-nav {
  position: sticky;
  top: 48px;
  z-index: 9000;
  width: 100%;
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sub-nav__inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.sub-nav__title {
  font-size: 17px;             /* 21 → 17 */
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #1d1d1f;
}

.sub-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sub-nav__action {
  font-size: 14px;
  color: #1d1d1f;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sub-nav__action:hover {
  text-decoration: none;
  color: #1d1d1f;
}

.sub-nav__cta {
  background: #00c759;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sub-nav__cta:hover {
  background: #00b652;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Containers & Layout
   ============================================================ */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.container--wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

section {
  padding: 72px 0;             /* 100 → 72 (ワンサイズ小) */
}

/* ============================================================
   Typography (body-copy modifiers)
   見出しは上の body 定義近くで Apple 公式値に統一済み
   ============================================================ */
.body-copy {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
  color: #1d1d1f;
}

.body-copy--muted {
  color: #6e6e73;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 18px;          /* 12/22 → 10/18 */
  border-radius: 980px;
  font-size: 15px;             /* 17 → 15 */
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: #0071e3;
  color: #ffffff;
}

.btn--primary:hover {
  background: #0077ed;
  color: #ffffff;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: #0071e3;
  padding: 12px 0;
}

.btn--ghost::after {
  content: " ›";
}

.btn--ghost:hover {
  text-decoration: underline;
}

/* ============================================================
   Footer (Apple-style)
   ============================================================ */
.global-footer {
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.33;
  padding: 24px 0;
  border-top: 1px solid #d2d2d7;
  margin-top: 80px;
}

.global-footer__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.global-footer__copyright {
  flex-shrink: 0;
}

.global-footer__links {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}

.global-footer__links li {
  position: relative;
  padding: 0 12px;
}

.global-footer__links li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -2px;
  color: #d2d2d7;
}

.global-footer__links a {
  color: #6e6e73;
  text-decoration: none;
}

.global-footer__links a:hover {
  text-decoration: underline;
  color: #1d1d1f;
}

.global-footer__locale {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ============================================================
   Cards
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: #f5f5f7;
  border-radius: 22px;
  padding: 32px 26px 26px;       /* 40/32/32 → 32/26/26 */
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  min-height: 480px;             /* 580 → 480 */
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card__eyebrow {
  font-size: 12px;             /* 14 → 12 */
  font-weight: 500;
  color: #6e6e73;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.card__title {
  font-size: 20px;             /* 24 → 20 */
  font-weight: 600;
  line-height: 1.3;
  color: #1d1d1f;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.card__body {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 300;
  color: #1d1d1f;
  flex: 1;
}

.card__media {
  margin-top: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 200px;               /* 240 → 200 */
  border-radius: 14px;
  overflow: hidden;
}

.card__media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.card__plus {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  transition: background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.card__plus:hover {
  background: #424245;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Brand color (OSCO red accent)
   ============================================================ */
:root {
  --osco-red: #e7281e;
  --osco-red-soft: #fb4d44;
  --osco-green: #00c759;
  --apple-blue: #0071e3;
  --gray-1: #1d1d1f;
  --gray-2: #6e6e73;
  --gray-3: #86868b;
  --gray-4: #d2d2d7;
  --gray-5: #f5f5f7;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1068px) {
  .headline {
    font-size: 52px;
  }
  .headline--medium {
    font-size: 40px;
  }
}

@media (max-width: 834px) {
  .global-nav__menu li {
    margin: 0 8px;
  }
  .global-nav__menu a {
    font-size: 11px;
  }
  .headline {
    font-size: 40px;
  }
  .headline--medium {
    font-size: 32px;
  }
  .subhead {
    font-size: 15px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: auto;
  }
  section {
    padding: 52px 0;
  }
  .global-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .global-nav__menu {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .global-nav__menu li {
    margin: 0 6px;
  }
  .global-nav__menu a {
    font-size: 10px;
  }
  .headline {
    font-size: 30px;
  }
  .headline--medium {
    font-size: 24px;
  }
  .sub-nav__title {
    font-size: 15px;
  }
}

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
