@charset "UTF-8";

/* ==========================================================================
   1. リセット & 共通変数・ベース設定
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #f8fafc;
    --color-text-main: #334155;
    --color-text-dark: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-border: #f1f5f9;
    --color-placeholder-bg: #e2e8f0;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 1280px;

    /* --- プリズム（虹色）アクセント用グラデーション ---
       ワンポイントでしか使わないので、彩度高めでもOK。
       使う側で opacity / filter:blur を必ずかけて「主張しすぎない」ようにする。 */
    --gradient-prism: linear-gradient(90deg, #ff6b9d, #ffb347, #ffe66d, #6bff9d, #6bc7ff, #a78bfa, #ff6b9d);
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* 共通コンテナ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ワイヤーフレーム用プレースホルダー画像共通定義 */
.image-placeholder {
    background-color: var(--color-placeholder-bg);
    border: 2px dashed #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

/* 共通セクションヘッダー */
.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}
.section-tag {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.6rem;
}
/* プリズムアクセント：セクションタグ下の小さな虹色ライン */
.section-tag::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient-prism);
    opacity: 0.7;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }
.section-desc {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
@media (min-width: 640px) { .section-desc { font-size: 1rem; } }


/* ==========================================================================
   2. ヘッダー (header.php)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-b: 1px solid var(--color-border);
}
/* プリズムアクセント：ヘッダー下端のうっすら虹色ライン */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gradient-prism);
    opacity: 0.3;
    pointer-events: none;
}
.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 640px) { .header-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .header-container { padding: 0 2rem; } }

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: var(--color-text-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    position: relative;
}
/* プリズムアクセント：ロゴアイコンの背後にうっすら虹色のハロー */
.logo-icon::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: var(--gradient-prism);
    opacity: 0.55;
    filter: blur(4px);
    z-index: -1;
}
.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text-dark);
}

.header-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a:hover { color: var(--color-text-dark); }

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-download {
    display: none;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    border-radius: 0.5rem;
}
@media (min-width: 640px) { .btn-download { display: inline-block; } }
.btn-download:hover { background-color: #e2e8f0; }

.btn-cta {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--color-text-dark);
    border-radius: 0.5rem;
    text-align: center;
}
.btn-cta:hover { background-color: #1e293b; }


/* ==========================================================================
   3. ヒーローセクション (index.php)
   ========================================================================== */
.hero-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    isolation: isolate;
}
/* プリズムアクセント：画面（ビューポート）の実際の左端からうっすら差し込む虹色の光。
   left:50%; transform:translateX(-50vw) は、中央寄せされた .hero-section の中からでも
   要素の左端を「ページの本当の左端」に固定するためのテクニック。
   これにより margin: 0 auto で生まれる左右の余白を無視して、画面端から光が差し込むように見える。 */
.hero-section::before {
    content: "";
    position: absolute;
    top: -18%;
    left: 50%;
    transform: translateX(-50vw);
    width: min(46rem, 100vw);
    height: 130%;
    background: conic-gradient(from 115deg at 0 0,
        #ff6b9d, #ffb347, #ffe66d, #6bff9d, #6bc7ff, #a78bfa, #ff6b9d);
    filter: blur(70px);
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(38rem 34rem at 0 0, black 0%, transparent 70%);
            mask-image: radial-gradient(38rem 34rem at 0 0, black 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}
/* プリズムアクセント：光の帯（プリズムを通り抜けたような一筋の光を演出）。
   同じテクニックで画面左端を起点にする。 */
.hero-section::after {
    content: "";
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50vw);
    width: min(28rem, 100vw);
    height: 180%;
    background: linear-gradient(252deg, rgb(223 150 150 / 59%) 0%, rgba(255, 196, 225, 0.28) 28%, rgb(134 171 255 / 20%) 55%, transparent 78%);
    filter: blur(30px);
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}
/* PC幅では余白（margin:auto）が広くなる分、光の届く範囲を広げて
   キャッチコピー中央あたりまで自然に色が回り込むように調整。
   起点はあくまで画面の実際の左端のまま。 */
@media (min-width: 1024px) {
    .hero-section::before {
        width: min(110rem, 100vw);
        height: 200%;
        -webkit-mask-image: radial-gradient(105rem 65rem at 0 0, black 0%, black 40%, transparent 88%);
                mask-image: radial-gradient(105rem 65rem at 0 0, black 0%, black 40%, transparent 88%);
    }
    .hero-section::after {
        width: min(50rem, 100vw);
        height: 240%;
    }
}
@media (min-width: 768px) { .hero-section { padding: 7rem 1.5rem; } }
.hero-inner {
    max-width: 48rem;
    margin: 0 auto;
}
.hero-badge {
    display: contents;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    /* プリズムアクセント：バッジのふちにうっすら虹色ボーダー */
    border: 1px solid transparent;
    background-image: linear-gradient(#f1f5f9, #f1f5f9), var(--gradient-prism);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3rem; } }
.br-desktop { display: none; }
@media (min-width: 640px) { .br-desktop { display: inline; } }

.hero-lead {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .hero-lead { font-size: 1.125rem; } }

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.btn-primary {
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-text-dark);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
/* プリズムアクセント：ボタンhover時にうっすら虹色の光彩を追加 */
.btn-primary:hover {
    background-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 0 20px 2px rgba(167,139,250,0.18);
}

.btn-secondary {
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
}
.btn-secondary:hover { background-color: #f8fafc; }

.hero-note {
    font-size: 0.75rem;
    color: var(--color-text-light);
}


/* ==========================================================================
   4. 実績ロゴセクション (index.php)
   ========================================================================== */
.logos-section {
    background-color: #f8fafc;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}
.logos-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 1.5rem;
}
.logos-grid {
    display: grid;
    grid-template-cols: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;
    align-items: center;
    opacity: 0.7;
}
@media (min-width: 768px) { .logos-grid { grid-template-cols: repeat(5, 1fr); } }
.logo-item {
    width: 8rem;
    height: 3rem;
    font-size: 0.75rem;
    font-family: monospace;
}


/* ==========================================================================
   5. 共通カード & グリッドシステム (index.php)
   ========================================================================== */
.pain-points-section, .product-section, .cases-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1rem;
}
@media (min-width: 768px) { 
    .pain-points-section, .product-section, .cases-section { padding: 6rem 1.5rem; } 
}

.cards-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .cols-2 { grid-template-cols: repeat(2, 1fr); }
    .cols-3 { grid-template-cols: repeat(3, 1fr); }
}

/* 基本の白カードデザイン */
.card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ホログラム調の背景（添付イメージを参考にしたパステル虹色の光沢）
   card-center にのみ適用。白基調を崩さないよう、彩度・不透明度は抑えめに。 */
.card.card-center {
    background:
        radial-gradient(120% 120% at 12% 15%, rgba(255,182,213,0.55) 0%, transparent 42%),
        radial-gradient(120% 120% at 88% 8%,  rgba(168,199,255,0.50) 0%, transparent 48%),
        radial-gradient(140% 140% at 75% 88%, rgba(205,178,255,0.45) 0%, transparent 52%),
        radial-gradient(120% 120% at 8% 92%,  rgba(255,236,196,0.35) 0%, transparent 48%),
        linear-gradient(135deg, #fdfcff 0%, #f7f6fc 100%);
    border-color: rgba(255,255,255,0.7);
}

/* きらめき（微細なドットで光の粒を表現） */
.card.card-center::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.85) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1.6px);
    background-size: 70px 70px, 100px 100px;
    background-position: 0 0, 35px 45px;
    opacity: 0.55;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* シルクのような光の帯。hoverでゆっくり通り抜ける */
.card.card-center::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 55%;
    height: 200%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    transform: rotate(20deg);
    transition: left 0.7s ease;
    pointer-events: none;
    opacity: 0.8;
}
.card.card-center:hover::before {
    left: 120%;
}

/* テキストやアイコンを光の帯・きらめきより手前に表示 */
.card.card-center > * {
    position: relative;
    z-index: 1;
}
.icon-placeholder {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}
.card-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}
.card-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* プリズムアクセント：カード上部の細い虹色ライン（card / product-card / case-card 共通） */
.card::before,
.product-card::before,
.case-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-prism);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.card:hover::before,
.product-card:hover::before,
.case-card:hover::before {
    opacity: 0.8;
}


/* ==========================================================================
   6. 強みセクション（対比図） (index.php)
   ========================================================================== */
.strength-section {
    background-color: #f8fafc;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 4rem 0;
}
@media (min-width: 768px) { .strength-section { padding: 6rem 0; } }

.strength-grid {
    display: grid;
    gap: 3rem;
}
@media (min-width: 1024px) { .strength-grid { grid-template-cols: repeat(2, 1fr); align-items: center; } }

.strength-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
}
.strength-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}
.strength-list {
    margin-bottom: 1.5rem;
}
.strength-list li {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}
.strength-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--color-text-light);
}
.strength-img {
    height: 10rem;
    font-size: 0.75rem;
    font-family: monospace;
}


/* ==========================================================================
   7. 製品紹介セクション (index.php)
   ========================================================================== */
.product-card {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-img {
    height: 12rem;
    border-radius: 0;
    font-family: monospace;
    font-size: 0.75rem;
}
.product-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background-color: #f1f5f9;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}
.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}
.product-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}
.product-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-link-note {
    font-size: 0.75rem;
    color: var(--color-text-light);
}
.product-more-btn {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-dark);
}
.product-more-btn:hover { text-decoration: underline; }


/* ==========================================================================
   8. 導入事例セクション (index.php)
   ========================================================================== */
.cases-section {
    background-color: #f8fafc;
    border-top: 1px solid var(--color-border);
}
.case-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.case-img {
    width: 100%;
    height: 10rem;
    font-size: 0.75rem;
    font-family: monospace;
    margin-bottom: 1rem;
}
.case-meta {
    font-size: 0.75rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.25rem;
}
.case-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}
.case-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}
.case-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-light);
}
.case-result {
    font-weight: 700;
    color: #475569;
}
.cases-more-area {
    text-align: center;
    margin-top: 3rem;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}
.btn-outline:hover { background-color: #f8fafc; }


/* ==========================================================================
   9. 下部CTAセクション (index.php)
   ========================================================================== */
.bottom-cta-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1rem;
}
@media (min-width: 768px) { .bottom-cta-section { padding: 6rem 1.5rem; } }

.cta-box {
    background-color: #f1f5f9;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
/* プリズムアクセント：CTAボックス右上にぼかした虹色の光彩 */
.cta-box::before {
    content: "";
    position: absolute;
    width: 55%;
    aspect-ratio: 1;
    top: -25%;
    right: -12%;
    background: conic-gradient(from 90deg, #ff6b9d, #ffb347, #ffe66d, #6bff9d, #6bc7ff, #a78bfa, #ff6b9d);
    filter: blur(70px);
    opacity: 0.16;
    z-index: -1;
}
@media (min-width: 768px) { .cta-box { padding: 4rem; } }

.cta-tag {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1rem;
}
.cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}
@media (min-width: 640px) { .cta-title { font-size: 2.25rem; } }

.cta-desc {
    font-size: 0.875rem;
    color: #475569;
    max-width: 42rem;
    margin: 0 auto 2rem;
}
@media (min-width: 640px) { .cta-desc { font-size: 1rem; } }

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
}
@media (min-width: 640px) { .cta-buttons { flex-direction: row; max-width: none; } }

.cta-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}


/* ==========================================================================
   10. フッター (footer.php)
   ========================================================================== */
.site-footer {
    background-color: #f1f5f9;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-cols: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-cols: repeat(5, 1fr); } }

.brand-col {
    grid-column: span 2;
}
.brand-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    max-width: 20rem;
}

.footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-links space-y-2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    font-size: 0.75rem;
    color: var(--color-text-main);
}
.footer-links a:hover { text-decoration: underline; color: var(--color-text-dark); }

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
}
@media (min-width: 768px) { 
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } 
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}
.legal-links a:hover { text-decoration: underline; }