/*
Theme Name: RadianceMetal Theme
Description: Figma based top page implementation
Version: 1.0.0
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --color-text: #000;
  --color-white: #fff;
  --color-navy: #002870;
  --color-accent: #004ca0;
  --color-gold: #c9a333;
  --color-button-shadow: #5c75a2;
  --color-bg-soft: #eef5ff;
  --color-border: #999;
  --section-space-pc: 80px;
  --section-space-sp: 60px;
  --title-size-pc: 48px;
  --title-size-sp: 34px;
  --title-line-width: 258px;
  --title-line-height: 4px;
  --btn-width: 352px;
  --btn-height: 59px;
  --btn-radius: 30px;
  --btn-font-size: 20px;
  --btn-shadow-x: 13px;
  --btn-shadow-y: 8px;
  --btn-shadow-color: #5c75a2;
  --lower-mv-height: 245px;
  --lower-mv-title-size: 48px;
}

body {
  margin: 0;
  font-family: "M PLUS 1p", sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
}

body.is-popup-open {
  overflow: hidden;
}

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

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

.l-main {
  overflow: hidden;
}

.p-products-page {
  overflow-x: clip;
}

.l-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.u-section-space {
  padding: var(--section-space-pc) 0;
}

.u-bg-diagonal {
  background-image: url("./images/bg-diagonal.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.c-section-title {
  margin-bottom: 56px;
}

.c-section-title--left {
  text-align: left;
}

.c-section-title--center {
  text-align: center;
}

.c-section-title__jp,
.c-section-title__en {
  margin: 0;
  color: var(--color-text);
  font-size: var(--title-size-pc);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.c-section-title__jp::after,
.c-section-title__en::after {
  content: "";
  display: block;
  width: var(--title-line-width);
  height: var(--title-line-height);
  margin-top: 16px;
  background: var(--color-accent);
}

.c-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.c-button-wrap--left {
  justify-content: flex-start;
}

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--btn-width);
  height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 2px solid var(--color-navy);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--btn-font-size);
  box-shadow: var(--btn-shadow-x) var(--btn-shadow-y) 0 var(--btn-shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.c-button:hover {
  background: var(--color-bg-soft);
  box-shadow: 16px 10px 0 var(--btn-shadow-color);
  transform: translateY(-2px);
}

.js-fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

.l-header__inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  height: 100px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l-header__logo {
  width: 300px;
}

.l-header__nav-list {
  display: flex;
  align-items: center;
  gap: 56px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.l-header__nav-list a {
  font-size: 26px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.l-header__nav-list a:hover {
  color: var(--color-accent);
}

.l-header__nav-list-item--contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 290px;
  height: 67px;
  border-radius: 100px;
  background: linear-gradient(135deg, #d8b24a 0%, #c9a333 48%, #b48d25 100%);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(0, 40, 112, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.l-header__nav-list-item--contact a:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 40, 112, 0.28);
  filter: brightness(1.04);
}

.l-header__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
}

.l-header__hamburger-line {
  display: block;
  width: 30px;
  height: 2px;
  margin: 6px auto;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.p-mv {
  margin-top: 82.83px;
}

.p-mv__main {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.p-mv__main img {
  width: 100%;
  height: 652.64px;
  object-fit: cover;
}

.p-mv-message {
  margin-top: 49.53px;
  min-height: 71px;
  display: flex;
  align-items: center;
  background: var(--color-white);
}

.p-mv-message__text {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  color: var(--color-accent);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.p-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-text);
}

.p-news .p-news__title {
  font-size: 32px;
  margin-left: 63px;
}

.p-news .p-news__title::after {
  content: none;
}

.p-news__item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
  align-items: center;
  padding: 24px 63px;
  border-bottom: 1px solid var(--color-text);
}

.p-news__date {
  font-size: 27px;
  font-weight: 500;
}

.p-news__link {
  display: inline-block;
  font-size: 23px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.p-news__link:hover,
.p-news__item:hover a.p-news__link,
a.p-news__link:focus-visible {
  color: var(--color-accent);
}

.p-company {
  background: transparent;
}

.p-company .l-container {
  max-width: none;
  padding-left: 0;
}

.p-company__inner {
  position: relative;
  max-width: none;
  margin: 0;
  min-height: 995px;
}

.p-company__visual {
  position: relative;
  width: 100%;
  min-height: 460px;
  margin-bottom: 48px;
}

.p-company__visual-main {
  position: absolute;
  left: 0;
  top: 0;
  width: 70%;
  max-width: 1240px;
  aspect-ratio: 1240 / 482;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 7px 21px rgba(0, 0, 0, 0.25);
}

.p-company__visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-company__visual-sub {
  position: absolute;
  left: calc(70% - 180px);
  bottom: -24px;
  width: 494px;
  aspect-ratio: 494 / 260;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 7px 21px rgba(0, 0, 0, 0.35);
}

.p-company__visual-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-company__content {
  max-width: 846px;
  margin-left: 14%;
}

.p-company__lead {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.5;
}

.p-company__lead--line::after {
  content: "";
  display: block;
  width: var(--title-line-width);
  height: var(--title-line-height);
  margin-top: 16px;
  background: var(--color-accent);
}

.p-company__text {
  margin: 49px 0 0;
  font-size: 23px;
  letter-spacing: 0.07em;
  line-height: 1.75;
}

.p-company .c-button-wrap--left {
  margin-top: 52px;
}

.p-products {
  background: var(--color-white);
  padding-top: 80px;
}

.p-products .l-container {
  max-width: none;
  padding-right: 0;
}

.p-products__layout {
  max-width: none;
  margin: 0;
}

.p-products__visual {
  position: relative;
  width: 100%;
  min-height: 460px;
  margin-bottom: 80px;
}

.p-products__visual-main {
  position: absolute;
  right: 0;
  top: 0;
  left: auto;
  transform: none;
  width: 70%;
  max-width: 1240px;
  aspect-ratio: 1240 / 482;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.p-products__visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-products__visual-sub {
  position: absolute;
  left: calc(40% - 398px);
  bottom: -24px;
  width: 494px;
  aspect-ratio: 494 / 260;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.p-products__visual-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-products__body {
  margin-top: 36px;
  margin-left: 25%;
  width: 725px;
}

.p-products__body .c-section-title {
  margin-bottom: 20px;
}

.p-products__text {
  margin: 0;
  font-size: 23px;
  letter-spacing: 0.02em;
  line-height: 1.75;
}

.p-products__body .c-button-wrap--left {
  margin-top: 30px;
}


.p-flow {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.p-flow::before,
.p-flow::after {
  display: none;
}

.p-flow .c-section-title {
  position: relative;
  z-index: 2;
}

.p-flow .c-section-title__jp::after {
  margin-left: auto;
  margin-right: auto;
}

.p-flow__board {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  background: #e8edf3;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  padding: 34px 40px 28px;
}

.p-flow__board::before {
  content: "";
  position: absolute;
  left: 204px;
  top: 382px;
  width: 870px;
  height: 18px;
  background: #004ca0;
  border-radius: 20px;
  transform: rotate(-11deg);
  z-index: 0;
}

.p-flow__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 120px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-flow__grid::before,
.p-flow__grid::after {
  content: "";
  position: absolute;
  left: 16%;
  width: 68%;
  height: 18px;
  background: #004ca0;
  border-radius: 20px;
  z-index: 0;
}

.p-flow__grid::before {
  top: 126px;
}

.p-flow__grid::after {
  top: 496px;
}

.p-flow__item {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  background: #f8f8f8;
  box-shadow: 0 7px 21px rgba(0, 0, 0, 0.15);
  padding: 18px 20px 24px;
  min-height: 250px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
}

.p-flow__step {
  display: block;
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 700;
  color: #0b4d88;
  line-height: 1;
}

.p-flow__step em {
  font-style: normal;
  font-size: 44px;
  margin-left: 3px;
}

.p-flow__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #c2d6f2;
  color: #0b4d88;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 34px;
  line-height: 1;
}

.p-flow__icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.p-flow__icon img {
  max-width: 65%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.p-flow__item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 34px;
  font-weight: 500;
}

.p-flow__item p {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.p-cta {
  background-image: url("./images/contact-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.p-cta .c-section-title {
  margin-bottom: 34px;
}

.p-cta .c-section-title__en::after {
  margin-left: auto;
  margin-right: auto;
}

.p-cta__panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 52px 32px;
  border: 1px solid #e5e5e5;
  background: var(--color-white);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.p-cta__lead {
  margin: 0 0 28px;
  color: var(--color-text);
  font-size: 22px;
  line-height: 1.6;
  text-align: center;
}

.p-cta__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.p-cta__col {
  text-align: center;
}

.p-cta__col--tel {
  width: 100%;
  max-width: 460px;
}

.p-cta__col--mail {
  width: 100%;
  max-width: 430px;
}

.p-cta__tel-title {
  margin: 0 0 6px;
  color: var(--color-text);
  font-size: 24px;
}

.p-cta__tel {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.p-cta__tel:hover {
  opacity: 0.7;
}

.p-cta__time,
.p-cta__sub {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.5;
}

.p-cta__mail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 10px;
  padding: 12px 24px;
  border-radius: 37px;
  background: #0452ad;
  color: var(--color-white);
  font-size: 24px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-cta__mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(4, 82, 173, 0.28);
}

.l-footer {
  background: #00307f;
  color: var(--color-white);
  padding: 72px 24px 66px;
}

.l-footer__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.l-footer__logo {
  display: inline-block;
  width: 420px;
  margin-bottom: 36px;
}

.l-footer__logo img {
  width: 100%;
}

.l-footer__address p {
  margin: 0 0 8px;
  color: var(--color-white);
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
}

.p-single {
  max-width: 900px;
  margin: 0 auto;
}

.p-single__header {
  margin-bottom: 28px;
}

.p-single__meta {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 16px;
}

.p-single__title {
  margin: 0;
  font-size: 44px;
  line-height: 1.4;
}

.p-single__thumbnail {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
}

.p-single__content {
  font-size: 18px;
}

.p-single__content > *:first-child {
  margin-top: 0;
}

.p-single__content a {
  color: var(--color-text);
  text-decoration: underline;
}

.p-single__nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #d8e2f2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.p-single__nav-prev {
  text-align: left;
}

.p-single__nav-back {
  text-align: center;
}

.p-single__nav-back a {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.p-single__nav-back a:hover,
.p-single__nav-back a:focus-visible {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.p-single__nav-next {
  text-align: right;
}

.p-single__nav a {
  color: var(--color-text);
}

.p-products-page__kv,
.p-company-page__kv {
  position: relative;
  margin-top: 100px;
}

body.blog .l-main,
body.single-post .l-main {
  padding-top: 100px;
}

.p-products-page__kv img,
.p-company-page__kv img {
  width: 100%;
  height: var(--lower-mv-height);
  object-fit: cover;
}

.p-products-page__kv-title,
.p-company-page__kv-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.p-products-page__kv-title h1,
.p-company-page__kv-title h1 {
  margin: 0;
  color: var(--color-white);
  font-size: var(--lower-mv-title-size);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(128, 128, 128, 0.55);
  padding: 12px 24px;
}

.p-products-page__breadcrumb {
  padding: 20px 0 0;
}

.p-products-page__breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--color-text);
}

.p-products-page__breadcrumb-list li + li::before {
  content: ">";
  margin-right: 16px;
}

.p-products-page__intro {
  padding-bottom: 70px;
}

.c-lower-intro-text {
  margin: 0 auto;
  max-width: 1110px;
  color: var(--color-text);
  font-size: 23px;
  line-height: 1.8;
  text-align: center;
}

.p-products-page__intro .c-section-title__jp::after {
  margin-left: auto;
  margin-right: auto;
}

.p-company-page__intro .c-section-title__jp::after {
  margin-left: auto;
  margin-right: auto;
}

.p-parts {
  padding-top: 24px;
  padding-bottom: 70px;
}

.p-parts__name {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
  line-clamp: 2;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-parts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 28px;
}

.p-parts__card {
  margin: 0;
}

.p-parts__trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.p-parts__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.p-parts__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.p-parts__trigger:hover .p-parts__image img {
  transform: scale(1.05);
}

.p-parts__empty {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.p-products-page .page-numbers {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
}

.p-products-page .page-numbers li {
  margin: 0;
}

.p-products-page .page-numbers a,
.p-products-page .page-numbers span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0 12px;
}

.p-products-page .page-numbers .current {
  background: var(--color-accent);
  color: var(--color-white);
}

.p-parts-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
}

.p-parts-popup.is-open {
  display: flex;
}

.p-parts-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.p-parts-popup__dialog {
  position: relative;
  width: 92vw;
  max-width: 640px;
  max-height: 90vh;
  margin: 0;
  background: var(--color-white);
  padding: 36px 24px 24px;
  overflow: hidden !important;
}

.p-parts-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.p-parts-popup__figure {
  margin: 0;
  max-height: calc(90vh - 92px);
  overflow: hidden;
}

.p-parts-popup__image {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.p-parts-popup__title {
  margin-top: 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.p-company-page__breadcrumb {
  padding: 20px 0 0;
}

.p-company-page__breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--color-text);
}

.p-company-page__breadcrumb-list li + li::before {
  content: ">";
  margin-right: 16px;
}

.p-company-page__content-bg {
  position: relative;
  background-image: none;
}

.p-company-page__content-bg::before {
  content: "";
  position: absolute;
  width: 2247.3186283310315px;
  height: 884.1322119112276px;
  top: 405px;
  left: -214px;
  background-image: url("./images/bg-diagonal.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
  transform: rotate(-7.92deg);
  transform-origin: top left;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.p-company-page__content-bg > section {
  position: relative;
  z-index: 1;
}

.p-company-page__intro {
  padding-bottom: 70px;
}

.p-company-page__profile {
  padding-bottom: 70px;
}

.p-company-page__table {
  margin: 0;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #eee;
}

.p-company-page__row {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: 1px solid var(--color-navy);
}

.p-company-page__row:first-child {
  border-top: 1px solid var(--color-navy);
}

.p-company-page__row dt,
.p-company-page__row dd {
  margin: 0;
  padding: 24px;
  font-size: 22px;
  color: var(--color-text);
}

.p-company-page__row dt {
  font-weight: 500;
  text-align: center;
  color: var(--color-navy);
}

.u-sp-break {
  display: none;
}

.p-company-page__factory {
  padding-top: 0;
}

.p-company-page__factory-heading {
  margin: 0 0 40px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.p-company-page__factory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.p-company-page__factory-item {
  margin: 0;
  overflow: hidden;
}

.p-company-page__factory-item img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.p-contact-page__form-section {
  background-image: url("./images/bg-diagonal.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin-top: 50px;
}

.p-contact-page__heading {
  margin-bottom: 60px;
  text-align: center;
}

.p-contact-page__heading h2 {
  margin: 0;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 4px solid #002870;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.p-contact-page__form-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.p-contact-form,
.p-contact-page .wpcf7 form {
  background: transparent;
  border: 0;
}

.p-contact-form__frame,
.p-contact-page .wpcf7 .p-contact-form__frame {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-navy);
}

.p-contact-form__row,
.p-contact-page .wpcf7-form .p-contact-form__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #002870;
}

.p-contact-form__row:last-of-type,
.p-contact-page .wpcf7-form .p-contact-form__row:last-of-type {
  border-bottom: 0;
}

.p-contact-form__label {
  flex: 0 0 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 20px 16px;
  font-size: 26px;
  font-weight: 500;
  color: var(--color-navy);
  background: #e3e8ef;
  border-right: 1px solid #002870;
}

.p-contact-form__row--textarea .p-contact-form__label {
  min-height: 320px;
  align-items: flex-start;
  padding-top: 28px;
}

.p-contact-form__row > :not(.p-contact-form__label),
.p-contact-page .wpcf7-form .p-contact-form__row > :not(.p-contact-form__label) {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 22px;
}

.p-contact-page .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.p-contact-form__field {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #999;
  font-size: 32px;
  color: var(--color-text);
  outline: none;
  background: #fff;
}

.p-contact-form__field::placeholder {
  color: #ccc;
}

.p-contact-form__field--textarea {
  min-height: 260px;
  padding: 14px 16px;
  resize: vertical;
}

.p-contact-form__submit-wrap,
.p-contact-page .wpcf7-form .wpcf7-submit-wrap {
  margin-top: 24px;
  text-align: center;
}

.p-contact-form__submit,
.p-contact-page .wpcf7-submit {
  width: 170px;
  height: 64px;
  border: 0;
  border-radius: 30px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 30px;
  font-weight: 500;
  box-shadow: 0 4px 21px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.p-contact-form__submit:hover,
.p-contact-page .wpcf7-submit:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.p-contact-page .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.p-contact-page .wpcf7 input[type="text"],
.p-contact-page .wpcf7 input[type="email"],
.p-contact-page .wpcf7 input[type="tel"],
.p-contact-page .wpcf7 textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #999;
  font-size: 22px;
  color: var(--color-text);
  background: #fff;
}

.p-contact-page .wpcf7 textarea {
  min-height: 260px;
  padding: 14px 16px;
}

.p-contact-page .wpcf7-spinner {
  display: none !important;
}

@media (max-width: 1024px) {
  .p-company .l-container,
  .p-products .l-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .u-section-space {
    padding: var(--section-space-sp) 0;
  }

  .u-bg-diagonal {
    background-size: auto 100%;
    background-position: center top;
  }

  .c-section-title {
    margin-bottom: 34px;
  }

  .c-section-title__jp,
  .c-section-title__en {
    font-size: var(--title-size-sp);
  }

  .c-section-title__jp::after,
  .c-section-title__en::after {
    width: 170px;
    margin-top: 10px;
  }

  .c-button {
    min-width: 280px;
    height: 52px;
    font-size: 18px;
    box-shadow: 8px 6px 0 var(--btn-shadow-color);
  }

  .l-header__inner {
    height: 78px;
    padding: 0 20px;
  }

  .l-header__logo {
    width: 200px;
  }

  .l-header__hamburger {
    display: block;
  }

  .l-header__hamburger.is-open .l-header__hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .l-header__hamburger.is-open .l-header__hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .l-header__hamburger.is-open .l-header__hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .l-header__nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #dde5f3;
    box-shadow: 0 8px 20px rgba(0, 40, 112, 0.12);
  }

  .l-header__nav-list {
    gap: 0;
    flex-direction: column;
    padding: 20px 0;
  }

  .l-header__nav-list a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 18px;
  }

  .l-header__nav-list-item--contact a {
    display: inline-flex;
    width: 290px;
    height: 67px;
    border-radius: 100px;
    background: linear-gradient(135deg, #d8b24a 0%, #c9a333 48%, #b48d25 100%);
    color: var(--color-white);
    padding: 0;
    margin-top: 8px;
  }

  .p-mv {
    margin-top: 78px;
  }

  .p-mv-message {
    margin-top: 60px;
    min-height: auto;
    display: block;
  }

  .p-mv-message__text {
    font-size: 28px;
    text-align: center;
  }

  .p-mv__main img {
    height: auto;
  }

  .p-news__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .p-news .p-news__title {
    margin-left: 0;
  }

  .p-news__date {
    font-size: 18px;
  }

  .p-news__link {
    font-size: 16px;
  }

  .p-company__inner {
    min-height: auto;
  }

  .p-company__visual {
    min-height: 170px;
    max-height: 280px;
    margin-bottom: 8px;
  }

  .p-company__visual-main {
    position: static;
    width: 70%;
    max-width: none;
  }

  .p-company__visual-main img {
    height: 100%;
    min-height: 0;
  }

  .p-company__visual-sub {
    right: 0;
    left: auto;
    top: 26%;
    bottom: auto;
    width: 46%;
    margin-top: 0;
  }

  .p-company__visual-sub img {
    height: 100%;
    min-height: 0;
  }

  .p-company__content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    margin-left: 0;
  }

  .p-company__lead {
    font-size: 24px;
  }

  .p-company__text {
    margin-top: 24px;
    font-size: 16px;
    letter-spacing: 0.02em;
  }

  .p-company .c-button-wrap--left {
    margin-top: 28px;
  }

  .p-products__text {
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.75;
  }

  .p-products__layout {
    min-height: auto;
  }

  .p-products__visual {
    min-height: 170px;
    max-height: 280px;
    margin-bottom: 8px;
  }

  .p-products__visual-main {
    position: static;
    width: 70%;
    max-width: none;
  }

  .p-products__visual-main img {
    height: 100%;
    min-height: 0;
  }

  .p-products__visual-sub {
    position: absolute;
    right: 0;
    left: auto;
    top: 26%;
    bottom: auto;
    width: 46%;
    margin-top: 0;
  }

  .p-products__visual-sub img {
    height: 100%;
    min-height: 0;
  }

  .p-products__body {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 0;
  }

  .p-products__body .c-section-title {
    margin-bottom: 20px;
  }

  .p-products__body .c-button-wrap--left {
    margin-top: 24px;
  }

  .p-products .c-button-wrap--left {
    justify-content: flex-start;
  }

  .p-products__text br {
    display: none;
  }

  .p-flow__item p {
    font-size: 16px;
  }

  .p-flow__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .p-flow::before,
  .p-flow::after,
  .p-flow__board::before,
  .p-flow__grid::before,
  .p-flow__grid::after {
    display: none;
  }

  .p-flow__board {
    padding: 18px 14px;
  }

  .p-flow__item {
    min-height: auto;
  }

  .p-flow__step {
    font-size: 20px;
  }

  .p-flow__step em {
    font-size: 30px;
  }

  .p-flow__icon {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .p-flow__item strong {
    font-size: 22px;
  }

  .p-flow__item p {
    font-size: 16px;
  }

  .p-cta__inner {
    padding: 16px;
  }

  .p-cta .c-section-title {
    margin-bottom: 20px;
  }

  .p-cta__panel {
    padding: 20px 16px;
  }

  .p-cta__lead {
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
  }

  .p-cta__row {
    flex-direction: column;
    gap: 28px;
  }

  .p-cta__tel-title {
    font-size: 20px;
  }

  .p-cta__tel {
    font-size: 42px;
  }

  .p-cta__time,
  .p-cta__sub {
    font-size: 16px;
  }

  .p-cta__mail {
    max-width: 320px;
    height: 52px;
    font-size: 22px;
  }

  .l-footer {
    padding: 44px 16px 36px;
  }

  .l-footer__logo {
    width: 220px;
    margin-bottom: 20px;
  }

  .l-footer__address p {
    font-size: 14px;
    line-height: 1.6;
  }

  .p-single__title {
    font-size: 30px;
  }

  .p-single__content {
    font-size: 16px;
  }

  .p-single__nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .p-single__nav-prev,
  .p-single__nav-back,
  .p-single__nav-next {
    text-align: left;
  }

  .p-products-page__kv,
  .p-company-page__kv,
  .p-contact-page__hero {
    margin-top: 78px;
  }

  body.blog .l-main,
  body.single-post .l-main {
    padding-top: 78px;
  }

  .p-products-page__kv img,
  .p-company-page__kv img,
  .p-contact-page__hero img {
    height: var(--lower-mv-height);
  }

  .p-products-page__kv-title h1,
  .p-company-page__kv-title h1,
  .p-contact-page__kv-title h1 {
    font-size: 34px;
  }

  .p-products-page__breadcrumb {
    padding-top: 14px;
  }

  .p-products-page__breadcrumb-list {
    gap: 10px;
    font-size: 13px;
  }

  .p-products-page__breadcrumb-list li + li::before {
    margin-right: 10px;
  }

  .p-products-page__intro {
    padding-bottom: 0;
  }

  .c-lower-intro-text {
    font-size: 16px;
    line-height: 1.75;
  }

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

  .p-parts__name {
    margin-top: 8px;
    font-size: 16px;
  }

  .p-products-page .page-numbers a,
  .p-products-page .page-numbers span {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    padding: 0 10px;
  }

  .p-parts-popup__dialog {
    width: calc(100vw - 28px);
    padding: 30px 14px 16px;
    overflow: hidden !important;
  }

  .p-parts-popup__figure {
    max-height: calc(90vh - 80px);
    overflow: hidden;
  }

  .p-parts-popup__title {
    font-size: 16px;
  }

  .p-company-page__breadcrumb {
    padding-top: 14px;
  }

  .p-company-page__breadcrumb-list {
    gap: 10px;
    font-size: 13px;
  }

  .p-company-page__breadcrumb-list li + li::before {
    margin-right: 10px;
  }

  .p-company-page__intro,
  .p-company-page__profile {
    padding-bottom: 48px;
  }

  .p-company-page__row {
    grid-template-columns: 1fr;
  }

  .p-company-page__row dt,
  .p-company-page__row dd {
    padding: 14px 12px;
    font-size: 16px;
  }

  .p-company-page__row dd {
    text-align: center;
  }

  .u-sp-break {
    display: block;
  }

  .p-company-page__row dt {
    border-right: 0;
    border-bottom: 1px dashed #aac1e8;
  }

  .p-company-page__factory-heading {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .p-company-page__factory-grid {
    gap: 12px;
  }

  .p-contact-page__form-section {
    padding-top: 28px;
  }

  .p-contact-page__heading {
    margin-bottom: 20px;
  }

  .p-contact-page__heading h2 {
    padding-bottom: 8px;
    border-bottom-width: 3px;
    font-size: 36px;
  }

  .p-contact-form,
  .p-contact-page .wpcf7 form {
    border-width: 0;
  }

  .p-contact-form__row,
  .p-contact-page .wpcf7-form .p-contact-form__row {
    display: block;
  }

  .p-contact-form__label {
    width: 100%;
    justify-content: flex-start;
    min-height: auto;
    padding: 16px 12px;
    font-size: 18px;
    border-right: 0;
    border-bottom: 1px solid #002870;
  }

  .p-contact-form__row--textarea .p-contact-form__label {
    min-height: auto;
    align-items: center;
    padding-top: 12px;
  }

  .p-contact-form__field,
  .p-contact-page .wpcf7 input[type="text"],
  .p-contact-page .wpcf7 input[type="email"],
  .p-contact-page .wpcf7 input[type="tel"],
  .p-contact-page .wpcf7 textarea {
    min-height: 52px;
    padding: 0 14px;
    font-size: 16px;
    margin: 0;
  }

  .p-contact-form__row > :not(.p-contact-form__label),
  .p-contact-page .wpcf7-form .p-contact-form__row > :not(.p-contact-form__label) {
    display: block;
    padding: 12px 14px;
  }

  .p-contact-form__field--textarea,
  .p-contact-page .wpcf7 textarea {
    min-height: 180px;
    padding: 12px 14px;
  }

  .p-contact-form__submit-wrap,
  .p-contact-page .wpcf7-form .wpcf7-submit-wrap {
    margin-top: 20px;
  }

  .p-contact-form__submit,
  .p-contact-page .wpcf7-submit {
    width: 140px;
    height: 52px;
    font-size: 20px;
  }
}
