/*
Theme Name: Sales Ameba
Theme URI: https://www.youneeds.co.jp/
Author: YOUNEEDS Co.,Ltd.
Author URI: https://www.youneeds.co.jp/
Description: 営業OS「Sales Ameba」の公式LP兼ブログ用カスタムテーマ。グラデーション基調のクリーンなB2Bデザイン。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salesameba
Tags: blog, business, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready
*/

:root {
    --c-blue: #3aa6ff;
    --c-purple: #8b6dd9;
    --c-pink: #d56ab2;
    --gradient: linear-gradient(135deg, #3aa6ff 0%, #8b6dd9 50%, #d56ab2 100%);
    --gradient-soft: linear-gradient(135deg, rgba(58,166,255,0.06) 0%, rgba(139,109,217,0.06) 50%, rgba(213,106,178,0.06) 100%);
    --c-text: #1f1f2c;
    --c-text-sub: #6b6b7a;
    --c-text-mute: #9a9aa6;
    --c-bg: #ffffff;
    --c-bg-alt: #fafbfc;
    --c-line: #ececf0;
    --shadow: 0 4px 24px rgba(60, 80, 160, 0.06);
    --shadow-lg: 0 12px 40px rgba(60, 80, 160, 0.10);
    --radius: 16px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
  }
  /* 孤立文字防止（"る。"のような行末1文字残しを防ぐ） */
  /* 見出しは balance（行を均等化）。本文は pretty（最終行の孤立だけ防止）。 */
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    word-break: auto-phrase;
  }
  p, li, dd, dt, .item-title, .item-desc, .plan-desc, .sub,
  .roi-label, .roi-desc, .price-card .note, .timeline-step p,
  .section-head p, .problem-card p {
    text-wrap: pretty;
    word-break: auto-phrase;
  }
  /* 中央寄せの短いボックスだけ balance を使う（左右対称になるので余白が気にならない） */
  .usecase-effect, .flow-item, .price-card .label, .timeline-step .period {
    text-wrap: balance;
    word-break: auto-phrase;
  }
  .hl-line { display: block; }
  .container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
  .container-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; }

  /* ===== Header ===== */
  header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-line);
  }
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
  }
  .nav-logo img { height: 36px; display: block; }
  .nav-links { display: flex; gap: 24px; align-items: center; }
  .nav-links a {
    color: var(--c-text-sub); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--c-purple); }
  .btn {
    display: inline-block; padding: 13px 30px; border-radius: 999px;
    background: var(--gradient); color: #ffffff !important; text-decoration: none;
    font-weight: 700; font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(139, 109, 217, 0.3);
    border: none; cursor: pointer;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139, 109, 217, 0.4); color: #ffffff !important; }
  .btn-outline {
    background: #ffffff; color: var(--c-purple) !important;
    border: 2px solid var(--c-purple);
    box-shadow: none;
  }
  .btn-outline:hover { background: var(--gradient); color: #ffffff !important; border-color: transparent; }
  .nav-links a.btn { color: #ffffff !important; }
  @media (max-width: 720px) {
    .nav-links a:not(.btn) { display: none; }
    .nav { height: 64px; }
    .nav-logo img { height: 30px; }
  }
  @media (max-width: 480px) {
    .nav-links a.btn { padding: 10px 18px; font-size: 13px; }
  }

  /* ===== Hero ===== */
  .hero {
    padding: 90px 0 100px;
    background: #ffffff;
    text-align: center;
  }
  @media (max-width: 640px) {
    .hero { padding: 56px 0 72px; }
    .hero-logo img { height: 78px !important; margin-bottom: 14px !important; }
    .hero-sub-tag { font-size: 12px !important; margin-bottom: 22px !important; }
  }
  .hero-logo img { height: 100px; margin: 0 auto 20px; display: block; }
  .hero-sub-tag {
    display: inline-block; font-size: 14px; font-weight: 700;
    letter-spacing: 0.3em; padding: 6px 18px;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 32px;
  }
  .hero h1 {
    font-size: clamp(30px, 5vw, 54px); font-weight: 800; line-height: 1.45;
    letter-spacing: -0.01em; margin-bottom: 28px;
    max-width: 980px; margin-left: auto; margin-right: auto;
  }
  .hero h1 .hl-line { display: block; }
  .hero h1 .grad {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
  }
  .hero p.lead {
    font-size: clamp(15px, 1.6vw, 19px); color: var(--c-text-sub);
    max-width: 760px; margin: 0 auto 44px;
    line-height: 1.95;
    text-align: center;
  }
  .hero p.lead .lead-conclude {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--c-text);
  }
  .hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  @media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; padding: 0 14px; }
    .hero-cta .btn { width: 100%; text-align: center; padding: 16px 22px; font-size: 15px; }
  }

  /* ===== Section ===== */
  section { padding: 90px 0; }
  @media (max-width: 640px) {
    section { padding: 60px 0; }
    .container, .container-sm { padding: 0 18px; }
  }
  .section-alt { background: var(--c-bg-alt); }
  .section-head { text-align: center; margin-bottom: 56px; }
  @media (max-width: 640px) {
    .section-head { margin-bottom: 36px; }
    .section-head h2 br { display: none; }
    .cta h2 br { display: none; }
  }
  .section-label {
    display: inline-block; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 18px;
  }
  .section-head h2 {
    font-size: clamp(26px, 3.8vw, 42px); font-weight: 800;
    letter-spacing: -0.01em; line-height: 1.45;
    max-width: 880px; margin-left: auto; margin-right: auto;
  }
  .section-head p {
    color: var(--c-text-sub); margin-top: 16px; max-width: 720px;
    margin-left: auto; margin-right: auto; font-size: 15.5px;
    line-height: 1.85;
  }

  /* ===== Problem ===== */
  .problem-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; margin-top: 40px;
    align-items: stretch;
  }
  .problem-card { display: flex; flex-direction: column; }
  @media (max-width: 640px) {
    .problem-grid { grid-template-columns: 1fr; }
  }
  .problem-card {
    background: #ffffff; padding: 28px 28px; border-radius: var(--radius);
    border: 1px solid var(--c-line);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .problem-card .icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--gradient-soft); display: flex; align-items: center; justify-content: center;
    color: var(--c-purple); font-size: 16px; font-weight: 800;
    margin-bottom: 14px;
  }
  .problem-card h4 { font-size: 20px; font-weight: 800; margin-bottom: 10px; line-height: 1.5; }
  .problem-card p { font-size: 14px; color: var(--c-text-sub); line-height: 1.7; }

  /* ===== Service Overview ===== */
  .flow-diagram {
    background: #ffffff; border-radius: 24px; padding: 40px 28px;
    border: 1px solid var(--c-line); margin-top: 32px;
    display: grid; grid-template-columns: 1fr 36px 1.1fr 36px 1fr; gap: 16px;
    align-items: stretch;
  }
  .flow-center, .flow-col { display: flex; flex-direction: column; justify-content: center; }
  .flow-arrow { display: flex; align-items: center; justify-content: center; }
  @media (max-width: 880px) {
    .flow-diagram { grid-template-columns: 1fr; padding: 28px 20px; }
    .flow-arrow { transform: rotate(90deg); margin: 8px auto; }
  }
  .flow-col h5 {
    font-size: 12px; font-weight: 700; color: var(--c-purple);
    text-align: center; margin-bottom: 14px; letter-spacing: 0.15em;
  }
  .flow-items { display: flex; flex-direction: column; gap: 8px; }
  .flow-item {
    background: var(--c-bg-alt); padding: 10px 12px; border-radius: 10px;
    font-size: 13.5px; text-align: center; font-weight: 500;
    border: 1px solid var(--c-line);
    line-height: 1.55;
    word-break: auto-phrase;
  }
  .flow-arrow {
    font-size: 26px; color: var(--c-purple); text-align: center;
    font-weight: 600;
  }
  .flow-center {
    background: var(--gradient); color: #ffffff; border-radius: 16px;
    padding: 24px 14px; text-align: center;
  }
  .flow-center .logo-mark { font-size: 12px; opacity: 0.95; margin-bottom: 8px; letter-spacing: 0.15em; }
  .flow-center .name { font-size: 20px; font-weight: 800; line-height: 1.4; }

  /* ===== Use Cases ===== */
  .usecase-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
  }
  @media (max-width: 980px) {
    .usecase-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  }
  @media (max-width: 640px) {
    .usecase-card { padding: 28px 24px; }
  }
  .usecase-card {
    background: #ffffff; border-radius: 20px; padding: 36px 30px;
    border: 1px solid var(--c-line);
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .usecase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .usecase-num {
    display: inline-flex; width: 52px; height: 52px; border-radius: 14px;
    background: var(--gradient); color: #ffffff;
    align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; margin-bottom: 18px;
  }
  .usecase-tag {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 6px; margin-bottom: 12px;
    letter-spacing: 0.1em;
  }
  .tag-up { background: rgba(58,166,255,0.12); color: #2880d6; }
  .tag-down { background: rgba(213,106,178,0.12); color: #c4438f; }
  .usecase-card h3 {
    font-size: 25px; font-weight: 800; margin-bottom: 10px; line-height: 1.45;
  }
  .usecase-card .sub { font-size: 14.5px; color: var(--c-text-sub); margin-bottom: 20px; line-height: 1.7; }
  .usecase-block { margin-top: 14px; }
  .usecase-block h6 {
    font-size: 12px; font-weight: 700; color: var(--c-purple);
    margin-bottom: 8px; letter-spacing: 0.08em;
  }
  .usecase-block ul { list-style: none; }
  .usecase-block li {
    font-size: 14px; padding: 4px 0 4px 18px; position: relative;
    color: var(--c-text); line-height: 1.7;
  }
  .usecase-block li::before {
    content: ""; position: absolute; left: 0; top: 12px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gradient);
  }
  .usecase-effect {
    margin-top: auto; padding: 12px 16px; border-radius: 10px;
    background: var(--gradient-soft); font-size: 13.5px; font-weight: 700;
    color: var(--c-text); border: 1px solid rgba(139, 109, 217, 0.15);
    text-align: center;
    line-height: 1.65;
  }
  .usecase-block + .usecase-effect { margin-top: 22px; }

  /* ===== ROI ===== */
  .roi-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  @media (max-width: 880px) {
    .roi-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 480px) {
    .roi-grid { grid-template-columns: 1fr; }
  }
  .roi-card {
    background: #ffffff; border: 1px solid var(--c-line); border-radius: 16px;
    padding: 32px 24px; text-align: center;
  }
  .roi-num {
    font-size: clamp(34px, 4.5vw, 48px); font-weight: 800; line-height: 1;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 10px; letter-spacing: -0.02em;
  }
  .roi-label { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
  .roi-desc { font-size: 13px; color: var(--c-text-sub); line-height: 1.65; }
  .roi-note {
    margin-top: 32px; padding: 22px 26px;
    background: #ffffff; border: 1px solid var(--c-line); border-radius: 14px;
    font-size: 13.5px; color: var(--c-text-sub); line-height: 1.9;
  }
  .roi-note strong { color: var(--c-text); }

  /* ===== Plan ===== */
  .plan-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
    align-items: stretch;
  }
  @media (max-width: 880px) { .plan-wrap { grid-template-columns: 1fr; } }
  .plan-box {
    background: #ffffff; border-radius: 20px; padding: 36px 32px;
    border: 1px solid var(--c-line);
  }
  .plan-box.base { border-top: 4px solid var(--c-blue); }
  .plan-box.option { border-top: 4px solid var(--c-pink); }
  .plan-box h3 {
    font-size: 26px; font-weight: 800; margin-bottom: 8px;
  }
  .plan-box .plan-desc { font-size: 13px; color: var(--c-text-sub); margin-bottom: 22px; }
  .plan-list { list-style: none; }
  .plan-list li {
    padding: 14px 0; border-bottom: 1px solid var(--c-line);
    display: flex; gap: 14px; align-items: flex-start;
  }
  .plan-list li:last-child { border-bottom: none; }
  .plan-list .check {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    background: var(--gradient); color: #ffffff; display: inline-flex;
    align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
    margin-top: 3px;
  }
  .plan-list .item-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; line-height: 1.55; }
  .plan-list .item-desc { font-size: 13.5px; color: var(--c-text-sub); line-height: 1.65; }

  /* ===== Timeline ===== */
  .timeline-wrap {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    align-items: stretch;
  }
  .timeline-step { display: flex; flex-direction: column; }
  @media (max-width: 880px) { .timeline-wrap { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px) { .timeline-wrap { grid-template-columns: 1fr; } }
  .timeline-step {
    background: #ffffff; border-radius: 16px; padding: 28px 24px;
    border: 1px solid var(--c-line);
  }
  .timeline-step .num {
    font-size: 12px; font-weight: 700; color: var(--c-purple);
    letter-spacing: 0.15em; margin-bottom: 12px;
  }
  .timeline-step h4 {
    font-size: 19px; font-weight: 800; margin-bottom: 10px; line-height: 1.5;
  }
  .timeline-step .period {
    display: inline-block; font-size: 11px; font-weight: 700;
    background: var(--gradient-soft); color: var(--c-purple);
    padding: 3px 10px; border-radius: 6px; margin-bottom: 12px;
  }
  .timeline-step p {
    font-size: 13px; color: var(--c-text-sub); line-height: 1.75;
  }

  /* ===== Pricing ===== */
  .pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  @media (max-width: 880px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .price-card.featured { transform: none; }
  }
  .price-card {
    background: #ffffff; border-radius: 20px; padding: 36px 28px;
    border: 1px solid var(--c-line); text-align: center;
    display: flex; flex-direction: column;
  }
  .price-card.featured {
    background: var(--gradient); color: #ffffff; border: none;
    box-shadow: 0 16px 40px rgba(139, 109, 217, 0.30);
    position: relative; z-index: 2;
  }
  .price-card.featured .label::before {
    content: "★ "; color: #ffffff;
  }
  .price-card .label {
    font-size: 15px; font-weight: 800; letter-spacing: 0.1em;
    margin-bottom: 14px; color: var(--c-purple);
  }
  .price-card.featured .label { color: #ffffff; opacity: 0.95; }
  .price-card .amount {
    font-size: clamp(28px, 3.5vw, 38px); font-weight: 800;
    line-height: 1.2; margin-bottom: 8px;
  }
  .price-card .amount small { font-size: 14px; font-weight: 600; opacity: 0.85; }
  .price-card .note { font-size: 13px; opacity: 0.85; margin-bottom: 20px; }
  .price-card ul {
    list-style: none; text-align: left; margin-top: 14px;
    font-size: 13.5px; line-height: 2;
    flex-grow: 1;
  }
  .price-card ul li::before { content: "✓ "; font-weight: 700; color: var(--c-purple); }
  .price-card.featured ul li::before { color: #ffffff; }

  /* ===== CTA ===== */
  .cta {
    background: var(--gradient); color: #ffffff;
    padding: 88px 0 96px; text-align: center;
  }
  .contact-form {
    background: #ffffff; border-radius: 20px;
    padding: 40px 36px; margin-top: 40px;
    text-align: left;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
    color: var(--c-text);
  }
  .form-row { margin-bottom: 20px; }
  .form-row label {
    display: block; font-size: 15px; font-weight: 700;
    margin-bottom: 8px; color: var(--c-text);
  }
  .form-row label .required {
    display: inline-block; font-size: 11px; font-weight: 700;
    background: #ee5a7d; color: #ffffff;
    padding: 2px 8px; border-radius: 4px; margin-left: 6px;
    vertical-align: 2px; letter-spacing: 0.05em;
  }
  .form-row label .optional {
    display: inline-block; font-size: 11px; font-weight: 700;
    background: #cfd1de; color: #ffffff;
    padding: 2px 8px; border-radius: 4px; margin-left: 6px;
    vertical-align: 2px; letter-spacing: 0.05em;
  }
  .form-row input, .form-row textarea {
    width: 100%; font-family: inherit;
    font-size: 16px;
    padding: 14px 16px;
    border: 1.5px solid var(--c-line); border-radius: 10px;
    background: #fafbff; color: var(--c-text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
  }
  .form-row textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
  .form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--c-purple);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(139, 109, 217, 0.15);
  }
  .form-row input::placeholder, .form-row textarea::placeholder { color: #b4b6c6; }
  .form-submit {
    width: 100%; padding: 18px 24px;
    font-size: 17px; font-weight: 800; font-family: inherit;
    color: #ffffff; background: var(--gradient);
    border: none; border-radius: 999px;
    cursor: pointer; margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 22px rgba(139, 109, 217, 0.30);
  }
  .form-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(139, 109, 217, 0.40); }
  .form-note {
    text-align: center; font-size: 13px; color: var(--c-text-sub);
    margin-top: 18px;
  }
  @media (max-width: 640px) {
    .contact-form { padding: 28px 22px; border-radius: 16px; }
    .form-row label { font-size: 14.5px; }
    .form-submit { font-size: 16px; padding: 16px 20px; }
  }
  .cta h2 {
    font-size: clamp(26px, 3.8vw, 40px); font-weight: 800;
    margin-bottom: 18px; line-height: 1.5;
    max-width: 760px; margin-left: auto; margin-right: auto;
  }
  .cta p { font-size: 16px; opacity: 0.95; margin-bottom: 36px; }
  .cta .btn {
    background: #ffffff !important;
    color: var(--c-purple) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  }
  .cta .btn:hover {
    background: #ffffff !important;
    color: var(--c-pink) !important;
  }

  /* ===== Footer ===== */
  footer {
    background: #ffffff;
    border-top: 1px solid var(--c-line);
    padding: 56px 0 0;
  }
  .footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 32px; flex-wrap: wrap;
  }
  .footer-logo img { height: 64px; }
  .footer-company {
    font-size: 14px; color: var(--c-text-sub); text-align: right;
    line-height: 1.85;
  }
  .footer-company .label {
    display: block; font-size: 10px; color: var(--c-text-mute);
    letter-spacing: 0.22em; text-transform: uppercase;
    margin-bottom: 6px; font-weight: 700;
  }
  .footer-company .name {
    display: block; font-weight: 700; color: var(--c-text);
    font-size: 15px; margin-bottom: 4px;
  }
  .footer-company .addr, .footer-company .tel {
    display: block; font-size: 13px;
  }
  .footer-bottom {
    text-align: center; font-size: 12px; color: var(--c-text-mute);
    padding: 24px 0; margin-top: 40px;
    border-top: 1px solid var(--c-line); letter-spacing: 0.08em;
  }
  @media (max-width: 720px) {
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-company { text-align: center; }
  }

/* ============================================================
   Blog Templates (WordPress)
   ============================================================ */
.blog-hero { padding-top: 80px; padding-bottom: 32px; }
.blog-list-section { padding-top: 32px; padding-bottom: 96px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(60, 80, 160, 0.10);
  border-color: rgba(139, 109, 217, 0.3);
}
.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.post-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--c-bg-alt);
  overflow: hidden;
  position: relative;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-thumb-fallback {
  width: 100%; height: 100%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-weight: 800; letter-spacing: 0.1em;
}
.post-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-card-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 12.5px; color: var(--c-text-sub);
  margin-bottom: 10px;
}
.post-card-cat {
  background: var(--gradient-soft);
  color: var(--c-purple);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px;
}
.post-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  margin-bottom: 10px;
  color: var(--c-text);
}
.post-card-excerpt {
  font-size: 13.5px;
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.pagination {
  margin-top: 60px;
  text-align: center;
}
.pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination a,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.pagination a:hover,
.pagination .page-numbers.current {
  background: var(--gradient);
  color: #ffffff;
  border-color: transparent;
}

/* Single Post */
.single-post, .single-page { padding: 80px 0 96px; }
.post-header {
  text-align: center;
  margin-bottom: 40px;
}
.post-meta {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  font-size: 13.5px; color: var(--c-text-sub);
  margin-bottom: 18px;
}
.post-cat {
  background: var(--gradient-soft);
  color: var(--c-purple);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.post-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.post-thumb {
  margin: 0 0 40px;
  border-radius: 18px;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: auto; display: block; }

.post-content {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--c-text);
}
.post-content p { margin: 0 0 1.4em; text-wrap: pretty; }
.post-content h2 {
  font-size: 26px; font-weight: 800;
  margin: 2.2em 0 0.8em;
  padding-left: 14px;
  border-left: 5px solid;
  border-image: var(--gradient) 1;
  line-height: 1.45;
}
.post-content h3 {
  font-size: 21px; font-weight: 800;
  margin: 1.8em 0 0.6em;
  line-height: 1.5;
}
.post-content h4 {
  font-size: 18px; font-weight: 800;
  margin: 1.6em 0 0.5em;
}
.post-content ul, .post-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.4em;
}
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote {
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-purple);
  padding: 18px 22px;
  margin: 1.5em 0;
  border-radius: 0 10px 10px 0;
  color: var(--c-text-sub);
}
.post-content a {
  color: var(--c-purple);
  text-decoration: underline;
  text-decoration-color: rgba(139, 109, 217, 0.4);
  text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-color: var(--c-purple); }
.post-content img {
  max-width: 100%; height: auto;
  border-radius: 12px;
  margin: 1.4em 0;
}
.post-content code {
  background: var(--c-bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.post-content pre {
  background: #1d1d28;
  color: #f7f8fc;
  padding: 20px 22px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14.5px;
}
.post-content table th,
.post-content table td {
  border: 1px solid var(--c-line);
  padding: 10px 14px;
  text-align: left;
}
.post-content table th {
  background: var(--c-bg-alt);
  font-weight: 700;
}

.post-tags {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.post-tags a {
  display: inline-block;
  background: var(--c-bg-alt);
  color: var(--c-text-sub);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.post-tags a:hover {
  background: var(--gradient);
  color: #ffffff;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
.post-nav a {
  display: block;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.2s;
}
.post-nav a:hover {
  border-color: var(--c-purple);
  background: var(--gradient-soft);
}
.post-nav-next { text-align: right; }
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
}

/* ============================================================
   Contact Form 7 互換スタイル
   ============================================================ */
.wpcf7 { margin: 0; }
.wpcf7-form-control-wrap { display: block; }

/* CF7 が出力する input/textarea を既存スタイルに合わせる */
.contact-form .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  background: #fafbff;
  color: var(--c-text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.contact-form textarea.wpcf7-form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}
.contact-form .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--c-purple);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(139, 109, 217, 0.15);
}
.contact-form .wpcf7-form-control::placeholder { color: #b4b6c6; }

/* 送信ボタン */
.contact-form .wpcf7-submit,
.contact-form input[type="submit"] {
  width: 100%;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  color: #ffffff;
  background: var(--gradient);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 22px rgba(139, 109, 217, 0.30);
}
.contact-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(139, 109, 217, 0.40);
}

/* CF7 メッセージ */
.wpcf7-response-output {
  border-radius: 10px;
  padding: 14px 18px !important;
  margin: 18px 0 0 !important;
  font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #e8f7ee;
  border: 1px solid #67c785 !important;
  color: #1f7a3f;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background: #fdecef;
  border: 1px solid #ee5a7d !important;
  color: #b8325a;
}

/* 個別バリデーションエラー */
.wpcf7-not-valid-tip {
  color: #ee5a7d !important;
  font-size: 12.5px;
  margin-top: 6px;
  display: block;
}
.contact-form .wpcf7-not-valid {
  border-color: #ee5a7d !important;
  background: #fff8fa !important;
}

/* 送信中スピナー */
.wpcf7-spinner {
  display: inline-block !important;
  vertical-align: middle;
  margin: 0 0 0 12px;
}
