@charset "UTF-8";

/* ==========================================================================
   Base.css - 基本スタイル設定
   リセット、タイポグラフィ、基本要素のスタイル定義
   ========================================================================== */

/* ==========================================================================
   1. ベーススタイル
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-wrap: break-word;
    word-wrap: break-word;
    backface-visibility: hidden;
    overflow-x: hidden;
    background-color: var(--color-bg-main);
    color: var(--color-text-body);
    font-family: var(--font-family-ja);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-base);
    line-height: var(--line-height-normal);
    font-synthesis: none;
    direction: ltr;
    font-feature-settings: "palt";
}

/* ==========================================================================
   2. タイポグラフィ
   ========================================================================== */

/* Headings - 見出し */
h1,
h2,
h3,
h4,
h5,
h6,
dt,
strong,
b {
    margin: 0;
    font-weight: var(--font-weight-bold)
}

h1 {
    font-size: var(--font-2xl);
    line-height: var(--line-height-tight);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--font-xl);
    line-height: var(--line-height-tight);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--font-lg);
    line-height: var(--line-height-tight);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

h4,
h5,
h6 {
    font-size: var(--font-base);
    line-height: var(--line-height-tight);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

/* Text Elements */
p {
    margin: 0;
    line-height: var(--line-height-relaxed)
}

small {
    font-size: var(--font-sm)
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none
}

/* ==========================================================================
   3. 画像とメディア
   ========================================================================== */

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: bottom
}

picture {
    display: block
}

/* ==========================================================================
   4. UI要素 (リンク・ボタン・フォーム)
   ========================================================================== */

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-base)
}

a:hover,
a:active,
a:focus {
    opacity: 1
}

/* Buttons */
button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    color: var(--color-text-main);
    cursor: pointer
}

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

/* ==========================================================================
   5. ユーティリティ
   ========================================================================== */

/* 数字用フォント */
.font-num {
    font-family: var(--font-family-en);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
}

/* 日本語フォント */
.u-lang-ja {
    font-family: var(--font-family-ja)
}

/* 英語フォント */
.u-lang-en {
    font-family: var(--font-family-en)
}

/* テキストベーススタイル */
.text-base {
    font-size: var(--font-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-main);
    text-align: justify;
}