@charset "UTF-8";

/* --- 1. 基本設定 --- */
:root {
    --bg-color: #F9F9F9;
    --main-accent: #CC00FF; /* ★ピンクからネオン・バイオレットに変更 */
    --sub-accent: #00BCD4;
    --text-color: #1A1A40; /* ★真っ黒より馴染むミッドナイトネイビーに */
}

[data-theme="dark"] {
    --bg-color: #1A1A2E;
    --main-accent: #FF007F;
    --sub-accent: #FFD700;
    --text-color: #FFFFFF;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: 0.5s;
    margin: 0;
}

/* ★ Maho's Portfolio の設定 */
h1 {
    font-family: 'Lobster', cursive !important;
    color: var(--text-color) !important; 
    font-size: 2.5rem;
    padding-left: 20px;
    margin: 0;
    transition: color 0.5s;
    /* 背景を暗くしない代わりに、文字の影を少し広げて浮かせるよ */
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.6); 
}

h1, h2, .about-text p {
    /* 共通の影設定（必要に応じて） */
}

/* ★ 18歳で渡仏し… の説明文 */
.about-text {
    background: rgba(255, 255, 255, 0.75); /* 少しだけ不透明度を上げたよ */
    padding: 20px;
    border-radius: 15px;
    color: #1A1A40; /* 文字を濃いネイビーに */
}

/* タイトル（ネオン・バイオレット） */
/* 文字の色だけを「目立つ紫」に変更（背景は明るいまま！） */
/* タイトル系の色設定 */
.section-title, .my-journey h3, #mode-text {
    font-family: 'Lobster', cursive !important;
    
    /* ★案A（イエロー）なら #F4FA58 / 案B（濃いピンク）なら #FF007F に書き換えてみて！ */
    color: #FF007F !important; 
    
    /* 背景が明るいから、文字の影を少し「濃いめ」にすると読みやすさが爆上がりするよ */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 0;
}


/* --- 2. スイッチ部分 --- */
.theme-switch-wrapper { display: flex; align-items: center; gap: 15px; padding: 20px; }
#mode-text { font-size: 1.8rem !important; }
.theme-switch { display: inline-block; height: 34px; position: relative; width: 60px; }
.theme-switch input { display: none; }
.slider { background-color: #ccc; position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; transition: .4s; border-radius: 34px; }
.slider:before { background-color: #fff; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; position: absolute; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--sub-accent); }
input:checked + .slider:before { transform: translateX(26px); }

/* --- 3. 自己紹介セクション --- */
.about-section { padding: 60px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 3.5rem; text-align: center; margin-bottom: 40px; }

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px 40px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.record-player-frame {
    flex-shrink: 0;
    width: 200px; height: 200px;
    background-color: #111;
    border-radius: 50%;
    border: 5px solid var(--sub-accent);
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
    animation: spin 10s linear infinite;
}
.my-illustration { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- 4. My Journey（カード） --- */
.my-journey { width: 100%; margin-top: 50px; text-align: center; }
.my-journey h3 { font-size: 2.8rem; margin-bottom: 30px; }

.journey-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.journey-item {
    position: relative; /* 重ねるための準備 */
    background: rgba(255, 255, 255, 0.8) !important; /* 前の白い箱 */
    border-radius: 15px !important;
    padding: 20px !important;
    margin: 30px; /* ここで外側に余白を作る */
    
    /* ★これが「後ろの透明な箱」を作る魔法です */
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.2); 
    /* 0 0 0 30px は「ボカさずに15px分、外側に薄い白を広げる」という意味です */
}
.journey-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.3) !important;
    transition: 0.3s;
}

.journey-item img { width: 60px !important; margin-bottom: 15px; }

.journey-item strong {
    font-family: 'Lobster', cursive !important;
    font-size: 1.4rem;
    color: #D81B60 !important; 
    
    margin-bottom: 10px;
    display: block;
    
    /* 念のため、文字の後ろに「白い光」をほんのり入れると、よりパキッとします */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.journey-item p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 !important;
}

.journey-item:nth-child(1) p,
.journey-item:nth-child(3) p {
    margin-top: 20px !important;
}

/* --- 5. 背景動画設定 --- */
.video-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 130% !important;
    height: 130% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: -5% !important;
    left: -5% !important;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* 背景を暗くしすぎず、動画の色をそのまま出す設定 */
    background: rgba(0, 0, 0, 0); 
}

@keyframes backgroundScroll {
    0% { background-position: 0 center; }
    100% { background-position: -2000px center; }
}
/* --- 夜モード（data-theme='dark'）の最終兵器 --- */

/* 1. 動画の色をネオンに */
[data-theme='dark'] #bg-video {
    filter: brightness(0.5) contrast(1.2) saturate(1.6) hue-rotate(275deg) !important;
}

/* 2. ★白を「透明」にしてから「紫」を上塗りする */
[data-theme='dark'] .about-box, 
[data-theme='dark'] .about-content,
[data-theme='dark'] .journey-item,
[data-theme='dark'] div[class*="box"], 
[data-theme='dark'] div[class*="content"] {
    /* 昼の白を強制的に消し去る */
    background: rgba(30, 0, 60, 0.7) !important;
    background-color: rgba(30, 0, 60, 0.7) !important;
    background-image: none !important;

    /* 昨日作った「白い外枠（影）」をピンクに変える */
    box-shadow: 0 0 0 20px rgba(255, 0, 127, 0.2), 0 0 20px rgba(255, 0, 127, 0.6) !important;
    
    /* ネオンの縁取り */
    border: 3px solid #ff007f !important;
    color: #ffffff !important;
}

/* 3. ★箱の中にある「白い要素」を全部透明にする */
[data-theme='dark'] .about-box *, 
[data-theme='dark'] .journey-item *,
[data-theme='dark'] .about-content * {
    background-color: transparent !important;
    background: transparent !important;
}

/* 4. タイトルや文字をネオンピンクに爆光させる */
[data-theme='dark'] .section-title, 
[data-theme='dark'] h2, 
[data-theme='dark'] h3, 
[data-theme='dark'] strong {
    color: #ff007f !important;
    text-shadow: 0 0 5px #fff, 0 0 15px #ff007f, 0 0 30px #ff007f !important;
}

[data-theme='dark'] .my-journey strong {
    text-shadow: none !important;
    color: #ff007f !important; /* 文字の色は残す */
}

/* 5. ★一番頑固な「Maho's Portfolio」と「The Nicest Kids」を白く光らせる */
/* headerタグの中にある文字を全部ターゲットにするよ！ */
[data-theme='dark'] header h1, 
[data-theme='dark'] .site-title, 
[data-theme='dark'] .sub-title,
[data-theme='dark'] header p,
[data-theme='dark'] #site-description {
    color: #ffffff !important; /* 文字は白！ */
    /* ピンクのネオンの光を強くしたよ */
    0 0 2px rgba(255, 255, 255, 0.8), /* 文字の芯を少しだけ白く（これだけで読みやすくなる） */
  0 0 8px rgba(255, 0, 127, 0.3),   /* メインのピンクを「30%」の薄さにして遠くにぼかす */
  0 0 12px rgba(255, 0, 127, 0.2) !important; /* さらに薄く広げて、ボヤ〜っとさせる */
}

/* 6. その他の本文（説明文など）を白にする */
[data-theme='dark'] p, 
[data-theme='dark'] span,
[data-theme='dark'] .about-box p {
    color: #ffffff !important;
    text-shadow: none !important; /* 読みやすさのために影はなし */
}

/* 夜モードの時のサブタイトル（The Nicest Kids...）専用 */
[data-theme='dark'] .sub-title, 
[data-theme='dark'] header p,
[data-theme='dark'] .header-text p {
    color: #ff007f !important; /* ベースは濃いピンク */
    /* ここで白とピンクの光を重ねてネオンにするよ！ */
    text-shadow: 0 0 5px #fff, 0 0 10px #ff007f, 0 0 20px #ff007f, 0 0 40px #ff007f !important;
    font-weight: bold !important;
}

/*実績の部分*/

/* --- 1. 昼モードの見出し（共通デザイン） --- */
.my-works h3 {
    font-family: 'Lobster', cursive; /* もし他の見出しがLobsterならこれ */
    color: #D81B60;                 /* Mahoさんが指定したピンク */
    font-size: 2.8rem;              /* 指定のサイズ */
    text-align: center;
    margin-bottom: 30px;
    /* 他の見出しに「影」があるならここに追加してね */
}

/* 最初は透明で、少し下に下げておく（出番待ち） */
.my-works {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* JSが「画面に入った！」と判断してクラスをつけたら表示する */
/* もしJSで style.opacity = 1 を直接書き換える設定なら、ここはなくてもOK */

/* --- 2. 夜モードの見出し（爆光ネオン） --- */
[data-theme='dark'] .my-works h3 {
    color: #ff007f !important;
    /* 他の見出し（Nice to meet you!など）と同じ光らせ方にするよ */
    text-shadow: 0 0 5px #fff, 0 0 15px #ff007f, 0 0 30px #ff007f !important;
}

.work-featured {
    display: flex;
    flex-direction: column; /* スマホでは縦 */
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 実績の画像を表示する枠（テレビ本体） */
.work-display {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    /* 本体の色（クリーム色か、少し汚れた白がレトロ！） */
    background: #fdf5e6; 
    /* ブラウン管特有の「超丸い」角 */
    border-radius: 60px / 40px; 
    /* 厚みのあるフレーム（枠） */
    border: 15px solid #ebe0cc; 
    padding: 10px;
    box-shadow: 
        0 10px 0 #d9cfbb, /* 下側の影（立体感） */
        0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* 中の画像（画面部分） */
.work-display img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* 画面も少し丸くする */
    border-radius: 40px / 30px;
    /* 画面が少し奥まってる感じを出す影 */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    /* ちょっとだけザラついた質感を出す（隠し味） */
    filter: contrast(1.1) brightness(1.1);
}

/* テレビの反射（ハイライト）を上に重ねる */
.work-display::after {
    content: "";
    position: absolute;
    top: 5%;
    left: 10%;
    width: 30%;
    height: 20%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: none;
}

.tv-knobs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.tv-knobs span {
    width: 15px;
    height: 15px;
    background: #bbb;
    border-radius: 50%;
    border: 2px solid #999;
}

[data-theme='dark'] .work-display {
    border-color: #ff007f !important;
   /* 色を rgba に変えて、透明度（0.3 = 30%）を入れます */
    /* 20px と 40px だった広がりも、少しだけタイトにします */
    box-shadow: 
        0 0 10px rgba(255, 0, 127, 0.4), 
        0 0 20px rgba(255, 0, 127, 0.2) !important;
    
    /* 枠線自体の色も、もし強ければ少しだけ透明にすると馴染みます */
    border: 2px solid rgba(255, 0, 127, 0.6) !important;
}

.work-display img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.visit-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #ff007f;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.visit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px #ff007f;
}

/* --- 夜モード：Visit Siteボタンをネオン化 --- */

/* 1. 通常時（夜モードのネオン枠線スタイル） */
[data-theme='dark'] .visit-button {
    background-color: transparent !important; /* 背景を透明に */
    border: 2px solid #ff007f !important;    /* ピンクの枠線 */
    color: #ff007f !important;             /* 文字もピンク */
    text-shadow: 0 0 8px #ff007f !important; /* 文字を光らせる */
    box-shadow: 0 0 10px #ff007f, inset 0 0 5px #ff007f !important; /* 枠の外と内側を光らせる */
    font-family: 'Abril Fatface', cursive !important;
    font-weight: normal !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 10px 30px !important;
    transition: all 0.3s ease !important;
}

/* 2. マウスを乗せた時（パッと明るく塗りつぶす） */
[data-theme='dark'] .visit-button:hover {
    background-color: #ff007f !important;   /* 背景がピンクに */
    color: #fff !important;                /* 文字は白に */
    box-shadow: 0 0 20px #ff007f, 0 0 40px #ff007f !important; /* もっと光る！ */
    text-shadow: none !important;
}

/* 親要素（テレビと説明文のセット）をパネルにする */
.work-featured {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 40px;
    max-width: 950px; /* 少し広げるとゆったりします */
    margin: 50px auto;
    padding: 40px; /* 中に余白を作る */
    
    /* --- 昼モードのふわふわデザイン --- */
    background: rgba(255, 255, 255, 0.5); /* 半透明白 */
    backdrop-filter: blur(12px);         /* 背景ぼかし */
    border-radius: 40px;                 /* 角を丸く */
    border: 3px solid #fff;              /* 白い枠線 */
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* --- 夜モードのネオン囲い --- */
[data-theme='dark'] .work-featured {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: #ff007f !important;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4), inset 0 0 10px rgba(255, 0, 127, 0.2) !important;
}

/* もともと .work-info に付けていた背景などは消す */
.work-info {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    text-align: center; /* 中央寄せにするときれい */
}

.work-info h4 {
    /* --- ここから追加・修正 --- */
    display: block;             /* inline-blockからblockに変えると、中央寄せしやすくなるよ */
    margin: 0 auto 20px auto;   /* 真ん中に寄せる */
    width: fit-content;         /* 文字の長さに合わせる */
    max-width: 95%;             /* スマホで枠からはみ出さないように */
    line-height: 1.5;           /* 行間を広げて重なりを防止 */
    word-wrap: break-word;      /* 長い英語をいい感じに折る */
    overflow-wrap: break-word;
    /* ------------------------ */

    font-family: 'Abril Fatface', cursive;
    font-size: 1.4rem;
    padding: 10px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;

    /* 昼モードの色設定 */
    background: rgba(255, 255, 255, 0.8);
    color: #D81B60;
    border: 2px solid #D81B60;
    box-shadow: 4px 4px 0px rgba(216, 27, 96, 0.1);
}

/* 夜モードの設定（ここは今のままで完璧！） */
[data-theme='dark'] .work-info h4 {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ff007f !important;
    border-color: #ff007f !important;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.5) !important;
    text-shadow: 0 0 1px #ff007f;
}

/* タグの入れ物 */
.work-tags {
    display: flex;
    justify-content: center; /* 真ん中に並べる */
    flex-wrap: wrap;         /* スマホで入り切らない時に折り返す */
    gap: 12px;               /* タグ同士の間隔 */
    margin-top: 20px;
}

/* 1つ1つのタグ */
.work-tags span {
    font-size: 0.9rem;
    font-weight: bold;
    padding: 6px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    
    /* --- 昼：ミントグリーンやイエローでアクセント！ --- */
    background: #e0f7fa; /* 爽やかな水色 */
    color: #00838f;      /* 文字は濃いめの色 */
    border: 1px solid #b2ebf2;
}

/* 夜モード：ネオンブルーで光らせる */
[data-theme='dark'] .work-tags span {
    background: rgba(0, 255, 255, 0.1) !important;
    color: #00ffff !important;
    border: 1px solid #00ffff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

/* マウスを乗せたらぷるんと動く */
.work-tags span:hover {
    transform: translateY(-3px) scale(1.1);
    background: #D81B60; /* ホバーでメインのピンクに！ */
    color: #fff;
}

.work-next h5 {
    margin-top: 20px;
}

/* --- セクション全体の調整 --- */
.story-neon-section {
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

.neon-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* PCで1行に収めるために少し詰め気味に */
    max-width: 1250px;
    margin: 0 auto;
    flex-wrap: nowrap; /* PCでは絶対に改行させない */
}

/* --- 1. 昼モード：二重構造のふわふわ背景 --- */
.neon-item {
    position: relative; /* 重なりの基準 */
    background: rgba(255, 255, 255, 0.4); /* 白い半透明 */
    backdrop-filter: blur(8px);           /* 後ろをぼかす */
    padding: 30px 20px; /* 上下左右の余白を調整 */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    
    flex: 1;
    min-width: 300px;      /* 箱の最低幅を少し広げて文字を収める */
    white-space: nowrap;   /* 文字を改行させない */
    transition: all 0.5s ease;
    z-index: 1;
}

/* My Journeyと同じ「後ろの透明な重なり」を作る */
.neon-item::before {
    content: "";
    position: absolute;
    top: 6px; left: 6px; right: -6px; bottom: -6px; /* 少しずらす */
    background: rgba(255, 255, 255, 0.15); /* 透明な層 */
    border-radius: 20px;
    z-index: -1;
    transition: all 0.5s ease;
}

.neon-title {
    font-family: 'Abril Fatface', cursive;
    font-size: 1.6rem;      /* ほんの少しだけ小さくして箱に収める */
    color: #D81B60;
    display: block;
    transition: 0.5s;
    margin-bottom: 5px;
    width: 100%;           /* 幅いっぱいに使って中央寄せ */
}

.neon-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.neon-arrow {
    font-size: 30px;
    color: #D81B60;
    flex-shrink: 0;
    font-weight: 900;
    transform: scale(1.3) !important; /* 1.5倍に拡大 */
}

/* --- 2. 夜モード：ピンクのネオンを最優先で適用！ --- */
/* --- 夜モード： France、Office、Web Creation Journey をピンクネオンにする --- */
/* --- 夜モード：タイトルをピンクネオンにする --- */
[data-theme='dark'] .neon-title {
    /* 文字の色を強制的にピンクに固定！ */
    color: #ff007f !important;
    /* 他の見出しと同じ光らせ方 */
    animation: neon-flicker 2s infinite alternate !important;
    display: block !important;
}

/* 夜モードで箱を完全に消す */
[data-theme='dark'] .neon-item,
[data-theme='dark'] .neon-item::before {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- 夜モード：極薄ブラックパネルを適用 --- */
[data-theme='dark'] .neon-item {
    /* 1. サングラスくらいの薄い黒を入れる */
    background: rgba(0, 0, 0, 0.4) !important; 
    /* 2. 後ろを少しぼかして奥行きを出す */
    backdrop-filter: blur(10px) !important;
    /* 3. 角を丸くして、細いピンクの枠をうっすら入れるとさらにお洒落 */
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 127, 0.2) !important;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* パネルを入れたから、説明文（白文字）も読みやすくなるように調整 */
[data-theme='dark'] .neon-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 矢印もピンクに */
[data-theme='dark'] .neon-arrow {
    color: #ff007f !important;
    text-shadow: 0 0 10px #ff007f !important;
    opacity: 1 !important;
    font-size: 35px;
    font-weight: 900;
}

/* ネオンのチカチカ */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 22%, 24%, 55% { opacity: 0.5; }
}

/* --- 箱に収めるための調整（これ重要！） --- */
.neon-item {
    min-width: 320px !important; /* 箱を広げる */
}
.neon-title {
    font-size: 1.5rem !important; /* 文字を少し小さくして収める */
}

/* --- CONTACT SECTION FINAL --- */

/* --- Contact Section 全体 --- */
.contact-section {
    padding: 100px 20px;
    text-align: center;
    margin: 100px; /* ここで外側に余白を作る */
    background: rgba(255, 255, 255, 0.8) !important; /* 前の白い箱 */
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.2); 
    border-radius: 15px
}

/* 昼のタイトル：ここを修正して確実に大きくしたよ！ */
.contact-section .section-title.neon-title {
    font-family:  'Lobster', cursive !important;
    font-size: 2.5rem !important; /* ここを少し小さくして他と揃える */
    color: #ff007f !important; 
    margin-bottom: 20px;
    display: block;
}

/* 昼の説明文 */
.contact-desc {
    color: #333;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* メールボタン：昼間 */
.contact-email-btn {
    text-decoration: none !important;
    color: #333 !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-email-btn i {
    font-size: 4rem !important;
    color: #333 !important;
}

/* --- 🌙 夜モード：設定 --- */

/* 夜モードのサイズも忘れずに合わせておくよ */
[data-theme='dark'] .contact-section .section-title.neon-title {
    font-size: 2.5rem !important; /* ここも同じサイズに */
    text-shadow: 0 0 5px #fff, 0 0 15px #ff007f, 0 0 30px #ff007f !important;
    color: #ff007f !important;
    animation: neon-flicker 2s infinite alternate !important;
}

[data-theme='dark'] .contact-section {
    background: rgba(0, 0, 0, 0.6) !important; /* 背景を黒の半透明に */
    box-shadow: 0 0 15px #ff007f; /* 枠をネオンで光らせる */
    border: 2px solid #ff007f; /* 枠線もネオン色に */
}

[data-theme='dark'] .contact-desc,
[data-theme='dark'] .footer {
    color: #fff !important;
}

[data-theme='dark'] .contact-email-btn {
    color: #fff !important;
}

[data-theme='dark'] .contact-email-btn i {
    color: #ff007f !important;
    text-shadow: 0 0 10px #ff007f !important;
}

/* --- 2. 封筒アイコンのプルプル --- */
.contact-email-btn:hover i {
    display: inline-block !important;
    animation: icon-shake 0.5s ease infinite !important;
}

@keyframes icon-shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

/* --- 3. 対応時間の案内（追加分） --- */
.business-info {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 0, 127, 0.2);
}

.business-hours {
    font-size: 0.85rem;
    color: #333; /* 昼間用 */
    line-height: 1.8;
}

[data-theme='dark'] .business-hours {
    color: #ffd1e3 !important; /* 夜モード用 */
}

.business-hours strong {
    color: #ff007f;
}

.business-hours i {
    margin-right: 5px;
}

/* --- スマホ専用レスポンシブ（一番下に貼ってね） --- */
/* ==========================================
   MOBILE STYLES (スマホ・タブレット用)
   ========================================== */
@media screen and (max-width: 768px) {

    /* --- ヘッダー・共通 --- */
    header h1 { font-size: 1.8rem !important; }
    .section-title { font-size: 2.5rem !important; }

    /* --- 自己紹介 (About) --- */
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .about-text { width: 100% !important; order: 1 !important; }
    .record-player-frame { width: 180px !important; order: 2 !important; }

    /* --- 3つのカード (Journey) --- */
    .journey-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    /* --- 実績 (Works / ブラウン管) --- */
  .my-works h3 {
    position: static !important;
    margin-top: 18px !important;
    margin-bottom: 10px !important;
    font-size: 2.2rem !important;
    text-align: center !important;
  }

 .work-info h4 {
    /* 1. 改行を許可する（はみ出し防止） */
    white-space: normal !important; 
    
    /* 2. 1行にするために文字サイズをギュッと絞る */
    font-size: 13px !important; 
    
    /* 3. 枠の中に余裕を持たせる */
    display: block !important;
    width: 95% !important;
    margin: 0 auto !important;
    line-height: 1.2 !important;
}

  /* 2. 外側の箱（背景への干渉をすべて取り除き、Mahoさんの元の背景を優先させます） */
  .work-featured {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    /* 背景色やパディングの設定を削除しました */
  }

  /* 3. テレビ本体（大きさを微調整しました） */
  .work-display {
        /* 見た目だけをちょうどいいサイズにズーム */
        transform: scale(1.35) !important; 
        
        /* 拡大した分、上下の要素と重ならないよう隙間を少し広げる */
        margin-top: 20px !important;
        margin-bottom: 30px !important;

        /* 以下はMahoさんの今の設定を維持 */
        width: 90% !important;
        max-width: 350px !important;
        border-width: 10px !important;
        border-radius: 40px / 30px !important;
    }

  /* 4. 下の文字部分（元の背景を維持するため、透明に固定します） */
  .work-info {
    background: transparent !important;
    margin-top: 15px !important;
    width: 100% !important;
  }

  .work-description {
    padding: 0 15px !important;
    line-height: 1.6 !important;
    margin-top: 20px; 
  }

    /* スマホの時だけ、このspanを改行として機能させる */
    .sp-br::before {
        content: "\A";
        white-space: pre;
    }

  .neon-flow {
    display: flex !important;
    flex-direction: row !important; /* 横に並べる */
    justify-content: space-around !important;
    align-items: center !important;
    height: auto !important;
    min-height: 500px; /* PC版の高さ */
  }

  .neon-item {
    position: relative !important; /* 変なところに飛ばないように */
    width: 30% !important;        /* 3つ並ぶサイズ */
    top: auto !important;
    left: auto !important;
  }

  .neon-arrow {
    display: inline-block !important;
    /* 1. 文字をガツンと太くする */
    font-weight: 700 !important; 
    
    /* 2. 文字のサイズ自体を大きくする（scaleよりこっちが確実） */
    font-size: 2.5rem !important; 
    
    /* 3. 位置の調整（お好みで） */
    margin: 10px 0 !important;
    color: #ff007F; /* もし色が変わってたら指定してね */
    
    /* 念のためtransformはリセット */
    transform: none !important; 
}

  .neon-flow, .my-journey-section {
    display: flex !important;
    flex-direction: column !important; /* 縦に並べる */
    height: auto !important;
    min-height: unset !important;
    gap: 20px !important; /* 隙間を少し詰めました */
  }

  .neon-item {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 auto 10px !important;
    width: 90% !important;
  }

  .neon-item::before {
    font-size: 3rem !important;
    top: -10px !important;
    opacity: 0.1 !important;
  }

  .neon-arrow {
    transform: rotate(90deg) !important; /* 矢印を下向き（↓）にする */
    margin: 5px 0 !important;
    font-size: 1.5rem;
  }

  .neon-title {
    font-size: 1.4rem !important;
    display: block;
    margin-bottom: 5px;
  }

  .neon-desc {
    font-size: 0.85rem !important;
    line-height: 1.4;
  }

    .contact-section {
    /* 外側の余白を小さくして、画面いっぱいに広がりすぎないようにする */
    margin: 20px 15px; 
    
    /* 内側の上下の余白を少し削ってコンパクトにする */
    padding: 60px 15px; 
    
    /* 枠（box-shadow）が強すぎるとはみ出しの原因になるので少し控えめに */
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2); 
    
    /* 横幅がはみ出さないように強制する */
    width: auto; 
    max-width: 100%;
    box-sizing: border-box; /* これを入れるとpaddingやborderが横幅に含まれるよ */
  }

 .neon-item:last-child {
    margin-bottom: 30px !important; /* ここも短くしたよ */
  }

}

  