@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* Base */
body {
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.05em;
    background-color: #ffffff;
    color: #1a1a1f;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f4f5;
}
::-webkit-scrollbar-thumb {
    background: #e5e5e7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4d4d8;
}

/* Typography Utilities */
.text-justify-inter-character {
    text-justify: inter-character;
}

/* --- Geometric Patterns --- */

/* 1. Grid (方眼) - Strategic & Structural */
.pattern-grid {
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 2. Dots (点陣) - Modern & Digital */
.pattern-dots {
    background-image: radial-gradient(rgba(0,0,0,0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* 3. Lines (斜線) - Dynamic & Active */
.pattern-lines {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.02) 10px,
        rgba(0, 0, 0, 0.02) 11px
    );
}

/* --- Unified CTA Buttons (2026 Renewal) --- */
/* Brand color palette is preserved: orange #f58220 / black #1a1a1f / white */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    min-width: 120px;
    padding: 0 2rem;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    background-color: #f58220;
    border: 2px solid #f58220;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #1a1a1f;
    border-color: #1a1a1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15), 0 4px 6px -2px rgba(0,0,0,0.08);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    min-width: 120px;
    padding: 0 2rem;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1f;
    background-color: #ffffff;
    border: 2px solid #1a1a1f;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background-color: #1a1a1f;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    min-width: 120px;
    padding: 0 1.5rem;
    font-size: 16px;
    font-weight: 700;
    color: #5c5c66;
    background-color: transparent;
    border: 1px solid #e5e5e7;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn-ghost:hover {
    color: #f58220;
    border-color: #f58220;
    background-color: #f4f4f5;
}

/* Mobile tweaks: keep min-height 48px for tap target */
@media (max-width: 480px) {
    .btn-primary, .btn-secondary, .btn-ghost {
        width: 100%;
        font-size: 15px;
    }
}

/* FAQ details summary cleanup (no default arrow) */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* --- Japanese-friendly heading line breaking (2026 Renewal) --- */
/*
  日本語特有の「文節途中での改行」を防ぐ。
  - word-break: keep-all → 漢字・かなの間で勝手に改行させない
  - overflow-wrap: anywhere → どうしても入りきらない場合だけ折返し
  - line-break: strict → 句読点や記号の処理を厳密に
  Tailwindの break-words クラス（overflow-wrap: break-word）を上書きするため
  クラスセレクタと同等以上の specificity を確保。
*/
h1, h2, h3, h4,
h1.break-words, h2.break-words, h3.break-words, h4.break-words {
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    line-break: strict !important;
}

/* 段落本文は通常通り */
p, li, span, div {
    word-break: normal;
}

/* 強調用ヘルパー：絶対に行内で折返したくない要素に */
.nowrap-jp {
    word-break: keep-all;
    white-space: nowrap;
}

