/* 基本設定 */
:root {
    --bg-color: #fdfbfb; /* ほぼ白に近い温かみのある背景 */
    --accent-color: #ffc2d1; /* 柔らかいピーチピンク */
    --sub-accent: #e2e2ff; /* 淡いラベンダー */
    --text-color: #5a5a5a;
    --white: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    margin: 0;
    line-height: 1.6;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px); /* すりガラス効果 */
    border-radius: 50px;
    z-index: 1000;
    padding: 10px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.logo {
    font-weight: 800;
    color: var(--accent-color);
}

/* バブルを表示するためのベース設定 */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* コンテンツの裏側に配置 */
    overflow: hidden;
    pointer-events: none; /* クリックを邪魔しない */
}

.bubble {
    position: fixed;
    top: 0;
    left: 0;
    /* ここが重要！ */
    width: 400px;
    height: 400px;
    border-radius: 50% !important; /* 絶対に丸！ */
    filter: blur(80px);
    opacity: 0.5;
    mix-blend-mode: soft-light;
    pointer-events: none;
    will-change: transform;
    z-index: -1;
}

/* 3つのバブルの色とサイズ */
.b1 { 
    width: 450px; 
    height: 450px; 
    background: #ffefba; /* シャーベットイエロー */
}

.b2 { 
    width: 550px; 
    height: 550px;
    background: #e2e2ff; /* ラベンダーブルー */
}

.b3 { 
    width: 400px; 
    height: 400px; 
    background: #ffc2d1; /* ピーチピンク */
}

/* ぷっくりとしたセクション共通 */
.section-padding {
    padding: 80px 20px;
    text-align: center;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ヒーローセクション：虹色のグラデーション */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* ここを透明にするとバブルがよく見えます */
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* 追従お問い合わせボタン：キャンディ風 */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 40px;
    background: var(--accent-color);
    color: white;
    padding: 20px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(255, 194, 209, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
    writing-mode: vertical-rl; /* 縦書きでおしゃれに */
}

.floating-contact:hover {
    transform: scale(1.1) translateY(-5px);
}

/* ぷっくりカードデザイン */
/* サービスセクション全体の背景（少しピンクを混ぜて） */
#services {
    background: linear-gradient(135deg, #fff5f8, #fdfbfb);
    position: relative;
    overflow: hidden;
}

/* カードを並べるグリッド（間隔を少し広げてゆったりと） */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; /* マージンを広く */
    padding: 40px;
    max-width: 1200px;
}

/* サービスカード（ここが主役！） */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 40px; /* 角を思いっきり丸く */
    padding: 40px 30px;
    text-align: center;
    position: relative;
    
    /* 1. マシュマロみたいな「ぷっくり感」の秘密（Neumorphism） */
    box-shadow: 20px 20px 60px #e6e6e6, -20px -20px 60px #ffffff;
    
    /* 2. 触ったときの「ぷよん」とした動きを設定 */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden; /* 中のキラキラをはみ出させない */
}

/* 3. 触った（ホバーした）瞬間の魔法 */
.service-card:hover {
    transform: translateY(-15px) scale(1.03); /* 少し浮き上がって膨らむ */
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-color);
    box-shadow: 0 30px 60px rgba(255, 194, 209, 0.3); /* 影もピンクに */
}

/* 4. 各カードに個別のテーマカラー（左側の帯） */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 15px; height: 100%;
    border-radius: 40px 0 0 40px;
}

/* 4つのカードに、別々の「味（色）」をつけます */
.service-card:nth-child(1)::before { background: #ffefba; } /* レモン */
.service-card:nth-child(2)::before { background: #e2e2ff; } /* ラベンダー */
.service-card:nth-child(3)::before { background: #ffc2d1; } /* ピーチ */
.service-card:nth-child(4)::before { background: #a1c4fd; } /* ソーダ */

/* カードの中の文字 */
.service-card h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.service-card p {
    font-size: 0.95rem;
    color: #7a7a7a;
    line-height: 1.7;
}

.floating-contact {
    animation: purupuru 3s infinite; /* 常にぷるぷる動いて注目を集める */
}

/* グリッドレイアウト */
.grid-4, .grid-5 {
    display: grid;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* セクションタイトル */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--sub-accent);
    opacity: 0.5;
    z-index: -1;
    border-radius: 10px;
}

.section-padding {
    padding: 80px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2); /* 真っ白ではなく、うっすら透かす */
}

.alt-bg {
    background: rgba(226, 222, 255, 0.1) !important; /* 薄いラベンダーを透かす */
}

/* 会社概要のリスト */
.company-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    background: white;
    padding: 40px;
    border-radius: 40px;
    box-shadow: inset 5px 5px 10px #f0f0f0, inset -5px -5px 10px #ffffff;
}

dt { font-weight: bold; color: var(--accent-color); }
