@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（FPSツールラボ）
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* ==========================================================
   FPSツールラボ：ダーク×グラデーション（デザイン案C）
   このファイルは fps-site/wordpress/cocoon-child/style.css で管理し、
   サーバーへはアップロードで反映する（サーバー上で直接編集しない）
   ========================================================== */
:root {
  --fps-bg: #0d0b14;
  --fps-panel: #16131f;
  --fps-panel2: #1c1828;
  --fps-line: #2a2438;
  --fps-text: #f1eefa;
  --fps-sub: #a39cb8;
  --fps-a1: #8b5cf6;
  --fps-a2: #f97316;
  --fps-link: #c4b5fd;
  --fps-grad: linear-gradient(90deg, var(--fps-a1), var(--fps-a2));
}

/* ---------- 全体 ---------- */
html, body, #container, .container, .content, .main, .sidebar, .header-container, .footer, .navi, .navi-in > ul .sub-menu {
  background: var(--fps-bg) !important;
  color: var(--fps-text);
}
body { line-height: 1.8; }
a { color: var(--fps-link); }
a:hover { color: var(--fps-text); }
.main { border: 0; padding: 24px 0; }
.content { margin-top: 16px; }
.entry-content > *, .article p { color: var(--fps-text); }
::selection { background: var(--fps-a1); color: #fff; }

/* ---------- ヘッダー ---------- */
.header-container { border-bottom: 1px solid var(--fps-line); }
.header, .header-in { background: transparent !important; }
.tagline { display: none; }
.logo-header { padding: 0; }
.site-name-text-link { color: var(--fps-text) !important; }
.site-name-text {
  font-size: 20px; font-weight: 900; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.site-name-text::before {
  content: ""; width: 32px; height: 32px; border-radius: 8px; background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20512%20512%22%3E%20%3Cdefs%3E%20%3ClinearGradient%20id=%22g%22%20gradientUnits=%22userSpaceOnUse%22%20x1=%2290%22%20y1=%2290%22%20x2=%22422%22%20y2=%22422%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%239f7bff%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23ff8a2a%22/%3E%3C/linearGradient%3E%20%3CradialGradient%20id=%22bg%22%20cx=%220.5%22%20cy=%220.5%22%20r=%220.75%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%232a1a52%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%230d0a18%22/%3E%3C/radialGradient%3E%20%3Cfilter%20id=%22gl%22%20x=%22-30%25%22%20y=%22-30%25%22%20width=%22160%25%22%20height=%22160%25%22%3E%3CfeGaussianBlur%20stdDeviation=%2214%22/%3E%3C/filter%3E%20%3C/defs%3E%20%3Crect%20width=%22512%22%20height=%22512%22%20rx=%22112%22%20fill=%22url%28%23bg%29%22/%3E%20%3Cg%20fill=%22none%22%20stroke=%22url%28%23g%29%22%20stroke-width=%2244%22%20stroke-linecap=%22round%22%20filter=%22url%28%23gl%29%22%20opacity=%220.75%22%3E%20%3Ccircle%20cx=%22256%22%20cy=%22256%22%20r=%22118%22/%3E%20%3Cline%20x1=%22256%22%20y1=%2278%22%20x2=%22256%22%20y2=%22150%22/%3E%3Cline%20x1=%22256%22%20y1=%22362%22%20x2=%22256%22%20y2=%22434%22/%3E%20%3Cline%20x1=%2278%22%20y1=%22256%22%20x2=%22150%22%20y2=%22256%22/%3E%3Cline%20x1=%22362%22%20y1=%22256%22%20x2=%22434%22%20y2=%22256%22/%3E%20%3C/g%3E%20%3Cg%20fill=%22none%22%20stroke=%22url%28%23g%29%22%20stroke-width=%2240%22%20stroke-linecap=%22round%22%3E%20%3Ccircle%20cx=%22256%22%20cy=%22256%22%20r=%22118%22/%3E%20%3Cline%20x1=%22256%22%20y1=%2278%22%20x2=%22256%22%20y2=%22150%22/%3E%3Cline%20x1=%22256%22%20y1=%22362%22%20x2=%22256%22%20y2=%22434%22/%3E%20%3Cline%20x1=%2278%22%20y1=%22256%22%20x2=%22150%22%20y2=%22256%22/%3E%3Cline%20x1=%22362%22%20y1=%22256%22%20x2=%22434%22%20y2=%22256%22/%3E%20%3C/g%3E%20%3Ccircle%20cx=%22256%22%20cy=%22256%22%20r=%2234%22%20fill=%22%23fff%22/%3E%20%3C/svg%3E") center / cover no-repeat; display: inline-block;
}
.navi-in > ul > li > a, .navi-in > ul > li > .item-label {
  color: var(--fps-sub) !important; font-size: 14px; background: transparent !important;
}
.navi-in > ul > li > a:hover { color: var(--fps-text) !important; background: transparent !important; }
.navi-in a:hover { background: transparent !important; }

/* ---------- 記事・固定ページ ---------- */
.article { color: var(--fps-text); }
.entry-title, .article h1 { color: var(--fps-text); font-weight: 900; font-size: 32px; line-height: 1.35; }
.article h2 {
  background: none; border: 0; padding: 0 0 .45em; margin: 2.2em 0 1em;
  font-size: 24px; font-weight: 900; color: var(--fps-text); position: relative;
}
.article h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--fps-grad);
}
.article h3 {
  border: 0; padding: 0; margin: 1.8em 0 .6em; font-size: 19px; font-weight: 800; color: var(--fps-text); background: none;
}
.article h3::before, .article h2::before { content: none; }
.article h4, .article h5, .article h6 { border: 0; color: var(--fps-text); }
.article ul li::marker, .article ol li::marker { color: var(--fps-a1); }
.has-small-font-size { color: var(--fps-sub) !important; }
.article hr, .article .wp-block-separator { border-color: var(--fps-line); }
.article table, .article th, .article td { border-color: var(--fps-line); }
.article th { background: var(--fps-panel2); color: var(--fps-text); }
.article tr:nth-of-type(2n+1) { background: var(--fps-panel); }
.article blockquote { background: var(--fps-panel); border-color: var(--fps-line); color: var(--fps-sub); }
.article code { background: var(--fps-panel2); color: var(--fps-text); }

.breadcrumb { display: none !important; }
.date-tags, .post-date, .post-update { color: var(--fps-sub) !important; }

/* ---------- フォーム（お問い合わせ） ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"],
textarea, select {
  background: var(--fps-panel) !important; color: var(--fps-text) !important;
  border: 1px solid var(--fps-line) !important; border-radius: 10px;
}
input:focus, textarea:focus, select:focus { border-color: var(--fps-a1) !important; outline: none; box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
select option { background: var(--fps-panel); }
.wpcf7-submit, input[type="submit"] {
  background: var(--fps-grad) !important; color: #fff !important; border: 0 !important;
  border-radius: 14px; font-weight: 800; padding: 14px 24px; box-shadow: 0 10px 30px rgba(139, 92, 246, .3);
}
.wpcf7 label { color: var(--fps-text); }
.wpcf7-acceptance .wpcf7-list-item-label, .wpcf7-response-output { color: var(--fps-sub); }

/* ---------- フッター ---------- */
.footer { border-top: 1px solid var(--fps-line); margin-top: 48px; }
.footer, .footer a, .copyright, .navi-footer-in > .menu-footer li > a { color: var(--fps-sub) !important; }
.navi-footer-in > .menu-footer li { border-color: var(--fps-line); }
.footer a:hover { color: var(--fps-text) !important; }
.logo-footer .site-name-text { font-size: 16px; }
.logo-footer .site-name-text::before { width: 20px; height: 20px; border-radius: 6px; }
.go-to-top-button { background: var(--fps-panel2) !important; color: var(--fps-text) !important; border: 1px solid var(--fps-line); border-radius: 12px; }

/* ---------- スマホのメニュー（Cocoonのモバイルボタン） ---------- */
.mobile-menu-buttons { background: var(--fps-panel) !important; border-color: var(--fps-line) !important; box-shadow: none; }
.mobile-menu-buttons .menu-button > a, .mobile-menu-buttons .menu-button, .menu-button .menu-caption, .menu-button .menu-icon { color: var(--fps-text) !important; }
.navi-menu-content, .sidebar-menu-content, .search-menu-content, .share-menu-content { background: var(--fps-panel) !important; color: var(--fps-text); }
.navi-menu-content a, .menu-drawer a { color: var(--fps-text) !important; }

/* ==========================================================
   トップページ（固定ページの中身は wordpress/pages/home.html）
   ========================================================== */
.home .article-header, .home .article-footer, .home .date-tags,
.home .sns-share, .home .sns-follow, .home .eye-catch-wrap { display: none !important; }
.home .main { padding-top: 0; }

.fps-top { --r: 22px; }
.fps-top p { margin: 0; }
.fps-top a { text-decoration: none; }
.fps-tile { background: var(--fps-panel); border: 1px solid var(--fps-line); border-radius: var(--r); padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
a.fps-tile { transition: border-color .2s, transform .2s; }
a.fps-tile:hover { border-color: var(--fps-a1); transform: translateY(-2px); }
.fps-tile.big { min-height: 360px; justify-content: flex-end; padding: 40px; }
.fps-tile.big::before, .fps-tile.big::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.fps-tile.big::before { width: 560px; height: 560px; right: -140px; top: -260px; background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 65%); }
.fps-tile.big::after { width: 460px; height: 460px; right: 160px; bottom: -300px; background: radial-gradient(circle, rgba(249, 115, 22, .28), transparent 65%); }
.fps-tile.big > * { position: relative; z-index: 1; }
/* トップの照準：アイコン・ヘッダー画像と同じ絵（光るグラデーションのリング＋十字） */
.fps-tile .fps-scope { position: absolute; z-index: 1; right: 30px; top: 20px; width: 200px; height: 200px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20400%20400%22%20fill=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22g%22%20gradientUnits=%22userSpaceOnUse%22%20x1=%2220%22%20y1=%2220%22%20x2=%22380%22%20y2=%22380%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%239f7bff%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23ff8a2a%22/%3E%3C/linearGradient%3E%3Cfilter%20id=%22b%22%20x=%22-30%25%22%20y=%22-30%25%22%20width=%22160%25%22%20height=%22160%25%22%3E%3CfeGaussianBlur%20stdDeviation=%229%22/%3E%3C/filter%3E%3C/defs%3E%3Ccircle%20cx=%22200%22%20cy=%22200%22%20r=%22150%22%20stroke=%22rgba%28255%2C255%2C255%2C.14%29%22%20stroke-width=%223%22/%3E%3Cg%20stroke=%22url%28%23g%29%22%20stroke-width=%2210%22%20stroke-linecap=%22round%22%20filter=%22url%28%23b%29%22%20opacity=%22.6%22%3E%3Ccircle%20cx=%22200%22%20cy=%22200%22%20r=%2292%22/%3E%3Cline%20x1=%22200%22%20y1=%2220%22%20x2=%22200%22%20y2=%2286%22/%3E%3Cline%20x1=%22200%22%20y1=%22314%22%20x2=%22200%22%20y2=%22380%22/%3E%3Cline%20x1=%2220%22%20y1=%22200%22%20x2=%2286%22%20y2=%22200%22/%3E%3Cline%20x1=%22314%22%20y1=%22200%22%20x2=%22380%22%20y2=%22200%22/%3E%3C/g%3E%3Cg%20stroke=%22url%28%23g%29%22%20stroke-width=%2210%22%20stroke-linecap=%22round%22%3E%3Ccircle%20cx=%22200%22%20cy=%22200%22%20r=%2292%22/%3E%3Cline%20x1=%22200%22%20y1=%2220%22%20x2=%22200%22%20y2=%2286%22/%3E%3Cline%20x1=%22200%22%20y1=%22314%22%20x2=%22200%22%20y2=%22380%22/%3E%3Cline%20x1=%2220%22%20y1=%22200%22%20x2=%2286%22%20y2=%22200%22/%3E%3Cline%20x1=%22314%22%20y1=%22200%22%20x2=%22380%22%20y2=%22200%22/%3E%3C/g%3E%3Ccircle%20cx=%22200%22%20cy=%22200%22%20r=%2222%22%20fill=%22%23fff%22/%3E%3C/svg%3E") center / contain no-repeat; }
.fps-top .fps-tile h1 { margin: 0 0 10px; font-size: 40px; font-weight: 900; line-height: 1.2; color: var(--fps-text); }
.fps-tile p { color: var(--fps-sub) !important; font-size: 15px; max-width: 640px; }


/* ---------- Cocoon標準の見出し装飾を打ち消す ---------- */
body .article h2 { background: none !important; border: 0 !important; border-radius: 0; color: var(--fps-text) !important; }
body .article h3 { background: none !important; border: 0 !important; color: var(--fps-text) !important; }
body .article h3::before { content: none !important; }

/* ---------- ヘッダー：ロゴ左・メニュー右 ---------- */
#header-container, #header-container .navi { background: var(--fps-bg) !important; }
.header-container-in.hlt-top-menu { max-width: 1256px; margin: 0 auto; padding: 14px 16px; }
.hlt-top-menu .navi-in > ul { justify-content: flex-end; }
.navi-in > ul > li { width: auto !important; }
.navi-in > ul > li > a { padding: 0 18px !important; }
.header .site-name-text { color: var(--fps-text) !important; }

/* ---------- フッターメニューの区切り線 ---------- */
.navi-footer-in > .menu-footer li { border-left-color: var(--fps-line) !important; border-right-color: var(--fps-line) !important; }
#footer { background: var(--fps-bg) !important; }

/* ---------- スマホのメニュー（SlickNav） ---------- */
.slicknav_menu { background: var(--fps-bg) !important; border-bottom: 1px solid var(--fps-line); padding: 8px 12px; }
.slicknav_btn { background: var(--fps-panel2) !important; border: 1px solid var(--fps-line); border-radius: 10px; text-shadow: none; }
.slicknav_menutxt { color: var(--fps-text) !important; text-shadow: none !important; font-weight: 800; }
.slicknav_icon-bar { background: var(--fps-text) !important; box-shadow: none !important; }
.slicknav_nav { background: var(--fps-bg); }
.slicknav_nav a, .slicknav_nav .slicknav_row { color: var(--fps-text) !important; border-top: 1px solid var(--fps-line); padding: 12px 8px !important; margin: 0 !important; }
.slicknav_nav a:hover, .slicknav_nav .slicknav_row:hover { background: var(--fps-panel) !important; border-radius: 0; color: var(--fps-text) !important; }

/* ---------- トップページ：ランキング（js/top-ranking.js が中身を作る） ---------- */
.fps-ranking { margin-top: 48px; }
.fps-ranking[hidden] { display: none; }
.fps-top .fps-h2 { font-size: 24px; font-weight: 900; margin: 0 0 16px; padding: 0; }
.fps-top .fps-h2::after { content: none; }
.fps-rank-box { background: var(--fps-panel); border: 1px solid var(--fps-line); border-radius: 20px; overflow: hidden; }
.fps-rank-tabs { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--fps-line); }
.fps-seg { display: inline-flex; background: var(--fps-bg); border: 1px solid var(--fps-line); border-radius: 12px; padding: 3px; }
.fps-seg button { all: unset; cursor: pointer; padding: 7px 16px; border-radius: 9px; font-size: 13px; font-weight: 800; color: var(--fps-sub); }
.fps-seg button:hover { color: var(--fps-text); }
.fps-seg button[aria-pressed="true"] { background: var(--fps-grad); color: #fff; }
.fps-seg button:focus-visible { outline: 2px solid var(--fps-a1); outline-offset: 2px; }
.fps-top .fps-rank-list { list-style: none; margin: 0; padding: 6px 0; }
.fps-top .fps-rank-list li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; padding: 12px 22px; font-size: 15px; }
.fps-top .fps-rank-list li + li { border-top: 1px solid var(--fps-line); }
.fps-top .fps-rank-list li::marker { content: none; }
.fps-rank-list .r { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: var(--fps-panel2); color: var(--fps-sub); }
/* 1〜3位は金・銀・銅 */
.fps-rank-list li:nth-child(1) .r { background: linear-gradient(135deg, #ffe58f, #d4a017); color: #3d2c00; }
.fps-rank-list li:nth-child(2) .r { background: linear-gradient(135deg, #f4f6f9, #9aa4b0); color: #1f252c; }
.fps-rank-list li:nth-child(3) .r { background: linear-gradient(135deg, #f2b98a, #a35a2a); color: #2c1406; }
.fps-rank-list .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }
.fps-rank-list .s { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fps-top .fps-rank-list li.fps-rank-empty { display: block; text-align: center; color: var(--fps-sub); font-size: 13px; padding: 28px 22px; }

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  #navi { display: none; }
  .mobile-header-menu-buttons, .mobile-footer-menu-buttons { background: var(--fps-panel) !important; border-color: var(--fps-line) !important; }
  .mobile-header-menu-buttons .menu-button > a, .mobile-header-menu-buttons .menu-button { background: transparent !important; color: var(--fps-text) !important; }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .fps-tile.big { min-height: 340px; padding: 28px; }
  .fps-top .fps-tile h1 { font-size: 30px; }
  .fps-top .fps-rank-list li { grid-template-columns: 48px 1fr auto; padding: 12px 16px; }
  .fps-rank-tabs { padding: 12px; gap: 8px; }
  .fps-seg button { padding: 7px 11px; }
  .fps-ranking { margin-top: 36px; }
  .fps-tile .fps-scope { width: 120px; height: 120px; right: 16px; top: 16px; }
  .entry-title, .article h1 { font-size: 26px; }
}

/*480px以下*/
@media screen and (max-width: 480px){
}
