/* =====================
   Custom Properties
===================== */
:root {
  --navy:       #0C1C33;
  --navy-mid:   #193258;
  --accent:     #BD9060;
  --accent-sub: rgba(189, 144, 96, 0.12);
  --steel:      #7A9ABF;
  --bg:         #F8F8F6;
  --bg-alt:     #F1F2F4;
  --text:       #1C1C2E;
  --muted:      #6A7382;
  --border:     #D8DCE6;
  --white:      #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =====================
   Layout
===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section         { padding: 96px 0; }
.section--alt    { background: var(--bg-alt); }
.section--gray   { background: var(--bg-alt); } /* backward compat */

/* =====================
   Section Heading
===================== */
.section-heading {
  margin-bottom: 56px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.625rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* =====================
   Header
===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo img {
  height: 30px;
  width: auto;
}

.header__logo-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}

.nav__list {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav__item a {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav__item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav__item a:hover           { color: var(--navy); }
.nav__item a:hover::after    { width: 100%; }

.nav__item--cta a {
  background: var(--navy);
  color: var(--white);
  padding: 9px 24px;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.nav__item--cta a::after { display: none; }
.nav__item--cta a:hover  { background: var(--navy-mid); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================
   Hero
===================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 120px 0 108px;
  position: relative;
  overflow: hidden;
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Colour washes */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 85% 50%, rgba(189,144,96,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 5% 95%,  rgba(122,154,191,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.hero__catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.95);
}

.hero__catch span {
  color: var(--accent);
  font-weight: 400;
}

.hero__desc {
  font-size: 0.9375rem;
  color: rgba(195, 213, 230, 0.72);
  line-height: 2.05;
  margin-bottom: 44px;
  max-width: 520px;
}

/* Decorative vertical line */
.hero__deco {
  position: absolute;
  right: 13%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.hero__deco::before,
.hero__deco::after {
  content: '';
  display: block;
  width: 1px;
  height: 100px;
}

.hero__deco::before {
  background: linear-gradient(to bottom, transparent, rgba(189,144,96,0.45));
}

.hero__deco::after {
  background: linear-gradient(to bottom, rgba(189,144,96,0.45), transparent);
}

.hero__deco-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

/* =====================
   Buttons
===================== */
.btn {
  display: inline-block;
  padding: 13px 38px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--white);
  color: var(--navy);
}

.btn--primary:hover { background: #e8ecf2; }

.btn--outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  margin-left: 12px;
}

.btn--outline:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.55);
}

.btn--filled {
  background: var(--navy);
  color: var(--white);
  display: inline-block;
}

.btn--filled:hover { background: var(--navy-mid); }

/* =====================
   Business Cards (Top)
===================== */
.business-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: cards;
}

.business-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 36px 28px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  counter-increment: cards;
}

.business-card:hover {
  box-shadow: 0 14px 44px rgba(12,28,51,0.09);
  transform: translateY(-3px);
}

/* Large watermark number via CSS counter */
.business-card::after {
  content: counter(cards, decimal-leading-zero);
  position: absolute;
  right: -8px;
  bottom: -24px;
  font-size: 100px;
  font-weight: 900;
  color: rgba(189,144,96,0.07);
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.business-card__number {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid rgba(189,144,96,0.4);
  padding: 2px 9px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.business-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.business-card__body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.95;
  position: relative;
  z-index: 1;
}

.business-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  font-size: 0.8125rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(12,28,51,0.2);
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, gap 0.2s;
}

.business-card:hover .business-card__link {
  border-color: var(--navy);
  gap: 8px;
}

/* =====================
   About (top page)
===================== */
.about-text {
  max-width: 600px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 2.1;
  margin-bottom: 36px;
}

/* =====================
   CTA Section
===================== */
.cta {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.cta__label::before,
.cta__label::after {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.cta__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.cta__text {
  color: rgba(195, 213, 230, 0.7);
  margin-bottom: 36px;
  font-size: 0.9375rem;
  line-height: 2;
}

.btn--cta {
  background: var(--white);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 15px 52px;
  letter-spacing: 0.12em;
}

.btn--cta:hover { background: #e8ecf2; }

/* =====================
   Footer
===================== */
.footer {
  background: #090F1A;
  color: rgba(175, 192, 210, 0.6);
  padding: 56px 0 28px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__logo img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.footer__logo-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
}

.footer__tagline {
  font-size: 0.8125rem;
  line-height: 1.8;
  max-width: 240px;
}

.footer__nav { display: flex; gap: 52px; }

.footer__nav-title {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__nav-list a {
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer__nav-list a:hover { color: rgba(255,255,255,0.7); }

.footer__bottom {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.18);
}

/* =====================
   Page Hero (inner pages)
===================== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hero__label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.page-hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.95);
}

/* =====================
   Company Table
===================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tbody tr:first-child {
  border-top: 1px solid var(--border);
}

.company-table tr {
  border-bottom: 1px solid var(--border);
}

.company-table th {
  width: 160px;
  padding: 22px 20px 22px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.company-table td {
  padding: 22px 0;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.9;
}

/* =====================
   Philosophy (company page)
===================== */
.philosophy-quote {
  display: flex;
  align-items: stretch;
  margin-bottom: 24px;
}

.philosophy-quote__bar {
  width: 2px;
  background: var(--accent);
  margin-right: 24px;
  flex-shrink: 0;
}

.philosophy-quote__text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  line-height: 1.75;
}

/* =====================
   Business Detail
===================== */
.business-list {
  display: flex;
  flex-direction: column;
}

.business-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.business-item:first-child {
  border-top: 1px solid var(--border);
}

.business-item__number {
  font-size: 3.25rem;
  font-weight: 900;
  color: rgba(189,144,96,0.18);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.business-item__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.business-item__divider {
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin: 18px 0;
}

.business-item__body {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 2.1;
  margin-bottom: 24px;
}

.business-item__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.business-item__point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: #555;
}

.business-item__point::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--accent);
  margin-top: 11px;
  flex-shrink: 0;
}

/* =====================
   Contact Form
===================== */
.contact-form {
  max-width: 660px;
  margin: 0 auto;
}

.form-group { margin-bottom: 28px; }

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-required {
  font-size: 0.625rem;
  background: var(--navy);
  color: var(--white);
  padding: 2px 7px;
  letter-spacing: 0.05em;
}

.form-optional {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12,28,51,0.07);
}

.form-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.75;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #bbb; }

/* Custom select arrow */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236A7382' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.95;
  padding: 18px 22px;
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
}

.btn--submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn--submit:hover { background: var(--navy-mid); }

/* ハニーポット（スパム対策: 視覚的に完全非表示） */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* フォームエラーメッセージ */
.form-error-note {
  background: #FEF2F2;
  border-left: 2px solid #C53030;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #9B2C2C;
  line-height: 1.85;
}

/* =====================
   Responsive
===================== */
@media (max-width: 900px) {
  .business-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .business-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 48px 0;
  }

  .footer__inner { flex-direction: column; }
  .footer__nav   { gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    padding: 12px 24px 20px;
  }

  .nav.is-open { display: block; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .nav__item {
    width: 100%;
    border-bottom: 1px solid var(--bg-alt);
  }

  .nav__item a {
    display: block;
    padding: 14px 0;
    font-size: 0.9375rem;
  }

  .nav__item--cta           { border-bottom: none; margin-top: 12px; }
  .nav__item--cta a         { display: block; text-align: center; padding: 14px; }

  .hamburger { display: flex; }

  .hero { padding: 72px 0 64px; }
  .hero__deco { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }

  .hero__catch { font-size: 1.625rem; }

  .btn--outline {
    display: block;
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
  }

  .company-table         { display: block; }
  .company-table tbody   { display: block; }
  .company-table tr      { display: block; padding: 16px 0; }

  .company-table th,
  .company-table td      { display: block; padding: 0; width: 100%; }

  .company-table th {
    margin-bottom: 4px;
    font-size: 0.75rem;
    color: var(--accent);
  }

  .footer__nav { flex-wrap: wrap; gap: 24px; }
}
