/*
Theme Name: wp-agency-project
Author: Crossroad Co., Ltd.
*/
@charset "utf-8";

:root {
  --primary-color: #0a192f;
  --accent-color: #D4AF37;
  --text-color: #1e293b;
  --bg-gray: #f8fafc;
  --border-color: #E2E2E2;
  --font-base: "Noto Sans JP", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ===========================================================
   1. Reset & Base
   =========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
p {
  font-size: 16px;
  line-height: 1.8;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin-bottom: 1.5em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* =====
   2. Layout & Grid (Integrated from base)==== */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.sp-only {
  display: block;
}

.pc-only {
  display: none;
}

@media(min-width:500px) {
  .d-500-none {
    display: none;
  }
}

@media(min-width:576px) {
  .container {
    max-width: 540px;
  }
}

@media(min-width:768px) {
  .container {
    max-width: 720px;
  }

  .tellink {
    pointer-events: none !important;
  }
}

@media(min-width:992px) {
  .container {
    max-width: 960px;
  }

  .sp-only {
    display: none;
  }

  .pc-only {
    display: block;
  }
}

@media(min-width:1200px) {
  .container {
    max-width: 1140px;
  }
}

@media(min-width:1400px) {
  .container {
    max-width: 1320px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th,
td {
  padding: 12px;
  text-align: left;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  text-align: center;
}

.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

main.site-main {
  padding-top: 5rem;
}

.front-page main.site-main {
  padding-top: 0;
}

/* ===========================================================
   3. Custom Utility Classes (Crucial for Layout)
   =========================================================== */
.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 226, 226, 0.5);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible,
.fade-in.is-active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.text-gradient {
  background: linear-gradient(135deg, #0a192f 0%, #233554 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #B08D55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-tech {
  background-color: #ffffff;
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===========================================================
   4. Header & Navigation Styling
   =========================================================== */
.header-logo-container img {
  width: 180px;
}

.desktop-nav .menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav .menu-item a {
  font-weight: 500;
  color: #475569;
  transition: color 0.3s;
}

.desktop-nav .menu-item a:hover {
  color: #0a192f;
}

.desktop-nav .current-menu-item>a {
  color: #B59216;
  font-weight: 700;
}

.desktop-nav .menu-item.cta-item a {
  display: block;
  background-color: #0a192f;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: all 0.3s;
}

.desktop-nav .menu-item.cta-item a:hover {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  -webkit-transform: translateY(-0.25rem);
  transform: translateY(-0.25rem);
}

.mobile-nav-container {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-container .menu {
  display: flex;
  flex-direction: column;
}

.mobile-nav-container .menu-item a {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
}

.mobile-nav-container .current-menu-item>a {
  color: #B59216;
  background-color: #f8fafc;
}

.mobile-nav-container .menu-item.cta-item {
  margin-top: 1rem;
}

.mobile-nav-container .menu-item.cta-item a {
  background-color: #0a192f;
  color: #ffffff;
  text-align: center;
}

#mobile-menu {
  display: block !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
  pointer-events: none;
}

#mobile-menu.is-open {
  max-height: 100vh;
  opacity: 1;
  pointer-events: auto;
}

#mask {
  display: block !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================================================
   5. Section Specific Adjustments
   =========================================================== */
/* hero-section */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  width: fit-content;
}

/*.glass-mockup {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}*/
.text-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  inset: 0;
  padding: 2rem;
  pointer-events: none;
}

.text-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.skeleton-line {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.skeleton-block {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

@media(min-width:640px) and (max-width:1023px) {
  .hero-headline {
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    height: 100vh;
    overflow: hidden;
    padding-bottom: 0;
  }

  .hero-container {
    text-align: left;
  }

  .hero-text-container {
    text-align: left;
    padding-top: 0;
  }

  .hero-visual-container {
    margin-top: 0;
  }
}

/* strengths-section */
.strengthgrid {
  justify-content: center;
}

.promise-section {
  background: #f3f4f6;
}

.promise-content {
  padding: 40px 20px;
}

@media(max-width:849px) {
  .promise-desc {
    text-align: left;
  }
}

@media(min-width:600px) {
  .promise-content {
    padding: 40px;
  }
}

@media(min-width:768px) {
  .promise-content {
    text-align: center;
  }
}

/* process-section */
.process-section {
  background-color: #fff;
  background-image: radial-gradient(#e5e7eb 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* top-contact-section */
@media(min-width:768px) {
  .top-contact-section .section-header {
    text-align: center;
  }
}

/* ===========================================================
   6. Forms & Breadcrumbs (Unique to style.css)
   =========================================================== */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
  margin: 0 10px;
  color: #999;
}

.breadcrumb-item a {
  color: #666;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: bold;
}

.required-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: #ef4444;
  color: #fff;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: bold;
}

.optional-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: #94a3b8;
  color: #fff;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: bold;
}

.micro-copy {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0a192f !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.2) !important;
}

input,
select,
textarea {
  border: 1px solid #cbd5e1 !important;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

.top-contact-section input {
  background: #fff;
}

.cf7-submit {
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
  width: 100%;
  min-width: 240px;
  border-radius: 0.5rem;
  --tw-bg-opacity: 1;
  background-color: #0a192f;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 10px 10px -5px rgb(10 25 47 / 0.1), 0 8px 10px -6px rgb(10 25 47 / 0.1);
  white-space: pre-wrap;
}

.cf7-submit:active {
  -webkit-transform: scale(0.98);
  transform: scale(0.98);
}

.cf7-submit:hover,
.cf7-submit:focus {
  -webkit-transform: translateY(-0.25rem);
  transform: translateY(-0.25rem);
}

.hearing-form-cf7 input[type="date"] {
  width: 100%;
}

.hearing-form-cf7 textarea {
  max-height: 150px;
}

/* ヒアリングフォーム「その他」表示 */
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #E2E2E2;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #E2E2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
  color: #94a3b8;
}

.step-item.active .step-number {
  border-color: #0a192f;
  background: #0a192f;
  color: #fff;
}

.step-item.completed .step-number {
  border-color: #D4AF37;
  background: #D4AF37;
  color: #fff;
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

/* ===========================================================
   7. Fix for Specific Pages
   =========================================================== */
body.page-hearing-form {
  background-color: #f8fafc;
}

body.page-contact {
  background-color: #f9fafb;
}

.wpcf7-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* web-works */
.custom-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-pagination ul.page-numbers li {
  margin: 0;
}

.custom-pagination ul.page-numbers a.page-numbers,
.custom-pagination ul.page-numbers span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  /* w-10 */
  height: 2.5rem;
  /* h-10 */
  border-radius: 0.25rem;
  /* rounded */
  border: 1px solid #E2E2E2;
  /* border-silver-200 */
  background-color: #ffffff;
  /* bg-white */
  color: #0a192f;
  /* text-navy-900 */
  font-weight: 700;
  /* font-bold */
  transition: all 0.3s;
  text-decoration: none;
}

.custom-pagination ul.page-numbers a.page-numbers:hover {
  background-color: #0a192f;
  color: #ffffff;
}

.custom-pagination ul.page-numbers span.current {
  background-color: #0a192f;
  color: #ffffff;
  cursor: default;
}

.custom-pagination ul.page-numbers .dots {
  border: none;
  background: transparent;
  color: #94a3b8;
  width: auto;
  padding: 0 0.5rem;
}

/* Footer */
.ftrlogo img {
  width: 180px;
}

.ftrinfotxt .tellink:hover {
  opacity: 0.8;
}