/* ========== Base ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
        "Noto Sans JP", system-ui, sans-serif;
    color: #f6f6f6;
    line-height: 1.7;
    background: radial-gradient(circle at top, #252933, #111318);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    padding-top: 72px;
    /* fixed header offset */
}

.container {
    width: min(1120px, 100% - 40px);
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

/* ========== Header ========== */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    background: #111318;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo,
.footer-logo {
    font-family: "Times New Roman", "Hiragino Mincho ProN", serif;
    letter-spacing: 0.18em;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

/* ヘッダーロゴ画像 */
.logo img {
    height: clamp(28px, 4vw, 44px);
    width: auto;
    object-fit: contain;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    font-size: 13px;
    letter-spacing: 0.14em;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}
a.lang-btn {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 13px;
    font-weight: 400;
    background: none;
    border: none;
    padding: 8px 2px;
    -webkit-appearance: none;
    appearance: none;
}
a.lang-btn.active {
    color: #fff;
    font-weight: 700;
}
.lang-switch .sep {
    color: rgba(255, 255, 255, 0.4);
}

/* Hamburger */
.nav-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #f6f6f6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}


/* ===========================
   Drawer Menu（右から出る）
   =========================== */

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 45;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(360px, 86vw);
    background: rgba(5, 6, 10, .98);
    border-left: 1px solid rgba(255, 255, 255, .12);
    transform: translateX(102%);
    transition: transform .28s ease;
    z-index: 46;
    padding: 88px 22px 22px;
}

.nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer.is-open {
    transform: translateX(0);
}

.drawer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    font-size: 14px;
}

.drawer-nav a {
    display: block;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #f6f6f6;
    opacity: .92;
}

.drawer-nav a:hover {
    opacity: 1;
}


/* ========== Section titles etc. ========== */

.section-title {
    margin: 0 0 28px;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 24px;
    text-align: center;
}

.section-title--big {
    font-size: 32px;
}

.section-panel {
    background: radial-gradient(circle at top, #252933, #111318);
}

/* ========== Hero ========== */

.hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
    background: #000;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), #000 70%);
}

.hero-content {
    position: relative;
    padding-top: 30vh;
    padding-bottom: 18vh;
    text-align: center;
}

.hero-title {
    margin: 0 0 16px;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: clamp(30px, 4vw, 42px);
}

.hero-sub {
    margin: 0;
    font-size: 16px;
}

/* ========== Concept ========== */

.concept {
    background: radial-gradient(circle at top, #2a303c, #111318);
}

.concept-inner {
    max-width: 780px;
    text-align: center;
}

.concept-inner p {
    font-size: 14px;
    color: #d0d0d0;
    margin-bottom: 12px;
}

/* ========== Bizen CTA ========== */

.bizen-cta {
    position: relative;
    padding: 0;
    min-height: 360px;
}

.bizen-media {
    position: relative;
    overflow: hidden;
}

.bizen-media img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
}

.bizen-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.2));
}

.bizen-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bizen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 80px;
    border-radius: 0;
    border: 1px solid #ffffff;
    background: rgba(0, 0, 0, 0.3);
    font-size: 18px;
    letter-spacing: 0.18em;
}

.arrow {
    margin-left: 24px;
}

/* ========== Slider ========== */

.slider {
    position: relative;
    margin-top: 24px;
}

.slider-track {
    overflow: hidden;
}

.slider-item {
    display: none;
}

.slider-item--active {
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #f6f6f6;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.slider-arrow--left {
    left: 20px;
}

.slider-arrow--right {
    right: 20px;
}

/* Products */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding-inline: 80px;
    margin-top: 32px;
}

.product-card img {
    margin-inline: auto;
    max-height: 420px;
    object-fit: contain;
}

.product-card figcaption {
    margin-top: 20px;
    text-align: left;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.product-author {
    display: block;
    font-size: 16px;
}

.product-title {
    display: block;
    font-size: 22px;
}

/* Products CTA */

.section-cta {
    margin-top: 48px;
    text-align: center;
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 60px;
    border-radius: 0;
    border: 1px solid #ffffff;
    font-size: 16px;
    letter-spacing: 0.14em;
}

.outline-btn--large {
    padding: 18px 96px;
    font-size: 18px;
}

.shop-btn {
    text-align: center;
    text-decoration:underline;
}

/* ========== Artists Slider (2-up, loop) ========== */

.artist-slider {
    position: relative;
    margin-top: 24px;
}

.artist-viewport {
    overflow: hidden;
}

.artist-track {
    display: flex;
    gap: 40px;
    will-change: transform;
    transition: transform .5s ease;
}

.artist-slide {
    flex: 0 0 calc((100% - 40px) / 2);
    /* 2枚表示 */
    display: block;
    color: inherit;
    text-decoration: none;
}

.artist-slide:hover .artist-card img {
    transform: scale(1.02);
}

.artist-card {
    margin: 0;
}

.artist-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform .25s ease;
}

.artist-slide .artist-text {
    margin-top: 16px;
}

.artist-slide .artist-text h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.artist-slide .artist-text p {
    margin: 0;
    font-size: 14px;
    color: #d0d0d0;
}

.artist-arrow {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #f6f6f6;
    font-size: 24px;
    cursor: pointer;
    opacity: .75;
    z-index: 2;
}

.artist-arrow:hover {
    opacity: 1;
}

.artist-arrow--left {
    left: 16px;
}

.artist-arrow--right {
    right: 16px;
}

@media (max-width: 880px) {
    .artist-track {
        gap: 24px;
    }

    .artist-slide {
        flex-basis: 100%;
    }

    /* 1枚表示に落とす */
    .artist-arrow--left {
        left: 8px;
    }

    .artist-arrow--right {
        right: 8px;
    }
}


/* ========== Company ========== */

/* ========== Company ========== */

.company-head {
    /* 下のパディングを削って、スクショのように画像を近づける */
    padding: 80px 0 0;
    background: #111318;
}

.company-head-inner {
    text-align: center;
    margin-bottom: 32px;
}

.company-head-ja {
    margin: 0 0 4px;
    font-size: 20px;
}

.company-head-en {
    margin: 0;
    font-size: 44px;
    letter-spacing: 0.26em;
}

/* 会社概要ヒーローエリア */
.company-hero {
    position: relative;
}

/* 背景画像のサイズをスクショくらいのバナー高さに固定 */
.company-hero-media {
    width: 100%;
    height: 360px;
    /* ← スクショとほぼ同じ高さ。大きければ 340、小さければ 380 に調整OK */
    overflow: hidden;
}

.company-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* バナーとして中央を切り抜く */
    object-position: center;
    display: block;
}

/* オーバーレイは薄く上に被せる */
.company-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.24), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.35;
    z-index: 1;
}

/* 中央のテキスト */
.company-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    z-index: 2;
    /* 画像より前面に */
    color: #f6f6f6;
}

.company-hero-content h3 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.2vw, 32px);
    /* スクショのように大きめ */
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.company-hero-content p {
    margin: 0;
    font-size: clamp(14px, 1.6vw, 17px);
}

/* 企業理念・事業内容セクションは少しだけ余白 */
.company-detail {
    background: radial-gradient(circle at top, #2a303c, #111318);
    padding: 60px 0 80px;
}


/* Detail */

.company-detail {
    background: radial-gradient(circle at top, #2a303c, #111318);
}

.company-subtitle {
    margin: 0 0 16px;
    font-size: 22px;
    text-align: center;
}

.company-subtitle--mt {
    margin-top: 48px;
}

.company-body {
    max-width: 820px;
    margin-inline: auto;
    font-size: 14px;
    color: #d0d0d0;
    text-align: center;
}

/* ========== Tech strips ========== */

.tech-section {
    background: radial-gradient(circle at top, #303540, #111318);
}

.tech-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 1つひとつ縦積みで中央寄せ */
.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 横長の角丸画像＋中にタイトル */
.tech-media {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 12px;
}

.tech-media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 999px;
}

/* 画像の中央に載せるタイトル */
.tech-media-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    letter-spacing: 0.18em;
    font-weight: 500;
}

/* 画像の下に1行の説明 */
.tech-caption {
    margin: 0;
    font-size: 14px;
    color: #d0d0d0;
    max-width: 880px;
}

/* ========== Link sections ========== */

.link-section {
    text-align: center;
}

.link-lead {
    margin: 0 0 10px;
    font-size: 18px;
}

.link-sub {
    margin: 0 0 32px;
    font-size: 13px;
    color: #d0d0d0;
}

/* ========== Footer ========== */

.site-footer {
    padding: 32px 0 40px;
    background: #05060a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    font-size: 13px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-nav a {
    color: #d0d0d0;
}

/* フッターを基準にする */
.site-footer {
    position: relative;
    overflow: visible;
    /* 切られるの防止 */
}

/* ロゴを前面に出して固定 */
.site-footer .logo {
    position: absolute;
    z-index: 5;
    /* 前面へ */
    right: 18%;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
}

/* 画像が0サイズにならないように */
.site-footer .logo img {
    height: clamp(20px, 2.6vw, 28px);
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.85;
}



/* ========== Responsive ========== */

@media (max-width: 880px) {
    .site-nav ul {
        flex-direction: column;
    }

    .product-grid,
    .artist-grid,
    .artist-text-grid {
        padding-inline: 24px;
        grid-template-columns: 1fr;
    }

    .company-head-en {
        font-size: 32px;
    }

    .outline-btn,
    .outline-btn--large,
    .bizen-btn {
        width: min(320px, 100%);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding-top: 32vh;
    }

    .hero-title {
        font-size: 26px;
    }

    .video-label {
        font-size: 22px;
    }

    .tech-media img {
        height: 130px;
    }

    .tech-media-label {
        font-size: 18px;
        letter-spacing: 0.12em;
    }
}

/* ===== ハンバーガーメニュー用 ナビの最終指定 ===== */
.site-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 8, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    /* ★ 初期状態は画面の上に隠す */
    transition: transform 0.25s ease;
    z-index: 35;
}

.site-nav.open {
    transform: translateY(0);
    /* ★ open が付いたら降りてくる */
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    font-size: 13px;
}



/* metaページ↓ */
/* ================= Meta Page ================= */

.meta-page {
    background: #111;
    padding-bottom: 120px;
}

.meta-hero {
    text-align: center;
    padding: 120px 20px 60px;
}

.meta-hero h1 {
    margin: 0 0 16px;
    font-size: 40px;
}

.meta-hero p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
}

.meta-form-wrap {
    display: flex;
    justify-content: center;
}

.meta-form-box {
    background: #6b6b6b;
    width: 100%;
    max-width: 820px;
    padding: 40px;
}

.meta-row {
    margin-bottom: 24px;
}

.meta-row label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.meta-row input,
.meta-row textarea {
    width: 100%;
    background: #777;
    border: 1px solid #aaa;
    color: #fff;
    padding: 10px;
    font-size: 13px;
}

.meta-row textarea {
    height: 120px;
    resize: none;
}

.meta-row--top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
}

.meta-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.meta-actions button {
    background: #888;
    border: 1px solid #ccc;
    padding: 8px 14px;
    font-size: 12px;
}

.meta-row--grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.meta-size {
    display: flex;
    gap: 8px;
}

.meta-extra {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* =========================
   Responsive & A11y Add-ons
   （HTMLは変更なし／追記だけ）
   ========================= */

/* フォーカス可視化（キーボード操作しやすく） */
:focus-visible {
    outline: 2px solid #9ecbff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 主要画像のアスペクト確保でCLS低減（HTML変更なし） */
.hero-media img,
.company-hero-media img {
    aspect-ratio: 16 / 9;
}

.product-card img {
    aspect-ratio: 4 / 3;
}

.artist-card img {
    aspect-ratio: 4 / 3;
}

.tech-media img {
    aspect-ratio: 6 / 1;
}

/* 狭幅時の左右余白をやや広げて読みやすく */
@media (max-width: 768px) {
    .container {
        width: min(1120px, 100% - 28px);
    }
}

/* セクション余白を流体化（読みやすさUP） */
:root {
    --space-v: clamp(48px, 8vw, 80px);
}

.section {
    padding: var(--space-v) 0;
}

/* ヒーロー：縦が短い端末で圧縮 */
@media (max-width: 640px) {
    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding-top: 28vh;
        padding-bottom: 12vh;
    }

    .hero-sub {
        font-size: 14px;
    }
}

/* CTA/ボタン類：タップ領域の最低48pxを確保 */
.bizen-btn,
.outline-btn,
.outline-btn--large,
.nav-toggle {
    min-height: 48px;
}

/* Products：段階縮退（PC2 → タブレット2 → スマホ1） */
@media (max-width: 1024px) {
    .product-grid {
        gap: 28px;
        padding-inline: 24px;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-inline: 12px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-author {
        font-size: 14px;
        opacity: .9;
    }
}

/* スライダー矢印：小型化＆タップしやすく */
.slider-arrow,
.artist-arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(4px);
}

@media (max-width: 640px) {

    .slider-arrow,
    .artist-arrow {
        font-size: 18px;
    }
}

/* Video：重なり調整 */
@media (max-width: 640px) {
    .video-section {
        padding: 48px 0;
    }

    .video-label {
        font-size: 18px;
        letter-spacing: .12em;
    }
}

/* Techストリップ：高さと文字サイズの段階縮小 */
@media (max-width: 880px) {
    .tech-media img {
        height: 120px;
    }

    .tech-media-label {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tech-media img {
        height: 100px;
    }

    .tech-media-label {
        font-size: 16px;
        letter-spacing: .1em;
    }
}

/* 会社概要：極小幅のタイトル詰まり解消＋バナー高さ調整 */
@media (max-width: 480px) {
    .company-head-en {
        font-size: 28px;
        letter-spacing: .18em;
    }

    .company-hero-media {
        height: 260px;
    }
}

/* フッターロゴ：小画面は絶対配置を解除して崩れ防止 */
@media (max-width: 640px) {
    .site-footer .logo {
        position: static;
        margin-top: 16px;
    }
}

/* ユーザーが動きを減らす設定時の配慮 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}


/* ボタン系：フォント＆余白を画面幅で自動縮小＋1行保持 */
.bizen-btn,
.outline-btn,
.outline-btn--large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    white-space: nowrap;
    /* ← 改行させない */
    font-size: clamp(14px, 3.8vw, 18px);
    /* ← 画面が狭いほど小さく */
    padding: clamp(10px, 2.8vw, 18px) clamp(20px, 6vw, 96px);
    /* ← 余白も縮む */
    letter-spacing: clamp(0.08em, 0.5vw, 0.18em);
    /* ← 詰める */
    max-width: 100%;
}

.bizen-btn .arrow,
.outline-btn .arrow {
    margin-left: clamp(10px, 2vw, 24px);
    /* ← 矢印の間隔も可変 */
    flex: 0 0 auto;
    /* ← 矢印だけの折返し防止 */
}

/* さらに狭い端末での保険：一回り小さく＆横paddingを減らす */
@media (max-width: 360px) {

    .bizen-btn,
    .outline-btn,
    .outline-btn--large {
        font-size: clamp(13px, 4.2vw, 16px);
        padding-left: clamp(14px, 4.8vw, 20px);
        padding-right: clamp(14px, 4.8vw, 20px);
        letter-spacing: 0.06em;
    }
}

/* センター配置のまま、はみ出し防止（稀に効く保険） */
.section-cta {
    display: flex;
    justify-content: center;
}

/* =========================
   SPのみ：フッターをロゴだけにする
   ========================= */
@media (max-width: 640px) {
    .company-body {
        font-size: 13px;
        text-align: left;
    }

    /* ナビは消す（＝フッターを実質なくす） */
    .site-footer .footer-nav {
        display: none !important;
    }

    /* フッターの背景/線/余白など「フッター感」を消す */
    .site-footer {
        background: transparent !important;
        border-top: none !important;
        padding: 18px 0 22px !important;
        /* ロゴだけ見せる最低限 */
    }

    /* container内の横並びを解除して中央へ */
    .site-footer .footer-inner {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
    }

    /* ロゴを中央に固定（absolute/右寄せ等を無効化） */
    .site-footer .footer-logo {
        margin: 0 !important;
    }

    .site-footer .footer-logo .logo {
        position: static !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }

    /* ロゴサイズ（お好みで微調整OK） */
    .site-footer .footer-logo .logo img {
        height: 24px;
        /* 22〜28くらいで調整 */
        width: auto;
        opacity: 0.9;
    }
}
