  :root {
    --ink: #1a3d2e;
    --paper: #f4f8f5;
    --cream: #e4efe8;
    --red: #e07428;
    --gold: #e07428;
    --mid: #2d4a3a;
    --rule: #a8c4b0;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
  }

  /* NOISE TEXTURE OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
  }

  /* TOP RULE */
  .top-rule {
    background: var(--ink);
    height: 6px;
  }

  /* MASTHEAD */
  .masthead {
    border-bottom: 3px double var(--ink);
    padding: 20px 0 16px;
    text-align: center;
    position: relative;
  }
  .masthead-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
  }
  .masthead-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--mid);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .masthead-logo {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(52px, 8vw, 88px);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--ink);
  }
  .masthead-logo span {
    color: var(--red);
  }
  .masthead-tagline {
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    color: var(--mid);
    margin-top: 8px;
    letter-spacing: 0.15em;
  }

  /* DATE BAR */
  .datebar {
    background: var(--ink);
    color: var(--paper);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-align: center;
    padding: 6px 0;
  }

  /* HERO */
  .hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
    border-bottom: 1px solid var(--rule);
  }
  .hero-main {}
  .hero-kicker {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-kicker::before {
    content: '▐';
    color: var(--red);
  }
  .hero-headline {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
  }
  .hero-headline em {
    font-style: normal;
    color: var(--red);
    border-bottom: 3px solid var(--red);
  }
  .hero-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--ink);
    max-width: 520px;
    margin-bottom: 32px;
  }
  .hero-cta {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 16px 36px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    position: relative;
  }
  .hero-cta::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--ink);
    pointer-events: none;
  }
  .hero-cta:hover {
    background: var(--red);
  }

  /* SIDEBAR */
  .hero-aside {
    border-left: 3px double var(--rule);
    padding-left: 40px;
  }
  .aside-box {
    background: var(--cream);
    border: 1px solid var(--rule);
    padding: 24px;
    margin-bottom: 24px;
  }
  .aside-box-title {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mid);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .aside-stat {
    margin-bottom: 16px;
  }
  .aside-stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    color: var(--red);
    line-height: 1;
  }
  .aside-stat-label {
    font-size: 13px;
    color: var(--mid);
    margin-top: 2px;
  }
  .aside-quote {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--mid);
    font-style: italic;
    border-left: 3px solid var(--red);
    padding-left: 14px;
  }

  /* PROBLEM SECTION */
  .section {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 40px;
    border-bottom: 1px solid var(--rule);
  }
  .section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 40px;
  }
  .section-num {
    font-family: 'DM Serif Display', serif;
    font-size: 72px;
    color: var(--cream);
    line-height: 1;
    -webkit-text-stroke: 1px var(--rule);
  }
  .section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 3px solid var(--ink);
    padding-bottom: 8px;
  }

  .pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-bottom: 32px;
  }
  .pain-item {
    background: var(--paper);
    padding: 28px 24px;
    position: relative;
  }
  .pain-icon {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .pain-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .pain-body {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.7;
  }

  /* SOLUTION SECTION */
  .solution-intro {
    font-family: 'Noto Serif JP', serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.8;
    max-width: 640px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--ink);
    color: var(--paper);
    position: relative;
  }
  .solution-intro::before {
    content: '"';
    font-family: 'DM Serif Display', serif;
    font-size: 120px;
    color: var(--red);
    position: absolute;
    top: -20px;
    left: 16px;
    line-height: 1;
    opacity: 0.3;
  }

  .flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
  }
  .flow::before {
    display: none;
  }
  .flow-item {
    padding: 0 24px 0 0;
    position: relative;
  }
  .flow-item:last-child { padding-right: 0; }
  .flow-num {
    font-family: 'DM Serif Display', serif;
    font-size: 14px;
    background: var(--ink);
    color: var(--paper);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
  .flow-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .flow-sub {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--red);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
  }
  .flow-body {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.7;
  }

  /* PRICE SECTION */
  .price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .price-card {
    border: 1px solid var(--rule);
    padding: 28px 24px;
    position: relative;
    background: var(--paper);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .price-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 var(--ink);
  }
  .price-card.featured {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .price-card.featured .price-label,
  .price-card.featured .price-desc,
  .price-card.featured .price-note,
  .price-card.featured .price-includes li { color: var(--cream); }
  .price-card.featured .price-includes li::before { color: var(--red); }
  .price-badge {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--red);
    color: white;
    padding: 3px 10px;
    position: absolute;
    top: -1px;
    left: -1px;
  }
  .price-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mid);
    margin-top: 24px;
    margin-bottom: 12px;
  }
  .price-amount {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 4px;
  }
  .price-amount span {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: var(--mid);
  }
  .price-card.featured .price-amount span { color: var(--cream); }
  .price-desc {
    font-size: 13px;
    color: var(--mid);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
  }
  .price-card.featured .price-desc { border-color: rgba(255,255,255,0.2); }
  .price-includes {
    list-style: none;
    margin-bottom: 16px;
  }
  .price-includes li {
    font-size: 14px;
    color: var(--ink);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
  }
  .price-includes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
  }
  .price-note {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--mid);
    margin-top: 12px;
  }

  /* TICKET SECTION */
  .ticket-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  .ticket-item {
    background: var(--paper);
    padding: 24px 20px;
    text-align: center;
  }
  .ticket-icon { font-size: 24px; margin-bottom: 10px; }
  .ticket-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .ticket-price {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--red);
    margin-bottom: 8px;
  }
  .ticket-price span {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    color: var(--mid);
  }
  .ticket-desc {
    font-size: 13px;
    color: var(--mid);
    line-height: 1.6;
  }

  /* DIFFERENCE SECTION */
  .diff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .diff-table th {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 12px 16px;
    background: var(--ink);
    color: var(--paper);
    text-align: left;
  }
  .diff-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rule);
    vertical-align: middle;
  }
  .diff-table tr:nth-child(even) td { background: var(--cream); }
  .diff-table td.check { color: var(--red); font-size: 18px; font-weight: bold; text-align: center; }
  .diff-table td.cross { color: var(--rule); text-align: center; font-size: 18px; }
  .diff-table th:first-child { width: 40%; }
  .diff-table th:not(:first-child) { text-align: center; }


  .profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 0;
    object-fit: cover;
    object-position: center top;
    border: 6px solid #4a8a62;
    box-shadow: 5px 5px 0 var(--red);
    display: block;
    margin-bottom: 20px;
  }

  /* WORKS */
  .works-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .works-cat-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--ink);
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 16px;
  }
  .works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .works-card {
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--rule);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--paper);
    min-height: 80px;
    overflow: hidden;
  }
  .works-card:hover {
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 var(--red);
  }
  .works-thumb {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    flex-shrink: 0;
    overflow: hidden;
    align-self: stretch;
  }
  .works-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
  }
  .works-card:hover .works-thumb img {
    transform: scale(1.03);
  }
  .works-thumb-placeholder {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .works-thumb-placeholder span {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.15em;
    color: var(--rule);
  }
  .works-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .works-media {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.2em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .works-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  @media (max-width: 768px) {
    .works-grid { grid-template-columns: 1fr; }
  }

  /* PROFILE */
  .profile-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
  }
  .profile-name-block {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px double var(--rule);
  }
  .profile-role {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .profile-name {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 4px;
  }
  .profile-name span {
    font-size: 16px;
    color: var(--mid);
    margin-left: 12px;
  }
  .profile-company {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--mid);
    letter-spacing: 0.1em;
    margin-top: 4px;
  }
  .profile-body p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink);
    margin-bottom: 14px;
  }
  .profile-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }
  .profile-cred-item {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    border: 1px solid var(--ink);
    padding: 4px 12px;
    color: var(--ink);
  }
  .profile-media-block {
    border-left: 3px double var(--rule);
    padding-left: 32px;
  }
  .profile-media-title {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mid);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
  .profile-media-list {
    font-size: 13px;
    line-height: 1.9;
    color: var(--mid);
  }
  @media (max-width: 768px) {
    .profile-wrap { grid-template-columns: 1fr; gap: 32px; }
    .profile-media-block { border-left: none; border-top: 3px double var(--rule); padding-left: 0; padding-top: 24px; }
  }

  /* CTA */
  .cta-section {
    background: var(--ink);
    color: var(--paper);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-section::before {
    content: 'KIJI';
    font-family: 'DM Serif Display', serif;
    font-size: 280px;
    color: rgba(255,255,255,0.03);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
  }
  .cta-inner { position: relative; max-width: 600px; margin: 0 auto; }
  .cta-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.5;
  }
  .cta-body {
    font-size: 14px;
    color: rgba(245,240,232,0.9);
    margin-bottom: 40px;
    line-height: 1.8;
  }
  .cta-btn {
    display: inline-block;
    background: var(--red);
    color: white;
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 600;
    padding: 18px 48px;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: background 0.2s, transform 0.2s;
    position: relative;
  }
  .cta-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255,255,255,0.3);
    pointer-events: none;
  }
  .cta-btn:hover { background: #a93226; transform: translate(-2px, -2px); }
  .cta-note {
    margin-top: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(245,240,232,0.4);
    letter-spacing: 0.2em;
  }

  /* FOOTER */
  footer {
    background: var(--ink);
    color: rgba(245,240,232,0.5);
    text-align: center;
    padding: 24px 40px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    border-top: 3px double rgba(255,255,255,0.1);
  }

  /* DIVIDER */
  .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 40px;
    color: var(--rule);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
  }

  /* ANIMATION */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-main, .hero-aside, .pain-item, .flow-item, .price-card, .ticket-item {
    animation: fadeUp 0.6s ease both;
  }
  .pain-item:nth-child(1) { animation-delay: 0.1s; }
  .pain-item:nth-child(2) { animation-delay: 0.2s; }
  .pain-item:nth-child(3) { animation-delay: 0.3s; }
  .flow-item:nth-child(1) { animation-delay: 0.1s; }
  .flow-item:nth-child(2) { animation-delay: 0.25s; }
  .flow-item:nth-child(3) { animation-delay: 0.4s; }

  /* 日本語を含むラベル: デスクトップでサイズアップ */
  @media (min-width: 769px) {
    .masthead-label,
    .flow-sub,
    .price-label,
    .price-note,
    .works-cat-label,
    .profile-role,
    .profile-company,
    .profile-cred-item,
    .profile-media-title,
    .aside-box-title,
    .cta-note {
      font-size: 12px;
    }
    .price-badge,
    .works-media {
      font-size: 11px;
    }
  }

  @media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .hero-aside { border-left: none; border-top: 3px double var(--rule); padding-left: 0; padding-top: 40px; }
    .pain-grid, .price-grid { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; gap: 32px; }
    .flow::before { display: none; }
    .ticket-grid { grid-template-columns: repeat(3, 1fr); }
    .diff-table { font-size: 12px; }
    .section { padding: 40px 24px; }
    .masthead-inner { padding: 0 24px; }
    .hero { padding: 40px 24px; }
  }

  /* CONTACT FORM (CF7) */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="url"] {
    width: 100%;
    max-width: 480px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    border: 1px solid var(--rule);
    background: white;
    color: var(--ink);
    border-radius: 0;
    transition: border-color 0.2s;
  }
  .wpcf7 input[type="text"]:focus,
  .wpcf7 input[type="email"]:focus,
  .wpcf7 input[type="tel"]:focus,
  .wpcf7 input[type="url"]:focus {
    outline: none;
    border-color: var(--ink);
  }
  .wpcf7 textarea {
    width: 100%;
    max-width: 480px;
    min-height: 160px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    border: 1px solid var(--rule);
    background: white;
    color: var(--ink);
    border-radius: 0;
    resize: vertical;
    transition: border-color 0.2s;
  }
  .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--ink);
  }
  .wpcf7 input[type="submit"] {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 16px 48px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: relative;
  }
  .wpcf7 input[type="submit"]:hover {
    background: var(--red);
    transform: translateY(-2px);
  }
  .wpcf7 p {
    margin-bottom: 16px;
    text-align: left;
  }
  .wpcf7 label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: var(--ink);
    display: block;
    text-align: left;
  }
  .wpcf7 form {
    max-width: 480px;
    margin: 0 auto;
  }

/* CF7 バリデーション */
.wpcf7-not-valid-tip {
    display: block !important;
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
}
.wpcf7-response-output {
    display: block !important;
    margin: 16px 0 !important;
    padding: 10px 16px !important;
    border: 1px solid #c0392b !important;
    font-size: 13px;
    color: #c0392b;
}
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #c0392b !important;
}
.wpcf7-acceptance .wpcf7-not-valid-tip {
    display: block !important;
}

