/*
Theme Name: GOODS LIST
Theme URI: https://goodslist.jp/
Author: panolabo (合同会社panolabo)
Description: 合同会社GOODS LIST コーポレートサイト用カスタムテーマ。1ページ集約・セクションスクロール構成。Gemini製デザインをWordPress化したもの。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: goodslist
*/

:root {
    --primary-color: #FF3D00;
    --accent-blue: #00A3FF;
    --bg-light: #fdfdfd;
    --text-main: #111111;
    --cursor-size: 10px;
    --cursor-outline-size: 44px;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* --- カスタムカーソル ---
   原本は全要素に cursor:none !important を無条件適用していたため、
   (1) JS失敗時にカーソルが消える (2)タッチ端末で無意味 という問題があった。
   マウス(pointer:fine)かつ JSが has-custom-cursor を付与したときだけ有効化する。 */
#custom-cursor, #custom-cursor-outline { display: none; }

@media (pointer: fine) {
    body.has-custom-cursor,
    body.has-custom-cursor *,
    body.has-custom-cursor *::before,
    body.has-custom-cursor *::after {
        cursor: none !important;
    }
    body.has-custom-cursor #custom-cursor,
    body.has-custom-cursor #custom-cursor-outline { display: block; }
}

#custom-cursor {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--primary-color);
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.1s ease-out;
    will-change: transform;
}

#custom-cursor-outline {
    width: var(--cursor-outline-size);
    height: var(--cursor-outline-size);
    border: 1.5px solid rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: border-color 0.3s ease, width 0.3s ease, height 0.3s ease;
    will-change: transform;
}

body.cursor-hover #custom-cursor {
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%) scale(0.5);
}

body.cursor-hover #custom-cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
    background-color: rgba(255, 61, 0, 0.05);
}

/* --- UI Elements --- */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), #FF7A00, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

.section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

/* --- フォーム入力欄 ---
   原本では .form-input が参照されているのに未定義で、入力欄が無装飾だった。
   デザインに合わせて定義を追加。 */
.form-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fafafa;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
}
.form-input::placeholder { color: #c9c9c9; }

/* --- カテゴリーホバーポップアップ --- */
.preview-popup {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    width: 200px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 50;
    background: white;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.category-card:hover .preview-popup {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.preview-blueprint {
    width: 100%;
    height: 110px;
    border-radius: 10px;
    position: relative;
    background-color: #fcfcfc;
    border: 1.5px dashed rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blueprint-grid {
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 10px 10px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    transition: all 0.3s ease;
    position: relative;
}
.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

/* --- WORKS 写真スロット ---
   実績写真を入れる場合、.work-photo に背景画像を設定するか <img> を入れる。
   未設定時は下のSVGワイヤーフレームがプレースホルダーとして表示される。 */
.work-photo {
    width: 100%;
    height: 12rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.work-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile-table dt {
    color: #bbb;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.profile-table dd {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 0.75rem;
    line-height: 1.7;
}

.nowrap { white-space: nowrap; }

/* スパム避けハニーポット（人間には見えない） */
.gl-hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
