/* ==========================================================
   responsive.css  -  レスポンシブ対応
   ブレイクポイント:
     タブレット横: 1025px-1200px（iPad 横 1080px 前後が対象）
     タブレット縦: max-width 1024px（iPad 縦 810px, Pro 1024px が対象）
     モバイル:   max-width 768px
     小SP:       max-width 480px
========================================================== */


/* ----------------------------------------------------------
   タブレット横 ( 1025px - 1366px )
   iPad 横 (1080/1180/1366px) など。hero 背景の人物位置を調整。
---------------------------------------------------------- */
@media (max-width: 1366px) and (min-width: 1025px) {

  /* ヒーロー背景: 画像の左側を優先表示し、人物を画面右へ逃がす */
  .hero__bg-img {
    object-position: left center;
  }

  /* ヒーロー左側の暗さを強化して文字可読性UP */
  .hero__bg-overlay {
    background: linear-gradient(
      to right,
      rgba(4, 11, 24, 0.90) 0%,
      rgba(4, 11, 24, 0.60) 40%,
      rgba(4, 11, 24, 0.20) 72%,
      rgba(4, 11, 24, 0.45) 100%
    );
  }
}


/* ----------------------------------------------------------
   タブレット ( ≤ 1024px )
---------------------------------------------------------- */
@media (max-width: 1024px) {

  /* ハンバーガー表示 / グローバルナビ非表示 */
  .global-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  /* ヒーロー: 3ゾーン構成（上:テキスト / 中:画像 / 下:ボタン） */
  .hero {
    align-items: stretch;
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 48px;
    align-items: stretch;
  }

  .hero__content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* ボタンをヒーロー下部に押し下げる */
  .hero__actions {
    margin-top: auto;
    padding-top: 48px;
  }

  /* SP用オーバーレイ: 上下を暗く、中央を明るく（人物・銀河を見せる） */
  .hero__bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(4, 11, 24, 0.82) 0%,
      rgba(4, 11, 24, 0.50) 22%,
      rgba(4, 11, 24, 0.12) 45%,
      rgba(4, 11, 24, 0.30) 68%,
      rgba(4, 11, 24, 0.78) 100%
    );
  }

  /* SP用: 画像を中央寄せで表示 */
  .hero__bg-img {
    object-position: center;
  }

  /* SNSアイコン: タブレット以下でも表示 */
  .hero-sns {
    right: 12px;
    gap: 10px;
  }

  .hero-sns__icon {
    width: 30px;
    height: 30px;
  }

  /* テーマカード */
  .theme-cards {
    grid-template-columns: 1fr;
  }

  .theme-card {
    aspect-ratio: 16/7;
  }

  /* Journey */
  .journey__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .journey__visual {
    order: -1;
  }

  .journey__door-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  /* ステップ：3列に */
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .step-item__line {
    display: none;
  }

  /* YOUR JOURNEY: 縦積みに */
  .journey-map {
    padding: 40px 28px;
  }

  /* 縦表示時はストーリーライン非表示（縦に描画されて見栄えが悪いため） */
  .journey-map__line {
    display: none;
  }

  .journey-map__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .journey-map__intro {
    max-width: 100%;
    margin: 0 auto;
  }

  .journey-map__cards {
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
  }

  .journey-map__goal {
    flex-direction: row;
    justify-content: center;
  }

  /* 記事グリッド：2列に */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 2カラム記事詳細 → 1カラムに */
  .content-columns {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* サイドバー sticky 解除 */
  .article-sidebar {
    position: static;
  }

  /* フッターグリッド: 2カラムに */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  /* CTAグリッド: タブレット以下は1カラムに統一 */
  .cta-grid,
  .cta-grid--cols-1,
  .cta-grid--cols-2,
  .cta-grid--cols-3 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  /* フッターCTA（LINE/メルマガ）も縦積みに */
  .footer-cta,
  .footer-cta:has(.footer-cta__block--line):has(.footer-cta__block--newsletter) {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* モバイルでは特典画像ブロックも縦積み（画像→本文） */
  .footer-cta__block--with-visual {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-cta__visual {
    aspect-ratio: 16 / 9;
  }

  /* 目次ボックス：モバイルではパディング小さめ */
  .toc-box {
    padding: 20px 18px;
    margin: 24px 0 32px;
  }
  .toc-box__item {
    padding-left: 24px;
    font-size: 0.95rem;
  }
  .toc-box__item--h3 {
    padding-left: 40px;
  }

  /* 吹き出し：モバイルはアバター小さめ */
  .speech-bubble {
    gap: 10px;
  }
  .speech-bubble__avatar,
  .speech-bubble__avatar-img {
    width: 56px;
  }
  .speech-bubble__avatar-img {
    height: 56px;
  }
  .speech-bubble__body {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  /* メルマガ */
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .newsletter-form {
    width: 100%;
  }

  /* フッターメルマガ */
  .footer-newsletter {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* ----------------------------------------
     タブレット縦: フォント・余白の最適化
     縦画面でも読みやすい十分なサイズを確保
  ---------------------------------------- */
  .section {
    padding-block: 80px;
  }

  .section--lg {
    padding-block: 104px;
  }

  .section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.2rem);
    margin-bottom: 44px;
  }

  .section-eyebrow {
    font-size: 0.85rem;
  }

  /* ヒーロー */
  .hero__heading {
    font-size: clamp(2.6rem, 6vw, 3.4rem);
  }

  .hero__sub {
    font-size: 1.125rem;
    line-height: 1.9;
  }

  .hero__eyebrow {
    font-size: 0.95rem;
  }

  /* ヒーローボタン（タブレット縦では大きめに） */
  .hero__actions .btn,
  .hero__actions .btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
  }

  /* コンセプト */
  .concept-header__title {
    font-size: clamp(1.9rem, 3.8vw, 2.4rem);
    margin-bottom: 22px;
  }

  .concept-header__body {
    font-size: 1.05rem;
    line-height: 1.9;
  }

  /* テーマカード */
  .theme-card__title {
    font-size: 1.45rem;
  }

  .theme-card__desc {
    font-size: 1rem;
    line-height: 1.7;
  }

  .theme-card__num {
    font-size: 1rem;
  }

  /* Journey (About) */
  .journey__heading {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
  }

  .journey__desc {
    font-size: 1.05rem;
    line-height: 1.9;
  }

  .journey__profile-item {
    font-size: 1rem;
  }

  /* ステップ */
  .step-item__title {
    font-size: 1.1rem;
  }

  .step-item__desc {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .step-item__num {
    font-size: 0.825rem;
  }

  /* CTA */
  .cta-card__title {
    font-size: 1.45rem;
  }

  .cta-card__desc {
    font-size: 1.025rem;
    line-height: 1.85;
  }

  .cta-card__bonus {
    font-size: 0.9rem;
  }

  /* フッター */
  .footer-col__title {
    font-size: 1.05rem;
  }

  .footer-tagline {
    font-size: 0.95rem;
  }

  .footer-nav__list a {
    font-size: 0.95rem;
  }

  /* アーカイブヒーロー */
  .archive-hero {
    padding-block: 56px;
  }

  .archive-hero__title {
    font-size: clamp(1.7rem, 3.6vw, 2.1rem);
  }

  .archive-hero__desc {
    font-size: 1rem;
  }

  /* Journey Map */
  .journey-map {
    padding: 52px 40px;
    min-height: auto;
  }

  .journey-map__heading {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
  }

  .journey-map__desc {
    font-size: 1rem;
    line-height: 1.85;
  }

  .journey-map__card {
    width: 150px;
  }

  .journey-map__card-title {
    font-size: 1.1rem;
  }

  .journey-map__card-desc {
    font-size: 0.825rem;
  }

  .journey-map__goal-label {
    font-size: 0.95rem;
  }
}


/* ----------------------------------------------------------
   モバイル ( ≤ 768px )
---------------------------------------------------------- */
@media (max-width: 768px) {

  /* コンテナ左右余白 */
  .container {
    width: min(var(--content-width), 100% - 32px);
  }

  /* ページ下部の余白（フッターとの間） */
  .page-content {
    padding-bottom: 64px;
  }

  /* セクション余白 */
  .section {
    padding-block: 56px;
  }

  .section--lg {
    padding-block: 72px;
  }

  /* ヒーロー: SPでもコンテンツ上部寄せを維持 */
  .hero__inner {
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 48px;
  }

  .hero__heading {
    font-size: clamp(1.9rem, 7.5vw, 2.8rem);
  }

  /* ボタン: SPでは少し縮める（PCのひとまわり大きい指定を打ち消す） */
  .btn {
    padding: 14px 26px;
    font-size: 0.95rem;
  }

  .btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
    min-height: 54px;
  }

  .btn--sm {
    padding: 9px 18px;
    font-size: 0.85rem;
  }

  /* ボタン: 縦並び・全幅・中央寄せ */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* モバイルでは下記のボタン群も中央寄せに統一 */
  .journey__text,
  .journey-map__intro,
  .article-end-cta,
  .sidebar-door-cta,
  .sidebar-widget--line,
  .sidebar-widget--newsletter,
  .footer-cta__block,
  .footer-cta__body,
  .cta-card,
  .cta-card__text,
  .cta-card__body {
    text-align: center;
  }

  /* 標準的なCTAブロック内のボタンは中央配置 */
  .journey__text .btn,
  .journey-map__intro .btn,
  .article-end-cta__btn,
  .sidebar-door-cta .btn,
  .sidebar-widget--line .btn,
  .sidebar-widget--newsletter .btn,
  .footer-cta__block .btn,
  .cta-card .btn {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
  }

  /* リスト系は文章が左寄せのほうが読みやすいので戻す */
  .journey__profile-list,
  .article-end-cta__list {
    text-align: left;
  }

  /* SNSアイコン: さらに小さく */
  .hero-sns {
    right: 8px;
    gap: 8px;
  }

  .hero-sns__icon {
    width: 26px;
    height: 26px;
  }

  /* テーマカード */
  .theme-card {
    aspect-ratio: 4/3;
  }

  /* ステップ: 1列縦積みに */
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-item {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    padding-block: 20px;
  }

  .step-item__icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .step-item__arrow {
    display: none;
  }

  /* CTAカード: ニュースレター → 縦積みに */
  .cta-card--newsletter {
    grid-template-columns: 1fr;
  }

  .cta-card__text {
    padding: 32px 28px 24px;
  }

  .cta-card__visual {
    min-height: 200px;
    margin: 0;
  }

  .cta-card__visual .cta-card__img {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: absolute;
    inset: 0;
  }

  .cta-card__bonus {
    right: 16px;
    bottom: 16px;
  }

  .cta-card--community .cta-card__body {
    padding: 28px;
  }

  /* 記事グリッド: 1列に */
  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-grid--4col {
    grid-template-columns: 1fr;
  }

  /* フッターグリッド: 1カラムに */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 48px;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  /* 記事ヘッダー */
  .article-header {
    padding-block: 32px 0;
    margin-bottom: 32px;
  }

  /* 前後記事ナビ */
  .post-navigation__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 記事本文：ポイントボックス */
  .article-points {
    padding: 20px 18px;
  }
  .article-points__title {
    font-size: 1rem;
  }
  .article-points__list li {
    font-size: 0.9rem;
  }

  /* 記事本文：Stepヘッディング */
  .entry-content .step-heading {
    gap: 12px;
    margin-block: 40px 18px;
  }
  .step-heading__num {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  /* 記事本文：Tipボックス */
  .tip-box__title {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .tip-box__list {
    padding: 14px 16px;
  }
  .tip-box__list li {
    font-size: 0.875rem;
  }

  /* タブナビ */
  .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tab-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-nav__btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* メルマガフォーム */
  .newsletter-form__row {
    flex-direction: column;
  }

  .newsletter-form__btn {
    width: 100%;
  }

  /* 記事シェアボタン */
  .article-share {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Journey */
  .journey__heading {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  /* YOUR JOURNEY: モバイルでも必ず3枚横並び */
  .journey-map {
    padding: 32px 16px;
  }

  .journey-map__cards {
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .journey-map__card {
    width: calc((100% - 16px) / 3);
    max-width: none;
    min-width: 0;
    aspect-ratio: 1 / 1.6;
    border-radius: 50px 50px 6px 6px;
  }

  .journey-map__card-inner {
    padding: 16px 8px 14px;
  }

  .journey-map__card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }

  .journey-map__card-icon svg {
    width: 18px;
    height: 18px;
  }

  .journey-map__card-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .journey-map__card-desc {
    font-size: 0.7rem;
    line-height: 1.5;
  }
}


/* ----------------------------------------------------------
   小サイズSP ( ≤ 480px )
---------------------------------------------------------- */
@media (max-width: 480px) {

  :root {
    --header-height: 60px;
  }

  .site-logo__img {
    height: 32px;
    width: auto;
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 40px;
  }

  .hero__heading {
    font-size: 1.75rem;
  }

  /* SNS アイコン: 小SPでは非表示 */
  .hero-sns {
    display: none;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 32px;
  }

  /* テーマカード: 正方形に近い */
  .theme-card {
    aspect-ratio: 1/1;
  }

  /* コンテンツ2カラム → 1カラム */
  .content-columns {
    gap: 32px;
  }

  /* テーブルスクロール */
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* CTAカードのビジュアル */
  .cta-card__visual {
    min-height: 160px;
  }

  /* YOUR JOURNEY: 極小画面でも3枚キープ */
  .journey-map {
    padding: 28px 12px;
  }

  .journey-map__card {
    aspect-ratio: 1 / 1.55;
  }

  .journey-map__card-inner {
    padding: 12px 6px 10px;
  }

  .journey-map__card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }

  .journey-map__card-icon svg {
    width: 16px;
    height: 16px;
  }

  .journey-map__card-title {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  /* 極小画面では説明文を隠してタイトルだけに */
  .journey-map__card-desc {
    display: none;
  }
}


/* ----------------------------------------------------------
   記事末尾CTA: レスポンシブ
---------------------------------------------------------- */
@media (max-width: 768px) {
  .article-end-cta {
    margin-top: 40px;
  }

  .article-end-cta__body {
    padding: 32px 24px 36px;
  }

  .article-end-cta__list {
    padding: 20px 20px;
    gap: 12px;
  }

  .article-end-cta__btn {
    width: 100%;
    min-width: 0;
  }
}


/* ----------------------------------------------------------
   商品ページ: レスポンシブ
---------------------------------------------------------- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-detail__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .product-filter__link {
    flex-shrink: 0;
  }

  .product-detail {
    padding-block: 24px 56px;
  }

  .product-detail__title {
    font-size: 1.4rem;
  }

  .product-detail__price {
    font-size: 1.25rem;
  }
}


/* ----------------------------------------------------------
   印刷スタイル
---------------------------------------------------------- */
@media print {

  .site-header,
  .hero-sns,
  .article-sidebar,
  .site-footer,
  .newsletter-section {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .entry-content {
    color: black;
    font-size: 12pt;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
