﻿/* ========================================
   Foundation / 共通設定
======================================== */
:root {
  --blue: #4d7fd9;
  --deep-blue: #007fc4;
  --dark: #111827;
  --text: #20242a;
  --muted: #667085;
  --line: #c9d8e8;
  --pale: #e9f7fc;
  --footer: #dbe3ec;
  --max: 1300px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  background: #fff;
}

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

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

main {
  overflow: hidden;
}

/* ========================================
   Style Order / スタイル整理順
   1. Foundation / 共通
   2. Top / トップ
   3. Company / 会社概要
   4. Product / 製品・図面
   5. Recruit / 採用情報
   6. Contact / お問い合わせ

   Page-specific styles are scoped by body class:
   .top / .company / .product / .recruit / .contact
======================================== */

/* ========================================
   Common Header / 共通ヘッダー
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 12px rgba(15, 38, 75, 0.08);
}

.site-logo {
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.6;
}

.site-logo img {
  width: 190px;
}

.nav-toggle {
  display: grid;
  place-items: center;
  margin-right: -6px;
  width: 44px;
  height: 44px;
  position: relative;
  border: 0;
  background: transparent;
  color: var(--dark);
  font-size: 0;
  cursor: pointer;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: top 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-toggle::before {
  top: 15px;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.nav-toggle::after {
  top: 21px;
  opacity: 0;
}

.nav-toggle.is-active::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle.is-active::after {
  opacity: 1;
  transform: rotate(-45deg);
}

.global-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-top: 1px solid #e3e9f0;
  box-shadow: 0 12px 24px rgba(15, 38, 75, 0.12);
  font-weight: 700;
  letter-spacing: 0;
}

.global-nav a:hover {
  color: var(--blue);
}


/* ========================================
   Common Hero / 共通ヒーロー
======================================== */
.hero {
  min-height: 430px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: none;
}

.top .hero--top {
  place-items: start stretch;
  align-items: start;
  background: #fff;
}

.top .hero--top .hero__content {
  margin-top: clamp(50px, calc(9.5659vw - 3.66px), 180px);
  transform: none;
}

.hero__movie,
.hero__overlay-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero__movie {
  z-index: 0;
}

.hero__overlay-image {
  z-index: 1;
}

.company .hero--company {
  background-image: url("/wp-content/themes/toaflex/assets/images/company/company_profile.webp");
}

.company .hero--company .page-hero-title {
  width: min(100% - 32px, 1410px);
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.15;
  text-align: left;
}

.product .hero--product {
  background-image: url("/wp-content/themes/toaflex/assets/images/product/product_and_drawing.webp");
}

.contact .hero--contact {
  background-image: url("/wp-content/themes/toaflex/assets/images/contact/contact_hero.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: clamp(410px, calc(328px + 25.625vw), 820px);
}

.contact .hero--contact .page-hero-title {
  font-size: clamp(48px, 5.208vw, 100px);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  margin: 0 auto;
  color: #fff;
  font-weight: 900;
  text-shadow:
    0 4px 24px rgba(0, 32, 64, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.5)}

.hero__eyebrow,
.hero__title {
  margin: 0;
  font-family: Arial, "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  line-height: 1.18;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 900;
}

.hero__lead {
  margin: 28px 0 0;
  font-size: clamp(22px, 3vw, 42px);
  letter-spacing: 0.12em;
  line-height: 1.5;
  font-feature-settings: "palt";
}

.hero__sub {
  margin: 18px 0 0;
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.75;
  font-feature-settings: "palt";
}

.page-hero-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}



/* ========================================
   Common Components / 共通コンポーネント
======================================== */
.section {
  position: relative;
  padding: clamp(70px, 9vw, 130px) 0;
}

/* ========================================
   Top Page - Company Intro / トップ 会社概要
======================================== */
.top .top-company-section::before {
  content: '';
  position: absolute;
  display: block;
  background-image: url(/wp-content/themes/toaflex/assets/images/top/top_company_bg.webp);
  background-repeat: no-repeat;
  background-size: 100%;
  aspect-ratio: 3842/6152;
  width: 1920px;
  top: calc(100vw / 1920 * 1200);
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.top .top-company-grid {
  grid-template-columns: 1fr;
  gap: clamp(44px, 6vw, 92px);
}

.top .top-company-copy {
  align-self: center;
}

.top .top-company-copy .nowrap {
  white-space: wrap;
}

.top .top-company-copy .intro-logo {
  width: min(330px, 58%);
  margin: 0 auto 44px;
}

.top .top-company-copy .lead-heading {
  margin-bottom: 24px;
  font-size: clamp(23px, 4vw, 29px);
  line-height: 1.26;
  letter-spacing: 0;
}

.top .top-company-copy .copy {
  max-width: 620px;
  margin-bottom: 44px;
  font-size: 16px;
  line-height: 1.7;
}

.top .top-company-action {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}




/* ========================================
   Top Page - Product Intro / トップ 製品・図面
======================================== */
.top .top-product-section {
  padding: clamp(70px, 7vw, 120px) 0;
  padding-bottom: clamp(60px, 5.208vw, 100px);
}

.top .top-product-copy {
  align-self: center;
}

.top .top-product-copy .copy {
  max-width: 720px;
  margin-bottom: 30px;
}

.top .top-product-action {
  margin: 0;
}

.top .top-product-image {
  width: min(100%, 670px);
  justify-self: center;
}



/* ========================================
   Common Layout / 共通レイアウト
======================================== */
.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.lead-heading {
  margin: 0 0 26px;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.35;
  font-weight: 900;
}

.section-title {
  margin: 0 0 5px;
  color: var(--deep-blue);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.25;
}

.section-title + h3 {
  margin: 0 0 5px;
}

.section-title small {
  display: block;
  color: var(--dark);
  font-family: Arial, sans-serif;
  font-size: clamp(20px, 2.8vw, 34px);
}

.copy {
  font-size: clamp(14px, 0.833vw, 16px);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 100%;
  min-height: 58px;
  position: relative;
  overflow: hidden;
  padding: 14px 28px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  transition: color 0.28s ease, border-color 0.28s ease;
}

.btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: width 0.34s ease;
}

.btn:hover {
  color: #4d7fd9;
}

.btn:hover::before {
  width: 125%;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn--small {
  min-width: 180px;
  min-height: 42px;
  font-size: 18px;
}



/* ========================================
   Top Page - Company Photos / トップ 会社概要 写真
======================================== */
.photo-collage {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 24px;
  align-items: end;
}

.photo-collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.top .top-company-collage {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 2vw, 48px);
}

.top .top-company-collage-box {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2vw, 48px);
}

.top .top-company-collage-box:nth-of-type(1) {
  justify-content: flex-start;
  flex: 1 1 280px;
}

.top .top-company-collage-box:nth-of-type(2) {
  justify-content: flex-end;
  flex: 1 1 222px;
}

.top .top-company-collage-box:nth-of-type(1) img:nth-of-type(2) {
  width: 76.07%;
  margin-left: auto;
  margin-bottom: 35.58%;
}

.wide-photo img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

/* ========================================
   Top Page - Product Detail / トップ 製品・図面詳細
======================================== */
.top .product-feature {
  display: grid;
  gap: 0;
  align-items: center;
}

.top .blue-band .product-feature .copy {
  margin-block: 0;
}

.top .section--pale .product-feature .copy {
  margin-block: 0;
}

.circle-photo {
  position: relative;
  box-sizing: border-box;
  width: min(250px, 100%);
  max-height: 350px;
  aspect-ratio: 1;
  border: 18px solid var(--deep-blue);
  border-radius: 50%;
  background: #fff;
}

.circle-photo::before {
  content: '';
  position: absolute;
  display: block;
  background-color: var(--deep-blue);
  width: calc((100vw - 1300px) / 2 + 650px);
  height: calc(100% + 18px * 2);
  top: -18px;
}

.top .product-feature .circle-photo::before {
  right: calc(min(350px, 100%) / 2);
}

.top .download-row .circle-photo::before {
  left: calc(min(350px, 100%) / 2);
}

.circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  position: relative;
}

.blue-band {
  color: inherit;
  padding: 0 0 clamp(60px, 5.208vw, 100px);
}

.top .top-drawing-section,
.top .top-catalog-section {
  padding-top: 0;
  padding-bottom: clamp(60px, 5.208vw, 100px);
}

.top .download-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

.top .download-row .circle-photo {
  order: 1;
}

.top .download-row > div {
  order: 2;
}

.top .product-feature .section-title,
.top .download-row .section-title {
  font-size: 32px;
}

.top .download-row h4 {
  margin: 0 0 5px;
  font-size: 26px;
}

.note-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.note-list li {
  display: grid;
  grid-template-columns: 1em 1fr;
  gap: 0;
}

.note-list li::before {
  content: "★";
}

.note-list li + li {
  margin-top: 0;
}



/* ========================================
   Common Recruit Banner / 共通 採用バナー
======================================== */
.recruit-banner {
  position: relative;
  margin-top: clamp(30px, 2.604vw, 50px);
  padding: clamp(70px, 8vw, 100px) 20px clamp(35px, 3.385vw, 65px);
}

.recruit-banner::before {
  content: '';
  position: absolute;
  display: block;
  background-image: url("/wp-content/themes/toaflex/assets/images/cmn/footer_recruit_bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 325px;
  aspect-ratio: 3842/656;
  top: 0;
  left: 0;
}

.recruit-card {
  position: relative;
  box-sizing: border-box;
  width: min(975px, 100%);
  margin: 0 auto;
  display: grid;
  padding: clamp(30px, 1.875vw + 24px, 60px) clamp(20px, 3.125vw + 10px, 70px);
  background: #fff;
}

.recruit-card > img {
  width: 100%;
  height: auto;
  min-height: 0;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: left center;
}

.recruit-card__body {
  display: grid;
  justify-items: center;
  align-content: center;
  position: relative;
  z-index: 1;
  margin-left: 0;
  text-align: center;
}

.recruit-card__body .section-title {
  margin-bottom: 24px;
  color: #111;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(30px, 2.083vw, 40px);
  font-weight: 400;
  letter-spacing: 0.14em;
}

.recruit-message {
  margin: 0 0 16px;
}

.recruit-message img {
  width: clamp(230px, 32vw, 360px);
  max-width: 100%;
  height: auto;
}

.recruit-card__body .copy {
  margin: 0 0 14px;
}

.recruit-card__body .btn {
  width: min(80%, 250px);
  min-height: 30px;
  padding: 3px 26px;
  border-color: #155781;
  border-radius: 0;
  background: #155781;
  font-size: clamp(16px, 0.938vw, 18px);
  line-height: 1;
}

.recruit-card__body .btn::before {
  background: #fff;
}

.recruit-card__body .btn:hover {
  color: #155781;
}



/* ========================================
   Common Link Cards / 共通 下部導線
======================================== */
.link-card-section {
  padding: 0 0 clamp(70px, 8vw, 100px);
}

.script-copy {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.45;
}

.link-cards {
  width: min(1250px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.083vw, 40px);
  margin-top: 0;
}

.link-card {
  aspect-ratio: 390 / 260;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--link-card-bg);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.link-card:hover::before {
  transform: scale(1.05);
}

.link-card span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  padding: 0;
  text-align: center;
}

.link-card--company {
  --link-card-bg: url("/wp-content/themes/toaflex/assets/images/cmn/footer_company.webp");
}

.link-card--product {
  --link-card-bg: url("/wp-content/themes/toaflex/assets/images/cmn/footer_product_drawing.webp");
}

.link-card--contact {
  --link-card-bg: url("/wp-content/themes/toaflex/assets/images/cmn/footer_contact.webp");
}


/* ========================================
   Common Footer / 共通フッター
======================================== */
.site-footer {
  background: var(--footer);
  padding: 70px 0 0;
}

.footer-inner {
  width: min(100% - 28px, 930px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: stretch;
  padding-bottom: 54px;
}

.footer-logo {
  width: min(65%, 280px);
  margin: 0 auto 22px;
}

.footer-logo-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
  opacity: 0.6;
}

.footer-company {
  text-align: center;
  align-self: center;
  font-size: 16px;
  font-weight: 700;
}

.footer-company p {
  margin: 0;
  line-height: 1.35;
}

.footer-company p + p {
  margin-top: 18px;
}

.footer-company p:nth-of-type(2),
.footer-company p:nth-of-type(3) {
  line-height: 1.25;
}

.footer-company a,
.sitemap a {
  color: inherit;
}

.sitemap a:hover {
  color: var(--blue);
}

.footer-line {
  display: block;
  width: 100%;
  min-height: 0;
  height: 2px;
  background: #257aa4;
}

.sitemap h2 {
  margin: 0 0 24px;
  font-size: 18px;
}

.sitemap ul {
  display: inline-block;
  margin: 0;
  padding-left: 1.05em;
  list-style-type: square;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  text-align: left;
}

.sitemap-detail {
  margin-left: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.6;
}

.copyright {
  margin: 0;
  padding: 24px 10px;
  background: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}



/* ========================================
   Lower Page Shared Parts / 下層ページ共通パーツ
======================================== */
.page-intro {
  padding-top: clamp(70px, 8vw, 110px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 26px;
  margin: 40px 0 30px;
}

.pill {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #999;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.pill.is-active {
  background: var(--blue);
}

.product .product-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 40px;
}

.product .product-card {
  border-top: 4px solid var(--blue);
  padding-top: 18px;
  font-weight: 700;
}

.product .product-card h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 22px;
}


/* ========================================
   Product Page - Intro / 製品・図面 イントロ
======================================== */
.product .product-page-intro {
  position: relative;
  padding: 54px 0 clamp(56px, 3.646vw, 70px);
}

.product .product-page-intro::before {
  content: '';
  position: absolute;
  display: block;
  background-image: url("/wp-content/themes/toaflex/assets/images/cmn/bg_curve_02.webp");
  background-repeat: no-repeat;
  background-size: 100%;
  width: 100%;
  aspect-ratio: 3841/1318;
  top: max(calc(100% - 100vw / 1920 * 1000), calc(100% - 200px));
  left: 50%;
  transform: translateX(-50%);
}

.product .product-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 5.2vw, 78px);
  align-items: center;
  max-width: 1320px;
  position: relative;
}

.product .product-intro-copy {
  padding: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.product .product-page-heading {
  margin: 0 0 30px;
  color: #111;
  font-size: clamp(34px, 2.76vw, 53px);
  font-weight: 900;
  line-height: 1.1;
}

.product .product-intro-copy .copy {
  font-size: 16px;
  line-height: 1.9;
}

.product .product-intro-image {
  position: static;
  width: 100%;
  height: 200px;
}

.product .product-intro-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}



/* ========================================
   Product Page - Index / 製品・図面 目次
======================================== */
.product .product-index-section {
  position: relative;
  padding: 0 0 55px;
}

.product .product-index-inner {
  max-width: 1205px;
}

.product .product-list-inner {
  max-width: 1255px;
  position: relative;
  z-index: 1;
}

.product .product-index-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.product .product-index-heading::after {
  content: "";
  display: none;
  height: 2px;
  background: #777;
}

.product .product-index-heading h2 {
  margin: 0;
  color: #111;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.product .product-index-heading--catalog {
  display: none;
  margin-top: 24px;
}

.product .product-download-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}

.product .product-select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-align-last: center;
  padding: 9px 18px;
}

.product .product-select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.product .product-select optgroup,
.product .product-select option {
  background: #fff;
  color: #111;
  text-align: left;
}

.product .product-pill {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: #999;
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.product .product-pill:hover {
  background: var(--blue);
}

.product .product-pill.is-active {
  background: var(--blue);
}

.product .product-back-select {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 38, 75, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product .product-back-select.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product .product-back-select:hover {
  background: #155781;
}

/* ========================================
   Product Page - Product List / 製品・図面 ラインナップ
======================================== */
.product .product-list-section {
  position: relative;
  padding: 0 0 clamp(70px, 9vw, 105px);
}

.product .product-list-section::before {
  content: '';
  position: absolute;
  display: block;
  background-image: url("/wp-content/themes/toaflex/assets/images/cmn/bg_curve_01.webp");
  background-repeat: no-repeat;
  background-size: 100%;
  width: 100%;
  aspect-ratio: 3842/1125;
  top: max(calc(100vw / 1920 * 2100), 550px);
  left: 50%;
  z-index: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.product .product-list {
  max-width: 1205px;
  margin-right: auto;
  margin-left: auto;
}

.loading-spinner {
  max-width: 1205px;
  margin-right: auto;
  margin-left: auto;
}

.product .product-bar-title {
  margin: 0 0 24px;
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.25;
}

.product .product-spec-type {
  max-width: 1205px;
  margin: 0 auto 16px;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--blue);
  color: #111;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.product .product-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 54px);
  max-width: 1205px;
  margin-right: auto;
  margin-left: auto;
}

.product .product-spec-card {
  --product-spec-gap: clamp(26px, 4vw, 48px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--product-spec-gap);
  align-items: start;
  font-weight: 400;
}

.product .product-spec-copy {
  position: relative;
}

.product .product-spec-card h4 {
  display: flex;
  align-items: center;
  min-height: clamp(58px, 18vw, 86px);
  margin: 0 0 8px;
  padding-right: calc(clamp(58px, 18vw, 86px) + 10px);
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.product .product-desc-section {
  max-width: 1205px;
  margin: clamp(34px, 5vw, 54px) auto clamp(34px, 5vw, 54px);
}

.product .product-desc-item:not(:last-child) {
  margin-bottom: clamp(34px, 5vw, 54px);
}

.product .product-desc-title.product-spec-type {
  margin-bottom: 16px;
}

.product .product-cta-section {
  max-width: 1205px;
  margin: clamp(34px, 5vw, 54px) auto 0;
  padding-top: clamp(34px, 5vw, 54px);
  border-top: 1px solid #d9d9d9;
}

.product .product-cta-section a {
  color: #4d7fd9;
  text-decoration: underline;
}

.product .product-desc-content h4 {
  display: flex;
  align-items: center;
  min-height: clamp(58px, 18vw, 86px);
  margin: 0 0 8px;
  padding-right: calc(clamp(58px, 18vw, 86px) + 10px);
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.product .product-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(58px, 18vw, 86px);
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.product .product-header .product-title {
  flex: 0 1 auto;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  min-width: 0;
}

.product .product-desc-section .wp-block-heading {
  flex: 0 1 auto;
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  min-width: 0;
}

.product .product-desc-section .wp-block-group + .wp-block-group {
  margin-top: 50px;
}

.product .product-download-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.product .btn-catalog-download {
  flex: 0 0 auto;
  display: block;
  width: clamp(35px, 11vw, 47px);
  aspect-ratio: 1;
  font-size: 0;
  line-height: 0;
}

.product .btn-catalog-download img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.product .btn-catalog-download:hover img {
  transform: scale(1.1);
}

.product .product-item,
.product .product-content {
  position: relative;
  z-index: 1;
}

.product .product-item:not(:last-child) {
  padding-bottom: clamp(34px, 5vw, 54px);
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.product .category-section-level3:not(:last-child) {
  margin-bottom: clamp(34px, 5vw, 54px);
}

.product .product-content a {
  color: #4d7fd9;
  text-decoration: underline;
}

.product .product-content .has-fixed-layout {
  border-spacing: 0;
  border-collapse: collapse;
}

.product .product-content .has-fixed-layout th,
.product .product-content .has-fixed-layout td {
  border: 1px solid #999;
  padding: 2.5px 8px;
}

.product .product-spec-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.product .product-spec-card li::before {
  content: "■";
  margin-right: 2px;
}

.product .product-spec-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.catalog-link {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(52px, 16vw, 70px);
  aspect-ratio: 1;
  margin: 0;
}

.catalog-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.catalog-link:hover img {
  transform: scale(1.1);
}

.product .product-drawing-image {
  display: block;
  width: 100%;
  margin-top: 22px;
}

.product .product-spec-drawing {
  align-self: center;
  min-width: 0;
}

/* ========================================
   Company Page - Shared Values / 会社概要 価値訴求
======================================== */
.company .company-values {
  display: grid;
  gap: 46px;
  margin-top: 60px;
}

.company .value-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 25px;
}

.company .value-row:nth-child(odd) img {
  order: 2;
}

.company .value-row:nth-child(odd) > div {
  order: 1;
}

.company .value-row:nth-child(even) img {
  order: 2;
}

.company .value-row:nth-child(even) > div {
  order: 1;
}

.company .value-title {
  display: block;
  width: 100%;
  color: var(--blue);
  border-bottom: 2px solid currentColor;
  font-size: clamp(40px, 4.375vw, 84px);
  font-weight: 900;
  line-height: 1;
  padding-bottom: 15px;
  margin: 0 0 35px;
}

.company .value-row > div {
  text-align: center;
}



/* ========================================
   Company Page - Profile / 会社概要 メイン
======================================== */
.company .company-profile-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0 clamp(70px, 8vw, 90px);
}

.company .company-profile-section::before {
  content: '';
  position: absolute;
  display: block;
  background-image: url("/wp-content/themes/toaflex/assets/images/cmn/bg_curve_01.webp");
  background-repeat: no-repeat;
  background-size: 100%;
  width: 100%;
  aspect-ratio: 3841/1318;
  top: max(calc(100vw / 1920 * 640), 400px);
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.company .company-profile-inner {
  position: relative;
  z-index: 1;
}

.company .company-page-heading,
.company .company-subheading {
  margin: 0 0 clamp(48px, 8.8vw, 120px);
  color: #111;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 900;
}

.company .company-page-heading {
  text-align: left;
}

.company .company-concept {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 26px;
  justify-content: center;
  margin-bottom: 64px;
}

.company .company-concept__text {
  text-align: center;
  padding-left: 0;
}

.company .company-concept__en {
  margin: 0;
  color: #111;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(45px, 6.2vw, 84px);
  font-weight: 900;
  line-height: 1.08;
}

.company .company-concept__ja {
  margin: 28px 0 18px;
  color: #111;
  font-size: clamp(26px, 4vw, 53px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.company .company-concept__photo {
  width: 100%;
  justify-self: center;
}

.company .company-concept__text .copy {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.pc-line-break {
  display: none;
}

.company .value-copy-main {
  margin: 0 0 12px;
  color: #111;
  font-size: clamp(28px, 2.76vw, 53px);
  font-weight: 900;
  line-height: 1.35;
}

.company .company-wide-photo {
  width: 100%;
  aspect-ratio: 1920/562;
  max-height: 562px;
}

.company .company-wide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}



/* ========================================
   Company Page - Company Data / 会社概要 会社情報
======================================== */
.company .company-info-section {
  padding: clamp(40px, 6vw, 65px) 0 25px;
  background: #fff;
}

.company .company-info-inner {
  max-width: 1080px;
}

.company .company-message {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  align-items: center;
  margin-bottom: clamp(54px, 7vw, 75px);
}

.company .company-message > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--blue);
  order: 3;
}

.company .company-message > div {
  grid-column: auto;
  order: 1;
}

.company .company-message .company-subheading {
  margin-bottom: 10px;
  color: var(--blue);
  border-bottom: 2px solid currentColor;
  font-size: clamp(26px, 1.667vw, 32px);
  line-height: 1.25;
}

.company .company-message .copy,
.company .company-iso .copy {
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.9;
}

.company .company-message .copy {
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  font-family: "Noto Serif JP", serif;
}

.company .company-message .copy span {
  font-weight: 900;
}

.company .company-sign {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 18px;
  margin: 18px 0 0;
  font-weight: 900;
  font-family: "Noto Serif JP", serif;
}

.company .company-sign img {
  width: min(38vw, 170px);
  height: auto;
}

.company .company-data,
.company .company-history {
  margin-bottom: clamp(54px, 7vw, 90px);
}

.company .company-iso {
  scroll-margin-top: 96px;
}

.company .company-data .company-subheading,
.company .company-history .company-subheading,
.company .company-iso .company-subheading {
  margin-bottom: 18px;
  color: var(--blue);
  border-bottom: 2px solid #4d7fd9;
  line-height: 1.5;
}

.company .company-data .company-subheading {
  font-size: clamp(26px, 1.667vw, 32px);
  margin-bottom: clamp(35px, 7vw, 70px);
}

.company .company-history .company-subheading {
  font-size: clamp(26px, 1.667vw, 32px);
}

.company .company-iso .company-subheading {
  grid-column: 1 / -1;
  font-size: clamp(26px, 1.667vw, 32px);
}

.company .company-iso > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 70px;
  align-items: center;
}

.company .company-iso img {
  width: 100%;
}

.company .data-table {
  width: 100%;
  max-width: 1010px;
  border-collapse: collapse;
  margin: 26px auto 0;
  font-weight: 700;
}

.company .data-table th,
.company .data-table td {
  border-bottom: 1px solid #4d7fd9;
  padding: 5px 0 0 !important;
  font-size: clamp(16px, 1.25vw, 24px);
  text-align: left;
  vertical-align: top;
}

.company .data-table th {
  width: 240px;
  padding-bottom: 4px;
  border-bottom: 0;
  color: var(--blue);
}

.company .data-table tr:nth-child(10) td,
.company .data-table tr:nth-child(11) td,
.company .data-table tr:nth-child(13) td,
.company .data-table tr:nth-child(14) td,
.company .data-table tr:nth-child(15) td {
  border-bottom: 0;
}

.company .history-list {
  display: grid;
  gap: 8px;
  max-width: 1010px;
  margin: 45px auto 0;
}

.company .history-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid #4d7fd9;
  font-weight: 700;
}

.company .history-list strong {
  color: var(--blue);
  font-size: clamp(16px, 1.25vw, 24px);
}

.company .history-list span {
  font-size: clamp(15px, 1.042vw, 20px);
}

.message-line {
  text-align: center;
  font-weight: 700;
}

.people-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 54px 0;
}

.people-row img {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}



/* ========================================
   Recruit Page / 採用ページ
======================================== */
.recruit .recruit-container {
  width: min(100% - 40px, 1080px);
}

.recruit .hero.recruit-hero {
  position: relative;
  min-height: clamp(25.625rem, 18.616rem + 35.04vw, 51.25rem);
  background-image: url("/wp-content/themes/toaflex/assets/images/recruit/recruit_hero.webp");
  background-position: left 27% center;
}

.recruit .hero__content.recruit-hero__content {
  position: absolute;
  inset: 0;
  width: min(100% - 32px, 1490px);
  margin: 0;
  padding: 0;
  text-align: left;
  top: clamp(6.625rem, 4.813rem + 9.06vw, 13.25rem);
  left: 50%;
  transform: translateX(-50%);
}

.recruit .recruit-hero .hero__title {
  color: #fff;
  font-size: clamp(2.875rem, 2.089rem + 3.93vw, 5.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
  margin-bottom: clamp(5.188rem, 3.769rem + 7.09vw, 10.375rem);
}

.recruit .recruit-hero__copy {
  width: min(100%, clamp(25.688rem, 18.662rem + 35.13vw, 51.375rem));
}

.recruit .recruit-hero__copy span {
  display: block;
  font-size: clamp(1.188rem, 0.863rem + 1.62vw, 2.375rem);
  padding-right: clamp(0.313rem, -2.148rem + 12.3vw, 3.75rem);
  text-shadow: none;
  margin: 0;
  padding-top: clamp(0.813rem, 0.59rem + 1.11vw, 1.625rem);
  text-align: right;
}

.recruit .recruit-lead-section {
  padding: clamp(28px, 4.6vw, 58px) 0 clamp(34px, 5vw, 58px);
}

.recruit .recruit-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4.2vw, 62px);
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.recruit .recruit-lead img {
  width: 100%;
  aspect-ratio: 520 / 293;
  object-fit: cover;
}

.recruit .recruit-lead .lead-heading {
  margin: 0;
  color: #111;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(45px, 4.375vw, 84px);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
}

.recruit .recruit-lead .lead-heading span {
  display: inline-block;
  font-size: clamp(26px, 2.76vw, 53px);
}

.recruit .recruit-background {
  position: relative;
}

.recruit .recruit-background::before {
  content: '';
  position: absolute;
  display: block;
  background-image: url(/wp-content/themes/toaflex/assets/images/recruit/recruit_message_bg.webp);
  background-repeat: no-repeat;
  background-size: 100%;
  width: 100%;
  aspect-ratio: 3840 / 1071;
  top: max(calc(100vw / 1920 * 150), 110px);
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.recruit .recruit-background::after {
  content: '';
  position: absolute;
  display: block;
  background-image: url(/wp-content/themes/toaflex/assets/images/recruit/recruit_about_bg.webp);
  background-repeat: repeat-y;
  background-size: 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: 3840 / 2037;
  top: max(calc(100vw / 1920 * 150 + 100vw / 3840 * 1070), calc(110px + 100vw / 3840 * 1070));
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.recruit .recruit-message-section {
  margin-top: clamp(42px, 6vw, 82px);
  margin-bottom: clamp(44px, 5.8vw, 135px);
  text-align: center;
}

.recruit .recruit-message-section .section-title {
  margin: 0 0 50px;
  color: var(--blue);
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1;
  text-align: center;
}

.recruit .recruit-about .section-title {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1;
  text-align: left;
}

.recruit .recruit-message-section .message-title {
  font-size: clamp(20px, 1.875vw, 36px);
  font-weight: 900;
  margin-bottom: 20px;
}

.recruit .recruit-message-section .message-line {
  width: min(100%, 900px);
  margin: 0 auto 8px;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.8;
}

.recruit .recruit-about-section {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.8vw, 75px) 0 clamp(64px, 8vw, 100px);
  box-sizing: border-box;
}

.recruit .recruit-people-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(180px, 20.573vw, 395px);
  overflow: hidden;
}

.recruit .recruit-people-strip__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: recruitPeopleScroll 60s linear infinite;
}

.recruit .recruit-people-strip img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  height: 100%;
}

@keyframes recruitPeopleScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.recruit .recruit-about {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto clamp(34px, 5vw, 65px);
  text-align: left;
}

.recruit .recruit-about .copy {
  margin: 0 0 45px;
  font-size: clamp(13px, 1.12vw, 16px);
  line-height: 1.8;
  text-align: left;
}

.recruit .recruit-about__link {
  margin: 0;
  text-align: right;
}

.recruit .recruit-about__link .btn {
  min-width: clamp(240px, 30.729vw, 590px);
  min-height: 39px;
  padding: 4px 8px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(77, 127, 217, 0), var(--blue) 72%);
  font-size: clamp(20px, 1.875vw, 36px);
  font-weight: 400;
  justify-content: flex-end;
  text-align: right;
  border: none;
  transition: opacity 0.28s ease;
}

.recruit .recruit-about__link .btn::before {
  content: none;
}

.recruit .recruit-about__link .btn:hover {
  color: #fff;
  opacity: 0.6;
}

.recruit .recruit-about-section .bar-title {
  margin-bottom: 65px;
}

.recruit .job-table {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 216fr) minmax(0, 750fr);
  row-gap: 25px;
  width: min(100%, 966px);
  margin: 0 auto;
  background: transparent;
  font-weight: 700;
  align-items: flex-end;
}

.recruit .job-table dt,
.recruit .job-table dd {
  border-bottom: 3px solid #777;
  padding: 8px 28px 8px;
  text-align: left;
}

.recruit .job-table dt {
  margin: 0;
  border-bottom: none;
  background: #7f8080;
  color: #fff;
  font-size: clamp(20px, 1.719vw, 33px);
  line-height: 1.25;
  white-space: nowrap;
  padding: 15px;
}

.recruit .job-table dd {
  margin: 0;
  background: transparent;
  color: #111;
  font-size: clamp(20px, 1.719vw, 33px);
  line-height: 1.45;
}

.recruit .job-table dd.job-table__detail {
  font-size: clamp(15px, 1.094vw, 21px);
}

.recruit .job-table dd span {
  font-size: clamp(15px, 1.094vw, 21px);
}

.entry-block {
  text-align: center;
}

.recruit .recruit-entry {
  padding: clamp(56px, 6.25vw, 135px) 0 clamp(70px, 7.813vw, 150px);
  background: #fff;
}

.recruit .recruit-entry__copy {
  width: min(100% - 40px, 820px);
  margin: 0 auto 20px;
}

.recruit .recruit-entry__subcopy {
  margin: 0 0 clamp(26px, 2.604vw, 35px);
  color: #231f20;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(18px, 1.875vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

.recruit .recruit-entry__action {
  display: grid;
  grid-template-columns: minmax(42px, 96px) minmax(0, clamp(320px, 34.896vw, 670px)) minmax(42px, 96px);
  gap: clamp(24px, 2.865vw, 55px);
  align-items: center;
  justify-content: center;
  width: min(100% - 40px, 970px);
  margin: 0 auto clamp(54px, 7vw, 90px);
}

.recruit .recruit-entry__action .btn {
  width: 100%;
  min-height: clamp(58px, 4.792vw, 92px);
  margin: 0;
  border-radius: 999px;
  font-size: clamp(36px, 4.375vw, 84px);
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  padding-block: 0;
  line-height: 1;
}

.recruit .recruit-entry__arrow {
  --entry-arrow-height: clamp(36px, 4.375vw, 84px);
  --entry-arrow-width: calc(var(--entry-arrow-height) * 0.8660254);
  position: relative;
  display: block;
  width: calc(var(--entry-arrow-width) * 2);
  height: var(--entry-arrow-height);
}

.recruit .recruit-entry__arrow--left {
  justify-self: end;
}

.recruit .recruit-entry__arrow--right {
  justify-self: start;
}

.recruit .recruit-entry__arrow::before,
.recruit .recruit-entry__arrow::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: calc(var(--entry-arrow-height) / 2) solid transparent;
  border-bottom: calc(var(--entry-arrow-height) / 2) solid transparent;
}

.recruit .recruit-entry__arrow--left::before,
.recruit .recruit-entry__arrow--left::after {
  border-left: var(--entry-arrow-width) solid #2f86d1;
}

.recruit .recruit-entry__arrow--left::before {
  left: 0;
}

.recruit .recruit-entry__arrow--left::after {
  left: var(--entry-arrow-width);
}

.recruit .recruit-entry__arrow--right::before,
.recruit .recruit-entry__arrow--right::after {
  border-right: var(--entry-arrow-width) solid #2f86d1;
}

.recruit .recruit-entry__arrow--right::before {
  right: 0;
}

.recruit .recruit-entry__arrow--right::after {
  right: var(--entry-arrow-width);
}



/* ========================================
   Contact Page / お問い合わせページ
======================================== */
.contact .contact-box {
  position: relative;
  width: min(100% - 32px, 1255px);
  margin: 0 auto;
}

.contact .section:has(.contact-box) {
  overflow: hidden;
  padding-top: clamp(48px, 4.688vw, 90px);
  padding-bottom: 110px;
}

.contact .section:has(.contact-box)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(470px, 50vw, 960px);
  z-index: -1;
  width: 100%;
  aspect-ratio: 3841 / 1318;
  background: url("/wp-content/themes/toaflex/assets/images/cmn/bg_curve_02.webp") center / 100% no-repeat;
  transform: translateX(-50%);
}

.bar-title {
  margin: 0 0 clamp(22px, 1.823vw, 35px);
  padding: clamp(10px, 0.833vw, 16px) clamp(16px, 1.563vw, 30px);
  background: var(--blue);
  color: #fff;
  font-size: clamp(24px, 1.875vw, 36px);
  font-weight: 900;
  line-height: 1.3;
}

.contact .contact-box > .copy {
  margin: 0 auto clamp(32px, 3.125vw, 60px);
  color: var(--blue);
  font-size: clamp(14px, 1.042vw, 20px);
  max-width: 1230px;
}

.contact .contact-section-heading {
  margin: 0 auto clamp(16px, 1.302vw, 25px);
  padding-bottom: 6px;
  border-bottom: 2px solid #4d7fd9;
  color: var(--blue);
  font-size: clamp(20px, 1.40625vw, 24px);
  font-weight: 900;
  line-height: 1.35;
  max-width: 1230px;
}

.contact .tel-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto clamp(42px, 3.646vw, 70px);
  font-weight: 900;
  max-width: 1160px;
}

.contact .tel-table th,
.contact .tel-table td {
  display: block;
  padding: clamp(10px, 0.99vw, 19px) clamp(14px, 1.458vw, 28px);
  font-size: clamp(15px, 1.042vw, 20px);
  text-align: left;
}

.contact .tel-table th {
  width: clamp(92px, 11.979vw, 230px);
  padding-bottom: 0;
}

.contact .tel-table td {
  border-bottom: 1px solid #4d7fd9;
}

.contact .contact-section-heading + .copy {
  margin: 0 auto 12px;
  font-size: clamp(13px, 0.938vw, 18px);
  line-height: 1.55;
  max-width: 1160px;
}

.contact .contact-form {
  width: min(100%, 1150px);
  border-collapse: collapse;
  margin: 0 auto;
  background: #b5def4;
  border: 1px solid #3a87bb;
  font-weight: 400;
}

.contact .contact-form--legacy {
  display: none;
}

.contact .contact-form th,
.contact .contact-form td {
  background: #b5def4;
  border: 1px solid #3a87bb;
  padding: 5px 10px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

.contact .contact-form th {
  width: clamp(120px, 13.021vw, 250px);
  font-size: clamp(14px, 1.042vw, 20px);
  vertical-align: middle;
}

.contact .contact-form td {
  font-size: clamp(13px, 0.833vw, 16px);
  vertical-align: top;
}

.contact .contact-form input,
.contact .contact-form select,
.contact .contact-form textarea {
  width: 100%;
  min-height: clamp(24px, 1.563vw, 30px);
  border: 1px solid #6198bf;
  background: #fff;
  font: inherit;
}

.contact .contact-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact .contact-field input,
.contact .contact-field select {
  min-width: 0;
}

.contact .contact-field--tel input,
.contact .contact-field--zip input,
.contact .contact-field--pref select {
  max-width: 250px;
}

.contact .company-required.is-hidden {
  display: none;
}

.contact .contact-radio {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 0;
}

.contact .contact-radio input {
  width: auto;
  min-height: auto;
}

.contact .contact-radio-list,
.contact .contact-radio-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.contact .contact-radio-list select {
  margin-bottom: 2px;
}

.contact .contact-radio-group {
  margin-top: 4px;
}

.contact .contact-form textarea {
  min-height: clamp(180px, 14.583vw, 280px);
  resize: vertical;
}

.contact .contact-error {
  margin: 4px 0 0;
  color: #d33;
  font-size: clamp(12px, 0.729vw, 14px);
  line-height: 1.4;
}

.contact .contact-recaptcha {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.contact .contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact .contact-confirm {
  width: min(100%, 1150px);
  margin: 0 auto;
}

.contact .contact-confirm-list {
  display: grid;
  grid-template-columns: clamp(120px, 13.021vw, 250px) 1fr;
  border: 1px solid #3a87bb;
  background: #b5def4;
}

.contact .contact-confirm-list dt,
.contact .contact-confirm-list dd {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #3a87bb;
  font-size: clamp(13px, 0.833vw, 16px);
  line-height: 1.5;
  white-space: pre-wrap;
}

.contact .contact-confirm-list dt {
  border-right: 1px solid #3a87bb;
}

.contact .contact-confirm-list dt:last-of-type,
.contact .contact-confirm-list dd:last-of-type {
  border-bottom: 0;
}

.contact .form-actions {
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.contact .form-actions button {
  min-height: 28px;
  border-color: #5b7da0;
  background: #fff;
  color: #111;
}

.contact .section:has(.link-cards) {
  padding-top: clamp(34px, 4.167vw, 80px);
  padding-bottom: clamp(70px, 7.292vw, 140px);
}

.contact-result .contact-result-section {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-height, 86px) - 320px);
  padding: clamp(60px, 8vw, 120px) 20px;
  background: #eef7fc;
  margin-bottom: clamp(70px, 8vw, 100px);
}

.contact-result .contact-result-card {
  width: min(100%, 860px);
  border: 1px solid #4d7fd9;
  background: #fff;
  padding: clamp(10px, 5vw, 64px);
  text-align: center;
}

.contact-result .contact-result-label {
  color: #4d7fd9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contact-result .contact-result-title {
  margin: 14px 0 18px;
  color: #4d7fd9;
  font-size: clamp(15px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.contact-result .contact-result-message {
  margin: 0;
  color: #111;
  line-height: 1.9;
}

.contact-result .contact-result-button {
  display: inline-flex;
  margin-top: 28px;
  padding: 12px 28px;
  background: #4d7fd9;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.required {
  color: #d33;
  font-weight: 900;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.form-actions button {
  border: 1px solid #697789;
  background: #f7f7f7;
  padding: 4px 12px;
  font: inherit;
  cursor: pointer;
}



/* ========================================
   Responsive / スマホファースト
   Base: <= 767px
======================================== */
.global-nav.is-open {
  display: flex;
}

.global-nav a {
  padding: 15px 24px;
  border-bottom: 1px solid #e3e9f0;
}

.category-grid,
.product .product-category-grid,
.product .product-download-grid,
.product .product-card-grid {
  grid-template-columns: 1fr;
}

/* Top Page - Company Intro / トップ 会社概要 */
.top .top-company-copy .btn {
  min-width: min(420px, 100%);
}

.top .top-company-section .photo-collage {
  display: grid;
  position: static;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "main meeting"
    "family facility";
  gap: 20px;
}

.top .top-company-section .photo-collage img:nth-child(1),
.top .top-company-section .photo-collage img:nth-child(2),
.top .top-company-section .photo-collage img:nth-child(3),
.top .top-company-section .photo-collage img:nth-child(4) {
  position: static;
  width: 100%;
}

.top .top-company-section .photo-collage img:nth-child(1) {
  grid-area: main;
}

.top .top-company-section .photo-collage img:nth-child(2) {
  grid-area: meeting;
  margin-top: 0;
}

.top .top-company-section .photo-collage img:nth-child(3) {
  grid-area: family;
}

.top .top-company-section .photo-collage img:nth-child(4) {
  grid-area: facility;
}

/* Top Page - Product Intro / トップ 製品・図面 */
.top .grid-2.top-product-grid {
  grid-template-columns: 1fr;
  max-width: calc(1180px + clamp(40px, 6vw, 86px));
}

.top .top-product-action .btn {
  min-width: 100%;
}

/* Top Page - Product Detail / トップ 製品・図面詳細 */
.top .product-feature .circle-photo,
.top .download-row .circle-photo {
  justify-self: center;
  margin-bottom: 24px;
}

.pc-title {
  display: none;
}

.sp-title {
  display: inline;
}

.product .product-select-wrap {
  display: block;
  margin-bottom: 12px;
}

.product .product-category-grid,
.product .product-download-grid {
  display: none;
}

/* Company Page / 会社概要ページ */
.company .company-message > img,
.company .company-iso img {
  justify-self: center;
}

.company .data-table,
.company .data-table tbody,
.company .data-table tr,
.company .data-table td {
  display: block;
  width: 100%;
}

.company .data-table td {
  padding-top: 0;
}

.sitemap {
  text-align: center;
}

/* Company / Recruit / Contact Pages / 会社・採用・お問い合わせページ */
.recruit .job-table tr,
.recruit .job-table th,
.recruit .job-table td,
.contact .contact-form tr,
.contact .contact-form th,
.contact .contact-form td {
  display: block;
  width: 100%;
}

/* ========================================
   Responsive >= 768px
======================================== */
@media (min-width: 768px) {
  .hero {
    min-height: clamp(380px, 58vw, 720px);
  }

  .recruit .job-table {
    grid-template-columns: minmax(0, 216fr) minmax(0, 750fr);
  }

  .top .hero--top {
    min-height: min(64vw, 1229px);
  }

  .top .top-company-section::before {
    width: 100%;
    top: calc(100vw / 1920 * 333);
  }

  .top .top-company-grid {
    grid-template-columns: 633fr 575fr;
    gap: clamp(44px, 6vw, 92px);
  }

  .top-company-section .photo-collage {
    display: block;
    position: relative;
    min-height: 420px;
    max-width: none;
    margin: 0;
  }

  .top-company-section .photo-collage img:nth-child(1),
  .top-company-section .photo-collage img:nth-child(2),
  .top-company-section .photo-collage img:nth-child(3),
  .top-company-section .photo-collage img:nth-child(4) {
    position: absolute;
    grid-area: auto;
    width: auto;
  }

  .top-company-section .photo-collage img:nth-child(1) {
    top: 0;
    left: 0;
    width: min(46%, 240px);
  }

  .top-company-section .photo-collage img:nth-child(2) {
    top: 72px;
    right: 10%;
    width: min(38%, 190px);
  }

  .top-company-section .photo-collage img:nth-child(3) {
    top: 260px;
    left: 14%;
    width: min(36%, 180px);
  }

  .top-company-section .photo-collage img:nth-child(4) {
    top: 238px;
    right: 0;
    width: min(38%, 190px);
  }

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

  .top .grid-2.top-product-grid {
    grid-template-columns: minmax(0, 510fr) minmax(0, 670fr);
    gap: clamp(40px, 6vw, 86px);
  }

  .top .top-product-action .btn {
    min-width: min(100%, 420px);
    font-size: clamp(18px, 2.2vw, 28px);
  }

  .top-product-image {
    width: 100%;
    max-width: 100%;
  }

  .company .company-concept {
    grid-template-columns: minmax(0, 855fr) minmax(260px, 445fr);
    gap: clamp(34px, 5vw, 78px);
    margin-bottom: 0;
    text-align: center;
  }

  .company .company-concept__photo {
    width: min(100%, 445px);
  }

  .company .company-iso > div {
    grid-template-columns: minmax(0, 755fr) minmax(180px, 326fr);
    align-items: center;
  }

  .company .company-values {
    margin-top: 0;
    gap: 0;
  }

  .company .value-row {
    grid-template-columns: minmax(0, 370fr) minmax(0, 930fr);
    gap: 0;
  }

  .company .value-row:nth-child(even) {
    grid-template-columns: minmax(0, 930fr) minmax(0, 370fr);
    gap: 0;
  }

  .company .value-row:nth-child(odd) img {
    order: 1;
  }

  .company .value-row:nth-child(odd) > div {
    order: 2;
  }

  .company .value-row:nth-child(even) img {
    order: 2;
  }

  .company .value-row:nth-child(even) > div {
    order: 1;
  }

  .circle-photo {
    width: min(350px, 100%);
  }

  .top .product-feature > div:not(.circle-photo),
  .top .download-row > div:not(.circle-photo) {
    padding-inline: clamp(24px, 3.5vw, 60px);
  }

  .top .product-feature > div:not(.circle-photo) {
    padding-right: 0;
  }

  .top .download-row > div:not(.circle-photo) {
    padding-left: 0;
  }

  .top .product-feature .circle-photo {
    justify-self: end;
    margin-bottom: 0;
  }

  .top .download-row {
    grid-template-columns: 1fr 1fr;
  }

  .top .download-row .circle-photo {
    justify-self: start;
    order: 2;
    margin-bottom: 0;
  }

  .download-row div:not(.circle-photo) {
    order: 1;
  }

  .recruit-card {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .recruit-card > img {
    height: min(14.583vw, 280px);
    min-height: 220px;
    margin-bottom: 0;
  }

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

  .footer-inner {
    width: min(930px, calc(100% - 40px));
    grid-template-columns: 1fr 2px 1fr;
    gap: clamp(35px, 3.646vw, 70px);
  }

  .footer-company {
    font-size: 18px;
  }

  .footer-line {
    width: 2px;
    min-height: 100%;
    height: auto;
  }

  .sitemap {
    text-align: left;
  }

  .sitemap h2 {
    font-size: 23px;
  }

  .sitemap ul {
    display: block;
    font-size: 23px;
  }

  .sitemap-detail {
    font-size: 21px;
  }

  .product .product-page-intro {
    padding-top: clamp(54px, 3.385vw, 65px);
  }

  .product .product-page-intro::before {
    top: min(calc(100% - 100vw / 1920 * 195), calc(100% - 195px));
  }

  .product .product-intro-image {
    position: absolute;
    height: 100%;
    width: calc(59.23% + max((100vw - 1300px), 0px) / 2);
    right: calc(max((100vw - 1300px), 0px) / -2);
  }

  .product .product-intro-image img {
    height: 100%;
    object-position: 20% center;
  }

  .product .product-intro-copy {
    padding: clamp(20px, 2.344vw, 45px) 0 clamp(36px, 4.948vw, 95px);
  }

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

  .product-intro-grid > img {
    width: calc(100% + clamp(36px, 5vw, 80px));
    justify-self: end;
  }

  .product .product-select-wrap {
    display: none;
  }

  .product .product-index-heading::after {
    display: block;
  }

  .product .product-index-heading--catalog {
    display: grid;
  }

  .pc-title {
    display: inline;
  }

  .sp-title {
    display: none;
  }

  .product .product-pill {
    min-height: 55px;
  }

  .product .product-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
  }

  .product .product-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
  }

  .product .product-list-section::before {
    top: 535px;
  }

  .product .product-spec-card {
    grid-template-columns: minmax(0, calc((100% - var(--product-spec-gap)) / 2)) minmax(0, calc((100% - var(--product-spec-gap)) / 2));
  }

  .product .product-spec-card h4 {
    min-height: clamp(58px, 7vw, 86px);
    padding-right: calc(clamp(58px, 7vw, 86px) + 12px);
  }

  .product-desc-content h4 {
    min-height: clamp(58px, 7vw, 86px);
    padding-right: calc(clamp(58px, 7vw, 86px) + 12px);
  }

  .product .product-header {
    width: 50%;
    min-height: clamp(58px, 7vw, 86px);
  }

  .product .btn-catalog-download {
    width: clamp(39px, 4.7vw, 57px);
  }

  .product-content .is-layout-flex {
    align-items: flex-start;
  }

  .product-content .wp-block-columns:has(> :nth-child(2):last-child) > * {
    width: calc(50% - 0.25em);
  }

  .product-desc-section .wp-block-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    align-items: flex-start;
  }

  .product-desc-section .wp-block-columns:has(> :nth-child(2):last-child) > * {
    width: calc((100% - 25px) / 2);
  }

  .product-cta-section .is-layout-flex,
  .product-cta-section .wp-block-columns {
    align-items: flex-start;
  }

  .product-cta-section .wp-block-columns {
    flex-wrap: nowrap;
    gap: 25px;
  }

  .product-cta-section .wp-block-columns:has(> :nth-child(2):last-child) > * {
    width: calc((100% - 25px) / 2);
  }

  .catalog-link {
    width: clamp(58px, 7vw, 86px);
  }

  .pc-line-break {
    display: inline;
  }

  .company .company-profile-section::before {
    top: min(calc(100vw / 1920 * 640), 640px);
  }

  .company .company-message {
    grid-template-columns: minmax(0, 260fr) minmax(0, 45fr) minmax(0, 995fr);
    gap: 0;
    align-items: flex-start;
  }

  .company .company-message > img {
    width: 100%;
    order: 1;
  }

  .company .company-message > div {
    grid-column: 3;
    order: 3;
  }

  .company .history-list div {
    display: grid;
    grid-template-columns: 235px 1fr;
  }

  .company .data-table {
    display: table;
  }

  .company .data-table tbody {
    display: table-row-group;
  }

  .company .data-table tr {
    display: table-row;
  }

  .company .data-table th,
  .company .data-table td {
    display: table-cell;
  }

  .company .data-table th {
    padding: 5px 0 0 !important;
    border-bottom: 1px solid #4d7fd9;
  }

  .company .data-table td {
    padding: 5px 0 0 !important;
    width: auto;
  }

  .company .company-sign {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .job-table tr {
    display: table-row;
  }

  .job-table th,
  .job-table td {
    display: table-cell;
    width: auto;
  }

  .job-table th {
    width: 190px;
  }

  .recruit-about-section .job-table th {
    width: clamp(170px, 13.281vw, 255px);
  }

  .contact .contact-form tr {
    display: table-row;
  }

  .contact .contact-form th,
  .contact .contact-form td {
    display: table-cell;
    width: auto;
  }

  .contact .tel-table th,
  .contact .tel-table td {
    display: table-cell;
    padding: 16px 24px;
  }

  .contact .tel-table th {
    border-bottom: 1px solid #4d7fd9;
    padding-bottom: clamp(10px, 0.99vw, 19px);
  }

  .recruit .recruit-hero__copy span{
    padding-right: clamp(2.5rem, -0.159rem + 5.54vw, 5rem);
  }

  .recruit .recruit-lead {
    grid-template-columns: minmax(0, 520fr) minmax(0, 420fr);
  }

  .recruit .recruit-lead img {
    order: 1;
  }

  .recruit .recruit-lead .lead-heading {
    order: 2;
  }
}

/* ========================================
   Responsive >= 1200px
======================================== */
@media (min-width: 1200px) {
  .site-header {
    min-height: 86px;
    padding: 14px clamp(20px, 5vw, 58px);
  }

  .site-logo img {
    width: 330px;
  }

  .nav-toggle {
    display: none;
    margin-right: 0;
  }

  .global-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(24px, 4vw, 58px);
    background: transparent;
    border-top: 0;
    box-shadow: none;
  }

  .global-nav a {
    padding: 8px 0;
    border-bottom: 0;
  }

  .hero--top {
    min-height: min(64vw, 1229px);
  }

  .hero__content {
    width: min(1480px, calc(100% - 40px));
  }

  .sp-only {
    display: none;
  }

  .top-company-section {
    min-height: 900px;
    padding: clamp(120px, 10vw, 190px) 0 clamp(100px, 9vw, 150px);
  }

  .top-company-section .photo-collage {
    display: grid;
    position: static;
    grid-template-columns: 1fr 0.82fr;
    min-height: 0;
    max-width: none;
    gap: 24px;
  }

  .top-company-section .photo-collage img:nth-child(1),
  .top-company-section .photo-collage img:nth-child(2),
  .top-company-section .photo-collage img:nth-child(3),
  .top-company-section .photo-collage img:nth-child(4) {
    position: static;
    width: 100%;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .btn {
    min-width: 280px;
  }

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

  .product-feature > div:not(.circle-photo),
  .download-row > div:not(.circle-photo) {
    padding-inline: clamp(24px, 3.5vw, 60px);
  }

  .recruit-card__body {
    margin-left: -28px;
  }

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

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

  .product .product-intro-copy {
    padding: clamp(20px, 2.344vw, 45px) clamp(20px, 2.604vw, 50px) clamp(36px, 4.948vw, 95px);
  }

  .product .product-category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 24px;
  }

  .product .product-download-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 24px;
  }

  .catalog-link {
    margin: 0;
  }

  .product-drawing-image {
    margin-top: clamp(26px, 4vw, 46px);
  }

  .company .company-profile-section {
    padding-top: clamp(70px, 8vw, 135px);
  }

  .people-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .top .top-company-copy .nowrap {
    white-space: nowrap;
  }
}

@media (width < 768px) {
  .recruit .job-table {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .recruit .job-table dt {
    padding: 10px 14px;
    white-space: normal;
  }

  .recruit .job-table dd {
    margin-bottom: 14px;
    padding: 10px 14px;
  }

  .recruit .job-table__welfare-title br {
    display: none;
  }

  .recruit .recruit-entry__action {
    grid-template-columns: auto minmax(0, 190px) auto;
    gap: clamp(8px, 3.75vw, 14px);
    width: min(100% - 16px, 360px);
  }

  .recruit .recruit-entry__action .btn {
    min-height: clamp(46px, 15vw, 58px);
    padding-inline: 16px;
    font-size: clamp(28px, 11.25vw, 40px);
  }

  .recruit .recruit-entry__arrow {
    --entry-arrow-height: clamp(24px, 8.75vw, 34px);
  }

  .contact .contact-form th,
  .contact .contact-form td {
    padding: 7px 8px;
  }

  .contact .contact-radio,
  .contact .contact-radio-group {
    display: grid;
    gap: 6px;
  }

  .contact .contact-radio {
    grid-template-columns: auto 1fr;
    margin-right: 0;
  }

  .contact .form-actions {
    flex-wrap: wrap;
  }

  .product-content .wp-block-columns:has(> :nth-child(2):last-child) > *,
  .product-desc-item .wp-block-column {
    flex-basis: 100% !important;
  }
}
