/* ==========================================================
   LUBETEC - style.css
   モバイルファースト設計
   ブレークポイント: 〜599px(SP) / 600〜1024px(タブレット) / 1025px〜(PC)
   ========================================================== */

:root {
  --color-black: #0C121A;
  --color-dark: #343B45;
  --color-text: #1F2227;
  --color-text-sub: #5b6169;
  --color-white: #FEFEFE;
  --color-gray-bg: #F1F4F7;
  --color-blue: #0C4E8F;
  --color-navy: #132E50;
  --color-blue-bright: #5095EA;
  --color-footer-blue: #0064C8;
  --color-hero-en: #A0B0C1;
  --color-accent: var(--color-blue-bright);
  --font-jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-en: "Inter", var(--font-jp), sans-serif;
  --header-height: 64px;
  --container-width: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 40px;
}

.only-sp { display: inline; }
@media (min-width: 600px) {
  .only-sp { display: none; }
}

/* ---------- Common parts ---------- */
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-navy);
  margin-bottom: 0;
}
.eyebrow--light { color: var(--color-hero-en); }
.eyebrow--accent { color: var(--color-blue-bright); }

.section-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.section-title--light { color: var(--color-white); }
.section-title--sm { font-size: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn--dark:hover { opacity: 0.8; }
.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
}
.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: 14px;
  flex-shrink: 0;
}
.arrow-circle--sm { width: 30px; height: 30px; }
.arrow-circle--lg { width: 40px; height: 40px; }

/* 再利用可能な「矢印付きテキストリンク」バリエーション（青色・16px） */
.text-link--accent { font-size: 16px; color: var(--color-blue); }

.text-link .arrow-circle { overflow: hidden; }
.text-link:hover .arrow-circle svg {
  animation: coating-arrow-move 0.3s ease forwards;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header__inner {
  height: 100%;
  margin-inline: auto;
  padding-left: 20px;
  padding-right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.header__logo-en {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-black);
}
.header__logo-accent { color: var(--color-footer-blue); }
.header__logo-ja {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

/* --- nav: mobile (drawer) --- */
.header__nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.header__nav.is-open { transform: translateX(0); }
.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}
.header__nav-list a { transition: opacity 0.2s ease; }
.header__nav-list a:hover { opacity: 0.6; }
.header__cta { align-self: center; background: #132E50; }

.header__toggle {
  width: 32px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.header__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__toggle span:nth-child(1) { top: 3px; }
.header__toggle span:nth-child(2) { top: 15px; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

/* --- ヘッダー左余白：タブレット・PCは40px --- */
@media (min-width: 600px) {
  .header__inner { padding-left: 40px; }
}

/* --- nav: tablet / PC --- */
@media (min-width: 1025px) {
  .header__nav {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    padding: 0;
    background: transparent;
  }
  .header__nav-list {
    flex-direction: row;
    gap: 32px;
    font-size: 14px;
  }
  .header__toggle { display: none; }
  .header__cta { background: #132E50; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  z-index: -1;
}
/* heroをfixedで画面に固定する分、後続コンテンツが正しい位置から始まるようにする余白 */
.hero-spacer {
  height: calc(100vh - var(--header-height));
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px 32px;
  color: var(--color-white);
}
.hero__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
}
.hero__lead {
  font-size: 13px;
  line-height: 1.8;
  max-width: 32em;
  color: rgba(255,255,255,0.9);
}

@media (min-width: 600px) {
  .hero__content { padding: 0 40px 48px; }
  .hero__title { font-size: 38px; }
}
@media (min-width: 1025px) {
  .hero__content { max-width: var(--container-width); margin-inline: auto; right: 0; padding: 0 20px 64px 40px; }
  .hero__title { font-size: 48px; }
  .hero__lead { font-size: 14px; }
  .hero__img--sp { display: none; }
  .hero__video { display: block; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  padding: 56px 0;
}

/* --- 共通：グリッド本体・写真の見た目 --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.about__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__heading { margin-bottom: 24px; }
.about__text p { font-size: 16px; color: var(--color-text); margin-bottom: 1.2em; }
.about__text p:last-child { margin-bottom: 0; }

/* --- モバイル（〜599px）：写真1枚→テキスト→写真1枚 --- */
.about__photo--1 { order: 1; }
.about__text-block { order: 2; margin: 32px 0; }
.about__photo--3 { order: 3; }
.about__photo--2,
.about__photo--4,
.about__photo--5,
.about__photo--6 { display: none; }

/* --- タブレット（600〜1024px）：写真2枚組×2 --- */
@media (min-width: 600px) and (max-width: 1024px) {
  .about__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about__photo--1 { order: 1; }
  .about__photo--2 { order: 2; display: block; }
  .about__text-block { order: 3; grid-column: 1 / -1; margin: 32px 0; }
  .about__photo--3 { order: 4; }
  .about__photo--4 { order: 5; display: block; }
  .about__photo--5,
  .about__photo--6 { display: none; }
}

/* --- PC（1025px〜）：写真3枚組×2（従来通り） --- */
@media (min-width: 1025px) {
  .about { padding: 96px 0; }
  .about__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; }

  .about__photo--1 { order: 1; }
  .about__photo--2 { order: 2; display: block; }
  .about__photo--3 { order: 3; display: block; }

  .about__text-block {
    order: 4;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    margin: 64px 0;
  }

  .about__photo--4 { order: 5; display: block; }
  .about__photo--5 { order: 6; display: block; }
  .about__photo--6 { order: 7; display: block; }

  .section-title { font-size: 30px; }
}

/* ============================================================
   COATING
   ============================================================ */
.coating {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
  color: var(--color-white);
}
.coating__bg { position: absolute; inset: 0; z-index: 0; }
.coating__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(0.4); }
.coating__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
}
.coating .container { position: relative; z-index: 1; }

.coating__list { margin-top: 32px; display: flex; flex-direction: column; gap: 56px; }
.coating__item {
  background: transparent;
  border: none;
}
.coating__thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.coating__thumb img { width: 100%; height: 100%; object-fit: cover; }
.coating__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 0;
  font-size: 20px;
  font-weight: 700;
}
.coating__label .arrow-circle {
  width: 60px;
  height: 60px;
  color: var(--color-white);
  border-color: var(--color-white);
  flex-shrink: 0;
  overflow: hidden;
}
.coating__label .arrow-circle svg {
  will-change: transform, opacity;
}
.coating__label:hover .arrow-circle svg {
  animation: coating-arrow-move 0.3s ease forwards;
}
@keyframes coating-arrow-move {
  0% { transform: translateX(0); opacity: 1; }
  35% { transform: translateX(120%); opacity: 1; }
  40% { transform: translateX(120%); opacity: 0; }
  41% { transform: translateX(-120%); opacity: 0; }
  46% { transform: translateX(-120%); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

@media (min-width: 1025px) {
  .coating { padding: 120px 0; }
  .coating .container { max-width: 1200px; }
  .coating__list { margin-top: 48px; gap: 40px; }
  .coating__item {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1050px;
  }
  .coating__item--reverse { flex-direction: row-reverse; margin-left: auto; }
  .coating__thumb { flex: 0 0 580px; aspect-ratio: 4 / 3; }
  .coating__label { flex: 1; padding: 0; }
}

/* ============================================================
   ISO9001
   ============================================================ */
.iso { background: var(--color-white); padding: 56px 0; }

/* --- モバイル（〜599px）：中央揃えの縦積みデザイン --- */
.iso__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4vw;
  max-width: 800px;
  margin-inline: auto;
}
.iso__badge {
  width: 140px;
  margin-bottom: 24px;
}
.iso__badge img { width: 100%; height: auto; display: block; }
.iso__badge-caption {
  font-size: 16px;
  color: var(--color-text);
  margin-top: 0;
}
.iso__body { width: 100%; }
.iso__body .section-title { font-size: 28px; }
.iso__text {
  font-size: 16px;
  color: var(--color-text);
  margin: 10px 0 20px;
  text-align: left;
}
.iso .text-link {
  justify-content: center;
}

/* --- タブレット（600〜1024px）：従来の左右並びレイアウト --- */
@media (min-width: 600px) and (max-width: 1024px) {
  .iso__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
    gap: 4vw;
    max-width: 800px;
    margin-inline: auto;
  }
  .iso__badge {
    width: 120px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .iso__badge-caption { text-align: center; white-space: nowrap; }
  .iso__text { text-align: left; }
  .iso .text-link { justify-content: flex-start; }
}

@media (min-width: 1025px) {
  .iso { padding: 96px 0; }
  .iso__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
    gap: 4vw;
    max-width: 800px;
    margin-inline: auto;
  }
  .iso__badge {
    width: 130px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .iso__badge-caption { text-align: center; }
  .iso__text { text-align: left; }
  .iso .text-link { justify-content: flex-start; }
}

/* ============================================================
   FLOW
   ============================================================ */
.flow__card { background: transparent; }
.flow__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.flow__media img,
.flow__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow__body { background: var(--color-white); padding: 28px 24px; }
.flow__body .section-title { font-size: 28px; }
.flow__text { font-size: 16px; color: var(--color-text); margin: 8px 0 16px; }

@media (min-width: 1025px) {
  .flow .container { max-width: 1200px; }
  .flow__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
  }
  .flow__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--color-black); padding: 32px 20px; }
.gallery__grid {
  max-width: var(--container-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.gallery__grid li { aspect-ratio: 1 / 1; overflow: hidden; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; }

/* --- モバイル（〜599px）：5枚のみ表示・指定の配置 --- */
.gallery__item--1  { order: 1; }
.gallery__item--2  { order: 2; }
.gallery__item--3  { order: 3; grid-column: 1 / -1; aspect-ratio: 2 / 1.3; }
.gallery__item--8  { order: 4; }
.gallery__item--9  { order: 5; }
.gallery__item--4,
.gallery__item--5,
.gallery__item--6,
.gallery__item--7,
.gallery__item--10,
.gallery__item--11,
.gallery__item--12 { display: none; }

@media (min-width: 600px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__item--1,
  .gallery__item--2,
  .gallery__item--3,
  .gallery__item--4,
  .gallery__item--5,
  .gallery__item--6,
  .gallery__item--7,
  .gallery__item--8,
  .gallery__item--9,
  .gallery__item--10,
  .gallery__item--11,
  .gallery__item--12 {
    display: block;
    order: initial;
    grid-column: auto;
    aspect-ratio: 1 / 1;
  }
}
@media (min-width: 1025px) {
  .gallery { padding: 64px 20px; }
  .gallery__grid { gap: 20px; max-width: 1500px; }
}

/* ============================================================
   SCENE GALLERY (page-flow.html)
   ============================================================ */
.scene { background: var(--color-black); padding: 32px 0; }
.scene__eyebrow { text-align: center; }
.scene__title { text-align: center; margin-bottom: 32px; }
.scene__grid {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.scene__item { aspect-ratio: 1 / 1; overflow: hidden; }
.scene__item img,
.scene__item video { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 600px) {
  .scene__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .scene__title { margin-bottom: 40px; }
}
@media (min-width: 1025px) {
  .scene { padding: 64px 0; }
  .scene__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1500px; }
  .scene__title { margin-bottom: 48px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer__contact {
  display: block;
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 80px 20px;
  transition: filter 0.2s ease;
}
.footer__contact:hover { filter: brightness(1.15); }
.footer__contact-lead { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.footer__contact-title {
  font-family: var(--font-en);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.footer__contact .btn { font-size: 20px; }

.footer__wordmark {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 0px 0;
  color: var(--color-white);
}
.footer__wordmark span {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(64px, 19.6cqw, 260px);
  line-height: 1;
  letter-spacing: 6px;
}
.footer__wordmark-accent { color: var(--color-footer-blue); }

.footer__company { position: relative; color: var(--color-white); overflow: hidden; container-type: inline-size; }
.footer__company-bg { position: absolute; inset: 0; z-index: 0; }
.footer__company-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.footer__company-inner {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer__company-name { font-size: 32px; font-weight: 700; margin-bottom: 32px; }
.footer__links { display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.footer__links a { transition: opacity 0.2s ease; }
.footer__links a:hover { opacity: 0.6; }
.footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #bbbbbb;
}
.footer__privacy { color: #bbbbbb; }
.footer__copyright { margin: 0; }
.footer__iso { text-align: center; flex-shrink: 0; }
.footer__iso img { width: 56px; height: auto; display: block; margin: 0 auto 8px; }
.footer__iso-caption { font-size: 12px; margin: 0; color: rgba(255, 255, 255, 0.9); }

@media (min-width: 1025px) {
  .footer { display: flex; }
  .footer__contact {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px;
    max-width: 600px;
  }
  .footer__company { flex: 1 1 auto; min-width: 0; }
  .footer__company-inner { padding: 64px 32px 64px 64px; }
  .footer__links { flex-direction: column; gap: 16px; }
}

/* ============================================================
   PAGE HERO（下層ページ共通の見出しセクション）
   デフォルト：白背景・日本語#121212・英語(eyebrow)はvar(--color-navy)
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--color-gray-bg);
  padding: 48px 0;
  overflow: hidden;
}
.page-hero__bg { display: none; }
.page-hero__content { position: relative; z-index: 1; }
.page-hero__eyebrow { margin-bottom: 8px; }
.page-hero__title {
  font-size: clamp(24px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.4;
  color: #121212;
}

@media (min-width: 600px) {
  .page-hero { padding: 64px 0; }
  .page-hero__content { padding-left: 40px; }
}
@media (min-width: 1025px) {
  .page-hero { padding: 96px 0; }
  .page-hero__content { max-width: var(--container-width); margin-inline: auto; padding-inline: 20px; padding-left: 40px; }
}

/* ============================================================
   PAGE CONTENT（page.php：お問い合わせ・プライバシーポリシーなど）
   ============================================================ */
.page-content {
    padding-bottom: 56px;
    background: var(--color-white);
}

@media (min-width: 1025px) {
    .page-content {
        padding-bottom: 96px;
    }
}

/* プライバシーポリシーページ本文内のリンク */
.privacy-policy .page-content a {
  margin: 0;
  padding: 0;
  text-decoration: underline;
  color: inherit;
  transition: opacity .25s;
}
.privacy-policy .page-content a:hover {
  opacity: .5;
  transition: opacity .25s;
}

/* --- WORKSページ：coatingセクションと同じ背景演出＋ヒーロー見出しと同じフォント --- */
.page-hero--works {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 85vw);
  padding: 56px 0;
  color: var(--color-white);
}
.page-hero--works .page-hero__content { width: 100%; }
.page-hero--works .page-hero__bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero--works .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.4);
}
.page-hero--works .page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
}
.page-hero--works .page-hero__eyebrow { color: var(--color-blue-bright); }
.page-hero--works .page-hero__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-white);
}

@media (min-width: 600px) {
  .page-hero--works .page-hero__title { font-size: 38px; }
  .page-hero--works { min-height: calc(100vh - var(--header-height) - 52vw); }
}
@media (min-width: 1025px) {
  .page-hero--works { padding: 96px 0; min-height: calc(100vh - var(--header-height) - 25vw); }
  .page-hero--works .page-hero__title { font-size: 48px; }
}

/* ============================================================
   WORKS SLIDER（無限横スクロールギャラリー）
   画像サイズ：縦長 3:4 / works_slider_01.webp〜07.webp
   ============================================================ */
.works-slider {
  overflow: hidden;
  width: 100%;
  background: var(--color-gray-bg);
}
.works-slider__track {
  display: flex;
  width: max-content;
  animation: works-slider-scroll 32s linear infinite;
}
.works-slider__track.is-paused { animation-play-state: paused; }

.works-slider__item {
  flex: 0 0 auto;
  width: 70vw;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.works-slider__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes works-slider-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 600px) {
  .works-slider__item { width: 34vw; }
}
@media (min-width: 1025px) {
  .works-slider__item { width: 22vw; }
  .works-slider__track { animation-duration: 45s; }
}

@media (prefers-reduced-motion: reduce) {
  .works-slider__track { animation: none; }
}

/* ============================================================
   共通コンポーネント：spec-list（dlの上下罫線デザイン）
   今後も他ページ・他セクションで使い回す想定
   ============================================================ */
.spec-list {
  margin: 12px 0 0;
  border-top: 1px solid #e3e3e3;
}
.spec-list__row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e3e3e3;
}
.spec-list__row dt {
  flex: 0 0 56px;
  font-size: 16px;
  font-weight: 700;
  color: #121212;
}
.spec-list__row dd {
  flex: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

/* ============================================================
   PROCESSING（製品加工）
   モバイル：上から順に自然な並び順（HTMLの記述順そのまま）
   PC：画像とテキストが左右に入れ替わる2カラム構成
   ============================================================ */
.processing { padding: 56px 0; background: var(--color-white); }
.processing__grid { display: flex; flex-direction: column; gap: 40px; }

.processing__heading { }
.processing__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.processing__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.processing__block-title {
  font-size: 18px;
  font-weight: 700;
  color: #121212;
  margin-bottom: 4px;
}
.processing__item { margin-top: 24px; }
.processing__item:first-of-type { margin-top: 20px; }
.processing__item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
}

.processing__moly-heading { margin-top: 4px; }

@media (min-width: 1025px) {
  .processing { padding: 96px 0; }
  .processing__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 16px;
    grid-template-areas:
      "heading    heading"
      "photo1     fluorine"
      "molyhead   photo2"
      "molycontent photo2";
    align-items: start;
  }
  .processing__heading { grid-area: heading; margin-bottom: 24px; }
  .processing__photo--1 { grid-area: photo1; }
  .processing__block { grid-area: fluorine; }
  .processing__moly-heading { grid-area: molyhead; }
  .processing__photo--2 { grid-area: photo2; height: 100%; }
  .processing__moly-content { grid-area: molycontent; }
}

/* ============================================================
   COMMITMENT（品質へのこだわり）＋ QUALITY（ISO9001）
   セクション背景：#F1F4F7 / カード背景：#FEFEFE
   ============================================================ */
.commitment { padding: 56px 0; background: var(--color-gray-bg); }
.commitment__heading { margin-bottom: 24px; }

.commitment__grid {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}
.commitment__item {
  position: relative;
  overflow: hidden;
  padding: 32px 24px;
  border-bottom: 1px solid #e3e7ea;
}
.commitment__item:last-child { border-bottom: none; }
.commitment__num {
  position: relative;
  z-index: 1;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-navy);
  margin: 0 0 8px;
}
.commitment__item-title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  color: #121212;
  margin-bottom: 12px;
}
.commitment__item-text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  max-width: 46em;
}
.commitment__watermark {
  position: absolute;
  right: 12px;
  bottom: -18px;
  z-index: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  color: #eef1f4;
  pointer-events: none;
  user-select: none;
}

/* --- QUALITYカード --- */
.quality-card {
  margin-top: 24px;
  background: var(--color-white);
  padding: 32px 24px;
}
.quality-card__top { margin: 16px 0 24px; }
.quality-card__badge { width: 120px; margin: 0 auto 16px; }
.quality-card__badge img { width: 100%; height: auto; display: block; }
.quality-card__badge-caption { font-size: 16px; color: var(--color-text); text-align: center; margin-top: 8px; }
.quality-card__text { font-size: 16px; line-height: 1.9; color: var(--color-text); }

@media (min-width: 600px) {
  .quality-card__top {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 24px 0 32px;
  }
  .quality-card__badge { width: 130px; flex-shrink: 0; margin: 0; }
}

/* --- spec-list（ラベル列が長い場合の横並びバリエーション） --- */
.spec-list--wide .spec-list__row { flex-direction: column; gap: 4px; }
.spec-list--wide dt { flex: none; font-size: 16px; }
.spec-list--wide dd { font-size: 16px; }

@media (min-width: 1025px) {
  .commitment { padding: 96px 0; }
  .commitment__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .commitment__item {
    padding: 40px;
    border-bottom: 1px solid #e3e7ea;
    border-right: 1px solid #e3e7ea;
  }
  .commitment__item:nth-child(2n) { border-right: none; }
  .commitment__item:nth-child(n+3) { border-bottom: none; }
  .commitment__watermark { font-size: 120px; right: 24px; bottom: -28px; }

  .quality-card { margin-top: 32px; padding: 56px; }
  .quality-card__top {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 24px 0 32px;
  }
  .quality-card__badge { width: 140px; flex-shrink: 0; margin-bottom: 0; }
  .quality-card__text { flex: 1; padding-top: 4px; }

  .spec-list--wide .spec-list__row { flex-direction: row; gap: 32px; }
  .spec-list--wide dt { flex: 0 0 220px; }
}

/* ============================================================
   共通レイアウト：split-section（左に見出し／右にコンテンツ）
   モバイル・タブレット：縦積み／PC：左右2カラム
   他ページ（会社案内など）でも使い回す想定
   ============================================================ */
.split-section { padding: 56px 0; background: var(--color-white); }
.split-section__aside { margin-bottom: 24px; }

@media (min-width: 1025px) {
  .split-section { padding: 96px 0; }
  .split-section__inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    column-gap: 64px;
  }
  .split-section__aside { margin-bottom: 0; }
}

/* ============================================================
   FACILITIES（設備紹介）
   ============================================================ */
.equipment-list { border-top: 1px solid #e3e7ea; }
.equipment-list__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid #e3e7ea;
}
.equipment-list__row dt {
  font-size: 16px;
  font-weight: 700;
  color: #121212;
}
.equipment-list__row dd {
  margin: 0;
  font-size: 16px;
  color: var(--color-text);
}

.facilities__gallery {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.facilities__photo { margin: 0; }
.facilities__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.facilities__photo figcaption {
  margin-top: 10px;
  font-size: 16px;
  color: var(--color-text);
  text-align: right;
}

@media (min-width: 600px) {
  /* タブレット：品名は上段、規格＋数量は同じ行に横並び */
  .equipment-list__row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
  }
  .equipment-list__row dt { flex: 0 0 100%; }
  .equipment-list__row dd { font-size: 16px; }

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

@media (min-width: 1025px) {
  .equipment-list__row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
  }
  .equipment-list__row dt { flex: 0 0 340px; }
  .equipment-list__row .equipment-list__spec { flex: 1; }
  .equipment-list__row .equipment-list__qty { flex: 0 0 80px; }

  .facilities__gallery { gap: 32px 24px; }
}

/* ============================================================
   COMPANYページ：ページ見出し（背景#FEFEFE）
   ============================================================ */
.page-hero--company { background: var(--color-white); }

/* ============================================================
   COMPANYページ：PHILOSOPHY
   ============================================================ */
.philosophy { background: var(--color-black); padding: 56px 0; }
.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "heading"
    "body"
    "video"
    "img1"
    "img2";
  gap: 24px;
}
.philosophy__heading { grid-area: heading; text-align: center; }
.philosophy__body { grid-area: body; text-align: center; }
.philosophy__subheading {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}
.philosophy__text {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}
.philosophy__media--video { grid-area: video; }
.philosophy__media--img1 { grid-area: img1; }
.philosophy__media--img2 { grid-area: img2; justify-self: center; }
.philosophy__media { overflow: hidden; max-width: 76%; }
.philosophy__media--img1 { margin-left: 68px; }
.philosophy__media video,
.philosophy__media img { width: 100%; height: 100%; object-fit: cover; }
.philosophy__media--video video { aspect-ratio: 4 / 3; }
.philosophy__media--img1 img { aspect-ratio: 3 / 2; }
.philosophy__media--img2 img { aspect-ratio: 3 / 4; }

@media (min-width: 600px) {
  .philosophy { padding: 64px 0; }
  .philosophy__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "heading heading"
      "body body"
      "video img2"
      "img1 img2";
    gap: 32px 24px;
  }
  .philosophy__media--img2 { justify-self: center; align-self: start; max-width: 80%; }
  .philosophy .container { padding-inline: 60px; }
}

@media (min-width: 1025px) {
  .philosophy { padding: 96px 0; }
  .philosophy .container { max-width: 1200px; padding-inline: 60px; }
  .philosophy__grid {
    grid-template-columns: 1fr 1.3fr 1fr;
    grid-template-areas:
      "heading heading heading"
      "video body img2"
      "img1 body img2";
    gap: 40px 56px;
  }
  .philosophy__body { align-self: auto; margin-top: 8vh; }
  .philosophy__text { font-size: 16px; }
  .philosophy__media--img2 { margin-top: 40px; }
}

/* ============================================================
   COMPANYページ：OUTLINE（会社概要）
   split-section（左に見出し／右にコンテンツ）を流用
   ============================================================ */
.outline-list { border-top: 1px solid #e3e3e3; }
.outline-list__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid #e3e3e3;
}
.outline-list__row dt {
  font-size: 16px;
  font-weight: 700;
  color: #666666;
}
.outline-list__row dd {
  flex: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

@media (min-width: 600px) {
  .outline-list__row { flex-direction: row; align-items: baseline; gap: 16px; }
  .outline-list__row dt { flex: 0 0 110px; }
}

@media (min-width: 1025px) {
  .outline-list__row { padding: 18px 0; }
  .outline-list__row dt { flex: 0 0 140px; }
}

/* ============================================================
   COMPANYページ：HISTORY（沿革）
   split-section を流用／セクション背景はグレー・カードは白
   ============================================================ */
.history { background: var(--color-gray-bg); }
.history__card { background: var(--color-white); padding: 24px 20px 36px; }

/* --- モバイル（ベース）：以前のコーディングを流用・アレンジ --- */
.history__item {
  display: flex;
  align-items: baseline;
  padding-bottom: 28px;
  position: relative;
}
.history__item:last-child { padding-bottom: 0; }
.history__item::before {
  content: "";
  width: 1px;
  height: 100%;
  background: #0C4E8F;
  position: absolute;
  top: 22px;
  left: 80px;
  display: block;
}
.history__item--end::before { height: 60%; }

.history__year {
  position: relative;
  flex: 0 0 76px;
  margin-right: 20px;
  top: 3px;
}
.history__year::before {
  content: "";
  width: 20px;
  height: 1px;
  background: #0C4E8F;
  position: absolute;
  bottom: 16px;
  left: 70px;
}
.history__year p { margin: 0; font-size: 14px; font-weight: 400; color: #121212; }
.history__year-num { font-size: 20px; font-weight: 700; padding-right: 1px; }

.history__info { flex: 1; min-width: 0; }
.history__info dl {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  flex-wrap: nowrap;
}
.history__info dl:last-child { margin-bottom: 0; }
.history__info dt {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: #121212;
  width: 40px;
}
.history__info dd {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

@media (min-width: 600px) {
  .history__card { padding: 28px 32px 52px; }
  .history__item { padding-bottom: 32px; }
  .history__item::before { left: 88px; }
  .history__year { flex-basis: 88px; }
  .history__year::before { left: 78px; }
}

@media (min-width: 1025px) {
  .history__card { padding: 32px 56px 68px; }
  .history__item { padding-bottom: 40px; }
  .history__item::before { left: 108px; top: 28px; }
  .history__year { flex-basis: 110px; margin-right: 24px; }
  .history__year::before { left: 98px; top: 24px; }
  .history__year p { font-size: 16px; }
  .history__year-num { font-size: 24px; }
  .history__info dt,
  .history__info dd { font-size: 16px; }
  .history__info dl { gap: 16px; margin-bottom: 8px; }
}

/* ============================================================
   COMPANYページ：ACCESS（アクセス）
   split-section を流用
   ============================================================ */
.access__address p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}
.access__map {
  margin: 20px 0 32px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.access__routes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.access__route-title {
  font-size: 16px;
  font-weight: 700;
  color: #121212;
  margin: 0 0 6px;
}
.access__route-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
}

@media (min-width: 1025px) {
  .access__map { aspect-ratio: 16 / 9; margin: 24px 0 40px; }
  .access__route-title { font-size: 16px; }
  .access__route-text { font-size: 16px; }
}

/* ============================================================
   FLOWページ：ページ見出し（高さの考え方はWORKSページと同じ）
   ============================================================ */
.page-hero--flow {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 85vw);
  background: var(--color-gray-bg);
}
@media (min-width: 600px) {
  .page-hero--flow { min-height: calc(100vh - var(--header-height) - 52vw); }
}
@media (min-width: 1025px) {
  .page-hero--flow { min-height: calc(100vh - var(--header-height) - 25vw); }
}

/* ============================================================
   FLOW SLIDER（無限横スクロールギャラリー）
   画像サイズ：横長 4:3 / flow_slider_01.webp〜06.webp
   ============================================================ */
.flow-slider {
  background: var(--color-gray-bg);
  overflow: hidden;
  padding: 0 0 56px;
}
.flow-slider__track {
  display: flex;
  width: max-content;
  animation: flow-slider-scroll 30s linear infinite;
}
.flow-slider__track.is-paused { animation-play-state: paused; }
.flow-slider__item {
  flex: 0 0 auto;
  height: 93.33vw;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}
.flow-slider__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes flow-slider-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 600px) {
  .flow-slider__item { height: 45.33vw; }
}
@media (min-width: 1025px) {
  .flow-slider__item { height: 29.33vw; }
  .flow-slider__track { animation-duration: 40s; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-slider__track { animation: none; }
}

/* ============================================================
   FLOW CONTENT（納品までの流れ：STEP01〜09）
   セクション背景：#F1F4F7 / カード背景：#FEFEFE
   モバイル・タブレット：縦積み・縦罫線なし
   PC：画像＋テキストの2カラム、縦罫線でステップをつなぐ
   ============================================================ */
.flow-content { padding: 56px 0; background: var(--color-gray-bg); }
.flow-content__intro {
  font-size: 16px;
  line-height: 1.9;
  color: #121212;
  margin-bottom: 32px;
}
.flow-content__card {
  background: var(--color-white);
  padding: 32px 24px;
}

.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-step { padding-bottom: 40px; }
.flow-step:last-child { padding-bottom: 0; }

.flow-step__media { margin-bottom: 20px; }
.flow-step__body + .flow-step__head { margin-top: 40px; }
.flow-step__media img,
.flow-step__media video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.flow-step__label { margin-bottom: 4px; }
.flow-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.flow-step__number {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1;
}
.flow-step__title {
  font-size: 18px;
  font-weight: 700;
  color: #121212;
  margin-top: 20px;
}
.flow-step__text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

@media (min-width: 1025px) {
  .flow-content { padding: 96px 0; }
  .flow-content__intro { font-size: 17px; }
  .flow-content__card { padding: 56px; }

  .flow-steps { position: relative; }
  /* 縦罫線：リスト全体を貫く1本の線。STEP＋数字／STEP09の白背景で上に隠れる形にする */
  .flow-steps::before {
    content: "";
    position: absolute;
    left: 592px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: #2970b4;
    z-index: 0;
  }

  /* 単独ステップ（画像/動画1つ＋見出し1つ＋本文1つ）：2列×2行 */
  .flow-step {
    display: grid;
    grid-template-columns: 500px 1fr;
    grid-template-rows: auto auto;
    column-gap: 48px;
    padding-bottom: 48px;
    position: relative;
    z-index: 1;
  }
  .flow-step__media {
    grid-column: 1;
    grid-row: 1 / -1;
    margin-bottom: 0;
    align-self: stretch;
  }
  .flow-step__media img,
  .flow-step__media video {
    height: 354px;
    aspect-ratio: auto;
  }
  .flow-step__head { grid-column: 2; }
  .flow-step__body { grid-column: 2; }

  .flow-step__number { font-size: 40px; }
  .flow-step__title { font-size: 22px; margin-top: 20px; }

  /* STEP＋数字：中央揃えでグループ化し、白背景で下の線を隠す */
  .flow-step__head { display: flex; align-items: center; gap: 16px; margin-bottom: 0; }
  .flow-step__stepnum {
    flex: 0 0 88px;
    text-align: center;
    background: var(--color-white);
    position: relative;
    z-index: 2;
    padding: 4px 0;
  }

  /* 本文：線の右にインデント。線自体はリスト共通の1本を透けて見せる */
  .flow-step__body {
    padding: 16px 0 40px 104px;
    margin-top: 4px;
  }
  .flow-step__body + .flow-step__head { margin-top: 8px; }

  /* STEP09（最後のステップ）：ここで縦罫線を終わらせるため白背景で隠す */
  .flow-step--last .flow-step__body:last-child {
    margin-top: 0;
    background: #fefefe;
  }

  /* 画像/動画をグループ化する場合：2ユニットなら4行、3ユニットなら6行に自動配置 */
  .flow-step--group {
    grid-template-columns: 500px 1fr;
    column-gap: 48px;
  }
  .flow-step--group.flow-step--group-2 { grid-template-rows: repeat(4, auto); }
  .flow-step--group.flow-step--group-3 { grid-template-rows: repeat(6, auto); }
  .flow-step--group .flow-step__media {
    grid-column: 1;
    grid-row: 1 / -1;
  }
}


/* --------------------------------------------
コンタクトフォーム
-----------------------------------------------*/
@media(max-width:500px){
.inquiry th,.inquiry td {
 display:block!important;
 width:100%!important;
 border-top:none!important;
 -webkit-box-sizing:border-box!important;
 -moz-box-sizing:border-box!important;
 box-sizing:border-box!important;
}
.inquiry tr:first-child th{
 border-top:1px solid #d7d7d7!important;
}
/* 必須・任意のサイズ調整 */ 
.inquiry .haveto,.inquiry .any {  
font-size:10px;
}}
/*見出し欄*/
.inquiry th{
 text-align:left;
 font-size:14px;
 color:#444;
 padding-right:5px;
 width:30%;
 background:#f7f7f7;
 border:solid 1px #d7d7d7;
 padding: 10px;
}
/*通常欄*/
.inquiry td{
 font-size:13px;
 border:solid 1px #d7d7d7; 
 padding: 10px;
}
/*横の行とテーブル全体*/
.entry-content .inquiry tr,.entry-content table{
 border:solid 1px #d7d7d7;  
}
/*必須の調整*/
.haveto{
 font-size:7px;
 padding:5px;
 background:#ff9393;
 color:#fff;
 border-radius:2px;
 margin-right:5px;
 position:relative;
 bottom:1px;
}
/*任意の調整*/
.any{
 font-size:7px;
 padding:5px;
 background:#93c9ff;
 color:#fff;
 border-radius:2px;
 margin-right:5px;
 position:relative;
 bottom:1px;
}
/*ラジオボタンを縦並び指定*/
.verticallist .wpcf7-list-item{
 display:block;
}
/*送信ボタンのデザイン変更*/
#formbtn{
 display: block;
 padding:15px;
 width:350px;
 background:#ffaa56;
 color:#fff;
 font-size:18px;
 font-weight:bold;   
 border-radius:2px;
 margin:25px auto 0;
}
/*送信ボタンマウスホバー時*/
#formbtn:hover{
 background:#fff;
 color:#ffaa56;
 border:2px solid #ffaa56;
}

/*contact*/
/* contact-form-2*/
.form__wrap {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  margin-top: 40px;
  border-top: 1px solid #ccc;
}
.contact-form-2 {
  font-size: 16px;
}
.contact-form-2 a {
  margin: 0;
  padding: 0;
  text-decoration: underline;
  color: inherit;
  transition: opacity .25s;
}
.contact-form-2 a:hover {
  opacity: .5;
  transition: opacity .25s;
}
.contact-form-2 div.form__row {
  /*display: flex;*/
  margin: 0;
  padding: 0;
}
.contact-form-2 div.form__row.row-privacy,
.contact-form-2 div.form__row.row-submit {
  display: block;
  border-top: 0;
  margin-top: 3em;
  text-align: center;
}
.contact-form-2 p.form__label,
.contact-form-2 p.form__body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.contact-form-2 p.form__label {
  /*width: 36%;*/
  /*padding: 1.5em 1em;*/
  padding: 1.5em 0 0;
}
.contact-form-2 p.form__body {
  /*width: 64%;*/
  /*padding: 1.5em 1em;*/
  padding: 0.7em 0 1.5em;
}
.contact-form-2 div.form__row.row-privacy .form__body,
.contact-form-2 div.form__row.row-submit .form__body {
  width: 100%;
}
.contact-form-2 p.form__label label {
  position: relative;
  margin: 0;
  padding: 0;
  /*padding-left: 44px; */
  box-sizing: border-box;
}
.contact-form-2 p.form__label label::after {
  content: "任意";
  top: 0;
  right: 0;
  width: 36px;
  padding: 4px 8px;
  background-color: #999;
  color: #fff;
  font-size: 12px;
  text-align: center;
  margin-left: 8px;
}
.contact-form-2 p.form__label.is-required label {
  position: relative;
}
.contact-form-2 p.form__label.is-required label::after {
  content: "必須";
  top: 0;
  right: 0;
  width: 36px;
  padding: 4px 8px;
  background-color: #F1686D;
  color: #fff;
  font-size: 12px;
  text-align: center;
  margin-left: 8px;
}
/* テキストフィールド */
.contact-form-2 input[type=text],
.contact-form-2 input[type=tel],
.contact-form-2 input[type=email],
.contact-form-2 textarea {
  width: 100%;
  margin: 0;
  padding: .5em 1em;
  border: 1px solid #bbb;
  border-radius: 2px;
  box-shadow: none;
  background-color: #fefefe;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-size: 16px;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
/* チェックボックス */
.contact-form-2 input[type=checkbox] {
  display: none;
}
.contact-form-2 input[type=checkbox] + span {
  cursor: pointer;
  position: relative;
  margin: 0;
  padding: 0 1em 0 1.8em;
  font-size: inherit;
  box-sizing: border-box;
  transition: opacity .25s ease;
}
.contact-form-2 input[type=checkbox] + span::before {
  content: "";
  display: block;
  position: absolute;
  top: 4px;
  left: 0;
  width: 1.24em;
  height: 1.24em;
  border: 1px solid #999;
  border-radius: 4px;
  background-color: #fefefe;
  box-sizing: border-box;
}
.contact-form-2 input[type=checkbox] + span::after {
  content: "";
  opacity: 0;
  display: block;
  position: absolute;
  top: calc(4px + 0.15em);
  left: 0.44em;
  width: 0.4em;
  height: .8em;
  border-bottom: 3px solid #000;
  border-right: 3px solid #000;
  box-sizing: border-box;
  transform: rotate(40deg);
  transition: opacity .25s ease;
}
.contact-form-2 input[type=checkbox]:checked + span {
  color: #132E50;
  transition: all .25s ease;
}
.contact-form-2 input[type=checkbox]:checked + span::before {
  opacity: 1;
  border: 1px solid #132E50;
  background-color: #132E50;
  transition: opacity .25s ease;
}
.contact-form-2 input[type=checkbox]:checked + span::after {
  opacity: 1;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  transition: opacity .25s ease;
}
/* ラジオボタン */
.contact-form-2 input[type=radio] {
  display: none;
}
.contact-form-2 input[type=radio] + span {
  cursor: pointer;
  position: relative;
  margin: 0;
  padding: 0 1em 0 1.8em;
  font-size: inherit;
  box-sizing: border-box;
  transition: opacity .25s ease;
}
.contact-form-2 input[type=radio] + span::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  border: 1px solid #c4bbb8;
  border-radius: 50%;
  background-color: #fefefe;
  box-sizing: border-box;
  transition: opacity .25s ease;
}
.contact-form-2 input[type=radio] + span::after {
  content: "";
  display: block;
  opacity: 0;
  position: absolute;
  box-sizing: border-box;
  transition: opacity .25s ease;
}
.contact-form-2 input[type=radio]:checked + span {
  color: #6c5d2f;
}
.contact-form-2 input[type=radio]:checked + span::before {
  box-shadow: 0 0 2px 2px rgba(133, 112, 92, 0.5);
}
.contact-form-2 input[type=radio]:checked + span::after {
  opacity: 1;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  background-color: #6c5d2f;
  border-radius: 50%;
  box-sizing: border-box;
  transition: opacity .25s ease;
}
/* セレクト */
.contact-form-2 span.select-wrap {
  position: relative;
  width: 250px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.contact-form-2 select {
  cursor: pointer;
  width: 250px;
  max-width: 100%;
  margin: 0;
  padding: .5em 1.5em .5em 0.5em;
  border: 1px solid #c4bbb8;
  border-radius: 4px;
  box-shadow: none;
  /*background-color: #fefefe;*/
  /*background-image: linear-gradient(90deg, #d4cbb2, #d4cbb2);*/
  background-position: 100% 0;
  background-size: 2em 3.5em;
  background-repeat: no-repeat;
  color: inherit;
  font-size: inherit;
  line-height: 1;
  box-sizing: border-box;
  transition: border-color 0.2s ease, outline 0.2s ease;
/*  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;*/
}
.contact-form-2 select::-ms-expand {
  display: none;
}
.contact-form-2 span.select-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  display: block;
  width: .6em;
  height: .6em;
  top: 50%;
  right: .8em;
  margin-top: -3px;
  border-bottom: 1px solid #6c5d2f;
  border-right: 1px solid #6c5d2f;
  transform: rotate(45deg) translateY(-50%);
  transform-origin: 50% 0;
  box-sizing: border-box;
}
.contact-form-2 select:focus {
  outline: 0;
  border: 1px #6c5d2f solid;
  box-shadow: 0 0 2px 2px rgba(133, 112, 92, 0.5);
}
.contact-form-2 span.select-wrap:focus-within::after {
  border-bottom: 1px solid #6c5d2f;
  border-right: 1px solid #6c5d2f;
}
/* 送信ボタン */
.contact-form-2-submit {
    text-align: center;
    margin: 40px auto 0;
}
.contact-form-2-submit .submit-btn {
  position: relative;
  width: 320px;
  height: 65px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.contact-form-2-submit input[type="submit"],
.contact-form-2-submit input.btn.conf {
    cursor: pointer;
    min-width: 280px;
    width: 100%;
    padding: 18px;
    box-shadow: none;
    border: 1px #132E50 solid;
    border-radius: 999px;
    background-color: #132E50;
    color: #fff;
    font-size: 18px;
    text-align: center;
    box-sizing: border-box;
    transition: all .25s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    margin: 20px auto;
}

.contact-form-2-submit input[type="submit"]:disabled {
  cursor: not-allowed;
  box-shadow: none!important;
  border: 1px solid #f8f8f8!important;
  background-color: #f8f8f8!important;
  color: #929292!important;
}
.contact-form-2 input[type="submit"]:hover {
  background-color: #fff;
  color: #132E50;
  transition: all .25s;
}
.contact-form-2-submit input[type="submit"]:focus {
  outline: 0;
  border: 1px #132E50 solid;
}
.contact-form-2-submit button.btn.back:hover {
  background-color: #fff;
  color: #bbb;
  transition: all .25s;
}
span.error{
  padding: 0;
}
input.btn.conf {
    margin-bottom: 10px;
}
.contact-form-2-submit button.btn.back {
    cursor: pointer;
    min-width: 280px;
    width: 100%;
    padding: 18px;
    box-shadow: none;
    border: 1px #bbb solid;
    border-radius: 999px;
    background-color: #bbb;
    color: #fff;
    font-size: 18px;
    text-align: center;
    box-sizing: border-box;
    transition: all .25s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    margin: 20px auto;
}

/* 確認画面の「戻る」「送信する」ボタン：タブレット・PCでは横並び */
/* MW WP Formがボタンをwpautopで<p>に自動で包むため、<p>側もflex化する */
@media (min-width: 600px) {
  .contact-form-2-submit,
  .contact-form-2-submit p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .contact-form-2-submit input.btn.conf,
  .contact-form-2-submit input[type="submit"],
  .contact-form-2-submit button.btn.back {
    margin: 0;
  }
}
@media only screen and (max-width: 768px) {
  .contact-form-2 div.form__row {
    display: block;
  }
  .contact-form-2 p.form__label {
    width: 100%;
    padding: 1.5em 1em 0;
  }
  .contact-form-2 p.form__body {
    width: 100%;
    padding: 1em 1em 1.5em;
  }
}

.contact-form-2 input#file {
    font-size: 16px;
}

/* 入力画面では「確認画面へ」のみ表示 */
.mw_wp_form_input .contact-form-2-submit .btn.back,
.mw_wp_form_input .contact-form-2-submit .btn.send {
  display: none;
}

/* 確認画面では「確認画面へ」を非表示 */
.mw_wp_form_confirm .contact-form-2-submit .btn.conf {
  display: none;
}
/* --------------------------------------------
コンタクトフォーム table.contact-form-1
-----------------------------------------------*/
.contact-desc{
  margin: 0 auto 20px;
}
table.contact-form-1{
  width: 100%;
}

/*Contact Form 7カスタマイズ*/
/*スマホContact Form 7カスタマイズ*/
@media(max-width:900px){
  table.contact-form-1{
  width: 100%;
}
.contact-form-1 th,.contact-form-1 td {
 display:block!important;
 width:100%!important;
 border-top:none!important;
 -webkit-box-sizing:border-box!important;
 -moz-box-sizing:border-box!important;
 box-sizing:border-box!important;
}
.contact-form-1 tr:first-child th{
 border-top:1px solid #d7d7d7!important;
}

/*電話*/
.shop_info2 .desc{
  font-size: 1.2em!important;
}
}

/*見出し欄*/
.contact-form-1 th{
   font-weight: normal;
 text-align:left;
 color:#444;
 padding-right:5px;
 width:30%;
 background:#f7f7f7;
 border:solid 1px #d7d7d7;
 padding: 10px;
 vertical-align: middle;
}
/*通常欄*/
.contact-form-1 td{
 border:solid 1px #d7d7d7; 
 padding: 10px;
 font-size: 1.2em;
 line-height: 1.5em;
}
/*横の行とテーブル全体*/
.entry-content .contact-form-1 tr,.entry-content table{
 border:solid 1px #d7d7d7;  
}
/*必須の調整*/
.must{
 font-size:6px;
 padding:2px;
 background:#fe0505b5;
 color:#fff;
 border-radius:2px;
 margin-left:5px;
 position:relative;
 bottom:1px;
}
/*任意の調整*/
.any{
 font-size:6px;
 padding:2px;
 background:#aaaaaa;
 color:#fff;
 border-radius:2px;
 margin-left:5px;
 position:relative;
 bottom:1px;
}

/*select*/
.contact-form-1 select {
    cursor: pointer;
    width: 250px;
    max-width: 100%;
    margin: 0;
    padding: .5em 1.5em .5em 0.5em;
    border: 1px solid #c4bbb8;
    border-radius: 4px;
    box-shadow: none;
    /*background-color: #fefefe;*/
    /*background-image: linear-gradient(90deg, #d4cbb2, #d4cbb2);*/
    background-position: 100% 0;
    background-size: 2em 3.5em;
    background-repeat: no-repeat;
    color: inherit;
    font-size: inherit;
    line-height: 1;
    box-sizing: border-box;
    transition: border-color 0.2s ease, outline 0.2s ease;
/*    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;*/
}

select {
    word-wrap: normal;
}

.contact-form-1 input[type=text], .contact-form-1 input[type=tel], .contact-form-1 input[type=email], .contact-form-1 textarea {
    width: 100%;
    margin: 0;
    padding: .5em 1em;
    border: 1px solid #c4bbb8;
    border-radius: 4px;
    box-shadow: none;
    background-color: #fefefe;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.contact-form-1 input.btn.conf {
    cursor: pointer;
    width: 320px;
    max-width: 100%;
    padding: 18px;
    box-shadow: none;
    border: 1px #bbb solid;
    border-radius: 8px;
    background-color: #bbb;
    color: #fff;
    font-size: 18px;
    text-align: center;
    box-sizing: border-box;
    transition: all .25s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.contact-form-1 input.btn.conf {
    margin-bottom: 10px;
}
.contact-form-1-submit{

}
.contact-form-1-submit input.btn.conf{
  cursor: pointer;
    width: 320px;
    max-width: 100%;
    padding: 18px;
    box-shadow: none;
    border: 1px #bbb solid;
    border-radius: 8px;
    background-color: #bbb;
    color: #fff;
    font-size: 18px;
    text-align: center;
    box-sizing: border-box;
    transition: all .25s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    margin:20px auto;
}
.contact-form-1-submit input[type="submit"] {
    cursor: pointer;
    width: 320px;
    max-width: 100%;
    padding: 18px;
    box-shadow: none;
    border: 1px #FF9900 solid;
    border-radius: 8px;
    background-color: #FF9900;
    color: #fff;
    font-size: 18px;
    text-align: center;
    box-sizing: border-box;
    transition: all .25s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    margin:10px auto;
}
.contact-form-1-submit input[type="submit"]:hover {
  box-shadow: 0 0 2px 2px rgba(133, 112, 92, 0.5);
  background-color: #fff;
  color: #6c5d2f;
  transition: all .25s;
}
.contact-form-1-submit button.btn.back{
  width: 150px;
  margin:20px auto;
  display: block;
  border: 1px #bbb solid;
  padding: 8px;
  background: #FFFFE1;
    border: #ccc 2px solid;
}
