/*
Theme Name: TOMI B2B 2026
Theme URI: https://example.com/
Author: infoseason
Description: B2B disposable cutlery manufacturer homepage theme for TOMI.
Version: 1.2.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: tomi-b2b
*/

:root {
  --tomi-navy: #10251c;
  --tomi-navy-2: #1d503a;
  --tomi-blue: #1d503a;
  --tomi-blue-soft: #edf6f1;
  --tomi-orange: #c8792a;
  --tomi-orange-dark: #a95f18;
  --tomi-slate: #66736c;
  --tomi-slate-dark: #2e463a;
  --tomi-line: #dbe8df;
  --tomi-soft: #f4f8f5;
  --tomi-white: #ffffff;
  --tomi-radius: 24px;
  --tomi-shadow: 0 24px 70px rgba(16, 37, 28, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tomi-slate);
  background: var(--tomi-white);
  font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: 32px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tomi-navy);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-logo {
  width: auto;
  height: 42px;
  max-width: 150px;
}

.site-footer .brand-logo {
  height: 38px;
  filter: brightness(0) invert(1);
}

.brand-mark,
.icon-box {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--tomi-blue);
  color: white;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--tomi-slate-dark);
  font-size: 15px;
  font-weight: 800;
}

.desktop-nav li {
  list-style: none;
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item > a,
.desktop-nav a.is-active {
  color: var(--tomi-blue);
}

.desktop-nav a.is-active,
.desktop-nav .current-menu-item > a {
  position: relative;
}

.desktop-nav a.is-active::after,
.desktop-nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -29px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--tomi-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--tomi-navy);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--tomi-line);
  background: white;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--tomi-line);
  color: var(--tomi-navy);
  font-weight: 800;
}

.mobile-panel a.is-active {
  color: var(--tomi-blue);
  background: var(--tomi-blue-soft);
}

.site-main {
  padding-top: 78px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: var(--tomi-orange);
  box-shadow: 0 16px 34px rgba(200, 121, 42, 0.28);
}

.btn-primary:hover {
  background: var(--tomi-orange-dark);
}

.btn-outline {
  color: var(--tomi-orange);
  border-color: var(--tomi-orange);
  background: white;
}

.btn-outline:hover {
  color: white;
  background: var(--tomi-orange);
}

.btn-quiet {
  color: var(--tomi-navy);
  border-color: var(--tomi-line);
  background: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--tomi-blue);
  background: var(--tomi-blue-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(62, 146, 112, 0.2), transparent 28%),
    linear-gradient(135deg, #fbfcf8 0%, #edf6f1 52%, #ffffff 100%);
}

.hero::before,
.page-hero::before,
.pattern-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(29, 80, 58, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 80, 58, 0.075) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 64px;
  align-items: center;
  min-height: 680px;
  padding: 86px 0;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--tomi-navy);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero h1 span,
.page-hero h1 span,
.accent {
  color: var(--tomi-blue);
}

.hero p,
.page-hero p {
  margin: 24px 0 0;
  color: var(--tomi-slate);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-card {
  position: relative;
  min-height: 470px;
  padding: 10px;
  border: 0;
  border-radius: 34px;
  background: white;
  box-shadow: var(--tomi-shadow);
}

.hero-media {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border-radius: 24px;
  background: #dbeafe;
}

.hero-card img,
.hero-card video,
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
  opacity: 1;
}

.hero-loading {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: #10251c;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-card.is-video-ready .hero-loading {
  visibility: hidden;
  opacity: 0;
}

.hero-loading-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.58);
  transform: scale(1.04);
}

.hero-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 37, 28, 0.2), rgba(16, 37, 28, 0.72)),
    radial-gradient(circle at 70% 20%, rgba(101, 195, 157, 0.28), transparent 34%);
}

.hero-loading-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.hero-loading-content strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-loading-content span {
  color: #d7f2e5;
  font-size: 15px;
  font-weight: 800;
}

.hero-loading-content::after {
  content: "";
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), #ffffff, rgba(255, 255, 255, 0.25));
  animation: hero-loading-pulse 1.1s ease-in-out infinite;
}

@keyframes hero-loading-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero-card::after {
  content: none;
}

.float-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(260px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.float-badge strong {
  display: block;
  color: var(--tomi-navy);
  line-height: 1.25;
}

.float-badge small {
  color: var(--tomi-slate);
  font-weight: 800;
}

.badge-left {
  left: -18px;
  top: 24%;
}

.badge-right {
  right: -18px;
  bottom: 20%;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--tomi-soft);
}

.section-dark {
  color: white;
  background: var(--tomi-navy);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-title {
  margin: 0;
  color: var(--tomi-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-desc {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--tomi-slate);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 30px;
  border: 1px solid var(--tomi-line);
  border-radius: var(--tomi-radius);
  background: white;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

.card h3 {
  margin: 18px 0 10px;
  color: var(--tomi-navy);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.card p {
  margin: 0;
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-visual {
  display: grid;
  min-height: 210px;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(62, 146, 112, 0.2), transparent 26%),
    #eef5f0;
}

.product-visual.product-photo {
  display: block;
  min-height: 0;
  height: 210px;
  background: #eef5f0;
}

.product-visual.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 26px;
}

.product-body ul,
.clean-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.product-body li,
.clean-list li {
  position: relative;
  margin-top: 8px;
  padding-left: 16px;
  color: var(--tomi-slate-dark);
  font-size: 14px;
}

.product-body li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--tomi-blue);
}

.product-catalog-section {
  background: #ffffff;
}

.product-group {
  margin-top: 54px;
}

.product-group:first-of-type {
  margin-top: 34px;
}

.product-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.product-group-head h3 {
  margin: 8px 0 0;
  color: var(--tomi-navy);
  font-size: 30px;
  line-height: 1.25;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-detail-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  border: 1px solid var(--tomi-line);
  border-radius: 20px;
  background: var(--tomi-white);
  box-shadow: 0 18px 54px rgba(16, 37, 28, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-detail-card:hover,
.product-detail-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(29, 80, 58, 0.38);
  box-shadow: 0 24px 64px rgba(16, 37, 28, 0.13);
  outline: none;
}

.product-thumb {
  display: block;
  min-height: 210px;
  height: 210px;
  background: #f4f8f5;
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.product-category {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--tomi-blue);
  background: var(--tomi-blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.product-card-content strong {
  color: var(--tomi-navy);
  font-size: 22px;
  line-height: 1.25;
}

.product-card-content > span:not(.product-category):not(.product-card-specs) {
  color: var(--tomi-slate-dark);
  font-size: 15px;
  line-height: 1.55;
}

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.product-card-specs b {
  border: 1px solid var(--tomi-line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--tomi-slate-dark);
  background: #ffffff;
  font-size: 13px;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 24, 17, 0.72);
}

.product-modal.is-open {
  display: flex;
}

.product-modal-dialog {
  position: relative;
  display: grid;
  width: min(1060px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.product-modal-media {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 28px;
  background: var(--tomi-soft);
}

.product-gallery-track {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 37, 28, 0.12);
  touch-action: pan-y;
  user-select: none;
}

.product-gallery-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.product-gallery-slide.is-active {
  display: block;
}

.product-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 84px;
  background: rgba(5, 12, 9, 0.94);
}

.product-image-lightbox.is-open {
  display: flex;
}

.product-image-lightbox figure {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  margin: 0;
}

.product-image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 72px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.product-image-lightbox figcaption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  transform: translateX(-50%);
}

.product-image-lightbox-close,
.product-image-lightbox-arrow {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.product-image-lightbox-close {
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 36px;
  line-height: 1;
}

.product-image-lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 44px;
  transform: translateY(-50%);
}

.product-image-lightbox-prev {
  left: 20px;
}

.product-image-lightbox-next {
  right: 20px;
}

@media (max-width: 680px) {
  .product-image-lightbox {
    padding: 64px 12px 48px;
  }

  .product-image-lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 34px;
    background: rgba(5, 12, 9, 0.55);
  }

  .product-image-lightbox-prev {
    left: 8px;
  }

  .product-image-lightbox-next {
    right: 8px;
  }
}

.product-gallery-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  color: var(--tomi-slate-dark);
  background:
    linear-gradient(135deg, rgba(29, 80, 58, 0.08), rgba(200, 121, 42, 0.1)),
    #f8fbf9;
  text-align: center;
}

.product-gallery-placeholder strong {
  color: var(--tomi-navy);
  font-size: 24px;
  font-weight: 900;
}

.product-gallery-placeholder span {
  font-size: 15px;
  font-weight: 700;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--tomi-navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(16, 37, 28, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
}

.product-gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.product-gallery-prev {
  left: 42px;
}

.product-gallery-next {
  right: 42px;
}

.product-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.product-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 37, 28, 0.22);
  cursor: pointer;
}

.product-gallery-dot.is-active {
  width: 24px;
  background: var(--tomi-orange);
}

.product-modal-content {
  overflow-y: auto;
  padding: 52px 48px;
}

.product-modal-content h2 {
  margin: 18px 0 12px;
  color: var(--tomi-navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

.product-modal-content p {
  margin: 0;
  color: var(--tomi-slate-dark);
  font-size: 16px;
  line-height: 1.75;
}

.product-modal-lead {
  margin-bottom: 14px !important;
  color: var(--tomi-blue) !important;
  font-size: 19px !important;
  font-weight: 800;
  line-height: 1.45 !important;
}

.product-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.product-spec-list div {
  min-width: 0;
  border: 1px solid var(--tomi-line);
  border-radius: 16px;
  padding: 15px 16px;
  background: #f9fcfa;
}

.product-spec-list div.wide {
  grid-column: 1 / -1;
}

.product-spec-list dt {
  margin-bottom: 6px;
  color: var(--tomi-slate);
  font-size: 13px;
  font-weight: 800;
}

.product-spec-list dd {
  margin: 0;
  color: var(--tomi-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.product-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px;
}

.product-modal-actions .btn {
  min-width: 142px;
}

.product-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--tomi-navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(16, 37, 28, 0.14);
  cursor: pointer;
}

.product-modal-close svg {
  width: 20px;
  height: 20px;
}

.faq-layout,
.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.faq-aside,
.inquiry-guide {
  position: sticky;
  top: 128px;
  border: 1px solid var(--tomi-line);
  border-radius: 24px;
  padding: 32px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(16, 37, 28, 0.08);
}

.faq-aside h2,
.inquiry-guide h2 {
  margin: 14px 0 12px;
  color: var(--tomi-navy);
  font-size: 28px;
  line-height: 1.28;
}

.faq-aside p {
  margin: 0 0 24px;
}

.inquiry-contact-box {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  border-top: 1px solid var(--tomi-line);
  padding-top: 22px;
  color: var(--tomi-slate-dark);
  font-size: 14px;
}

.inquiry-contact-box strong {
  color: var(--tomi-navy);
  font-size: 16px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--tomi-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(16, 37, 28, 0.06);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  color: var(--tomi-navy);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--tomi-slate-dark);
  line-height: 1.75;
}

.inquiry-form {
  border: 1px solid var(--tomi-line);
  border-radius: 24px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(16, 37, 28, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label,
.cf7-field label {
  display: grid;
  gap: 8px;
  color: var(--tomi-navy);
  font-size: 14px;
  font-weight: 900;
}

.form-grid label.wide,
.cf7-field.wide {
  grid-column: 1 / -1;
}

.cf7-form-grid {
  align-items: start;
}

.cf7-form-grid p {
  display: contents;
  margin: 0;
}

.cf7-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.cf7-field br {
  display: none;
}

.cf7-field .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio) {
  width: 100%;
  border: 1px solid var(--tomi-line);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--tomi-navy);
  background: #f9fcfa;
  font: inherit;
  font-size: 15px;
}

.form-grid textarea,
.wpcf7-textarea {
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.wpcf7-form-control:not(.wpcf7-submit):focus {
  border-color: var(--tomi-blue);
  outline: 3px solid rgba(29, 80, 58, 0.13);
}

.inquiry-form .btn,
.inquiry-form .wpcf7-submit {
  margin-top: 24px;
}

.cf7-inquiry-form .wpcf7 form {
  margin: 0;
}

.cf7-inquiry-form .wpcf7-form > p {
  margin: 0;
}

.cf7-inquiry-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #9f341b;
  font-size: 13px;
  font-weight: 700;
}

.cf7-inquiry-form .wpcf7-response-output {
  margin: 20px 0 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
}

.form-message {
  margin-bottom: 20px;
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 800;
}

.form-message p {
  margin: 0;
}

.form-message p + p {
  margin-top: 6px;
}

.form-message.success {
  color: #155c3e;
  background: #e9f8f0;
}

.form-message.error {
  color: #8a2f1b;
  background: #fff0eb;
}

.dark-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: clamp(36px, 6vw, 70px);
  background:
    radial-gradient(circle at 92% 12%, rgba(62, 146, 112, 0.42), transparent 26%),
    radial-gradient(circle at 2% 100%, rgba(200, 121, 42, 0.24), transparent 30%),
    var(--tomi-navy);
  box-shadow: var(--tomi-shadow);
}

.dark-panel .section-title,
.dark-panel h2,
.dark-panel h3 {
  color: #ffffff;
}

.dark-panel .accent {
  color: #65c39d;
}

.dark-panel .card h3 {
  color: #ecfff5;
}

.dark-panel .card p {
  color: #cbd5e1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  padding: 28px 20px;
  border: 1px solid var(--tomi-line);
  border-radius: 22px;
  background: white;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--tomi-blue);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--tomi-navy);
  font-size: 14px;
  font-weight: 900;
}

.image-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.image-card {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 8px solid #f1f5f9;
  border-radius: 30px;
  background: #e2e8f0;
  box-shadow: var(--tomi-shadow);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  border-bottom: 1px solid var(--tomi-line);
  background: linear-gradient(135deg, #fbfcf8, #edf6f1);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero.has-photo {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-hero.has-photo::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.94) 0%, rgba(251, 252, 248, 0.88) 34%, rgba(251, 252, 248, 0.55) 62%, rgba(251, 252, 248, 0.22) 100%);
}

.page-hero.has-photo h1,
.page-hero.has-photo p {
  max-width: 900px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--tomi-line);
}

.timeline-item {
  position: relative;
  padding-left: 54px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 18px;
  height: 18px;
  border: 5px solid white;
  border-radius: 999px;
  background: var(--tomi-blue);
  box-shadow: 0 0 0 1px var(--tomi-line);
}

.timeline-item strong {
  color: var(--tomi-blue);
  font-size: 20px;
  font-weight: 900;
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  padding: 26px 18px;
  border: 1px solid var(--tomi-line);
  border-radius: 22px;
  background: white;
  text-align: center;
}

.process-step b {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  color: white;
  background: var(--tomi-navy);
}

.cert-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cert-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cert-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--tomi-line);
  border-radius: 999px;
  color: var(--tomi-slate-dark);
  background: white;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cert-tab:hover,
.cert-tab.is-active {
  color: white;
  border-color: var(--tomi-blue);
  background: var(--tomi-blue);
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.certificate-card {
  overflow: hidden;
  border: 1px solid var(--tomi-line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.certificate-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 80, 58, 0.34);
  box-shadow: 0 22px 46px rgba(16, 37, 28, 0.12);
}

.certificate-card.is-hidden {
  display: none;
}

.certificate-card a {
  display: block;
  height: 100%;
}

.certificate-thumb {
  display: block;
  aspect-ratio: 4 / 5;
  padding: 14px;
  background: #eef5f0;
}

.certificate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.certificate-title {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  color: var(--tomi-navy);
  font-weight: 900;
  line-height: 1.35;
}

.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 20px;
  background: rgba(7, 19, 14, 0.78);
}

.certificate-modal.is-open {
  display: flex;
}

.certificate-modal-dialog {
  display: grid;
  place-items: center;
  width: min(760px, calc(100vw - 56px));
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  padding: 12px;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.certificate-modal-dialog img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.certificate-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  background: rgba(16, 37, 28, 0.74);
  cursor: pointer;
}

.cta-band {
  border-radius: 34px;
  padding: 54px;
  color: white;
  background: linear-gradient(135deg, var(--tomi-blue), #3e9270);
}

.site-footer {
  padding: 58px 0 34px;
  color: #94a3b8;
  background: #07130e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: white;
  font-size: 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 9px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .image-split,
  .faq-layout,
  .inquiry-layout,
  .footer-grid,
  .process,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 34px;
    padding: 56px 0;
  }

  .hero-card {
    min-height: 340px;
  }

  .hero-media {
    border-radius: 24px;
  }

  .float-badge {
    position: static;
    max-width: 100%;
    margin-top: 12px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    display: block;
  }

  .faq-aside,
  .inquiry-guide {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-modal-dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .product-modal-media {
    min-height: 320px;
    padding: 34px;
  }

  .product-gallery-track {
    height: 260px;
  }

  .product-gallery-prev {
    left: 46px;
  }

  .product-gallery-next {
    right: 46px;
  }

  .product-gallery-dots {
    bottom: 46px;
  }

  .product-modal-content {
    overflow: visible;
    padding: 36px 30px;
  }

  .cert-card {
    display: block;
  }

  .cert-tabs {
    justify-content: flex-start;
    margin-top: 22px;
  }

  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .card,
  .cta-band {
    padding: 24px;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .product-group-head {
    display: block;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-thumb {
    min-height: 180px;
  }

  .product-modal {
    padding: 10px;
  }

  .product-modal-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .product-modal-media {
    min-height: 230px;
    padding: 26px;
  }

  .product-gallery-track {
    height: 190px;
  }

  .product-gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .product-gallery-prev {
    left: 34px;
  }

  .product-gallery-next {
    right: 34px;
  }

  .product-gallery-dots {
    bottom: 32px;
  }

  .product-gallery-placeholder strong {
    font-size: 19px;
  }

  .product-modal-content {
    padding: 30px 22px;
  }

  .product-spec-list {
    grid-template-columns: 1fr;
  }

  .product-modal-actions {
    grid-template-columns: 1fr;
  }

  .product-modal-actions .btn {
    min-width: 0;
  }

  .timeline {
    padding-left: 20px;
    gap: 22px;
  }

  .timeline::before {
    left: 10px;
    top: 18px;
    bottom: 18px;
  }

  .timeline-item {
    padding: 28px 24px;
  }

  .timeline-item::before {
    left: -20px;
    top: 26px;
    width: 16px;
    height: 16px;
    border-width: 4px;
  }

  .timeline-item strong {
    display: block;
    margin-bottom: 22px;
    font-size: 19px;
    line-height: 1.2;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .certificate-modal {
    padding: 10px;
  }

  .certificate-modal-dialog {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    padding: 10px;
  }
}
