/*
Theme Name: TM Consulting Agri
Theme URI: https://agri-food.tmconsulting-g.com/
Author: TM Consulting
Version: 1.0
Description: Custom theme for Agri-Food TM Consulting
Text Domain: tm-consulting-agri
*/

:root {
  --green: #1b4d2e; --green-mid: #2d7a3a; --green-light: #3d8b47;
  --green-pale: #e8f5e9; --amber: #f0a500; --amber-light: #fff8e1;
  --white: #ffffff; --gray-light: #f5f5f5; --gray: #757575; --text: #212121;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Hiragino Sans","Noto Sans JP","Yu Gothic",Meiryo,sans-serif; color: var(--text); line-height: 1.7; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
header { background: linear-gradient(135deg, var(--green), var(--green-mid)); padding: 0 40px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-title { font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: 0.03em; line-height: 1.3; }
.site-title span { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.85; letter-spacing: 0.05em; }
nav ul { list-style: none; display: flex; gap: 8px; }
nav ul li a { color: rgba(255,255,255,0.9); padding: 8px 14px; border-radius: 4px; font-size: 0.9rem; font-weight: 500; transition: background 0.2s, color 0.2s; white-space: nowrap; }
nav ul li a:hover, nav ul li a.active { background: rgba(255,255,255,0.15); color: var(--white); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.tm-hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 50%, var(--green-light) 100%); color: var(--white); padding: 80px 40px; overflow: hidden; }
.tm-hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.tm-hero-text { flex: 1; min-width: 0; }
.hero-badge { display: inline-block; background: rgba(240,165,0,0.2); border: 1px solid rgba(240,165,0,0.5); color: rgb(255,220,100); font-size: 0.85rem; padding: 6px 18px; border-radius: 20px; margin-bottom: 28px; letter-spacing: 0.1em; }
.tm-hero-text h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.4; margin-bottom: 20px; }
.tm-hero-text h1 em { font-style: normal; color: var(--amber); }
.tm-hero-text p { font-size: 1rem; opacity: 0.9; line-height: 1.9; margin-bottom: 16px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--amber); color: #1b1b1b; padding: 16px 36px; border-radius: 50px; font-size: 1.05rem; font-weight: 700; box-shadow: 0 4px 20px rgba(240,165,0,0.4); transition: transform 0.2s, box-shadow 0.2s; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(240,165,0,0.5); }
.hero-cta::after { content: "→"; }
.tm-hero-photo { flex: 0 0 340px; display: flex; justify-content: center; }
.tm-hero-photo img { width: 300px; height: 400px; object-fit: cover; object-position: center top; border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.4); border: 4px solid rgba(255,255,255,0.15); }

/* ===== PROFILE STRIP ===== */
.tm-profile { padding: 80px 40px; background: rgb(247,250,248); }
.tm-profile-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.tm-profile-photo { flex: 0 0 200px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.tm-profile-photo img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center top; border: 5px solid var(--white); box-shadow: 0 8px 32px rgba(27,77,46,0.2); }
.tm-profile-photo .name { font-size: 1.05rem; font-weight: 700; color: var(--green); line-height: 1.4; }
.tm-profile-photo .title { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }
.tm-profile-text { flex: 1; min-width: 0; }
.tm-profile-text .section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; color: var(--green-mid); text-transform: uppercase; margin-bottom: 12px; }
.tm-profile-text h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--green); margin-bottom: 20px; line-height: 1.5; }
.tm-profile-text p { font-size: 0.95rem; color: #444; line-height: 1.9; margin-bottom: 14px; }
.profile-more-btn { display: inline-block; margin-top: 20px; padding: 10px 24px; background: var(--green-mid); color: var(--white); font-size: 0.9rem; font-weight: 600; border-radius: 6px; transition: background 0.2s; }
.profile-more-btn:hover { background: var(--green); }

/* ===== FIELD BANNER ===== */
.tm-field { background: linear-gradient(135deg, var(--green) 0%, #0d2a18 100%); color: var(--white); padding: 80px 40px; text-align: center; }
.tm-field-inner { max-width: 800px; margin: 0 auto; }
.tm-field-inner h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.5; margin-bottom: 16px; }
.tm-field-inner h2 em { font-style: normal; color: rgb(255,220,100); }
.tm-field-inner p { font-size: 1rem; opacity: 0.9; max-width: 680px; margin: 0 auto; line-height: 1.9; }

/* ===== SECTIONS ===== */
section { padding: 80px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; color: var(--green-mid); text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--green); margin-bottom: 16px; line-height: 1.4; }
.section-desc { color: var(--gray); font-size: 1rem; max-width: 680px; margin-bottom: 48px; line-height: 1.8; }

/* ===== STRENGTHS ===== */
.strengths-section { background: var(--gray-light); }
.strengths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.strength-card { background: var(--white); border-radius: 12px; padding: 32px 24px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); border-top: 4px solid var(--green-mid); transition: transform 0.2s, box-shadow 0.2s; }
.strength-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.strength-card .icon { font-size: 2.2rem; margin-bottom: 16px; }
.strength-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--green); margin-bottom: 10px; line-height: 1.4; }
.strength-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ===== CUSTOMERS ===== */
.customers-section { background: linear-gradient(135deg, var(--green), var(--green-mid)); color: var(--white); }
.customers-section .section-title { color: var(--white); }
.customers-section .section-label { color: rgb(144,220,160); }
.customers-section .section-desc { color: rgba(255,255,255,0.8); }
.customers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.customer-item { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.customer-item .icon { font-size: 1.8rem; }
.customer-item p { font-size: 0.9rem; font-weight: 600; line-height: 1.4; text-align: center; }

/* ===== CTA ===== */
.cta-section { background: var(--amber-light); text-align: center; }
.cta-section .section-title { color: rgb(180,100,0); }
.cta-section .section-desc { margin: 0 auto 32px; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--amber); color: #1b1b1b; padding: 16px 40px; border-radius: 50px; font-size: 1.05rem; font-weight: 700; box-shadow: 0 4px 20px rgba(240,165,0,0.35); transition: transform 0.2s, box-shadow 0.2s; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(240,165,0,0.5); }
.cta-btn::after { content: "→"; }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, var(--green), var(--green-mid)); color: var(--white); padding: 60px 40px; text-align: center; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1rem; opacity: 0.85; }

/* ===== PROFILE HERO (profile page) ===== */
.profile-hero-section { background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%); color: var(--white); padding: 60px 40px; }
.profile-hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 48px; }
.profile-hero-photo img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center top; border: 4px solid rgba(255,255,255,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.profile-hero-text .name-en { font-size: 0.8rem; letter-spacing: 0.15em; opacity: 0.7; margin-bottom: 6px; }
.profile-hero-text h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.profile-hero-text .tagline { font-size: 0.95rem; opacity: 0.85; line-height: 1.7; margin-bottom: 16px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.profile-badge { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: var(--white); font-size: 0.8rem; padding: 4px 12px; border-radius: 20px; }

/* ===== STANCE SECTION ===== */
.stance-section { padding: 80px 40px; background: rgb(247,250,248); }
.stance-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: flex-start; gap: 60px; }
.stance-photo { flex: 0 0 380px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(27,77,46,0.18); }
.stance-photo img { width: 100%; height: 280px; object-fit: cover; object-position: center; display: block; }
.stance-photo figcaption { background: var(--green); color: rgba(255,255,255,0.8); font-size: 0.78rem; padding: 10px 16px; text-align: center; letter-spacing: 0.05em; }
.stance-text { flex: 1; min-width: 0; }
.stance-text h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--green); margin-bottom: 20px; line-height: 1.5; }
.stance-text p { font-size: 0.95rem; color: #444; line-height: 1.9; margin-bottom: 16px; }

/* ===== CAREER SECTION ===== */
.career-section { padding: 80px 40px; }
.career-inner { max-width: 1100px; margin: 0 auto; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--green-mid), var(--green-light)); border-radius: 3px; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 14px; height: 14px; background: var(--green-mid); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green-mid); }
.timeline-year { font-size: 0.85rem; font-weight: 700; color: var(--green-mid); letter-spacing: 0.1em; margin-bottom: 6px; }
.timeline-title { font-size: 1.1rem; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.timeline-desc { font-size: 0.9rem; color: var(--gray); line-height: 1.8; }

/* ===== CERT SECTION ===== */
.cert-section { padding: 80px 40px; background: var(--gray-light); }
.cert-inner { max-width: 1100px; margin: 0 auto; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 32px; }
.cert-card { background: linear-gradient(135deg, var(--green), var(--green-mid)); color: var(--white); border-radius: 12px; padding: 28px 24px; text-align: center; }
.cert-card .icon { font-size: 2rem; margin-bottom: 12px; }
.cert-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); line-height: 1.4; }
.cert-card p { font-size: 0.8rem; color: var(--white); opacity: 0.8; margin-top: 6px; }

/* ===== SERVICES PAGE ===== */
.service-list { display: flex; flex-direction: column; gap: 32px; }
.service-item { background: var(--white); border-radius: 12px; padding: 36px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); display: flex; gap: 28px; align-items: flex-start; border-left: 5px solid var(--green-mid); }
.service-item .icon { font-size: 2.5rem; flex-shrink: 0; width: 60px; text-align: center; }
.service-item h3 { font-size: 1.2rem; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.service-item p { color: var(--gray); font-size: 0.95rem; line-height: 1.8; }
.service-item ul { margin-top: 12px; padding-left: 20px; color: var(--gray); font-size: 0.9rem; }
.service-item ul li { margin-bottom: 6px; }
.worry-box { background: rgb(255,248,225); border: 2px solid rgb(240,165,0); border-radius: 12px; padding: 20px 24px; margin: 16px 0 8px; }
.worry-box h4 { font-size: 0.95rem; font-weight: 700; color: rgb(160,90,0); margin-bottom: 12px; }
.worry-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.worry-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: #333; line-height: 1.6; }
.worry-list li::before { content: "☑"; color: rgb(240,165,0); font-size: 1rem; flex-shrink: 0; }

/* ===== PRICING ===== */
.pricing-section { background: var(--green-pale); padding: 80px 40px; }
.pricing-inner { max-width: 1100px; margin: 0 auto; }
.pricing-note { background: rgba(240,165,0,0.1); border-left: 4px solid var(--amber); border-radius: 0 8px 8px 0; padding: 14px 20px; font-size: 0.88rem; color: #555; margin-bottom: 48px; line-height: 1.7; }
.pricing-group { margin-bottom: 48px; }
.pricing-group h3 { font-size: 1.05rem; font-weight: 700; color: var(--green); padding-bottom: 10px; border-bottom: 2px solid var(--green-mid); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pricing-table th { background: var(--green-mid); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; }
.pricing-table td { padding: 14px 16px; border-bottom: 1px solid #c8e6c9; vertical-align: top; line-height: 1.7; background: var(--white); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .plan-name { font-weight: 700; color: var(--green); min-width: 180px; }
.pricing-table .plan-price { color: rgb(198,40,40); font-weight: 700; white-space: nowrap; }

/* ===== CONTACT PAGE ===== */
.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin-bottom: 60px; position: relative; }
.flow-step { text-align: center; padding: 24px 16px; position: relative; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-light); font-weight: 700; z-index: 1; }
.flow-step .step-num { width: 40px; height: 40px; background: var(--green-mid); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; margin: 0 auto 12px; }
.flow-step h4 { font-size: 0.95rem; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.flow-step p { font-size: 0.82rem; color: var(--gray); line-height: 1.5; }
.contact-form-wrap { background: var(--white); border-radius: 16px; padding: 48px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); max-width: 700px; margin: 0 auto; }
.contact-form-wrap h2 { font-size: 1.3rem; font-weight: 800; color: var(--green); margin-bottom: 28px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.form-group label .required { color: rgb(229,57,53); margin-left: 4px; font-size: 0.8rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea { width: 100%; padding: 12px 16px; border: 2px solid #c8e6c9; border-radius: 8px; font-size: 0.95rem; font-family: inherit; color: var(--text); transition: border-color 0.2s; background: #fafafa; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--green-light); background: var(--white); }
.form-group textarea, .wpcf7-form textarea { resize: vertical; min-height: 140px; }
.form-submit,
.wpcf7-form input[type="submit"] { width: 100%; background: var(--amber); color: #1b1b1b; border: none; padding: 16px; border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s, transform 0.2s; }
.form-submit:hover, .wpcf7-form input[type="submit"]:hover { background: #d4900a; transform: translateY(-1px); }
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form .wpcf7-not-valid-tip { color: rgb(229,57,53); font-size: 0.85rem; }
.contact-info-box { background: rgb(247,250,248); border-radius: 14px; padding: 36px 40px; margin-top: 48px; }
.contact-info-box h3 { font-size: 1.1rem; font-weight: 800; color: var(--green); margin-bottom: 24px; }
.contact-dl-row { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid #c8e6c9; font-size: 0.93rem; }
.contact-dl-row:last-child { border-bottom: none; }
.contact-dl-label { flex: 0 0 120px; color: var(--gray); font-weight: 600; }
.contact-dl-value { flex: 1; color: var(--text); line-height: 1.7; }
.area-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.area-card { border-radius: 10px; padding: 20px; }
.area-card.tokai { background: var(--green-pale); }
.area-card.national { background: #fff8e1; }
.area-card p:first-child { font-weight: 700; margin-bottom: 6px; }
.area-card.tokai p:first-child { color: var(--green); }
.area-card.national p:first-child { color: rgb(160,100,0); }
.area-card p:last-child { font-size: 0.88rem; color: #444; }

/* ===== FOOTER ===== */
footer { background: rgb(6,26,10); color: rgba(255,255,255,0.7); padding: 48px 40px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-brand .site-title { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; line-height: 1.6; opacity: 0.7; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-nav ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; text-align: center; color: rgba(255,255,255,0.5); }

/* ===== PAGE LAYOUT ===== */
.page-content { max-width: 100%; }
.entry-title, .wp-block-post-title, h1.page-title { display: none !important; }
.entry-content, .wp-block-post-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
.entry-content > *, .wp-block-post-content > * { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-group.has-global-padding, .has-global-padding { padding-left: 0 !important; padding-right: 0 !important; }
.site-main > article, .site-main { padding-top: 0 !important; }
.wp-site-blocks { padding-top: 0 !important; }
main { padding-top: 0 !important; }
#main { padding-top: 0 !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .tm-hero-inner { flex-direction: column; gap: 40px; text-align: center; }
  .tm-hero-photo { flex: none; }
  .tm-profile-inner { flex-direction: column; gap: 32px; text-align: center; }
  .stance-inner { flex-direction: column; }
  .stance-photo { flex: 0 0 auto; width: 100%; }
  .profile-hero-inner { flex-direction: column; gap: 28px; text-align: center; }
  .profile-badges { justify-content: center; }
}
@media (max-width: 768px) {
  header { padding: 0 20px; }
  .menu-toggle { display: flex; }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--green); padding: 16px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 4px; }
  nav ul li a { display: block; padding: 10px 16px; }
  .tm-hero, .tm-profile, section { padding: 60px 20px; }
  .tm-field { padding: 60px 20px; }
  .service-item { flex-direction: column; gap: 16px; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow-step:not(:last-child)::after { display: none; }
  .area-cards { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
  .contact-info-box { padding: 24px 20px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .pricing-table, .pricing-table tbody { display: block; width: 100%; }
  .pricing-table thead { display: none; }
  .pricing-table tbody tr { display: block; margin-bottom: 14px; border: 1px solid #c8e6c9; border-radius: 8px; overflow: hidden; background: var(--white); }
  .pricing-table td { display: block; width: 100%; padding: 10px 14px; border-bottom: 1px solid #eee; }
  .pricing-table td:last-child { border-bottom: none; }
}
