/*
Theme Name: PCRoba Calm
Theme URI: http://localhost:8080/
Author: PCRoba
Description: 非ITエンジニアのPC利用者に向けた、落ち着き・信頼感・親しみやすさを大切にしたテーマです。
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: pcroba-calm
*/

:root {
  --ink: #243432;
  --ink-soft: #5c6a67;
  --brand: #245e58;
  --brand-dark: #194943;
  --brand-pale: #e1eeea;
  --accent: #c7833a;
  --accent-pale: #f7ead9;
  --paper: #fffdf9;
  --canvas: #f4f2eb;
  --line: #d9dfda;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(35, 61, 57, .09);
  --radius: 18px;
  --font-sans: "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #e2a866; outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 16px; clip: auto; background: var(--white); border-radius: 8px; }
.site-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,253,249,.94); border-bottom: 1px solid rgba(36,94,88,.12); backdrop-filter: blur(14px); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--brand); border-radius: 13px 13px 13px 4px; box-shadow: 0 7px 18px rgba(36,94,88,.2); }
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.brand-note { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .69rem; line-height: 1.2; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); font-size: .91rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--brand); }
.header-search { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; color: var(--brand); border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .84rem; font-weight: 700; text-decoration: none; }
.header-search svg { width: 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; color: var(--brand); background: transparent; border: 1px solid var(--line); border-radius: 12px; }
.menu-toggle svg { width: 23px; }

.hero { position: relative; overflow: hidden; padding: clamp(62px, 9vw, 118px) 0 86px; background: var(--paper); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .38; background-image: linear-gradient(rgba(36,94,88,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(36,94,88,.06) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero::after { content: "?"; position: absolute; top: -100px; right: max(-40px, calc((100vw - 1160px)/2 - 100px)); color: rgba(36,94,88,.055); font-family: Georgia, serif; font-size: 38rem; font-weight: 700; line-height: 1; transform: rotate(8deg); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: center; gap: clamp(35px, 7vw, 88px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 17px; padding: 6px 12px; color: var(--brand-dark); background: var(--brand-pale); border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.35rem, 4.7vw, 4rem); line-height: 1.27; letter-spacing: -.035em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-phrase { display: inline-block; white-space: nowrap; }
.hero-copy { max-width: 620px; margin: 24px 0 30px; color: var(--ink-soft); font-size: clamp(1rem, 1.7vw, 1.12rem); }
.hero-visual { min-height: 330px; position: relative; display: grid; place-items: center; }
.help-orbit { width: 276px; height: 276px; position: relative; display: grid; place-items: center; background: var(--brand-pale); border: 1px solid rgba(36,94,88,.12); border-radius: 50%; }
.help-orbit::before, .help-orbit::after { content: ""; position: absolute; border: 1px dashed rgba(36,94,88,.22); border-radius: 50%; }
.help-orbit::before { inset: -22px; }
.help-orbit::after { inset: 28px; }
.help-monitor { width: 145px; height: 105px; position: relative; z-index: 2; display: grid; place-items: center; color: var(--white); background: var(--brand); border: 8px solid var(--white); border-radius: 16px; box-shadow: var(--shadow); }
.help-monitor::before { content: ""; position: absolute; bottom: -27px; width: 48px; height: 20px; border-bottom: 7px solid var(--brand); border-left: 7px solid var(--brand); border-right: 7px solid var(--brand); border-radius: 0 0 7px 7px; }
.help-monitor svg { width: 50px; }
.orbit-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 22px rgba(35,61,57,.1); font-size: .78rem; font-weight: 800; }
.orbit-chip svg { width: 17px; color: var(--accent); }
.orbit-chip.one { top: 26px; right: -5px; }.orbit-chip.two { bottom: 38px; left: -19px; }.orbit-chip.three { right: -22px; bottom: 71px; }

.search-box { max-width: 680px; display: flex; gap: 9px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(35,61,57,.1); }
.search-box label { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 9px; }
.search-box label svg { flex: 0 0 auto; width: 21px; color: var(--brand); }
.search-box input { width: 100%; min-width: 0; padding: 9px 0; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search-box button { padding: 11px 22px; color: var(--white); background: var(--brand); border: 0; border-radius: 11px; font-weight: 800; cursor: pointer; }
.search-box button:hover { background: var(--brand-dark); }
.search-hint { margin: 10px 0 0 8px; color: var(--ink-soft); font-size: .75rem; }

.section { padding: clamp(62px, 8vw, 96px) 0; }
.section-paper { background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-kicker { margin: 0 0 8px; color: var(--accent); font-size: .76rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.35; letter-spacing: -.02em; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--ink-soft); font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.text-link svg { width: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card { min-height: 206px; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 24px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(35,61,57,.05); text-decoration: none; transition: transform .22s, box-shadow .22s, border-color .22s; }
.topic-card:hover { color: var(--ink); border-color: rgba(36,94,88,.35); box-shadow: var(--shadow); transform: translateY(-4px); }
.topic-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 25px; color: var(--brand); background: var(--brand-pale); border-radius: 14px; }
.topic-icon svg { width: 25px; }
.topic-card:nth-child(2) .topic-icon, .topic-card:nth-child(4) .topic-icon { color: #9b642e; background: var(--accent-pale); }
.topic-card h3 { margin: 0; font-size: 1.08rem; }
.topic-card p { margin: 5px 0 0; color: var(--ink-soft); font-size: .78rem; }
.topic-count { margin-top: auto; color: var(--brand); font-size: .72rem; font-weight: 800; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(35,61,57,.05); transition: transform .22s, box-shadow .22s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card-link { height: 100%; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.post-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; display: grid; place-items: center; color: var(--brand); background: linear-gradient(135deg, #e2efeb, #f7ead9); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-thumb img { transform: scale(1.035); }
.post-thumb > svg { width: 48px; opacity: .7; }
.post-card-body { flex: 1; display: flex; flex-direction: column; padding: 20px 21px 21px; }
.post-category { align-self: flex-start; margin-bottom: 10px; padding: 3px 9px; color: var(--brand-dark); background: var(--brand-pale); border-radius: 999px; font-size: .67rem; font-weight: 900; }
.post-card h3 { margin: 0; font-size: 1rem; line-height: 1.65; }
.post-card-excerpt { margin: 10px 0 16px; color: var(--ink-soft); font-size: .79rem; line-height: 1.7; }
.post-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: .69rem; }
.read-more { color: var(--brand); font-weight: 900; }

.reassurance { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 90px); align-items: center; }
.reassurance-copy h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.45; }
.reassurance-copy p { color: var(--ink-soft); }
.promise-list { display: grid; gap: 12px; }
.promise { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.promise-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--white); background: var(--brand); border-radius: 13px; }
.promise-icon svg { width: 23px; }
.promise h3 { margin: 0 0 3px; font-size: .98rem; }.promise p { margin: 0; color: var(--ink-soft); font-size: .78rem; }

.page-header { padding: 62px 0 48px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.35; }
.page-description { max-width: 680px; margin: 13px 0 0; color: var(--ink-soft); }
.breadcrumbs { color: var(--ink-soft); font-size: .74rem; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 7px; opacity: .55; }

.content-area { padding: 54px 0 90px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) 270px; justify-content: center; gap: 46px; align-items: start; }
.article-card { min-width: 0; padding: clamp(25px, 5vw, 60px); background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 30px rgba(35,61,57,.055); }
.article-header h1 { margin: 13px 0 16px; font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.45; letter-spacing: -.025em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 15px; padding-bottom: 26px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .73rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }.article-meta svg { width: 16px; }
.article-thumbnail { margin: 30px 0 35px; overflow: hidden; border-radius: 15px; }
.entry-content { font-size: 1rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin: 2.7em 0 1em; padding: .72em .85em; color: var(--brand-dark); background: var(--brand-pale); border-left: 5px solid var(--brand); border-radius: 0 10px 10px 0; font-size: 1.45rem; line-height: 1.55; }
.entry-content h3 { margin: 2.2em 0 .8em; padding-bottom: .45em; border-bottom: 2px solid var(--line); font-size: 1.18rem; }
.entry-content h4 { margin-top: 1.8em; color: var(--brand-dark); font-size: 1.05rem; }
.entry-content p { margin: 1.25em 0; }
.entry-content a { font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li + li { margin-top: .45em; }
.entry-content blockquote { margin: 1.8em 0; padding: 18px 22px; color: var(--ink-soft); background: #f7f6f1; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.entry-content pre { overflow-x: auto; padding: 18px; color: #e8f3ef; background: #203a36; border-radius: 12px; font-size: .85rem; line-height: 1.6; }
.entry-content code { padding: .12em .35em; background: #edf2ef; border-radius: 4px; font-family: Consolas, monospace; font-size: .9em; }
.entry-content pre code { padding: 0; color: inherit; background: transparent; }
.entry-content table { width: 100%; margin: 1.8em 0; border-collapse: collapse; font-size: .88rem; }
.entry-content th, .entry-content td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; }
.entry-content th { color: var(--brand-dark); background: var(--brand-pale); }
.entry-content img { border-radius: 10px; }
.entry-content .wp-block-image { margin: 2em 0; }
.entry-content .wp-block-button__link { color: var(--white); background: var(--brand); border-radius: 10px; }
.article-note { margin-top: 40px; padding: 16px 18px; display: flex; gap: 11px; color: var(--ink-soft); background: var(--accent-pale); border-radius: 12px; font-size: .76rem; }
.article-note svg { flex: 0 0 auto; width: 20px; color: var(--accent); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.post-nav a { padding: 17px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: .78rem; }
.post-nav a:hover { border-color: var(--brand); }
.post-nav .next { text-align: right; }
.side-panel { position: sticky; top: 108px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.side-panel h2 { margin: 0 0 12px; font-size: .96rem; }
.side-panel ul { margin: 0; padding: 0; list-style: none; }
.side-panel li + li { border-top: 1px solid var(--line); }
.side-panel a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; color: var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; }
.side-panel a:hover { color: var(--brand); }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pagination { margin-top: 42px; display: flex; justify-content: center; gap: 7px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pagination .current { color: var(--white); background: var(--brand); border-color: var(--brand); }
.empty-state { padding: 60px 24px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state svg { width: 54px; color: var(--brand); }.empty-state h2 { margin: 12px 0 7px; }.empty-state p { color: var(--ink-soft); }

.site-footer { color: #e6efec; background: #1d413d; }
.footer-main { padding: 58px 0 42px; display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 50px; }
.footer-brand .site-brand { color: var(--white); }.footer-brand .brand-mark { color: var(--brand); background: var(--white); }.footer-brand .brand-note { color: #b8cbc7; }
.footer-brand > p { max-width: 390px; margin: 18px 0 0; color: #b8cbc7; font-size: .8rem; }
.footer-column h2 { margin: 0 0 13px; color: var(--white); font-size: .88rem; }.footer-column ul { margin: 0; padding: 0; list-style: none; }.footer-column li + li { margin-top: 7px; }.footer-column a { color: #c9d8d5; font-size: .79rem; text-decoration: none; }.footer-column a:hover { color: var(--white); }
.footer-bottom { padding: 17px 0; display: flex; justify-content: space-between; gap: 20px; color: #a9c0bc; border-top: 1px solid rgba(255,255,255,.12); font-size: .69rem; }

@media (max-width: 980px) {
  .primary-nav, .header-search { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .primary-nav.is-open { position: absolute; top: 76px; left: 0; right: 0; display: block; padding: 12px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open ul { width: min(1160px, 100%); margin-inline: auto; display: grid; gap: 0; }
  .primary-nav.is-open a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .hero-inner { grid-template-columns: 1fr; }.hero-visual { display: none; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 790px); }.side-panel { display: none; }
}
@media (max-width: 740px) {
  .admin-bar .site-header { top: 46px; }
  .site-shell { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }.brand-note { display: none; }.primary-nav.is-open { top: 68px; }
  .hero { padding: 56px 0 62px; }.hero h1 { font-size: 2.3rem; }.hero-copy { margin-top: 18px; }
  .search-box { display: grid; }.search-box button { width: 100%; }
  .section { padding: 58px 0; }.section-heading { align-items: start; flex-direction: column; gap: 9px; }
  .topic-grid, .post-grid, .archive-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 170px; }.topic-icon { margin-bottom: 18px; }
  .reassurance { grid-template-columns: 1fr; }.promise { grid-template-columns: 40px 1fr; padding: 17px; }.promise-icon { width: 40px; height: 40px; }
  .page-header { padding: 42px 0 34px; }.content-area { padding: 28px 0 64px; }
  .article-card { padding: 24px 19px; border-radius: 16px; }.article-header h1 { font-size: 1.65rem; }.entry-content h2 { font-size: 1.24rem; }
  .post-nav { grid-template-columns: 1fr; }.post-nav .next { text-align: left; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }.footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
