/* =========================================================
   株式会社 近江・システム - Corporate Site
   Style: Trust-first / Navy & White / Conservative Modern
   ========================================================= */

:root {
  --navy-900: #0a1f3d;
  --navy-800: #0d2645;
  --navy-700: #143256;
  --navy-600: #1d4079;
  --accent:   #2563eb;
  --accent-light: #60a5fa;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --bg:        #ffffff;
  --bg-alt:    #f6f8fb;

  --shadow-sm: 0 1px 2px rgba(10,31,61,.06);
  --shadow-md: 0 4px 14px rgba(10,31,61,.08);
  --shadow-lg: 0 16px 40px rgba(10,31,61,.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1120px;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  --header-h: 76px;
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0; }

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

.pc-only { display: inline; }
@media (max-width: 768px) {
  .pc-only { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--gray-200);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-800);
}
.brand:hover { color: var(--navy-800); opacity: .85; }
.brand-mark { display: inline-flex; }
.brand-mark svg { display: block; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-jp {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--navy-800);
}
.brand-en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  padding: 8px 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  background: var(--navy-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 24px;
  }
  .primary-nav li { width: 100%; }
  .primary-nav a {
    display: block;
    padding: 18px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-200);
  }
  .primary-nav .nav-cta {
    margin-top: 16px;
    text-align: center;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
}
.btn-ghost:hover {
  background: var(--navy-800);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(96,165,250,.25) 0%, transparent 60%);
  filter: blur(40px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
}
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--accent-light);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  margin-bottom: 28px;
}
.hero-title .accent {
  color: var(--accent-light);
  position: relative;
}
.hero-lead {
  font-size: 16px;
  line-height: 2;
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.hero-cta .btn-ghost:hover {
  background: #fff;
  color: var(--navy-800);
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px; height: 8px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Section base ---------- */
.section {
  padding: 120px 0;
}
.section-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--navy-800);
  margin-bottom: 16px;
  letter-spacing: .04em;
  position: relative;
  padding-bottom: 20px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title.light { color: #fff; }
.section-title.light::after { background: var(--accent-light); }
.section-desc {
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-desc.light { color: rgba(255,255,255,.75); }

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-desc { margin-bottom: 40px; }
}

/* ---------- About ---------- */
.section-about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  margin-top: 32px;
}
.about-statement {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.8;
  font-weight: 700;
  color: var(--navy-800);
}
.about-statement strong {
  color: var(--accent);
  font-weight: 700;
}
.about-body p {
  color: var(--gray-700);
  margin-bottom: 20px;
  font-size: 15.5px;
}
.about-body p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Services ---------- */
.section-services { background: var(--bg-alt); }
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-title {
  font-size: 20px;
  color: var(--navy-800);
  margin-bottom: 14px;
}
.service-text {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* ---------- Strengths ---------- */
.section-strengths {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-strengths::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.section-strengths > .container { position: relative; z-index: 1; }
.strength-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.strength-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.strength-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(96,165,250,.4);
  transform: translateY(-4px);
}
.strength-num {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--accent-light);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}
.strength-title {
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}
.strength-text {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .strength-list { grid-template-columns: 1fr; }
}

/* ---------- Company ---------- */
.section-company { background: var(--bg); }
.company-table-wrap {
  margin-top: 32px;
  border-top: 2px solid var(--navy-800);
  border-bottom: 1px solid var(--gray-200);
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  text-align: left;
  vertical-align: top;
  padding: 24px 8px;
  border-bottom: 1px solid var(--gray-200);
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: 0; }
.company-table th {
  width: 200px;
  color: var(--navy-800);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}
.company-table td {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.9;
}
.company-table .muted {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: .12em;
}
.company-table a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 12px 8px;
  }
  .company-table th { padding-bottom: 4px; }
  .company-table td { padding-top: 0; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--bg-alt);
  text-align: center;
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-contact .section-title { display: inline-block; }
.section-contact .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.contact-lead {
  color: var(--gray-600);
  font-size: 16px;
  margin: 16px 0 40px;
  line-height: 2;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-md);
}
.contact-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.contact-mail {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 12px;
  word-break: break-all;
}
.contact-mail:hover { color: var(--accent); }
.contact-note {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.footer-brand .brand-jp {
  display: block;
  color: #fff;
  font-size: 17px;
  margin-bottom: 4px;
}
.footer-brand .brand-en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer-addr {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: flex-end;
}
.footer-nav a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
}
.footer-nav a:hover { color: #fff; }
.copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav ul { justify-content: flex-start; }
}

/* ---------- Reveal animation (optional, JS adds .is-visible) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   ADDITIONAL STYLES: Hero visual, Message, Fields, Process, FAQ
   ========================================================= */

/* ---------- Hero visual (right column) ---------- */
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 120px 24px 140px;
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; padding: 100px 24px 120px; }
}

.hero-text { position: relative; z-index: 2; }
.hero-meta {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.1;
}
.hero-meta-num small { font-size: 16px; margin-left: 2px; }
.hero-meta-label {
  font-size: 12px;
  letter-spacing: .15em;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  margin-left: auto;
  width: 100%;
}
@media (max-width: 1024px) {
  .hero-visual { margin: 0 auto; max-width: 380px; }
}
.hero-image-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.1);
}
.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,31,61,.35) 100%);
}
.hero-image-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-card {
  position: absolute;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-800);
}
.hero-card-1 { left: -32px; top: 18%; animation: floatY 6s ease-in-out infinite; }
.hero-card-2 { right: -28px; bottom: 14%; animation: floatY 6s ease-in-out infinite 1.5s; }
@media (max-width: 600px) {
  .hero-card-1 { left: 8px; }
  .hero-card-2 { right: 8px; }
}
.hero-card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}
.hero-card-dot.dot-blue { background: var(--accent-light); box-shadow: 0 0 0 4px rgba(96,165,250,.22); }
.hero-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.hero-card-text {
  font-size: 11px;
  color: var(--gray-600);
  margin: 2px 0 0;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
.orb-1 { width: 280px; height: 280px; background: #2563eb; left: -80px; top: 40%; }
.orb-2 { width: 200px; height: 200px; background: #60a5fa; right: 10%; bottom: 10%; opacity: .25; }
.orb-3 { width: 180px; height: 180px; background: #1e40af; left: 30%; top: -40px; opacity: .3; }

/* eyebrow on dark sections */
.section-eyebrow.light { color: var(--accent-light); }

/* ---------- About: image side ---------- */
.about-grid {
  grid-template-columns: 1.1fr 1fr !important;
  gap: 64px !important;
}
.about-text { display: flex; flex-direction: column; gap: 24px; }
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.about-image-main {
  position: absolute;
  width: 78%;
  height: 70%;
  top: 0; right: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-main img { width: 100%; height: 100%; object-fit: cover; }
.about-image-sub {
  position: absolute;
  width: 56%;
  height: 42%;
  left: 0;
  bottom: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.about-image-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
.about-badge-num {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(255,255,255,.7);
}
.about-badge-year {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .about-visual { aspect-ratio: 5 / 4; max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ---------- Message section ---------- */
.section-message {
  background: linear-gradient(135deg, #0a1f3d 0%, #1d4079 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-message::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(96,165,250,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37,99,235,.12) 0%, transparent 50%);
  pointer-events: none;
}
.section-message > .container { position: relative; z-index: 1; }
.message-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  margin-top: 32px;
  align-items: center;
}
.message-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.message-visual img { width: 100%; height: 100%; object-fit: cover; }
.message-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,61,.1) 0%, rgba(10,31,61,.5) 100%);
}
.message-quote-mark {
  position: absolute;
  font-family: "Noto Serif JP", serif;
  font-size: 200px;
  line-height: 1;
  color: var(--accent-light);
  top: -10px;
  left: 20px;
  z-index: 2;
  opacity: .9;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.message-body { padding: 8px 0; }
.message-lead {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.7;
  font-weight: 500;
  color: #fff;
  margin-bottom: 32px;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--accent-light);
}
.message-text {
  color: rgba(255,255,255,.85);
  font-size: 15.5px;
  line-height: 2;
  margin-bottom: 18px;
}
.message-sign {
  margin-top: 36px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}
.sign-name {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-left: 8px;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .message-grid { grid-template-columns: 1fr; gap: 40px; }
  .message-visual { aspect-ratio: 5 / 4; max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ---------- Services: bullet list ---------- */
.service-list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-300);
}
.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 2;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 2px;
  background: var(--accent);
}

/* ---------- Fields section ---------- */
.section-fields { background: var(--bg); }
.fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.field-item {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.field-item:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: #fff;
  color: var(--navy-800);
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--gray-200);
}
.field-item:hover .field-icon {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.field-item h3 {
  font-size: 17px;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.field-item p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-600);
}

@media (max-width: 900px) { .fields-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fields-grid { grid-template-columns: 1fr; } }

/* ---------- Process section ---------- */
.section-process { background: var(--bg-alt); }
.process-list {
  margin-top: 16px;
  position: relative;
  counter-reset: step;
}
.process-list::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--gray-300) 100%);
}
.process-step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  position: relative;
  padding: 28px 0;
}
.process-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
  padding-left: 60px;
  align-self: center;
  position: relative;
}
.process-num::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.process-content {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.process-step:hover .process-content {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.process-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.process-content h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 19px;
  color: var(--navy-800);
  margin-bottom: 4px;
  align-self: center;
}
.process-content p {
  grid-column: 2;
  grid-row: 2;
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .process-list::before { left: 14px; }
  .process-step { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .process-num { padding-left: 36px; align-self: start; }
  .process-num::before { left: 6px; }
  .process-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 12px;
    column-gap: 0;
    padding: 24px;
  }
  .process-icon { grid-column: 1; grid-row: 1; width: 48px; height: 48px; }
  .process-content h3 { grid-column: 1; grid-row: 2; }
  .process-content p  { grid-column: 1; grid-row: 3; }
}

/* ---------- FAQ section ---------- */
.section-faq { background: var(--bg); }
.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.is-open {
  border-color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 22px 28px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.6;
  transition: background .2s ease;
}
.faq-q:hover { background: rgba(37,99,235,.04); }
.faq-q-mark {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-q-icon {
  position: relative;
  width: 16px; height: 16px;
  justify-self: end;
}
.faq-q-icon::before,
.faq-q-icon::after {
  content: "";
  position: absolute;
  background: var(--navy-800);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}
.faq-q-icon::before { width: 16px; height: 2px; }
.faq-q-icon::after { width: 2px; height: 16px; }
.faq-item.is-open .faq-q-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > * {
  overflow: hidden;
}
.faq-a {
  padding: 0 28px;
  border-top: 0;
}
.faq-item.is-open .faq-a {
  border-top: 1px solid var(--gray-200);
  padding: 0 28px;
}
.faq-a-mark {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 14px;
  vertical-align: top;
}
.faq-a p {
  display: inline;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--gray-700);
}
.faq-a > .faq-a-mark,
.faq-a > p {
  padding: 0;
  margin: 0;
}
.faq-item .faq-a {
  padding: 0 28px;
}
.faq-item.is-open .faq-a {
  padding: 24px 28px 28px;
}

@media (max-width: 600px) {
  .faq-q { padding: 18px 20px; grid-template-columns: 30px 1fr 20px; gap: 12px; font-size: 15px; }
  .faq-q-mark { width: 28px; height: 28px; font-size: 15px; }
  .faq-item.is-open .faq-a { padding: 20px; }
}

/* ---------- mail link (zenkaku, anti-spam) ---------- */
.mail-link {
  letter-spacing: .04em;
  user-select: all;
}
.mail-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: .02em;
}

/* button with icon */
.btn .btn-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.btn-label { display: inline-block; vertical-align: middle; }

/* copy status text */
.copy-status {
  margin-top: 14px;
  min-height: 22px;
  font-size: 13px;
  letter-spacing: .04em;
  transition: color .2s ease;
  color: transparent;
}
.copy-status.is-success { color: #047857; }
.copy-status.is-error   { color: #b91c1c; }

/* ---------- Footer mail ---------- */
.footer-mail {
  margin-top: 12px;
  font-size: 14px;
}
.footer-mail a { color: rgba(255,255,255,.85); }
.footer-mail a:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   WEB DESIGN SECTION + Footer Credit
   ========================================================= */

.section-webdesign {
  background: linear-gradient(135deg, #0a1f3d 0%, #143256 50%, #1d4079 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-webdesign::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.section-webdesign::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(96,165,250,.18) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.webdesign-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.webdesign-text { padding: 8px 0; }
.webdesign-lead {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.7;
  font-weight: 500;
  color: #fff;
  margin: 16px 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--accent-light);
}
.webdesign-text-body {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
}
.webdesign-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin: 28px 0 36px;
  padding: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
}
.webdesign-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
}
.wf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

/* light variant button (used on dark bg) */
.btn-light {
  background: #fff;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-light:hover {
  background: var(--accent-light);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* PC browser mockup */
.webdesign-visual {
  position: relative;
  perspective: 1200px;
}
.mockup {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(2deg);
  transform-origin: center;
  border: 1px solid rgba(255,255,255,.1);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #e5e7eb;
  border-bottom: 1px solid #d1d5db;
}
.mockup-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mockup-dot.d-r { background: #f87171; }
.mockup-dot.d-y { background: #fbbf24; }
.mockup-dot.d-g { background: #34d399; }
.mockup-url {
  margin-left: 14px;
  font-family: var(--font-en);
  font-size: 11px;
  color: #6b7280;
  background: #fff;
  padding: 3px 12px;
  border-radius: 10px;
  letter-spacing: .04em;
  flex: 1;
  text-align: center;
  max-width: 220px;
}
.mockup-screen {
  background: linear-gradient(135deg, #0a1f3d 0%, #143256 50%, #1d4079 100%);
  padding: 28px 24px;
  min-height: 280px;
  position: relative;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(135deg, #0a1f3d 0%, #143256 50%, #1d4079 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
.mockup-hero { padding: 8px 4px 16px; }
.mockup-eyebrow {
  width: 100px; height: 6px;
  background: var(--accent-light);
  border-radius: 3px;
  margin-bottom: 12px;
  opacity: .9;
}
.mockup-headline { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mockup-line {
  height: 12px;
  background: rgba(255,255,255,.85);
  border-radius: 3px;
}
.mockup-line.w90 { width: 90%; }
.mockup-line.w70 { width: 70%; }
.mockup-buttons { display: flex; gap: 8px; margin-top: 12px; }
.mockup-btn {
  width: 80px; height: 22px;
  background: var(--accent);
  border-radius: 4px;
}
.mockup-btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.6);
}
.mockup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.mockup-card {
  height: 56px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
}

/* "Designed & Built In-House" stamp */
.webdesign-stamp {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(37,99,235,.5);
  border: 4px solid #0d2645;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-align: center;
  transform: rotate(-8deg);
  animation: stampSpin 14s linear infinite;
}
.webdesign-stamp span { display: block; }
@keyframes stampSpin {
  0%   { transform: rotate(-8deg); }
  50%  { transform: rotate(2deg); }
  100% { transform: rotate(-8deg); }
}

@media (max-width: 1024px) {
  .webdesign-grid { grid-template-columns: 1fr; gap: 64px; }
  .webdesign-visual { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .webdesign-features { grid-template-columns: 1fr; padding: 20px; }
  .mockup { transform: none; }
  .webdesign-stamp { width: 100px; height: 100px; font-size: 11px; bottom: -16px; left: -10px; }
}

/* ---------- Footer credit (Designed & Built In-House) ---------- */
.footer-credit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  align-self: center;
  margin-top: 16px;
  padding: 8px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(96,165,250,.4);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.85);
}
.credit-mark {
  display: inline-flex;
  color: var(--accent-light);
}
@media (max-width: 768px) {
  .footer-credit { margin-top: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
