/* パンダ合同会社 公式サイト
   配色は社内システム HaruYuka のピンクを基調に、アパレルらしい白ベースで落ち着かせたもの */
:root {
    color-scheme: light;
    --bg:        #ffffff;
    --band:      #fdf4f7;   /* 淡いピンクの帯 */
    --border:    #f0e3e8;
    --edge:      #efd3dd;
    --text:      #3a2a32;
    --text-sub:  #6f5d66;
    --text-mute: #9c8993;
    --primary:   #c9426f;
    --primary-h: #a8315a;
    --gold:      #c5a572;
    --radius:    14px;
    --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
    --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-size: 16px; line-height: 1.95;
    -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
a { color: var(--primary); text-underline-offset: 0.2em; }
a:hover { color: var(--primary-h); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* 小さな等幅ラベル（社内システムの「R-005 · SETTINGS」と同じ作法） */
.t-mono {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-mute);
}
.t-mono b { color: var(--primary); font-weight: 500; }

/* ヘッダー */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none;
         font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.06em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand svg { width: 1.7rem; height: 1.7rem; flex-shrink: 0; }
.nav { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text-sub); text-decoration: none; font-size: 0.88rem; font-weight: 500;
         padding: 0.4rem 0.7rem; border-radius: 6px; white-space: nowrap; }
.nav a:hover { color: var(--primary); background: var(--band); }

/* ヒーロー */
.hero { padding: 6rem 0 5rem; background: linear-gradient(180deg, var(--band), var(--bg)); }
.hero h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 5vw, 3.1rem);
           line-height: 1.5; letter-spacing: 0.06em; margin: 1rem 0 1.5rem; }
.hero .lead { max-width: 38em; color: var(--text-sub); font-size: 1.02rem; }

/* 取引の流れ — 仕入先・当社・取引先を一本の線で結ぶ */
.route { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; margin-top: 4rem; }
.route .node { text-align: center; min-width: 9.5em; }
.route .star { display: block; color: var(--primary); font-size: 1rem; line-height: 1; }
.route .node.self .star { font-size: 1.6rem; margin-top: -0.3rem; }
.route .name { display: block; margin-top: 0.7rem; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.05em; line-height: 1.5; }
.route .place { display: block; margin-top: 0.2rem; }
.route .link { text-align: center; padding: 0 0.5rem; }
.route .link::before { content: ""; display: block; height: 1px; margin-top: 0.5rem;
                       background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent); }
.route .link span { display: block; margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-sub); line-height: 1.7; }

/* セクション共通 */
.sec { padding: 4.5rem 0; border-top: 1px solid var(--border); }
.sec h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.8rem);
          letter-spacing: 0.08em; line-height: 1.5; margin: 0.4rem 0 2rem; }
.sec h2::after { content: ""; display: block; width: 2.5rem; height: 1px; background: var(--gold); margin-top: 0.9rem; }
.prose { max-width: 42em; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; }
#business .cols { gap: 1.25rem; }

.card { background: var(--bg); border: 1px solid var(--edge); border-radius: var(--radius); padding: 1.75rem; }
.card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.04em; line-height: 1.6; margin: 0.5rem 0 0.9rem; }
.card p { color: var(--text-sub); font-size: 0.95rem; }

/* 主要仕入先 — 2段の帯がゆっくり流れる（マウスを載せると止まる） */
.marquee { overflow: hidden; padding: 0.45rem 0;
           -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
                   mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0 1.15rem; display: flex; flex-wrap: wrap; gap: 0.7rem 0; justify-content: center; }
.marquee-track li { margin-right: 0.9rem; padding: 0.55rem 1.3rem; border: 1px solid var(--edge); border-radius: 999px;
                    background: var(--bg); white-space: nowrap; display: flex; align-items: baseline; gap: 0.8rem; }
.marquee-track [aria-hidden] { display: none; }
.brands { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mute); letter-spacing: 0.02em; }
.note { color: var(--text-mute); font-size: 0.85rem; margin-top: 1.4rem; }
@media (prefers-reduced-motion: no-preference) {
    .marquee-track.is-ready { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0;
                              animation: flow 60s linear infinite; }
    .marquee-track.is-ready [aria-hidden] { display: flex; }
    .marquee-track.rev { animation-direction: reverse; }
    .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes flow { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* 会社概要 */
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 1.05rem 0.25rem; border-bottom: 1px solid var(--border); }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 0; }
.profile th { width: 9.5em; color: var(--text-sub); font-weight: 500; white-space: nowrap; }
.profile td a { color: var(--text); }

/* お問い合わせ */
#contact { background: var(--band); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.contact .card { display: flex; flex-direction: column; gap: 0.3rem; }
.contact .big { font-family: var(--font-mono); font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.contact .big:hover { color: var(--primary); }

/* フッター */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; color: var(--text-sub); font-size: 0.88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer strong { color: var(--text); font-family: var(--font-head); font-weight: 600; letter-spacing: 0.06em; }
.site-footer .right { text-align: right; }

/* 下層ページ（プライバシーポリシー） */
.doc { padding: 4rem 0 5rem; }
.doc h1 { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.08em; font-size: clamp(1.5rem, 4vw, 2rem); margin: 0.4rem 0 2rem; }
.doc h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; font-size: 1.1rem; margin: 2.2rem 0 0.6rem; }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc .prose { color: var(--text-sub); }
.doc .prose h2 { color: var(--text); }

@media (max-width: 760px) {
    .wrap { padding: 0 1.15rem; }
    .site-header .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-top: 0.6rem; }
    .nav { margin: 0 -0.5rem; padding-bottom: 0.4rem; }
    html { scroll-padding-top: 7rem; }
    .hero { padding: 3.5rem 0 3rem; }
    .cols, .contact { grid-template-columns: 1fr; }
    .sec { padding: 3.25rem 0; }
    /* 流れ図は縦並びに */
    .route { grid-template-columns: 1fr; justify-items: center; margin-top: 3rem; }
    .route .link { display: flex; flex-direction: column; align-items: center; padding: 0.4rem 0; }
    .route .link::before { width: 1px; height: 2.2rem; margin: 0.6rem 0 0; background: var(--gold); }
    .route .link span { margin: 0.5rem 0 0.9rem; }
    .profile th, .profile td { display: block; width: auto; }
    .profile th { padding-bottom: 0; border-bottom: 0; font-size: 0.85rem; }
    .profile td { padding-top: 0.2rem; }
    .site-footer .right { text-align: left; }
}
