/*
Theme Name: AI投資ラボ ポップ
Template: twentytwentyfive
Description: AI投資ラボのブログ用(2026-11-28)。薄い青の方眼・ハチマルポップの見出し・角の丸いカード。
Version: 1.0
*/
body{background-color:#f5f9ff;background-image:linear-gradient(#e3ecfa 1px,transparent 1px),linear-gradient(90deg,#e3ecfa 1px,transparent 1px);background-size:32px 32px}
.ai-title{font-family:var(--wp--preset--font-family--hachi);font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:.02em;text-decoration:none!important;line-height:1.2}
.ai-title span:nth-child(1),.ai-title span:nth-child(2){color:#4a7bea}.ai-title span:nth-child(3){color:#f2992e}.ai-title span:nth-child(4){color:#e8507a}.ai-title span:nth-child(5){color:#2fa37a}.ai-title span:nth-child(6){color:#8b5cf6}
.ai-head{background:rgba(255,255,255,.85);backdrop-filter:blur(4px);border-bottom:3px dotted #ffb3c8}
.ai-hero img{border-radius:24px;box-shadow:0 6px 0 #dbe6f7;width:100%;height:auto}
.ai-card{background:#fff;border-radius:22px;border:2px solid #e3ecfa;box-shadow:0 5px 0 #dbe6f7;overflow:hidden;transition:transform .15s}
.ai-card:hover{transform:translateY(-3px)}
.ai-card .wp-block-post-featured-image img{aspect-ratio:1280/670;object-fit:cover}
.ai-card .wp-block-post-title a{text-decoration:none;color:#2b3a55}
.ai-pill{display:inline-block;background:#ff8fb1;color:#fff;border-radius:999px;padding:.15em 1em;font-family:var(--wp--preset--font-family--hachi)}
.wp-block-post-content a{color:#4a7bea;text-decoration-thickness:2px;text-underline-offset:3px}

.wp-block-post-content h3{border-bottom:3px dotted #8fb4f5;padding-bottom:.2em}
.ai-pr{background:#fff7e6;border:2px dashed #f2b93b;border-radius:14px;padding:.6em 1em;font-size:.9em}
@media (max-width:600px){body{background-size:24px 24px}}

/* ===== ★11/28 ブログらしい作り: 2列・右の欄・黒板/ホワイトボード/ピコの部屋 ===== */
.ai-cols{margin-top:28px!important}
@media (max-width:781px){.ai-cols{flex-direction:column}.ai-cols>.wp-block-column{flex-basis:100%!important}}
.ai-hero img{border:4px solid #fff;box-shadow:0 6px 0 #dbe6f7,0 10px 24px rgba(74,123,234,.12)}
/* 黒板+チョーク(欄の見出し) */
.ai-chalk{font-family:var(--wp--preset--font-family--chalk)!important;font-weight:400!important;color:#fbfbf2!important;background-color:#2f5240!important;background-image:radial-gradient(circle at 20% 30%,rgba(255,255,255,.08),transparent 40%),radial-gradient(circle at 80% 70%,rgba(255,255,255,.06),transparent 45%)!important;border:6px solid #b98552;border-radius:10px;box-shadow:inset 0 0 12px rgba(0,0,0,.35),0 4px 0 #8a5f37;padding:.35em .8em .45em!important;font-size:19px!important;letter-spacing:.06em;margin:0 0 14px!important;position:relative}
.ai-chalk::after{content:"";position:absolute;left:.8em;right:40%;bottom:.28em;height:3px;border-radius:3px;background:repeating-linear-gradient(90deg,#ffd166 0 14px,transparent 14px 20px);opacity:.85}
.ai-chalk-big{font-size:24px!important;display:inline-block}
/* 右の欄の箱 */
.ai-side{display:flex;flex-direction:column;gap:26px}
.ai-box{background:#fff;border-radius:18px;border:2px solid #e3ecfa;box-shadow:0 5px 0 #dbe6f7;padding:14px 16px 16px}
.ai-box .ai-chalk{margin:-2px -4px 14px!important}
.ai-prof{display:flex;gap:10px;align-items:flex-end}.ai-prof img{width:96px;height:auto;flex:none}.ai-prof p{font-size:14px;line-height:1.7;margin:0}
.ai-sns{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}.ai-sns a{background:#ff8fb1;color:#fff!important;text-decoration:none;border-radius:999px;padding:.2em .9em;font-size:13px;font-family:var(--wp--preset--font-family--rounded)}
.ai-sns a:nth-child(2){background:#4a7bea}.ai-sns a:nth-child(3){background:#2b3a55}
.ai-box ul{padding-left:1.1em;margin:0;font-size:14px}.ai-box li{margin:.3em 0}
.wp-block-calendar table{font-size:13px}.wp-block-calendar th{background:#ffe3ec!important;color:#2b3a55}.wp-block-calendar td a{background:#4a7bea;color:#fff;border-radius:50%;padding:0 .35em;text-decoration:none}
.wp-block-calendar caption{font-family:var(--wp--preset--font-family--rounded);color:#e8507a}
/* ピコの部屋(デジタル) */
.ai-pico{position:relative;border-radius:18px;padding:14px 16px 12px;color:#dff6ff;overflow:hidden;background:#0d1b3d;background-image:linear-gradient(rgba(90,200,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(90,200,255,.08) 1px,transparent 1px),linear-gradient(160deg,#10224d,#0a1430 70%);background-size:18px 18px,18px 18px,100% 100%;border:2px solid #5ad1ff;box-shadow:0 0 0 3px rgba(90,209,255,.18),0 0 18px rgba(90,209,255,.35)}
.ai-pico::before{content:"0101 1010 0110 1001 0011 1100 0101 1010 0110 1001";position:absolute;right:-10px;top:6px;font:11px/1.2 monospace;color:rgba(120,220,255,.22);writing-mode:vertical-rl;letter-spacing:.2em}
.ai-pico-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}.ai-pico-head img{width:58px;height:auto;filter:drop-shadow(0 0 6px rgba(90,209,255,.7))}
.ai-pico-head span{font-family:var(--wp--preset--font-family--rounded);font-size:18px;color:#7fe3ff;text-shadow:0 0 8px rgba(90,209,255,.7);line-height:1.2}.ai-pico-head small{font-size:12px;color:#bfeaff;text-shadow:none}
.ai-note-list{list-style:none;padding:0;margin:0}.ai-note-list li{border-bottom:1px dashed rgba(127,227,255,.3);padding:.45em 0;font-size:13.5px;line-height:1.5}
.ai-note-list a{color:#f0fbff!important;text-decoration:none}.ai-note-list a:hover{color:#7fe3ff!important}
.ai-note-kind{display:inline-block;background:#ff8fb1;color:#fff;border-radius:6px;font-size:11px;padding:0 .45em;margin-right:.4em}
.ai-note-date{display:block;font-size:11px;color:#8fc9e6;font-family:monospace}
.ai-note-more{margin:.6em 0 0;font-size:13px;text-align:right}.ai-note-more a{color:#7fe3ff!important}
/* ホワイトボード(記事の大見出し・準備中の箱) */
.ai-wb,.wp-block-post-content h2{position:relative;background:#fff;border:10px solid #c9ced8;border-radius:12px;box-shadow:inset 0 0 0 2px #eef1f6,0 6px 0 #aab2c0;padding:.7em 1em!important;color:#1f4fb8}
.wp-block-post-content h2{border-left:10px solid #c9ced8;font-size:22px;margin-top:2.2em}
.ai-wb::before,.wp-block-post-content h2::before{content:"";position:absolute;top:-16px;left:18px;width:20px;height:20px;border-radius:50%;background:#e8507a;box-shadow:30px 0 0 #4a7bea,60px 0 0 #f2b93b}
.wp-block-post-content h2::after{content:"";position:absolute;left:1em;right:1em;bottom:.35em;height:4px;border-radius:2px;background:linear-gradient(90deg,#e8507a 0 30%,transparent 30%)}
.wp-block-post-content h3{border-bottom:3px dotted #8fb4f5;padding-bottom:.2em}
.ai-article{background:#fff;border-radius:22px;border:2px solid #e3ecfa;box-shadow:0 5px 0 #dbe6f7;padding:28px 32px 36px}
@media (max-width:600px){.ai-article{padding:18px 16px 26px}}
.ai-cat a{display:inline-block;background:#e8f0ff;color:#4a7bea!important;border-radius:999px;padding:0 .8em;font-size:12px;text-decoration:none}

/* ===== ★11/28 記事の部品: キャラの会話・PR の箱・手順の箱・表 ===== */
.ai-talk{display:flex;gap:12px;align-items:flex-start;margin:1.4em 0}
.ai-talk img{width:64px;height:64px;border-radius:50%;flex:none;box-shadow:0 3px 0 #dbe6f7}
.ai-talk .ai-bubble{position:relative;background:#fff;border:2px solid #e3ecfa;border-radius:16px;padding:.6em .9em;font-size:.95em;line-height:1.8}
.ai-talk .ai-bubble::before{content:"";position:absolute;left:-10px;top:20px;border:8px solid transparent;border-right-color:#e3ecfa;border-left:0}
.ai-talk .ai-name{display:block;font-size:12px;color:#8a96ad;font-family:var(--wp--preset--font-family--rounded)}
.ai-talk.right{flex-direction:row-reverse}.ai-talk.right .ai-bubble{background:#fff5f8;border-color:#ffd0de}
.ai-talk.right .ai-bubble::before{left:auto;right:-10px;border-right-color:transparent;border-left:8px solid #ffd0de;border-right:0}
.ai-step{background:#fff;border-radius:16px;border:2px dashed #8fb4f5;padding:.8em 1em;margin:1.2em 0}
.ai-step b{color:#e8507a}
.ai-note{background:#fff7e6;border-left:6px solid #f2b93b;border-radius:0 12px 12px 0;padding:.7em 1em;margin:1.2em 0}
.ai-warn{background:#fff0f3;border-left:6px solid #e8507a;border-radius:0 12px 12px 0;padding:.7em 1em;margin:1.2em 0}
.wp-block-post-content figure img{border-radius:12px;border:2px solid #e3ecfa}
.wp-block-post-content figcaption{font-size:13px;color:#8a96ad;text-align:center}
.wp-block-post-content table{border-collapse:separate;border-spacing:0;border:2px solid #e3ecfa;border-radius:14px;overflow:hidden;font-size:14px;width:100%}
.wp-block-post-content th{background:#eef4ff;color:#2b3a55}.wp-block-post-content td,.wp-block-post-content th{padding:.5em .7em;border-bottom:1px solid #e3ecfa}
.ai-btn{display:inline-block;background:#ff8fb1;color:#fff!important;border-radius:999px;padding:.5em 1.4em;text-decoration:none!important;font-family:var(--wp--preset--font-family--rounded);box-shadow:0 4px 0 #e06b92}
/* ★11/28 画像を記事の枠に収める(横長のスクショがはみ出していた) */
.wp-block-post-content figure{margin:1.4em 0;max-width:100%}
.wp-block-post-content img{max-width:100%;height:auto}
.ai-article{min-width:0;overflow-wrap:anywhere}
.ai-cols>.wp-block-column{min-width:0}
.wp-block-post-content pre{background:#1f2a44;color:#e8f0ff;border-radius:12px;padding:.8em 1em;overflow-x:auto;font-size:14px}
/* ★11/28 CEO: 上のメニューの字 → 題名と同じハチマルポップ+パステルの丸い札 */
.ai-head .wp-block-navigation,.ai-head .wp-block-navigation a{font-family:var(--wp--preset--font-family--hachi)!important;font-weight:400!important}
.ai-head .wp-block-navigation-item a{background:#fff0f5;border:2px solid #ffd0de;border-radius:999px;padding:.25em 1em!important;color:#2b3a55!important;font-size:16px;text-decoration:none!important;transition:background .15s}
.ai-head .wp-block-navigation-item:nth-child(2n) a{background:#eef4ff;border-color:#c9dbff}
.ai-head .wp-block-navigation-item a:hover{background:#ffe3ec}
.ai-head .wp-block-navigation__container{gap:.6em!important}
/* ★11/28 見出しの字をなめらかに(Zen Maru Gothic・字のふちを整える) */
h1,h2,h3,.wp-block-post-title,.wp-block-post-title a{font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN","BIZ UDPGothic",sans-serif!important;font-weight:700!important;-webkit-font-smoothing:antialiased;letter-spacing:.02em}
.ai-chalk{font-family:var(--wp--preset--font-family--chalk)!important;font-weight:400!important}
/* ★11/28 CEO: 「新しい記事」の黒板は元の大きさ・下線の点線だけ2つ分のばす */
.ai-chalk-big::after{right:calc(40% - 40px)}
/* ★11/28 CEO: 黒板の右の空きに、黒板消しとチョーク */
.ai-box .ai-chalk::before{content:"";position:absolute;right:12px;bottom:5px;width:74px;height:24px;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='74' height='24'><rect x='1' y='5' width='32' height='17' rx='3' fill='%23d9b27c'/><rect x='1' y='14' width='32' height='8' rx='2.5' fill='%2365758f'/><rect x='5' y='8' width='24' height='3' rx='1.5' fill='%23ffffff' opacity='.35'/><rect x='38' y='15' width='17' height='6' rx='3' fill='%23ffffff'/><rect x='57' y='16' width='13' height='5.5' rx='2.7' fill='%23ffb3c8'/></svg>") no-repeat center/contain}
/* ★11/28 CEO: カレンダーの休みの日に赤い「休」のスタンプ(日付は wp-content/ailab-data/yasumi.json) */
.wp-block-calendar td.ai-yasumi{position:relative;color:transparent}
.wp-block-calendar td.ai-yasumi::after{content:"休";position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;display:flex;align-items:center;justify-content:center;font-family:var(--wp--preset--font-family--hachi);font-size:15px;color:#e8507a;border:2px solid #e8507a;border-radius:50%;transform:rotate(-14deg);background:rgba(255,240,245,.9);box-shadow:0 0 0 2px rgba(232,80,122,.15)}
/* ★11/29 CEO: 「休」スタンプは半透明にして、下の日付(25)が見えるように */
.wp-block-calendar td.ai-yasumi{color:inherit}
.wp-block-calendar td.ai-yasumi::after{background:transparent;color:rgba(232,80,122,.55);border-color:rgba(232,80,122,.55);box-shadow:none;font-size:17px;width:30px;height:30px;margin:-15px 0 0 -15px;pointer-events:none}
/* ★11/29 スタンプは数字の後ろ・大きく淡く(数字も「休」も読める) */
.wp-block-calendar td.ai-yasumi{isolation:isolate}
.wp-block-calendar td.ai-yasumi::after{z-index:-1;width:34px;height:34px;margin:-17px 0 0 -17px;font-size:22px;line-height:1;padding-bottom:2px;box-sizing:border-box;color:rgba(232,80,122,.38);border:2px solid rgba(232,80,122,.5);background:rgba(255,240,245,.6)}
.wp-block-calendar td.ai-yasumi::after{display:block;font-family:"Zen Maru Gothic",sans-serif;font-weight:700;font-size:20px;line-height:30px;text-align:center;padding:0}
/* ★11/29 CEO: 「休」をもう少し濃く・角度はスタンプごとにばらばら(--rot を JS が日付から決める) */
.wp-block-calendar td.ai-yasumi::after{color:rgba(232,80,122,.62);border-color:rgba(232,80,122,.7);transform:rotate(var(--rot,-14deg))}
/* ★11/29 CEO: ブログを始める前の日はポップなグレーアウト・土曜=青・日曜と祝日=赤 */
.wp-block-calendar td.ai-before{color:#c3c9d6!important;background:repeating-linear-gradient(135deg,#f6f7fb 0 6px,#eef0f6 6px 12px)}
.wp-block-calendar td.ai-sat{color:#3d6fe0;background-color:#f1f6ff}
.wp-block-calendar td.ai-sun,.wp-block-calendar td.ai-hol{color:#e8507a;background-color:#fff3f7}
.wp-block-calendar td.ai-before.ai-sat{color:#aebfe6!important}
.wp-block-calendar td.ai-before.ai-sun,.wp-block-calendar td.ai-before.ai-hol{color:#ebb3c4!important}
.wp-block-calendar th:nth-child(6){color:#3d6fe0}.wp-block-calendar th:nth-child(7){color:#e8507a}
/* ★11/29 CEO: カレンダーの列を同じ幅に・空いた所にクロックとピコ+星やハートの飾り */
.wp-block-calendar table{table-layout:fixed;width:100%}
.wp-block-calendar th,.wp-block-calendar td{width:14.28%}
.wp-block-calendar td.pad{background:none}
.wp-block-calendar tbody tr:first-child td.pad{background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='44'><path d='M70 14l2 5 5 1-4 3 1 5-4-3-4 3 1-5-4-3 5-1z' fill='%23ffd166'/><circle cx='100' cy='30' r='3' fill='%238fb4f5'/><path d='M125 18c2-4 8-4 8 1 0 4-8 9-8 9s-8-5-8-9c0-5 6-5 8-1z' fill='%23ffb3c8'/><circle cx='150' cy='14' r='2.5' fill='%23b8e0d2'/><path d='M175 24l1.5 4 4 .8-3 2.5.8 4-3.3-2-3.3 2 .8-4-3-2.5 4-.8z' fill='%23c9b8ff'/></svg>") 50% 50%/auto 40px no-repeat}  /* ★11/29 CEO: キャラは外して飾りだけ */
.wp-block-calendar tbody tr:last-child td.pad{background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='44'><path d='M20 20l2 5 5 1-4 3 1 5-4-3-4 3 1-5-4-3 5-1z' fill='%2390e0ff'/><circle cx='52' cy='30' r='3' fill='%23ffb3c8'/><path d='M80 14c2-4 8-4 8 1 0 4-8 9-8 9s-8-5-8-9c0-5 6-5 8-1z' fill='%23ffd166'/><circle cx='110' cy='22' r='2.5' fill='%238fb4f5'/><text x='124' y='31' font-size='13' fill='%23a0acc4' font-family='sans-serif'>0101</text></svg>") 50% 50%/auto 40px no-repeat}
/* ★11/29 お問い合わせのフォーム・値段の箱・足の注記 */
.ai-form input[type=text],.ai-form input[type=email],.ai-form textarea{width:100%;box-sizing:border-box;border:2px solid #e3ecfa;border-radius:12px;padding:.5em .7em;font-size:15px;background:#fff}
.ai-form input:focus,.ai-form textarea:focus{outline:none;border-color:#8fb4f5}
.ai-price{width:100%;font-size:14px;border-collapse:collapse}.ai-price th{text-align:left;color:#2b3a55;font-family:var(--wp--preset--font-family--rounded);padding:.35em 0}
.ai-price td{text-align:right;padding:.35em 0;font-family:monospace}.ai-price td.up{color:#2fa37a}.ai-price td.down{color:#e8507a}
.ai-price tr+tr{border-top:1px dashed #e3ecfa}.ai-price-note{font-size:11px;color:#8a96ad;margin:.4em 0 0}
.ai-foot-links{display:flex;flex-wrap:wrap;gap:.4em .8em;justify-content:center;font-size:12px;margin:.6em 0 0}
.ai-foot-links a{color:#8a96ad!important}
