/* ==========================================================================
 * HUNDRED Theme — main.css
 * リセット・ベーススタイル・タイポグラフィ・ユーティリティ
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * リセット
 * -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background: var(--hundred-bg);
    color: var(--hundred-text);
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'ヒラギノ角ゴシック', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body.js { cursor: none; }
@media (hover: none) { body.js { cursor: auto; } }

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

button {
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

ul, ol { list-style: none; }

.screen-reader-text {
    position: absolute !important;
    clip-path: inset(50%);
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.screen-reader-text:focus {
    clip-path: none;
    clip: auto;
    width: auto;
    height: auto;
    padding: 8px 16px;
    background: var(--hundred-accent);
    color: var(--hundred-bg);
    z-index: 100000;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--hundred-accent);
    color: var(--hundred-bg);
    padding: 12px 24px;
    z-index: 100000;
}
.skip-link:focus { top: 0; }


/* --------------------------------------------------------------------------
 * カスタムカーソル
 * -------------------------------------------------------------------------- */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 24px;
    height: 24px;
    border: 1px solid var(--hundred-text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
    will-change: transform;
}
.cursor.hover {
    width: 60px;
    height: 60px;
    background: var(--hundred-accent);
    border-color: var(--hundred-accent);
    mix-blend-mode: normal;
}
html.no-js .cursor { display: none; }
@media (hover: none) { .cursor { display: none; } }


/* --------------------------------------------------------------------------
 * 背景粒子キャンバス（全ページ）
 * -------------------------------------------------------------------------- */
.hundred-particles-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}
html.no-js .hundred-particles-bg { display: none; }


/* --------------------------------------------------------------------------
 * ヘッダー
 * -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 24px clamp(24px, 5vw, 80px);
    z-index: 100;
}
.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.site-header__logo-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--hundred-text);
    text-decoration: none;
}
.site-header__logo-text em {
    color: var(--hundred-accent);
    font-style: normal;
}
.site-header .custom-logo-link img {
    max-height: 32px;
    width: auto;
}

.site-nav__list {
    display: flex;
    gap: 28px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav__list a {
    color: var(--hundred-muted);
    transition: color 0.3s ease;
    position: relative;
}
.site-nav__list a:hover { color: var(--hundred-accent); }
.site-nav__list .current-menu-item > a,
.site-nav__list a.current {
    color: var(--hundred-text);
}
.site-nav__list .current-menu-item > a::before,
.site-nav__list a.current::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--hundred-accent);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.site-nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.site-nav__toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--hundred-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .site-nav { display: none; }
    .site-nav__toggle { display: flex; }
}


/* --------------------------------------------------------------------------
 * フルスクリーンメニュー
 * -------------------------------------------------------------------------- */
.site-menu-fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: var(--hundred-bg);
    z-index: 90;
    display: flex;
    align-items: center;
    padding: 100px clamp(24px, 5vw, 80px) 40px;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1);
    overflow-y: auto;
}
.site-menu-fullscreen.open {
    transform: translateY(0);
}
.site-menu-fullscreen__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 40px;
}
.site-menu-fullscreen__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-menu-fullscreen__list a {
    color: var(--hundred-text);
    display: flex;
    align-items: baseline;
    gap: 24px;
    transition: color 0.3s ease;
}
.site-menu-fullscreen__list a:hover { color: var(--hundred-accent); }
.site-menu-fullscreen__list span {
    font-size: 14px;
    font-weight: 500;
    color: var(--hundred-muted);
    letter-spacing: 0.2em;
}
.site-menu-fullscreen__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--hundred-line);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    color: var(--hundred-muted);
    line-height: 1.7;
}
.site-menu-fullscreen__label {
    color: var(--hundred-accent);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.site-menu-fullscreen__meta address { font-style: normal; }
.site-menu-fullscreen__meta a:hover { color: var(--hundred-accent); }
@media (max-width: 640px) {
    .site-menu-fullscreen__meta { grid-template-columns: 1fr; gap: 24px; }
}


/* --------------------------------------------------------------------------
 * フッター
 * -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    background: var(--hundred-bg-soft);
    border-top: 1px solid var(--hundred-line);
    padding: 100px clamp(24px, 5vw, 80px) 40px;
    z-index: 1;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    color: var(--hundred-muted);
    line-height: 1.8;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hundred-line);
}
.site-footer__logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--hundred-text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.site-footer__logo em {
    color: var(--hundred-accent);
    font-style: normal;
}
.site-footer__tagline {
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}
.site-footer__address {
    font-style: normal;
    font-size: 11px;
    line-height: 1.8;
}
.site-footer__nav-label {
    color: var(--hundred-accent);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 10px;
}
.site-footer__nav,
.site-footer__sns,
.site-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__nav a:hover,
.site-footer__sns a:hover,
.site-footer__contact a:hover {
    color: var(--hundred-accent);
}
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 10px;
}
@media (max-width: 900px) {
    .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}


/* --------------------------------------------------------------------------
 * ページ共通ヘッダー・コンテンツ
 * -------------------------------------------------------------------------- */
.page-header {
    padding: 200px clamp(24px, 5vw, 80px) 60px;
    position: relative;
    z-index: 1;
}
.page-header__meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--hundred-muted);
    text-transform: uppercase;
    margin-bottom: 40px;
}
.page-header__num { color: var(--hundred-accent); font-weight: 700; }
.page-header__title {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 10vw, 180px);
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: var(--hundred-text);
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hundred-line);
}
.page-content {
    padding: 60px clamp(24px, 5vw, 80px) 200px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-content p {
    margin-bottom: 24px;
    line-height: 1.9;
    color: var(--hundred-text);
}
.page-content h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 60px 0 24px;
    color: var(--hundred-text);
}
.page-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--hundred-text);
}


/* --------------------------------------------------------------------------
 * リビール・Fade-Upアニメーション（グローバル）
 * -------------------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.in {
    opacity: 1;
    transform: translateY(0);
}
.fade-up.d1 { transition-delay: 0.10s; }
.fade-up.d2 { transition-delay: 0.20s; }
.fade-up.d3 { transition-delay: 0.30s; }
.fade-up.d4 { transition-delay: 0.40s; }

.line-draw { position: relative; padding-top: 24px; }
.line-draw::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: var(--hundred-line);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-draw.in::before { transform: scaleX(1); }

html.no-js .fade-up { opacity: 1; transform: none; }
html.no-js .line-draw::before { transform: scaleX(1); }


/* --------------------------------------------------------------------------
 * タグ
 * -------------------------------------------------------------------------- */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--hundred-line);
    border-radius: 100px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--hundred-muted);
    text-transform: uppercase;
    margin-right: 6px;
    margin-bottom: 6px;
}
