/* =============================================
   IRODORI - common.css
   共通スタイル
   ============================================= */

/* CSS Variables */
:root {
  --color-brand-primary: #000000;
  --color-brand-ink: #111111;
  --color-brand-paper: #ffffff;
  --color-brand-sub: #f8f8f8;
  --color-brand-accent: #007aff;
  --color-irodori-red: #ff3366;
  --color-irodori-orange: #ff9933;
  --color-irodori-yellow: #ffcc33;
  --color-irodori-green: #33cc99;
  --color-irodori-blue: #3399ff;
  --color-irodori-purple: #9966ff;

  --gradient-irodori: linear-gradient(to right, #ff3366, #ff9933, #ffcc33, #33cc99, #3399ff, #9966ff);
  --gradient-lab: linear-gradient(71deg,
    rgba(255, 51, 102, 0.15) -0.01%,
    rgba(255, 153, 51, 0.15) 32.21%,
    rgba(255, 204, 51, 0.15) 66.34%,
    rgba(51, 204, 153, 0.15) 99.99%);
  --gradient-page-header: linear-gradient(90deg,
    rgba(255, 51, 102, 0.10) 0%,
    rgba(255, 153, 51, 0.10) 20%,
    rgba(255, 204, 51, 0.10) 40%,
    rgba(51, 204, 153, 0.10) 60%,
    rgba(51, 153, 255, 0.10) 80%,
    rgba(153, 102, 255, 0.10) 100%);

  /* SP spacing tokens */
  --sp-container-x: 20px;
  --sp-section-y: 72px;
  --sp-section-y-sm: 40px;
  --sp-gap-xl: 32px;
  --sp-gap-lg: 24px;
  --sp-gap-md: 16px;
  --sp-gap-sm: 12px;
  --sp-radius: 6px;
  --sp-radius-lg: 8px;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', ui-sans-serif, system-ui, sans-serif;
  color: var(--color-brand-ink);
  background-color: var(--color-brand-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
}

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

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

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
  display: none;
}

@media (min-width: 768px) {
  .custom-cursor {
    display: block;
  }
}

.custom-cursor-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-cursor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: black;
  transition: opacity 0.2s;
}

.custom-cursor.is-hovering .custom-cursor-inner {
  transform: scale(1.8);
}

.custom-cursor.is-hovering .custom-cursor-dot {
  opacity: 0;
}

/* =============================================
   OPENING LOADER
   ============================================= */
.opening-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-brand-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.opening-loader.exit {
  transform: translateY(-100%);
}

.opening-loader-text {
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  overflow: hidden;
  padding: 0 40px 8px;
}

.opening-loader-text-inner {
  transform: translateY(100%);
  animation: loaderTextReveal 0.8s ease-out forwards;
}

.opening-loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-irodori);
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderBarExpand 1s 0.2s ease-in-out forwards;
}

/* Loader "." — gradient colour block, text transparent */
.text-irodori-grad {
  display: inline-block;
  background: linear-gradient(to right, #ff3366, #ff9933, #ffcc33, #33cc99, #3399ff, #9966ff);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@keyframes loaderTextReveal {
  to { transform: translateY(0); }
}

@keyframes loaderBarExpand {
  to { transform: scaleX(1); }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-irodori);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60;
  transition: transform 0.1s linear;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px 0;
}

.nav.scrolled,
.nav.page-nav {
  background: white;
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 64px;
  }
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  padding: 4px 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo-line {
  height: 2px;
  width: 0;
  background: var(--gradient-irodori);
  transition: width 0.7s ease;
  margin-top: 8px;
}

.nav-logo:hover .nav-logo-line {
  width: 100%;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link-wrap {
  position: relative;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.5);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-link:hover {
  color: var(--color-brand-primary);
}

.nav-chevron {
  transition: transform 0.3s;
}

.nav-link-wrap.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 16px;
  width: 256px;
  display: none;
}

.nav-link-wrap:hover .nav-dropdown,
.nav-link-wrap.open .nav-dropdown {
  display: block;
}

.nav-dropdown-inner {
  background: white;
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
  border: 1px solid rgba(17,17,17,0.05);
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-sub-link {
  display: block;
  padding: 16px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(17,17,17,0.6);
  border-bottom: 1px solid rgba(17,17,17,0.05);
  transition: color 0.2s, background 0.2s;
}

.nav-sub-link:last-child {
  border-bottom: 0;
}

.nav-sub-link:hover {
  color: var(--color-brand-primary);
  background: rgba(17,17,17,0.02);
}

.nav-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 16px;
  gap: 0;
}

.nav-contact span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-brand-primary);
}

.nav-contact-line {
  height: 1px;
  width: 16px;
  background: var(--color-brand-primary);
  transition: width 0.7s;
  margin-top: 4px;
}

.nav-contact:hover .nav-contact-line {
  width: 64px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-brand-primary);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-brand-primary);
  transition: color 0.3s;
}

.nav-mobile-link:hover {
  color: var(--color-brand-accent);
}

.nav-mobile-sublinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 16px;
  border-left: 2px solid rgba(17,17,17,0.05);
  margin-top: 8px;
  margin-left: 4px;
}

.nav-mobile-sublink {
  font-size: 14px;
  color: rgba(17,17,17,0.6);
  transition: color 0.3s;
}

.nav-mobile-sublink:hover {
  color: var(--color-brand-primary);
}

.nav-mobile-cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--color-brand-accent);
  color: white;
  text-align: center;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.3s;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--color-brand-paper);
  color: var(--color-brand-ink);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid rgba(17,17,17,0.06);
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 48px 64px;
  }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--color-brand-primary);
  display: block;
  margin-bottom: 12px;
}

/* "Add new colors to your life." — gradient colour block, text transparent */
.footer-brand-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  background: linear-gradient(to right, #ff3366, #ff9933, #ffcc33, #33cc99, #3399ff, #9966ff);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
}

.footer-link-group h4 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #d1d1d1;
  margin-bottom: 24px;
}

.footer-link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link-group a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(17,17,17,0.4);
  transition: color 0.3s;
  text-transform: uppercase;
}

.footer-link-group a:hover {
  color: var(--color-brand-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  opacity: 0.2;
  border-top: 1px solid rgba(17,17,17,0.1);
  padding-top: 32px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   PAGE HEADER (サブページ共通)
   ============================================= */
.page-header {
  padding-top: 160px;
  padding-bottom: 80px;
  background: var(--gradient-page-header);
}

.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .page-header-inner {
    padding: 0 64px;
  }
}

.page-header-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateX(-40px);
  filter: blur(10px);
  animation: revealLeft 1.2s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}

.page-header-category-line {
  width: 48px;
  height: 1px;
  background: var(--gradient-irodori);
  flex-shrink: 0;
}

.page-header-category span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.3);
}

.page-header-title {
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(60px);
  filter: blur(10px);
  animation: revealUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}

.page-header-desc {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: rgba(17,17,17,0.5);
  line-height: 1.8;
  max-width: 640px;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  animation: revealUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
}

/* =============================================
   SECTION CONTAINER
   ============================================= */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 24px;
}

@media (min-width: 768px) {
  .section-container {
    padding: 180px 64px;
  }
}

.section-container-sm {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

@media (min-width: 768px) {
  .section-container-sm {
    padding: 96px 64px;
  }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(10px);
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1),
              transform 1.2s cubic-bezier(0.16,1,0.3,1),
              filter 1.2s cubic-bezier(0.16,1,0.3,1);
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.95);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0px);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes revealLeft {
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

/* =============================================
   SECTION LABELS
   ============================================= */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-label-line {
  width: 48px;
  height: 1px;
  background: var(--gradient-irodori);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .section-label-line {
    background: var(--color-brand-primary);
  }
}

.section-label span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.3);
}

/* =============================================
   GRADIENT UTILITIES
   ============================================= */
.gradient-irodori {
  background: var(--gradient-irodori);
}

.gradient-lab {
  background: var(--gradient-lab);
}

.text-irodori {
  display: inline-block;
  background: linear-gradient(to right, #ff3366, #ff9933, #ffcc33, #33cc99, #3399ff, #9966ff);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Gradient TEXT (clipped to letterforms, no background box)
   Used only where there is no overflow:hidden ancestor — e.g. philosophy page */
.text-grad-clip {
  display: inline;
  background: linear-gradient(to right, #ff3366, #ff9933, #ffcc33, #33cc99, #3399ff, #9966ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =============================================
   CTA SECTION (共通)
   ============================================= */
.cta-section {
  background: var(--color-brand-primary);
  color: white;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 128px;
  }
}

.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.1;
}

.cta-section h2 {
  font-size: clamp(1.625rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.4);
  font-size: 1.125rem;
  margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.cta-btn-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.cta-btn:hover .cta-btn-circle {
  transform: scale(1.1);
}

.cta-btn-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
  transition: border-color 0.3s;
}

.cta-btn:hover .cta-btn-text {
  border-color: white;
}

/* =============================================
   SEPARATORS
   ============================================= */
.separator {
  height: 1px;
  width: 100%;
  background: rgba(17,17,17,0.05);
}

/* =============================================
   ICONS (SVG inline helper classes)
   ============================================= */
.icon {
  display: inline-block;
  width: 1.8em;
  height: 1.8em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =============================================
   WRITING MODE
   ============================================= */
.writing-vertical {
  writing-mode: vertical-rl;
}

/* =============================================
   FLOW PROCESS STEPS
   ============================================= */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}

@media (min-width: 768px) {
  .flow-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }

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

  .flow-grid-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
  }

  /* .flow-grid::before {
    content: '';
    position: absolute;
    top: 28%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(17,17,17,0.05);
    z-index: 0;
  } */
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.flow-step-icon-wrap {
  position: relative;
  margin-bottom: 32px;
}

.flow-step-icon {
  width: 80px;
  height: 80px;
  background: white;
  border: 1px solid rgba(17,17,17,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
  color: rgba(17,17,17,0.4);
}

.flow-step:hover .flow-step-icon {
  transform: scale(1.1);
}

.flow-step-num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.flow-step h4 {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.flow-step p {
  font-size: 14px;
  color: rgba(17,17,17,0.5);
  line-height: 1.6;
  max-width: 180px;
}

.flow-arrow {
  display: none;
  position: absolute;
  top: 28%;
  right: -0px;
  transform: translate(50%, -50%);
  z-index: 10;
  color: rgba(17,17,17,0.2);
}

@media (min-width: 768px) {
  .flow-arrow {
    display: flex;
  }
}

.flow-arrow-mobile {
  margin-top: 32px;
  color: rgba(17,17,17,0.2);
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .flow-arrow-mobile {
    display: none;
  }
}

/* =============================================
   CONTACT FORM 7 スタイル
   ============================================= */

/* フォーム全体 */
.irodori-form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 各フィールド行 */
.irodori-form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.irodori-form-row p {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ラベル */
.irodori-form-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(17,17,17,0.85);
}

/* 必須・任意バッジ */
.irodori-required {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,51,102,0.12);
  color: #ff3366;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}
.irodori-optional {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(17,17,17,0.05);
  color: rgba(17,17,17,0.35);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}

/* wpcf7-form-control-wrap ブロック化 */
.irodori-form .wpcf7-form-control-wrap {
  display: block;
}

/* テキスト・メール・電話 入力欄 */
.irodori-form input[type="text"],
.irodori-form input[type="email"],
.irodori-form input[type="tel"] {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: #f8f8f8;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: #111;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}
.irodori-form input[type="text"]:focus,
.irodori-form input[type="email"]:focus,
.irodori-form input[type="tel"]:focus {
  box-shadow: 0 0 0 2px rgba(17,17,17,0.15);
}
.irodori-form input::placeholder,
.irodori-form textarea::placeholder {
  color: rgba(17,17,17,0.3);
}

/* テキストエリア */
.irodori-form textarea {
  display: block;
  width: 100%;
  padding: 20px 24px;
  background: #f8f8f8;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  resize: none;
  min-height: 200px;
  font-family: inherit;
  color: #111;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}
.irodori-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(17,17,17,0.15);
}

/* =============================================
   カスタムラジオボタン
   （inquiry-type-ui → hidden inquiry-type に JS で同期）
   ============================================= */
/* <p>を透過させてlabelを直接gridアイテムにする */
.irodori-radio-group > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* <br>を非表示 */
.irodori-radio-group br {
  display: none !important;
}

.irodori-radio-group {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .irodori-radio-group {
    grid-template-columns: 1fr 1fr;
  }
}

.irodori-radio-item {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f8f8f8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(17,17,17,0.6);
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
  user-select: none;
  border: 2px solid transparent;
}
.irodori-radio-item:hover {
  background: rgba(17,17,17,0.05);
  color: #111;
}
.irodori-radio-item.is-selected {
  background: #fff;
  border-color: #111;
  color: #111;
}

.irodori-radio-item input[type="radio"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #111;
  margin: 0;
  cursor: pointer;
}
.irodori-radio-item span {
  line-height: 1.4;
}

/* ラジオ エラーメッセージ */
.irodori-radio-error {
  display: none;
  font-size: 12px;
  color: #ff3366;
  margin-top: 4px;
}

/* =============================================
   同意チェックボックス
   [acceptance]テキスト[/acceptance] + バッジ
   ============================================= */
.irodori-form-acceptance {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 16px;
  background: rgba(248,248,248,0.4);
}

/* CF7が生成するラッパー群を inline-flex に統一 */
.irodori-form-acceptance .wpcf7-form-control-wrap,
.irodori-form-acceptance .wpcf7-acceptance,
.irodori-form-acceptance .wpcf7-list-item {
  display: inline-flex !important;
  align-items: center;
  margin: 0;
}

/* CF7 label（checkbox + テキスト） */
.irodori-form-acceptance .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  cursor: pointer;
}

/* チェックボックス本体 */
.irodori-form-acceptance input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #111;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}

/* CF7が生成するラベルテキスト用 span */
.irodori-form-acceptance .wpcf7-list-item-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(17,17,17,0.6);
}

/* 送信ボタン */
.irodori-form-submit {
  text-align: center;
  padding-top: 8px;
}
.irodori-form-submit input[type="submit"] {
  display: inline-block;
  width: auto;
  padding: 24px 96px;
  background: #111;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), background 0.3s;
  white-space: nowrap;
}
.irodori-form-submit input[type="submit"]:hover {
  transform: scale(1.05);
  background: #222;
}

/* バリデーションエラー */
.irodori-form .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #ff3366;
  margin-top: 6px;
  display: block;
}
.irodori-form input.wpcf7-not-valid,
.irodori-form textarea.wpcf7-not-valid {
  box-shadow: 0 0 0 2px rgba(255,51,102,0.35) !important;
}

/* 送信結果メッセージ */
.wpcf7 .wpcf7-response-output {
  margin-top: 24px;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  border: none !important;
}
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: rgba(51,204,153,0.1);
  color: #33cc99;
}
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng {
  background: rgba(255,51,102,0.05);
  color: #ff3366;
}

/* =============================================
   SP (max-width: 767px) 最適化
   ============================================= */
@media (max-width: 767px) {

  /* --- Navigation --- */
  .nav {
    padding: 24px 0;
  }
  .nav.scrolled,
  .nav.page-nav {
    padding: 12px 0;
  }
  .nav-container,
  .page-header-inner,
  .section-container,
  .section-container-sm,
  .footer-container {
    padding-left: var(--sp-container-x);
    padding-right: var(--sp-container-x);
  }
  .nav-mobile {
    padding: 24px var(--sp-container-x);
    gap: var(--sp-gap-lg);
  }
  .nav-mobile-cta {
    border-radius: var(--sp-radius-lg);
    padding: 14px;
  }

  /* --- Page header --- */
  .page-header {
    padding-top: 120px;
    padding-bottom: 48px;
  }
  .page-header-title {
    margin-bottom: 16px;
  }
  .page-header-category {
    gap: 12px;
    margin-bottom: 12px;
  }
  .page-header-category-line {
    width: 32px;
  }

  /* --- Section containers --- */
  .section-container {
    padding-top: var(--sp-section-y);
    padding-bottom: var(--sp-section-y);
  }
  .section-container-sm {
    padding-top: var(--sp-section-y-sm);
    padding-bottom: var(--sp-section-y-sm);
  }
  .section-label {
    gap: 12px;
    margin-bottom: 12px;
  }
  .section-label-line {
    width: 32px;
  }

  /* --- Footer --- */
  .footer-container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .footer-top {
    gap: var(--sp-gap-xl);
    margin-bottom: var(--sp-gap-xl);
  }
  .footer-links {
    gap: var(--sp-gap-xl);
  }
  .footer-bottom {
    padding-top: 24px;
  }

  /* --- CTA section --- */
  .cta-section {
    padding: 48px var(--sp-container-x);
  }
  .cta-section h2 {
    margin-bottom: 24px;
  }
  .cta-section p {
    font-size: 0.9375rem;
    margin-bottom: 32px;
    line-height: 1.7;
  }
  .cta-btn {
    gap: 16px;
  }
  .cta-btn-circle {
    width: 52px;
    height: 52px;
  }

  /* --- Flow steps --- */
  .flow-grid {
    gap: var(--sp-gap-xl);
  }
  .flow-step-icon-wrap {
    margin-bottom: 20px;
  }
  .flow-step-icon {
    width: 64px;
    height: 64px;
  }
  .flow-step h4 {
    font-size: 1.125rem;
    margin-bottom: 12px;
  }
  .flow-arrow-mobile {
    margin-top: 20px;
  }

  /* --- Contact form --- */
  .irodori-form {
    gap: var(--sp-gap-xl);
  }
  .irodori-form input[type="text"],
  .irodori-form input[type="email"],
  .irodori-form input[type="tel"] {
    padding: 14px 16px;
    border-radius: var(--sp-radius-lg);
  }
  .irodori-form textarea {
    padding: 16px;
    border-radius: var(--sp-radius-lg);
    min-height: 160px;
  }
  .irodori-radio-item {
    padding: 14px 16px;
    border-radius: var(--sp-radius-lg);
  }
  .irodori-form-acceptance {
    padding: 20px;
    border-radius: var(--sp-radius-lg);
    gap: 12px;
  }
  .irodori-form-submit input[type="submit"] {
    padding: 18px 48px;
    border-radius: var(--sp-radius-lg);
    letter-spacing: 0.3em;
  }

  /* --- Tailwind utility overrides (全ページ共通) --- */
  .text-7xl { font-size: 2.25rem !important; line-height: 1.1 !important; }
  .text-6xl { font-size: 2rem !important; line-height: 1.15 !important; }
  .text-5xl { font-size: 1.875rem !important; line-height: 1.2 !important; }
  .text-4xl { font-size: 1.625rem !important; line-height: 1.25 !important; }
  .text-3xl { font-size: 1.375rem !important; line-height: 1.3 !important; }

  .py-24 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .py-20 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-16 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
  .py-12 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

  .mb-48 { margin-bottom: 3rem !important; }
  .mb-32 { margin-bottom: 2.5rem !important; }
  .mb-24 { margin-bottom: 2rem !important; }
  .mb-20 { margin-bottom: 1.75rem !important; }
  .mb-16 { margin-bottom: 1.5rem !important; }
  .mb-14 { margin-bottom: 1.25rem !important; }
  .mb-12 { margin-bottom: 1rem !important; }
  .mb-10 { margin-bottom: 0.875rem !important; }
  .mb-8  { margin-bottom: 0.75rem !important; }

  .gap-32 { gap: 2.5rem !important; }
  .gap-16 { gap: 2rem !important; }
  .gap-12 { gap: 1.5rem !important; }
  .gap-8  { gap: 1.25rem !important; }

  .mt-8  { margin-top: 1.25rem !important; }

  .p-16 { padding: 2rem !important; }
  .p-12 { padding: 1.5rem !important; }

  /* --- Opening loader --- */
  .opening-loader-text {
    font-size: clamp(1.5rem, 4.5vw, 3rem);
    padding: 0 24px 8px;
  }
}
