/*
Theme Name: Smart3tene
Theme URI: https://smart3tene.com
Description: Smart3tene – Physical AI Development Platform for Agricultural AI and Robots.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Author: PLUSPLUS Co., Ltd.
Author URI: https://www.plusplus.jp
Text Domain: smart3tene
License: All Rights Reserved
*/

/* =============================================
   Smart3tene — Stylesheet
   ============================================= */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
img {
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
main {
  min-height: 500px;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8ece8;
  height: 64px;
  display: flex;
  align-items: center;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
/* classic HTML logo */
.site-logo {
  font-size: 36px;
  font-weight: 700;
  color: #06763F;
  letter-spacing: -0.5px;
}
/* wp:site-title block logo */
.wp-block-site-title.site-logo {
  margin: 0;
  line-height: 1;
}
.wp-block-site-title.site-logo a {
  font-size: 36px;
  font-weight: 700;
  color: #06763F;
  letter-spacing: -0.5px;
  text-decoration: none;
}

/* ── Header Nav ── */
.header-nav-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.header-nav__link {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
}
.header-nav__link:hover {
  color: #3a9e42;
}
.header-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}
.header-lang__current {
  font-weight: 700;
  color: #3a9e42;
}
.header-lang__sep {
  color: #ccc;
}
.header-lang__other:hover {
  color: #3a9e42;
}

/* ── Header Mobile Menu Toggle ── */
.site-nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.header-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}
.header-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav-toggle:focus-visible ~ .header-menu-btn {
  outline: 2px solid #3a9e42;
  outline-offset: 2px;
}

/* ── Hero ── */
.hero-inner {
  margin-top: 64px;
  height: 720px;
  overflow: hidden;
  background-image:
    linear-gradient(to right, #fff 35%, rgba(255,255,255,0.7) 52%, transparent 68%),
    url('images/hero.png');
  background-position: left top, right center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 80px 80px;
}
.hero-eyebrow {
  font-size: 20px;
  font-weight: 500;
  color: #3a9e42;
  letter-spacing: 0.08em;
  margin-bottom: 70px;
}
.hero-h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 70px;
  text-wrap: pretty;
}
.hero-lead {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 50px;
}
.hero-cta-wrap {
  margin-bottom: 50px;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #3a9e42;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 25px;
  filter: drop-shadow(0 0 7px #bbb);
}
.btn-arrow-icon {
  width: 25px;
  height: 25px;
}
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tagline-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.hero-tagline-text {
  font-size: 20px;
}

/* ── Sections ── */
.sec {
  padding: 100px 40px;
}
.sec--white {
  background: #fff;
}
.sec--green-light {
  background: #f2f8f3;
}
.sec-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sec-head {
  text-align: center;
  margin-bottom: 100px;
}
.sec-eyebrow {
  font-size: 22px;
  font-weight: bold;
  color: #3a9e42;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.sec-h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sec-lead {
  font-size: 16px;
  font-weight: bold;
  margin: 0 auto;
}

/* ── Feature Grid (About) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature-card {
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 16px;
  padding: 30px 15px;
  text-align: center;
}
.feature-card__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #3a9e42;
  margin-bottom: 16px;
}
.feature-card__text {
  text-align: left;
}

/* ── Summary Grid (Research top) ── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.summary-card {
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 16px;
  overflow: hidden;
}
.summary-card__img-wrap {
  height: 150px;
  overflow: hidden;
}
.summary-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.summary-card:nth-of-type(1) .summary-card__img {
  height: auto;
}
.summary-card__body {
  background: #fdfdfd;
  padding: 20px 15px 25px 5px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.summary-card__icon {
  width: 75px;
  height: 75px;
  object-fit: contain;
  flex-shrink: 0;
}
.summary-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── Project List ── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.project-card {
  display: flex;
  overflow: hidden;
}
.project-thumb {
  flex: 0 0 360px;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
}
.project-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}
.project-thumb--dark {
  position: relative;
  background: #111;
}
.project-thumb--dark .project-thumb__img {
  opacity: 0.38;
}
.project-thumb__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb__overlay-text {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}
.project-body {
  flex: 1;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.project-org {
  margin-bottom: 10px;
}
.project-badge {
  font-weight: 700;
  color: #df2d2d;
  white-space: nowrap;
  margin-bottom: 10px;
}
.project-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.4;
}
/*.project-text {
  color: #555;
}*/

/* ── Domain Grid (Applications) ── */
.domain-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.domain-card {
  border-radius: 10px;
  padding: 20px 15px;
  width: 345px;
  text-align: center;
}
.domain-card--agri {
  background: #F3F9F1;
  border: 1px solid #C5DEBD;
}
.domain-card--world {
  background: #EEF4FB;
  border: 1px solid #A7BDE9;
}
.domain-card--industry {
  background: #F0F0FA;
  border: 1px solid #C4B8E0;
}
.domain-card__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.domain-card__icon {
  object-fit: contain;
}
.domain-card--agri .domain-card__icon {
  width: 100px;
  height: 100px;
}
.domain-card--world .domain-card__icon {
  width: 110px;
  height: 110px;
}
.domain-card__icon--large {
  height: auto;
  object-fit: contain;
}
.domain-card--industry .domain-card__icon--large {
  width: 310px;
}
.domain-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #06763f;
  margin-bottom: 12px;
}
.domain-card--world .domain-card__title {
  color: #0659c2;
}
.domain-card--industry .domain-card__title {
  color: #39289f;
}
.domain-card__text {
  font-size: 16px;
  font-weight: bold;
}

/* ── Contact / Footer ── */
#contact {
  background: #06763F;
  padding: 60px 40px;
}
.cta-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-body {
  flex: 1;
  min-width: 260px;
}
.cta-h2 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 16px;
}
.cta-text {
  font-size: 17px;
  color: #fff;
}
.cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 30px;
  white-space: nowrap;
}
.footer-logo {
  text-align: center;
  margin-top: 72px;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.footer-copy {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ── Inner content width (page / single / archive) ── */
.sec-inner--narrow {
  width: 100%;
}

/* ── Entry Content (page & single prose) ── */
.entry-content {
  line-height: 1.9;
}
.entry-content > * + * {
  margin-top: 1.5em;
}
.entry-content h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 2.5em;
}
.entry-content h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 2em;
}
.entry-content a {
  color: #3a9e42;
  text-decoration: underline;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}
.entry-content blockquote {
  border-left: 3px solid #3a9e42;
  padding-left: 20px;
  color: #555;
}

/* ── Page ── */
.page-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 40px;
}

/* ── Single Post ── */
.single-featured-image {
  margin-bottom: 40px;
}
.single-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.single-meta {
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #3a9e42;
  margin-bottom: 16px;
}
.single-meta a {
  color: #3a9e42;
}
.single-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 40px;
}
.single-nav {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #e8ece8;
  font-weight: 700;
}
.single-nav a {
  color: #1a1a1a;
}
.single-nav a:hover {
  color: #3a9e42;
}

/* ── Archive ── */
.archive-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.archive-card {
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e8ece8;
}
.archive-card__thumb {
  flex: 0 0 240px;
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
}
.archive-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.archive-card__body {
  flex: 1;
}
.archive-card__date {
  font-size: 14px;
  font-weight: 700;
  color: #3a9e42;
  margin-bottom: 8px;
}
.archive-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.archive-card__title a {
  color: #1a1a1a;
}
.archive-card__title a:hover {
  color: #3a9e42;
}
.archive-card__excerpt {
  color: #555;
}
.wp-block-query-pagination {
  margin-top: 40px;
  justify-content: center;
}

/* ── WordPress FSE: block gap reset ── */
.wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── WordPress Admin Bar compensation ── */
.admin-bar .site-header {
  top: 32px;
}
/*.admin-bar .hero-inner {
  margin-top: calc(64px + 32px);
}*/

.wpcf7-submit {
  background: #06763F !important;
  color: #fff !important;
  font-size: 18px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  /*.admin-bar .hero-inner {
    margin-top: calc(64px + 46px);
  }*/
}

/* ── Responsive ── */
@media (max-width: 1160px) {
  .hero-inner {
    background-size: cover;
  }
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    padding: 0 20px;
  }
  .site-logo {
    font-size: 22px;
  }
  .wp-block-site-title.site-logo a {
    font-size: 22px;
  }
  .header-menu-btn {
    display: flex;
  }
  .header-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #F3F9F1;
    border-bottom: 1px solid #e8ece8;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .site-nav-toggle:checked ~ .header-nav {
    max-height: 400px;
    opacity: 1;
  }
  .site-nav-toggle:checked ~ .header-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav-toggle:checked ~ .header-menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .site-nav-toggle:checked ~ .header-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .header-nav__link {
    padding: 14px 20px;
    border-top: 1px solid #f0f2f0;
  }
  .header-lang {
    padding: 14px 20px;
    border-top: 1px solid #f0f2f0;
  }
  .hero-inner {
    height: auto;
    background-image:
      linear-gradient(to bottom, #fff 45%, rgba(255,255,255,0.6) 60%, transparent 80%),
      url('images/hero.png');
    background-position: top left, center bottom;
    background-size: auto, 100% auto;
    background-repeat: no-repeat, no-repeat;
    background-color: #fff;
  }
  .hero-content {
    padding: 48px 24px calc(56vw + 24px);
    justify-content: flex-start;
  }
  .hero-h1 {
    font-size: 28px;
  }
  .sec {
    padding: 64px 24px;
  }
  .sec-h2 {
    font-size: 26px;
  }
  .page-title,
  .single-title,
  .archive-title {
    font-size: 26px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .summary-grid {
    gap: 40px;
    grid-template-columns: 1fr;
  }
  .project-card {
    flex-direction: column;
  }
  .project-thumb {
    flex: none;
    width: 100%;
    height: 220px;
  }
  .domain-grid {
    flex-wrap: wrap;
  }
  .domain-card {
    width: 100%;
  }
  .archive-card {
    flex-direction: column;
  }
  .archive-card__thumb {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .single-nav {
    flex-direction: column;
    gap: 16px;
  }
  .cta-row {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .cta-h2 {
    font-size: 24px;
  }
  .footer-logo {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .hero-h1 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .hero-lead {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .hero-cta-wrap {
    margin-bottom: 30px;
  }
  .hero-cta-btn {
    padding: 8px 20px;
  }
  .hero-tagline-icon {
    width: 18px;
    height: 18px;
  }
  .hero-tagline-text {
    font-size: 15px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .sec-h2 {
    font-size: 22px;
  }
  .sec {
    padding: 48px 20px;
  }
  .sec-head {
    margin-bottom: 60px;
  }
  .project-body {
    padding: 20px 0;
  }
  .project-list {
    gap: 40px;
  }
  .summary-card__body {
    padding: 10px 10px 15px 0;
  }
}
