/*
Theme Name: HALAL ICHIBA
Theme URI: https://halalichiba.com
Author: Tradi Inc.
Version: 1.0.0
Text Domain: halalichiba
*/

/* ===================== Base / Tokens ===================== */
:root{
  --brand:#0E6E2B; --ink:#1f2937; --bg:#ffffff; --muted:#6b7280;
  --radius:8px; --shadow:0 10px 25px rgba(0,0,0,.08); --container:1200px;
}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,'Noto Sans JP',sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.7;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  /* 和紙テクスチャ */
  background-image:url('https://www.transparenttextures.com/patterns/rice-paper-2.png');
  background-size:auto; background-repeat:repeat; background-attachment:fixed;
}
[id]{scroll-margin-top:96px}

/* ===================== Layout Utilities ===================== */
.container{max-width:var(--container);margin-inline:auto;padding:clamp(16px,3vw,32px)}
.stack{display:flex;flex-direction:column;gap:clamp(12px,2.2vw,24px)}
.cluster{display:flex;flex-wrap:wrap;gap:clamp(8px,1.6vw,16px);align-items:center}
.muted{color:var(--muted)}
.spacer{flex:1}

/* ===================== Buttons ===================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.9rem 1.2rem;border-radius:8px;
  background:var(--brand);color:#fff;
  text-decoration:none;font-weight:700;
  border:2px solid var(--brand);
  transition:all 0.3s ease;
}
.btn:hover{
  background:transparent;color:var(--brand);
}
.btn.alt{background:#fff;color:var(--brand)}

/* ===================== Images ===================== */
img{max-width:100%;height:auto;display:block}

/* Aspect Ratio Container */
.ratio{
  position:relative; width:100%;
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  display:block;
}
.ratio::before{
  content:""; display:block;
  padding-top:75% !important; /* 4:3 default */
  aspect-ratio:4/3 !important;
}
.ratio.ratio-wide::before{
  padding-top:56.25% !important; /* 16:9 wide */
  aspect-ratio:16/9 !important;
}
.ratio > picture,
.ratio > img{
  position:absolute; inset:0; width:100%; height:100%; display:block;
}
.ratio img{object-fit:cover; object-position:center}

/* Placeholder images */
img.ph{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:12px}
.ph{
  width:100%;aspect-ratio:4/3;background:#f3f4f6;
  border-radius:12px;display:block;
}

/* ===================== Header ===================== */
header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(255,255,255,.98);
  backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(14, 110, 43, .08);
  transition: all 0.3s ease;
  padding: 12px 0;
}
header.scrolled{
  box-shadow:0 4px 24px rgba(14, 110, 43, .12);
  padding: 8px 0;
  background:rgba(255,255,255,1);
}
header .container{
  transition: padding 0.3s ease;
}
header .logo{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
}
.logo-img{
  display:block;
  height:42px;
  width:auto;
  filter:drop-shadow(0 2px 4px rgba(14, 110, 43, 0.1));
  transition: all 0.3s ease;
}
header.scrolled .logo-img{
  height:38px;
}
@media(min-width:960px){
  .logo-img{height:48px}
  header.scrolled .logo-img{height:42px}
}
nav a{
  color:var(--ink);
  text-decoration:none;
  opacity:.85;
  font-weight:600;
  transition: all 0.3s ease;
  position:relative;
  padding: 8px 4px;
}
nav a:hover{
  opacity:1;
  color:var(--brand);
}
nav a.current{
  opacity:1;
  color:var(--brand);
}
nav a:not(.btn)::after{
  content:'';
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%) scaleX(0);
  width:80%;
  height:2px;
  background:var(--brand);
  transition:transform 0.3s ease;
  border-radius:2px;
}
nav a:not(.btn):hover::after,
nav a:not(.btn).current::after{
  transform:translateX(-50%) scaleX(1);
}
nav a.btn{
  background:linear-gradient(135deg, var(--brand) 0%, #0a5220 100%);
  box-shadow: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 700;
  letter-spacing: 0.03em;
}
nav a.btn svg{
  transition: transform 0.3s ease;
}
nav a.btn:hover{
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
nav a.btn:hover svg{
  stroke: var(--brand);
}

/* Hamburger Menu */
.hamburger-btn{
  display:none;
  background:none;border:none;cursor:pointer;padding:8px;
  flex-direction:column;justify-content:center;align-items:center;
  width:44px;height:44px;position:relative;z-index:1001;
}
.hamburger-line{
  display:block;width:24px;height:2px;background:var(--ink);
  margin:3px 0;transition:all 0.3s ease;transform-origin:center;
}
.hamburger-btn.active .hamburger-line:nth-child(1){transform:rotate(45deg) translate(6px, 6px)}
.hamburger-btn.active .hamburger-line:nth-child(2){opacity:0}
.hamburger-btn.active .hamburger-line:nth-child(3){transform:rotate(-45deg) translate(6px, -6px)}

.mobile-menu-overlay{
  display:none;position:fixed;top:0;left:0;width:100%;height:100vh;
  background:rgba(0,0,0,0.5);z-index:999;opacity:0;transition:opacity 0.3s ease;
}
.mobile-menu-overlay.active{display:block;opacity:1}

/* ===================== Sections ===================== */
section{padding-block: clamp(60px,8vw,120px)}
.hero{padding-block: 0}
.band{padding-block: clamp(48px,6vw,96px)}

/* Section Headings */
section:not(.band):not(.hero) h2{
  font-size:clamp(28px,4.4vw,42px);
  line-height:1.18;
  margin: 0 0 clamp(24px,3vw,48px) 0;
  text-align: center;
}
section.contact h2,
section.flow h2,
section#services h2{
  margin: 0 0 clamp(8px,1vw,12px) 0 !important;
}
section h2::after{content:none!important}

/* ===================== Page Hero ===================== */
.page-hero{
  position:relative;
  background:linear-gradient(135deg, #0a5220 0%, #0E6E2B 50%, #16a34a 100%);
  padding:50px 0;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.page-hero::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:url('<?php echo get_template_directory_uri(); ?>/img/lp_2025/halal-about.jpg') center/cover;
  opacity:0.15;
  z-index:0;
}
.page-hero::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:120px;
  background:linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
  z-index:1;
}
/* 装飾的な要素 */
.page-hero .hero-decoration{
  position:absolute;
  border-radius:50%;
  filter:blur(80px);
  z-index:0;
}
.page-hero .hero-decoration:nth-child(1){
  top:-100px;
  right:-100px;
  width:400px;
  height:400px;
  background:rgba(255,255,255,0.08);
}
.page-hero .hero-decoration:nth-child(2){
  bottom:-150px;
  left:-150px;
  width:500px;
  height:500px;
  background:rgba(255,255,255,0.06);
}
.page-hero .container{
  position:relative;
  z-index:2;
}
.page-hero h1{
  font-size:clamp(2rem, 5vw, 3rem);
  color:white;
  margin:0;
  font-weight:700;
  letter-spacing:0.05em;
  text-shadow:0 4px 20px rgba(0,0,0,0.3);
  line-height:1.2;
}
.page-hero .lead{
  max-width:700px;
  margin:0 auto;
  font-size:clamp(0.95rem, 2.2vw, 1.15rem);
  text-shadow:0 2px 8px rgba(0,0,0,0.3);
  opacity:0.95;
  font-weight:500;
  line-height:1.6;
}
.page-hero .breadcrumb{
  display:flex;
  gap:8px;
  align-items:center;
  font-size:14px;
  opacity:0.85;
  margin-bottom:16px;
}
.page-hero .breadcrumb a{
  color:white;
  text-decoration:none;
  transition:opacity 0.3s ease;
}
.page-hero .breadcrumb a:hover{
  opacity:1;
  text-decoration:underline;
}
@media(max-width:768px){
  .page-hero{
    padding:45px 0;
  }
}

/* ===================== Grid Layouts ===================== */
.grid2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(16px,2vw,24px);
  margin-top: 8px;
}
@media(max-width:640px){.grid2{grid-template-columns:1fr}}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,24px)}
@media(max-width:960px){.grid3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.grid3{grid-template-columns:1fr}}

.grid4-responsive{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:clamp(16px,2vw,24px);
  margin-top: 24px;
}
@media(max-width:960px){
  .grid4-responsive{
    grid-template-columns:1fr 1fr;
    gap:clamp(12px,1.8vw,20px);
  }
}
@media(max-width:640px){
  .grid4-responsive{
    grid-template-columns:1fr;
    gap:clamp(16px,2.5vw,20px);
    margin-top: 20px;
  }
}

/* ===================== Cards ===================== */
.card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:var(--radius);
  padding:clamp(16px,2.2vw,22px);
  box-shadow:var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media(max-width:640px){
  .card{
    padding:clamp(14px,4vw,18px);
  }
  .card h3{
    font-size:clamp(1.1rem,4vw,1.3rem);
    margin-bottom:8px;
  }
  .card p{
    font-size:clamp(0.9rem,3.5vw,1rem);
    line-height:1.5;
  }
}

.card a:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 30px rgba(0,0,0,.12);
  transition:transform .25s ease, box-shadow .25s ease;
}

/* ===================== About Section Layouts ===================== */
.about-row{
  display:grid;grid-template-columns:1fr;gap:clamp(16px,2.6vw,32px);align-items:center
}
.about-media{width:100%;display:block}

@media(min-width:1024px){
  .about-row{grid-template-columns:.8fr 1.2fr}
  .about-row.rev .about-media{order:2}
  .about-row.rev .about-text{order:1}
  .about-media{max-width:520px;justify-self:center}
}

.about-block{margin-bottom: clamp(40px,5vw,64px)}

.about-row{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(40px,6vw,80px) !important;
  align-items: center !important;
}

/* Image positioning */
.about-row .about-media{order: 2 !important}
.about-row .about-text{order: 1 !important}
.about-row.rev .about-media{order: 1 !important}
.about-row.rev .about-text{order: 2 !important}

.about-media{max-width: 100% !important;width: 100% !important}

/* Text styles */
.about-text{
  max-width: 100% !important;
  width: 100% !important;
  padding: clamp(16px,2vw,24px) !important;
  text-align: left !important;
}

.about-text h2{
  font-size: clamp(24px,3.5vw,36px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 clamp(12px,1.5vw,16px) 0 !important;
  color: var(--ink) !important;
  text-align: left !important;
}

.about-text p{
  font-size: clamp(14px,2vw,16px) !important;
  line-height: 1.6 !important;
  margin: 0 0 clamp(12px,1.5vw,16px) 0 !important;
  color: var(--ink) !important;
}

.about-text p.muted{
  color: var(--brand) !important;
  font-size: clamp(18px,2.5vw,22px) !important;
  font-weight: 600 !important;
  margin-bottom: clamp(8px,1vw,12px) !important;
}

.about-text p:last-child{margin-bottom: 0 !important}

/* Responsive */
@media(max-width: 1024px){
  .about-row,
  .about-row.rev{
    grid-template-columns: 1fr !important;
    gap: clamp(16px,3vw,24px) !important;
  }
  .about-row .about-media,
  .about-row.rev .about-media{
    order: 1 !important;
  }
  .about-row .about-text,
  .about-row.rev .about-text{
    order: 2 !important;
  }
}

/* ===================== Halal Categories ===================== */
.halal-categories{
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px;
  margin: 0 auto;
}

.category-item{
  background: #fff;
  padding: 24px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.category-item h4{
  color: var(--brand);
  margin: 0 0 16px;
  font-size: 16px;
}

.category-item ul{
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 768px) {
  .halal-categories{
    grid-template-columns: 1fr !important;
    gap: 20px;
    max-width: 100% !important;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .halal-categories{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 600px !important;
  }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .halal-categories{
    max-width: 750px !important;
    gap: 20px;
  }
}

/* ===================== Services Cards ===================== */
.card.service{
  background:linear-gradient(#ffffff,#ffffff) padding-box,
             linear-gradient(135deg,rgba(14,110,43,.35),rgba(34,197,94,.28)) border-box;
  border:1px solid transparent;border-radius:var(--radius);box-shadow:0 12px 28px rgba(0,0,0,.10);
  position:relative;overflow:hidden;
  text-align:center;
}

.card.service p{text-align:left}

.card.service .icon-circle{
  width:80px;height:80px;display:inline-grid;place-items:center;margin:0 auto 0 auto;
  background:transparent;color:var(--brand);box-shadow:none;border-radius:0;
}

.card.service .icon-circle svg{
  width:60px;height:60px;display:block;margin:0 auto;
}

.card.service.stack{gap: clamp(6px,1vw,8px) !important}
.card.service h3{margin: 0 0 clamp(8px,1.2vw,12px) 0}
.card.service p{margin: 0 0 clamp(12px,1.5vw,16px) 0}
.card.service::after{display: none}

.icon-circle{
  width:44px;height:44px;border-radius:999px;display:inline-grid;place-items:center;margin-bottom:8px;
  background:linear-gradient(135deg,var(--brand),#16a34a);color:#fff;box-shadow:0 6px 16px rgba(14,110,43,.25)
}
.icon-circle svg{width:22px;height:22px;display:block}

/* ===================== Forms ===================== */
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:.9rem;color:var(--ink);font-weight:500}
.field label.required::after{
  content:'必須';
  background:#dc3545;
  color:#fff;
  font-size:0.7rem;
  font-weight:600;
  margin-left:6px;
  padding:2px 6px;
  border-radius:4px;
}
.field input,.field textarea,.field select{appearance:none;border:1px solid #d1d5db;border-radius:10px;padding:12px 14px;font:inherit;background:#fff}
.field textarea{min-height:140px;resize:vertical}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.formgrid .colspan-2{grid-column:1/-1}

/* CF7 Compatibility */
.formgrid .wpcf7-form-control-wrap { display:block; width:100% }
.formgrid .wpcf7-form-control { width:100%; box-sizing:border-box }

.formgrid .field input[type="text"],
.formgrid .field input[type="email"],
.formgrid .field input[type="tel"],
.formgrid .field select,
.formgrid .field textarea {
  width:100%;
  height:44px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
}
.formgrid .field textarea { min-height:140px; height:auto; resize:vertical }

.wpcf7-not-valid-tip { color:#ef4444; font-size:12px; margin-top:4px }
.wpcf7 form .btn[type="submit"] { cursor:pointer }

/* Contact Form Submit Button */
.wpcf7-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.8rem !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #0E6E2B, #0a5220) !important;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem !important;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  min-width: 240px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 110, 43, 0.3);
}

.wpcf7-form p:has(.wpcf7-submit),
.wpcf7-form p:last-child,
.contact .wpcf7-form > p:last-of-type {
  text-align: center !important;
  margin-top: 2rem;
}

.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"],
.contact input[type="submit"] {
  display: block !important;
  margin: 2rem auto 0 auto !important;
}

section.contact .wpcf7-form > p:not(:last-child) {
  text-align: left !important;
}

/* ===================== Entry Form Styling ===================== */
.page-entry .contact-form-wrapper {
  background: #fff;
  padding: clamp(32px, 5vw, 48px);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Form Labels and Form Field Wrappers */
.page-entry .wpcf7-form label,
.page-entry .wpcf7-form .form-field-wrapper {
  display: block;
  font-weight: 500;
  color: #202124;
  margin-bottom: 24px;
  font-size: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.page-entry .wpcf7-form label:hover,
.page-entry .wpcf7-form .form-field-wrapper:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Form field wrapper behaves like label but without click issues */
.page-entry .wpcf7-form .form-field-wrapper input,
.page-entry .wpcf7-form .form-field-wrapper select,
.page-entry .wpcf7-form .form-field-wrapper textarea,
.page-entry .wpcf7-form .form-field-wrapper .wpcf7-list-item {
  cursor: pointer;
}

/* Label Span - Question Title */
.page-entry .wpcf7-form label span.question-title,
.page-entry .wpcf7-form .form-field-wrapper span.question-title {
  display: block;
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 0;
  margin-left: -24px;
  margin-right: -24px;
  margin-top: -24px;
  padding: 16px 24px;
  padding-left: 28px;
  border-bottom: 2px solid #f3f4f6;
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  line-height: 1.5;
  position: relative;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  pointer-events: none;
}

.page-entry .wpcf7-form label span.question-title::before,
.page-entry .wpcf7-form .form-field-wrapper span.question-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--brand);
  border-top-left-radius: 12px;
}

/* Required asterisk in red */
.page-entry .wpcf7-form span.question-title .required,
.goals-matrix-wrapper .question-title .required {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

.page-entry .wpcf7-form label span.question-title + *,
.page-entry .wpcf7-form .form-field-wrapper span.question-title + * {
  margin-top: 20px;
}

.page-entry .wpcf7-form label p:has(span.question-title),
.page-entry .wpcf7-form .form-field-wrapper p:has(span.question-title) {
  margin-block-start: 0;
  margin-block-end: 0;
}

.goals-matrix-wrapper p:has(span.question-title) {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Hide br tags in form labels */
.page-entry .wpcf7-form label br {
  display: none;
}

/* Alternative: form-field divs (if using divs instead of labels) */
.page-entry .wpcf7-form .form-field {
  display: block;
  margin-bottom: 24px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.page-entry .wpcf7-form .form-field:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.page-entry .wpcf7-form .form-field span.question-title {
  display: block;
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 16px;
  margin-left: -20px;
  margin-right: -20px;
  margin-top: -20px;
  padding: 16px 20px;
  padding-left: 12px;
  border-left: 8px solid var(--brand);
  border-bottom: 1px solid #f3f4f6;
  background: #fafbfc;
  line-height: 1.5;
  border-radius: 12px 12px 0 0;
}

/* Form Inputs */
.page-entry .wpcf7-form input[type="text"],
.page-entry .wpcf7-form input[type="email"],
.page-entry .wpcf7-form input[type="tel"],
.page-entry .wpcf7-form input[type="url"],
.page-entry .wpcf7-form select,
.page-entry .wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fafafa;
  box-sizing: border-box;
}

.page-entry .wpcf7-form select {
  min-height: 48px;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230E6E2B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.page-entry .wpcf7-form input:focus,
.page-entry .wpcf7-form select:focus,
.page-entry .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 110, 43, 0.1);
}

.page-entry .wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Form Paragraphs */
.page-entry .wpcf7-form > p {
  margin-bottom: 32px;
}

/* Radio & Checkbox Styling */
.page-entry .wpcf7-form .wpcf7-radio,
.page-entry .wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.page-entry .wpcf7-form .wpcf7-list-item {
  margin: 0;
}

.page-entry .wpcf7-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  padding: 14px 20px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-left: 4px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.25s ease;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.page-entry .wpcf7-form .wpcf7-list-item label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, rgba(14, 110, 43, 0.05) 0%, rgba(14, 110, 43, 0.02) 100%);
  transition: width 0.3s ease;
}

.page-entry .wpcf7-form .wpcf7-list-item label > * {
  position: relative;
  z-index: 1;
}

.page-entry .wpcf7-form .wpcf7-list-item label:hover {
  border-color: var(--brand);
  border-left-color: var(--brand);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(14, 110, 43, 0.15);
}

.page-entry .wpcf7-form .wpcf7-list-item label:hover::before {
  width: 100%;
}

.page-entry .wpcf7-form .wpcf7-list-item:has(input:checked) label {
  border-color: var(--brand);
  border-left-color: var(--brand);
  border-left-width: 4px;
  background: linear-gradient(135deg, var(--brand) 0%, #0a5220 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(14, 110, 43, 0.35);
  transform: translateY(-1px);
}

.page-entry .wpcf7-form .wpcf7-list-item:has(input:checked) label::before {
  display: none;
}

.page-entry .wpcf7-form input[type="radio"],
.page-entry .wpcf7-form input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 0;
  margin-bottom: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand);
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.matrix-table input[type="radio"] {
  position: static;
  top: auto;
}

.page-entry .wpcf7-form .wpcf7-list-item label .wpcf7-list-item-label {
  line-height: 18px;
}

/* Other input field wrapper */
.page-entry .wpcf7-form .other-input-wrapper {
  margin-top: 8px;
  display: none;
}

.page-entry .wpcf7-form .other-input-wrapper.show {
  display: block;
}

.page-entry .wpcf7-form .other-input-wrapper input[type="text"],
.page-entry .wpcf7-form .other-input-wrapper textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fafafa;
  box-sizing: border-box;
}

.page-entry .wpcf7-form .other-input-wrapper input[type="text"]:focus,
.page-entry .wpcf7-form .other-input-wrapper textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 110, 43, 0.1);
}

/* Goals Matrix Styling - Google Forms Style */
.goals-matrix-wrapper {
  margin-bottom: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.goals-matrix-wrapper:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.goals-matrix-wrapper .question-title {
  display: block;
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 16px;
  margin-left: -24px;
  margin-right: -24px;
  margin-top: -24px;
  padding: 16px 24px;
  padding-left: 28px;
  border-bottom: 2px solid #f3f4f6;
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  line-height: 1.5;
  position: relative;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  pointer-events: none;
}

.goals-matrix-wrapper .question-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--brand);
  border-top-left-radius: 12px;
}

.goals-matrix {
  margin-top: 20px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

/* Matrix Table */
.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin: 0;
  table-layout: fixed;
}

.matrix-table thead th {
  padding: 12px 16px;
  text-align: left !important;
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  background: transparent;
  border: none;
  width: 15%;
}

.matrix-table thead th:first-child {
  text-align: left !important;
  width: 40%;
  padding-left: 20px;
}

.matrix-table thead th:nth-child(2),
.matrix-table thead th:nth-child(3),
.matrix-table thead th:nth-child(4),
.matrix-table thead th:nth-child(5) {
  text-align: left !important;
  padding-left: 16px;
}

/* Debug - Force left align on all th and their p tags */
.page-entry .matrix-table thead th {
  text-align: left !important;
}

.page-entry .goals-matrix-wrapper .matrix-table thead th {
  text-align: left !important;
  padding-top: 0;
}

.matrix-table thead th p {
  text-align: left !important;
  margin: 0;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  padding: 0;
}

.matrix-table tbody td p {
  margin: 0 !important;
  padding: 0 !important;
}

.matrix-table tbody td:first-child p {
  text-align: left !important;
}

.matrix-table tbody tr {
  background: #f8f9fa;
  border-radius: 8px;
}

.matrix-table tbody td {
  padding: 0 16px;
  border: none;
  background: #f8f9fa;
  width: 15%;
}

.matrix-table tbody td:first-child {
  font-weight: 500;
  color: #202124;
  font-size: 14px;
  border-radius: 8px 0 0 8px;
  padding-left: 20px;
  width: 40%;
  text-align: left !important;
}

.matrix-table tbody td:last-child {
  border-radius: 0 8px 8px 0;
}

.matrix-table tbody td:not(:first-child) {
  text-align: center;
  vertical-align: middle;
}

.matrix-table tbody tr:hover {
  background: #e8f5e9;
}

.matrix-table tbody tr:hover td {
  background: #e8f5e9;
}

.matrix-table input[type="radio"] {
  margin: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  cursor: pointer;
  display: block;
  position: static !important;
  top: auto !important;
}

.page-entry .wpcf7-form .matrix-table input[type="radio"] {
  margin: 0 !important;
}

/* Hide radio button labels */
.matrix-table .wpcf7-form-control.wpcf7-radio {
  margin-top: 15px;
}

.matrix-table .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matrix-table .wpcf7-list-item label {
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matrix-table .wpcf7-list-item-label {
  display: none;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  /* Contact form wrapper - remove background and padding on mobile */
  .page-entry .contact-form-wrapper {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Form container */
  .page-entry .wpcf7-form {
    padding: 0;
  }

  /* Form Labels and Form Field Wrappers */
  .page-entry .wpcf7-form label,
  .page-entry .wpcf7-form .form-field-wrapper {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
  }

  /* Label Span - Question Title */
  .page-entry .wpcf7-form label span.question-title,
  .page-entry .wpcf7-form .form-field-wrapper span.question-title {
    margin-left: -16px;
    margin-right: -16px;
    margin-top: -16px;
    padding: 12px 16px;
    padding-left: 20px;
    font-size: 18px !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  .page-entry .wpcf7-form label span.question-title::before,
  .page-entry .wpcf7-form .form-field-wrapper span.question-title::before {
    width: 4px;
    border-top-left-radius: 8px;
  }

  .page-entry .wpcf7-form label span.question-title + *,
  .page-entry .wpcf7-form .form-field-wrapper span.question-title + * {
    margin-top: 12px;
  }

  /* Form Inputs */
  .page-entry .wpcf7-form input[type="text"],
  .page-entry .wpcf7-form input[type="email"],
  .page-entry .wpcf7-form input[type="tel"],
  .page-entry .wpcf7-form input[type="url"],
  .page-entry .wpcf7-form select,
  .page-entry .wpcf7-form textarea {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
  }

  .page-entry .wpcf7-form select {
    min-height: 44px;
    background-size: 18px;
    padding-right: 36px;
  }

  .page-entry .wpcf7-form textarea {
    min-height: 100px;
  }

  /* Radio & Checkbox Styling */
  .page-entry .wpcf7-form .wpcf7-radio,
  .page-entry .wpcf7-form .wpcf7-checkbox {
    gap: 8px;
    margin-top: 8px;
  }

  .page-entry .wpcf7-form .wpcf7-list-item label {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
  }

  .page-entry .wpcf7-form input[type="radio"],
  .page-entry .wpcf7-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }

  /* Other input field wrapper */
  .page-entry .wpcf7-form .other-input-wrapper {
    margin-top: 6px;
  }

  .page-entry .wpcf7-form .other-input-wrapper input[type="text"],
  .page-entry .wpcf7-form .other-input-wrapper textarea {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
  }

  /* Goals Matrix Styling */
  .page-entry .goals-matrix-wrapper {
    padding: 16px 12px !important;
    margin-bottom: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-entry .goals-matrix-wrapper .question-title {
    margin-left: -12px !important;
    margin-right: -12px !important;
    margin-top: -16px !important;
    padding: 12px 12px !important;
    padding-left: 16px !important;
    font-size: 18px !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
  }

  .page-entry .goals-matrix-wrapper .question-title::before {
    width: 4px !important;
    border-top-left-radius: 8px !important;
  }

  /* Matrix Table - Enable horizontal scroll */
  .page-entry .matrix-table {
    width: 100% !important;
    max-width: 100% !important;
    border-spacing: 0 6px !important;
    display: table !important;
    table-layout: fixed !important;
    margin: 0 !important;
  }

  .page-entry .matrix-table thead {
    display: table-header-group !important;
  }

  .page-entry .matrix-table thead th {
    padding: 8px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #5f6368 !important;
    text-align: left !important;
    display: table-cell !important;
    background: transparent !important;
    border: none !important;
  }

  .page-entry .matrix-table thead th p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: #5f6368 !important;
  }

  .page-entry .matrix-table thead th:first-child {
    padding-left: 12px !important;
    width: 40% !important;
  }

  .page-entry .matrix-table thead th:nth-child(2),
  .page-entry .matrix-table thead th:nth-child(3),
  .page-entry .matrix-table thead th:nth-child(4),
  .page-entry .matrix-table thead th:nth-child(5) {
    padding-left: 10px !important;
    width: 15% !important;
  }

  .page-entry .matrix-table tbody {
    display: table-row-group !important;
  }

  .page-entry .matrix-table tbody tr {
    display: table-row !important;
    background: #f8f9fa !important;
  }

  .page-entry .matrix-table tbody td {
    padding: 12px 10px !important;
    display: table-cell !important;
    background: #f8f9fa !important;
    border: none !important;
  }

  .page-entry .matrix-table tbody td:first-child {
    padding-left: 12px !important;
    font-size: 15px !important;
    width: 40% !important;
  }

  .page-entry .matrix-table tbody td:nth-child(2),
  .page-entry .matrix-table tbody td:nth-child(3),
  .page-entry .matrix-table tbody td:nth-child(4),
  .page-entry .matrix-table tbody td:nth-child(5) {
    width: 15% !important;
    text-align: center !important;
    vertical-align: middle !important;
  }

  .page-entry .matrix-table input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
  }

  .page-entry .matrix-table .wpcf7-form-control.wpcf7-radio {
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .page-entry .matrix-table .wpcf7-list-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .page-entry .matrix-table .wpcf7-list-item label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    width: auto !important;
    transform: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    cursor: pointer !important;
  }

  .page-entry .matrix-table .wpcf7-list-item label::before {
    display: none !important;
  }

  .page-entry .matrix-table .wpcf7-list-item-label {
    display: none !important;
  }

  /* スマホでセクションの上側余白を調整 */
  .page-entry .entry-form-section {
    padding: 40px 0 80px 0 !important;
  }
}

/* Validation Errors */
.page-entry .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.page-entry .wpcf7-not-valid {
  border-color: #ef4444 !important;
}

/* Success/Error Messages */
.page-entry .wpcf7-response-output {
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0 0;
  font-weight: 500;
}

.page-entry .wpcf7-mail-sent-ok {
  background: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
}

.page-entry .wpcf7-validation-errors,
.page-entry .wpcf7-mail-sent-ng {
  background: #fee2e2;
  border: 2px solid #ef4444;
  color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-entry .contact-form-wrapper {
    padding: clamp(20px, 5vw, 28px);
  }

  .page-entry .wpcf7-form .wpcf7-radio,
  .page-entry .wpcf7-form .wpcf7-checkbox {
    flex-direction: column;
  }

  .page-entry .wpcf7-form .wpcf7-list-item label {
    width: 100%;
  }

  /* Mobile Matrix Layout */
  .matrix-table {
    display: block;
  }

  .matrix-table thead {
    display: none;
  }

  .matrix-table tbody {
    display: block;
  }

  .matrix-table tbody tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
  }

  .matrix-table tbody td {
    display: block;
    border: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .matrix-table tbody td:first-child {
    font-weight: 500;
    background: #f0f0f0;
    border-bottom: 1px solid #dadce0;
  }

  .matrix-table tbody td:last-child {
    border-bottom: none;
  }

  .matrix-table tbody td:not(:first-child) {
    text-align: left;
    padding: 10px 16px;
  }

  .matrix-table input[type="radio"] {
    margin-right: 10px;
  }
}

/* ===================== Background Helpers ===================== */
.bg-soft{background:linear-gradient(180deg,#f7fff9 0%, #f0fbf4 100%)}

/* ===================== Footer ===================== */
footer{background:var(--brand);color:#fff}

/* ===================== Responsive ===================== */
@media(max-width:960px){
  .hamburger-btn{display:flex}

  header{
    padding: 8px 0;
  }
  header.scrolled{
    padding: 6px 0;
  }

  nav .cluster{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:rgba(255,255,255,0.9);
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:0;
    gap:0;
    z-index:1000;
    opacity:0;
    transform:translateY(-20px);
    transition:opacity 0.4s ease, transform 0.4s ease;
  }

  nav .cluster.active{
    display:flex;
    opacity:1;
    transform:translateY(0);
  }

  nav .cluster a{
    padding:10px 0;
    font-size:1.5rem;
    opacity:0.7;
    color:var(--ink);
    font-weight:700;
    text-align:center;
    display:block;
    transition:all 0.3s ease;
    letter-spacing:-0.02em;
    position:static;
  }

  nav .cluster a::after{
    display:none;
  }

  nav .cluster a:hover,
  nav .cluster a.current{
    opacity:1;
    color:var(--brand);
  }

  nav .cluster .btn{
    margin-top:48px;
    padding:20px 64px;
    font-size:1.2rem;
    background:var(--brand);
    color:white;
    border: 2px solid var(--brand);
    box-shadow:none;
    border-radius:8px;
    font-weight:700;
    letter-spacing:0.05em;
    transition:all 0.3s ease;
  }

  nav .cluster .btn:hover{
    background:transparent;
    color:var(--brand);
    border-color:var(--brand);
  }
}

/* ===================== Header Entry Button Animation ===================== */
header nav a[href*="entry"] {
  text-decoration: none !important;
}

header nav a[href*="entry"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5);
  text-decoration: none !important;
}

/* ===================== Blog Post Content Styles ===================== */
.post-content blockquote {
  border-left: 6px solid #d1d5db;
  border-radius: 0;
  padding: 16px 20px;
  margin: 20px 0;
  background: #f9fafb;
}

@media(max-width:640px){
  .grid3,.grid2{grid-template-columns:1fr}
}
