/* 全ての要素でアニメーションとトランジションを無効化 */
*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
}

html {
    overflow-y: scroll;
}

/* daisyUI の border-radius と font のみ上書き（カラー変数は daisyUI v4 の oklch 形式と競合するため除外） */
:root {
    --rounded-box: 3px;
    --rounded-btn: 980px;
    --rounded-badge: 980px;
    font-family: sans-serif;
    letter-spacing: -0.357px;
    -webkit-font-smoothing: antialiased;
}

/* daisyUI v4 の bg-base-* クラスを明示的に上書き（oklch が壊れないように hex で固定） */
body,
.bg-base-200 {
    background-color: #f5f5f7 !important;
}
.bg-base-100 {
    background-color: #ffffff !important;
}
.bg-base-300 {
    background-color: #e8e8ed !important;
}

body {
    font-family: sans-serif;
    color: #1d1d1f;
}

/* 見出し用のフォントスタック */
h1, h2, h3, h4, h5, h6, .card-title {
    font-family: sans-serif;
    font-weight: 600;
    line-height: 1.10;
    color: #1d1d1f;
}

/* 行間調整 */
p, span, label, input, td, th, a, button {
    line-height: 1.47;
}

/* ボタン・リンク・ファイル入力などのクリック時のアクティブ変形を無効化 */
.btn:active,
.btn-ghost:active,
.file-input:active,
.nav-link:active,
button:active {
    transform: none !important;
}

/* ボタンのカスタマイズ (Apple Japan 準拠) */
.btn {
    border-radius: 8px !important;
    font-weight: 400;
    padding-left: 22px !important;
    padding-right: 22px !important;
    text-transform: none;
    border-width: 1px;
    background-color: #e8e8ed !important;
    border-color: #e8e8ed !important;
    color: #1d1d1f !important;
    background-image: none !important;
    filter: brightness(1) !important;
}

/* 表内の小ボタンはピル形を維持 */
.btn-sm {
    border-radius: 980px !important;
}

/* ホバー時の背景色変化を無効化（デフォルトボタン用） */
.btn:hover {
    background-color: #e8e8ed !important;
    border-color: #e8e8ed !important;
    color: #1d1d1f !important;
    background-image: none !important;
    filter: brightness(1) !important;
}
.btn-ghost,
.btn-ghost:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    background-image: none !important;
    filter: brightness(1) !important;
}

.btn-primary {
    background-color: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #ffffff !important;
    background-image: none !important;
    filter: brightness(1) !important;
}

.btn-outline {
    border-color: #0071e3 !important;
    color: #0071e3 !important;
    background-color: transparent !important;
}
.btn-outline:hover {
    background-color: transparent !important;
    border-color: #0071e3 !important;
    color: #0071e3 !important;
    background-image: none !important;
    filter: brightness(1) !important;
}

/* Dark Fill */
.btn-neutral,
.btn-dark {
    background-color: #1d1d1f !important;
    border-color: #1d1d1f !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}
.btn-neutral:hover,
.btn-dark:hover {
    background-color: #1d1d1f !important;
    border-color: #1d1d1f !important;
    color: #ffffff !important;
    background-image: none !important;
    filter: brightness(1) !important;
}

/* Error button */
.btn-error {
    background-color: #ff3b30 !important;
    border-color: #ff3b30 !important;
    color: #ffffff !important;
}
.btn-error:hover {
    background-color: #ff3b30 !important;
    border-color: #ff3b30 !important;
    color: #ffffff !important;
    background-image: none !important;
    filter: brightness(1) !important;
}

/* トグルのアクティブ・フォーカス時の変化を無効化 */
.toggle:active,
.toggle:checked:active {
    transform: none !important;
}

/* すりガラスナビゲーションバー */
.apple-navbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}
.apple-navbar a,
.apple-navbar span,
.apple-navbar button {
    color: #ffffff !important;
}
.apple-navbar .btn-primary {
    background-color: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #ffffff !important;
}
.apple-navbar .btn-primary:hover {
    background-color: #0071e3 !important;
    border-color: #0071e3 !important;
    filter: brightness(1) !important;
}
.apple-navbar .btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* グローバルナビゲーションのプレーンリンク形式 */
.apple-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.apple-navbar .nav-link.active {
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}

/* フォーカスリング */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2) !important;
    border-color: #0071e3 !important;
}

/* 通常のチェックボックス・ラジオはフォーカス時に変化させない */
input[type="checkbox"]:not(.toggle):focus,
input[type="radio"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
    background-color: inherit !important;
    --tw-ring-shadow: none !important;
    --tw-ring-offset-shadow: none !important;
}

/* トグルはフォーカス時にノブ描画用 box-shadow を保持したまま outline だけ消す */
.toggle:focus,
.toggle:focus-visible,
.toggle-primary:focus,
.toggle-primary:focus-visible {
    outline: none !important;
    --tw-ring-shadow: none !important;
    --tw-ring-offset-shadow: none !important;
}

/* カード */
.card {
    border-radius: 18px !important;
    background-color: #ffffff !important;
    border: 1px solid #e8e8ed !important;
    box-shadow: none !important;
}
.card:hover {
    box-shadow: none !important;
}

/* フォーム部品の境界と背景調整 */
.input,
.select,
.textarea {
    border-radius: 8px !important;
    border-color: #d2d2d7 !important;
    background-color: #ffffff !important;
}

/* アラート */
.alert {
    border-radius: 12px !important;
    border: 1px solid transparent !important;
}
.alert-error {
    background-color: #ffebeb !important;
    border-color: #ffdad9 !important;
    color: #ff3b30 !important;
}
.alert-success {
    background-color: #eafaf1 !important;
    border-color: #d1f2e0 !important;
    color: #34c759 !important;
}
.alert-warning {
    background-color: #fff7e6 !important;
    border-color: #ffe7b3 !important;
    color: #ff9f0a !important;
}
.alert-info {
    background-color: #f0f8ff !important;
    border-color: #d0e8ff !important;
    color: #0071e3 !important;
}

/* バッジ */
.badge-success {
    color: #ffffff !important;
}
.badge-error {
    background-color: #ff3b30 !important;
    border-color: #ff3b30 !important;
    color: #ffffff !important;
}
.badge-warning {
    background-color: #ff9f0a !important;
    border-color: #ff9f0a !important;
    color: #ffffff !important;
}

/* チェックボックスとトグルの見た目統一 */
.toggle {
    background-color: #e5e7eb !important;
    border-color: #d1d5db !important;
}
.toggle:checked {
    background-color: #0071e3 !important;
    border-color: #0071e3 !important;
}
.toggle:focus,
.toggle:focus-visible {
    background-color: #e5e7eb !important;
    border-color: #d1d5db !important;
}
.toggle:checked:focus,
.toggle:checked:focus-visible {
    background-color: #0071e3 !important;
    border-color: #0071e3 !important;
}

.checkbox {
    border-color: #a1a1a6 !important;
    background-color: #ffffff !important;
}
.checkbox:checked {
    background-color: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #ffffff !important;
}

/* ファイル入力の見た目を整理 */
.file-input {
    background-color: #ffffff !important;
    color: #1d1d1f !important;
    border-color: #d2d2d7 !important;
}
.file-input::file-selector-button {
    background-color: #1d1d1f !important;
    color: #ffffff !important;
    border: none !important;
    animation: none !important;
    transition: none !important;
}
input[type="file"]::file-selector-button {
    animation: none !important;
    transition: none !important;
}
.file-input-bordered {
    border-color: #d2d2d7 !important;
}
.file-input-bordered:focus {
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2) !important;
    border-color: #0071e3 !important;
    outline: none !important;
}

/* テーブルのゼブラ縞を無効化 */
.table tr,
.table tbody tr,
.table tbody tr:nth-child(even),
.table-zebra tbody tr:nth-child(even) {
    background-color: transparent !important;
}
