@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: Anthropic風シンプル洗練デザイン
    Version: 2.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ============================================================
   Google Fonts（Anthropic風）
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Noto+Sans+JP:wght@400;500;600&display=swap');

/* ============================================================
   Anthropicデザイン：CSS変数
============================================================ */
:root {
  /* カラー（ウォームニュートラル） */
  --color-bg: #F8F7F5;
  --color-bg-alt: #FFFFFF;
  --color-bg-dark: #191919;
  --color-text: #1D1D1F;
  --color-text-muted: #86868B;
  --color-text-light: #AFAFAF;
  --color-border: #E8E8ED;
  --color-accent: #1D1D1F;

  /* タイポグラフィ */
  --font-main: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Crimson Pro', 'Noto Serif JP', Georgia, serif;
  --text-xs: 13px;
  --text-sm: 15px;
  --text-base: 17px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 40px;
  --text-3xl: 56px;
  --text-4xl: 72px;

  /* イージング */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* スペーシング */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-2xl: 120px;
}

/* ============================================================
   ベーススタイル
============================================================ */
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.anthropic-page {
  background: var(--color-bg);
}

/* ============================================================
   ヒーローセクション（Anthropic風 2カラム）
============================================================ */
.hero-section {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--color-bg);
  min-height: 65vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}


.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 680px;
}

.hero-description {
  flex: 0 0 340px;
  padding-top: 16px;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Anthropic風の下線装飾 */
.hero-underline {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 88%;
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
}

.hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   ヒーローアニメーション
============================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* タイトルの各行を順番にアニメーション */
.hero-title .hero-line {
  display: block;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out-expo) forwards;
}

.hero-title .hero-line:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-title .hero-line:nth-child(2) {
  animation-delay: 0.45s;
}

.hero-title .hero-line:nth-child(3) {
  animation-delay: 0.7s;
}

/* 説明文のフェードイン */
.hero-description {
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.95s forwards;
}

/* ============================================================
   ビジュアルセクション（互い違い配置）
============================================================ */
.visual-wrapper {
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  margin-top: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.visual-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 0 40px;
}

.visual__col {
  overflow: hidden;
}

.visual__col--left {
  padding-top: 0;
}

.visual__col--right {
  margin-top: 120px;
}

.visual__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.visual__col:hover .visual__img {
  transform: scale(1.02);
}

/* ============================================================
   特集（横スクロール + スクロール展開）
============================================================ */
.featured-banner-wrapper {
  --expand: 0;
  --inset: calc(120px * (1 - var(--expand)));
  padding: 0 var(--inset);
  margin-left: calc(-50vw + 50%);
  margin-bottom: var(--space-2xl);
  width: 100vw;
  box-sizing: border-box;
}

/* ピン留め用の高さ確保（3パネル分 = 300vh） */
.featured-pin {
  height: 300vh;
  position: relative;
}

.featured-banner {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--color-bg-dark);
  color: white;
  overflow: hidden;
  border-radius: calc(24px * (1 - var(--expand)));
}

/* グラデーションオーバーレイ */
.featured-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* 横並びトラック */
.featured-track {
  display: flex;
  height: 100%;
  width: 300%;
  will-change: transform;
}

/* 各パネル（1画面分） */
.featured-panel {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: 0 var(--space-xl);
  box-sizing: border-box;
  text-decoration: none;
  color: white;
  position: relative;
  z-index: 2;
}

.featured-panel:hover {
  color: white;
}

/* 画像（左半分） */
.featured-panel__img {
  flex: 1;
  max-width: 55%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.featured-panel__img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured-panel__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.06);
}

/* テキスト（右半分） */
.featured-panel__body {
  flex: 1;
  max-width: 440px;
}

.featured-panel__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.featured-panel__title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

.featured-panel__excerpt {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--space-md);
}

.featured-panel__cta {
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
}

.featured-panel:hover .featured-panel__cta {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Popular（人気記事）
============================================================ */
.popular {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--color-bg);
}

.popular__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.popular__heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

.popular__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.popular__card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
}

.popular__card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.popular__link {
  text-decoration: none;
  color: var(--color-text);
  display: block;
}

/* サムネイル */
.popular__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-border);
}

.popular__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.popular__card:hover .popular__thumb img {
  transform: scale(1.04);
}

/* テキスト部分 */
.popular__body {
  padding: 20px 24px 24px;
}

.popular__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.popular__title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 12px;
}

.popular__date {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================================
   レスポンシブ
============================================================ */

/* --- タブレット --- */
@media (max-width: 1024px) {
  :root {
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 80px;
  }

  .hero-container {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-description {
    flex: none;
    max-width: 500px;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .visual-section {
    gap: 12px;
    padding: 0 24px;
  }

  .visual__col--right {
    margin-top: 60px;
  }

  .featured-panel {
    gap: var(--space-lg);
    padding: 0 var(--space-lg);
  }

  .featured-panel__title {
    font-size: var(--text-xl);
  }

  .popular__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular__inner,
  .news__inner,
  .contents__inner {
    padding: 0 var(--space-md);
  }

  .contents__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- モバイル --- */
@media (max-width: 640px) {
  :root {
    --text-4xl: 44px;
    --text-3xl: 36px;
    --text-2xl: 28px;
    --text-xl: 22px;
    --space-lg: 24px;
    --space-xl: 48px;
    --space-2xl: 64px;
  }

  .hero-section {
    padding: var(--space-xl) 0 var(--space-lg);
    min-height: auto;
  }

  .hero-container {
    padding: 0 var(--space-sm);
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-subtitle {
    font-size: var(--text-sm);
  }

  /* ビジュアル */
  .visual-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 16px;
  }

  .visual__col--right {
    margin-top: 0;
  }

  /* Featured */
  .featured-banner-wrapper {
    --inset: calc(20px * (1 - var(--expand)));
  }

  .featured-banner {
    border-radius: calc(16px * (1 - var(--expand)));
  }

  .featured-panel {
    flex-direction: column;
    padding: var(--space-lg) var(--space-sm);
    gap: var(--space-md);
    justify-content: center;
  }

  .featured-panel__img {
    max-width: 100%;
  }

  .featured-panel__title {
    font-size: var(--text-lg);
  }

  .featured-panel__excerpt {
    font-size: var(--text-sm);
  }

  /* Popular */
  .popular__grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .popular__body {
    padding: 16px 16px 20px;
  }

  .popular__heading,
  .contents__heading,
  .news__heading {
    font-size: 12px;
    margin-bottom: var(--space-md);
  }

  /* News */
  .news__item {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }

  .news__meta {
    padding: 0;
  }

  .news__title a {
    padding: 0;
  }

  .news__inner,
  .contents__inner {
    padding: 0 var(--space-sm);
  }

  .contents__tab {
    padding: 6px 14px;
    font-size: 12px;
  }

  .contents__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
   スクロールフェードインアニメーション
============================================================ */
.js-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* カードの段階的フェードイン */
.popular__card.js-fade-in {
  transition-delay: calc(var(--card-index, 0) * 0.1s);
}

/* ============================================================
   Contents（カテゴリ別タブ）
============================================================ */
.contents {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.contents__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.contents__heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

/* タブ（ピル型） */
.contents__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.contents__tab {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.contents__tab:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.contents__tab.is-active {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* パネル */
.contents__panel {
  display: none;
}

.contents__panel.is-active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 記事カードグリッド */
.contents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contents__card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg);
  transition: box-shadow 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
}

.contents__card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.contents__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-border);
}

.contents__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.contents__card:hover .contents__thumb img {
  transform: scale(1.04);
}

.contents__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-border);
}

.contents__body {
  padding: 16px 20px 20px;
}

.contents__date {
  font-size: 12px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 8px;
}

.contents__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.contents__empty {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}

/* ============================================================
   News（企業風ニュースフィード）
============================================================ */
.news {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--color-bg);
}

.news__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.news__heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

.news__list {
  margin: 0;
}

.news__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: 0;
  border-bottom: 1px solid var(--color-border);
}

.news__item:first-child {
  border-top: 1px solid var(--color-border);
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 20px 0;
}

.news__date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 6em;
}

.news__tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid var(--color-border);
  padding: 2px 10px;
  border-radius: 100px;
  white-space: nowrap;
  min-width: 5em;
  text-align: center;
}

.news__title {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.5;
  flex: 1;
}

.news__title a {
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 20px 0;
  transition: color 0.3s var(--ease-out-expo);
}

.news__title a::after {
  content: '\2192';
  margin-left: auto;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
  flex-shrink: 0;
  padding-left: 16px;
  color: var(--color-text-muted);
}

.news__title a:hover {
  color: var(--color-text-muted);
}

.news__title a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.news__empty {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}

/* ============================================================
   Swellヘッダー・フッターの上書き
============================================================ */
/* ヘッダーをシンプルに（すりガラス効果） */
.l-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.l-header .c-gnav a {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}

/* フッターをダークに */
.l-footer {
  background: var(--color-bg-dark) !important;
  color: white !important;
}

.l-footer a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.l-footer a:hover {
  color: white !important;
}

/* ============================================================
   アクセシビリティ：モーション軽減
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-fade-in {
    opacity: 1;
    transform: none;
  }

  .hero-title .hero-line {
    opacity: 1;
  }

  .hero-description {
    opacity: 1;
  }
}
