/*
Theme Name: origin
Theme URI: https://mochioto.com
Author: Your Brand
Description: フルスクラッチ自作テーマ - origin
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: origin
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Brand Colors --- */
  --color-pink-light:   #FDE8EF;   /* 背景・カードの薄ピンク */
  --color-pink-base:    #F2B8CC;   /* ベースピンク */
  --color-pink-accent:  #E07096;   /* アクセント・ボーダー */
  --color-pink-deep:    #C0456B;   /* 見出し・強調 */

  --color-purple-light: #EDE8F8;
  --color-purple-base:  #C9B8E8;   /* 差し色パステル紫 */
  --color-purple-accent:#9B7FD4;
  --color-purple-deep:  #6A4BAF;

  --color-gray-bg:      #1E1C22;   /* サイト背景（ダーク） */
  --color-gray-surface: #2A2730;   /* カード背景 */
  --color-gray-border:  #3D3A46;   /* ボーダー */
  --color-gray-muted:   #7A7585;   /* サブテキスト */
  --color-gray-body:    #C8C4D2;   /* 本文テキスト */
  --color-white:        #FAF0F4;   /* テキスト白（ピンク寄り） */

  /* --- Typography --- */
  --font-display: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'YuMincho', serif;
  --font-body:    'Noto Serif JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en:      'Cormorant Garamond', serif;

  --fs-xxl:  clamp(2.4rem, 5vw, 4rem);
  --fs-xl:   clamp(1.8rem, 3vw, 2.6rem);
  --fs-lg:   clamp(1.3rem, 2vw, 1.7rem);
  --fs-md:   1rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  --lh-tight:  1.3;
  --lh-normal: 1.8;
  --lh-loose:  2.2;

  /* --- Spacing --- */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  32px;
  --sp-xl:  64px;
  --sp-xxl: 120px;

  /* --- Radius --- */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-pill: 9999px;

  /* --- Transitions --- */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   200ms;
  --dur-base:   400ms;
  --dur-slow:   700ms;

  /* --- Layout --- */
  --max-width:      1200px;
  --max-width-text: 720px;
  --header-h:       72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-gray-bg);
  color: var(--color-gray-body);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

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

video {
  display: block;
}

/* FV内の動画は別途layout.cssで制御するため上書きしない */

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: min(var(--max-width), 100% - var(--sp-lg) * 2);
  margin-inline: auto;
}

.container--text {
  width: min(var(--max-width-text), 100% - var(--sp-lg) * 2);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Section heading pattern */
.section-heading {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.section-heading__en {
  display: block;
  font-family: var(--font-en);
  font-size: var(--fs-xxl);
  font-style: italic;
  color: var(--color-pink-accent);
  letter-spacing: 0.05em;
  line-height: var(--lh-tight);
}

.section-heading__ja {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-gray-muted);
  letter-spacing: 0.2em;
  margin-top: var(--sp-sm);
}

/* 角丸「窓」風カード */
.card-window {
  background: var(--color-gray-surface);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.card-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(224, 112, 150, 0.15);
}

/* Pink glow button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  transition: all var(--dur-base) var(--ease-out);
}

.btn--primary {
  background: var(--color-pink-accent);
  color: var(--color-white);
  border: 1px solid transparent;
}

.btn--primary:hover {
  background: var(--color-pink-deep);
  box-shadow: 0 0 20px rgba(224, 112, 150, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-pink-accent);
  border: 1px solid var(--color-pink-accent);
}

.btn--outline:hover {
  background: rgba(224, 112, 150, 0.1);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-gray-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-pink-base);
  border-radius: var(--r-pill);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: var(--color-pink-base);
  color: var(--color-gray-bg);
}
