/*
Theme Name:  BitTradeBlog
Theme URI:   https://info.bittrade.co.jp/
Author:      Akira Ito
Author URI:  https://bittrade.co.jp/
Description: BitTradeBlog カスタムテーマ。_s (Underscores) ベース。ブランドカラー C:100 M:15 Y:0 K:0 (#00D9FF)。
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: bittradeblog
Tags:        crypto, finance, blog, custom-header, custom-menu, featured-images
*/

/* ================================================================
   0. NOTE
   各CSSファイルは functions.php の wp_enqueue_style() で読み込みます。
   @import はWordPress環境では使用しません。
================================================================ */

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

html {
  font-size: 16px;
  /* scroll-behavior はJS側で制御するためここでは指定しない */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Links ── */
a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--color-primary);
}
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── Images ── */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Lists ── */
ul,
ol {
  list-style: none;
}

/* ── Forms ── */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Tables ── */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ── HR ── */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-8) 0;
}

/* ── Screen reader only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--color-primary);
  color: var(--gray-900);
  font-weight: 700;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  z-index: var(--z-toast);
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--sp-4);
}

/* ================================================================
   2. WORDPRESS CORE CLASSES
================================================================ */
.alignleft  { float: left;  margin: 0 var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-6); }
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignwide {
  margin-left: calc(var(--container-pad) * -1);
  margin-right: calc(var(--container-pad) * -1);
}
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.wp-block-image figcaption,
.gallery-caption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--sp-2);
}

/* ================================================================
   3. UTILITY CLASSES
================================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--color-primary);
  border-radius: var(--r-full);
  display: inline-block;
  flex-shrink: 0;
}

.text-muted  { color: var(--color-text-muted); }
.text-sub    { color: var(--color-text-sub); }
.text-primary { color: var(--color-primary); }

.hidden { display: none !important; }
.flex   { display: flex; }
.grid   { display: grid; }
