/* ==============================
   Variables
============================== */
:root {
  --gold:        #C9A96E;
  --gold-light:  #DFC08A;
  --gold-dark:   #A8844E;
  --dark:        #1C1A17;
  --dark-mid:    #2D2A25;
  --text:        #3D3A35;
  --text-muted:  #7A7570;
  --bg:          #FFFFFF;
  --bg-warm:     #FAF8F5;
  --bg-cream:    #F2EDE5;
  --border:      #E4DDD3;
  --shadow:      0 2px 20px rgba(28,26,23,.08);
  --shadow-md:   0 8px 32px rgba(28,26,23,.12);
  --radius:      6px;
  --transition:  all .3s ease;
}

/* ==============================
   Reset & Base
============================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }

/* ==============================
   Utility
============================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 6rem 0; }

.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--dark);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.heading-center { text-align: center; }

.gold-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 2rem;
}
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ==============================
   Buttons
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,169,110,.35);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark-mid);
  border-color: var(--dark-mid);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ==============================
   Header
============================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(28,26,23,.96);
  backdrop-filter: blur(8px);
  padding: .8rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 48px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-link {
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .05em;
  transition: color .3s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  padding: .55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-cta:hover { background: var(--gold-dark); color: var(--dark) !important; }
.nav-customer { color: #fff; }
.nav-customer:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* ==============================
   Hero
============================== */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .08;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-en {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-title span { color: var(--gold); }
.hero-desc {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 1;
}
.hero-scroll span {
  font-size: .65rem;
  letter-spacing: .15em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ==============================
   Page Hero (inner pages)
============================== */
.page-hero {
  background: var(--dark);
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem,4vw,2.8rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: .25rem;
}
.page-hero .en {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .75rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color .3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: .6rem; }

/* ==============================
   Services (index)
============================== */
.services { background: var(--bg-warm); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.s-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.s-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.s-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.s-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle at 70% 30%, var(--gold) 0%, transparent 60%);
  transition: opacity .3s;
}
.s-card:hover .s-card-img::before { opacity: .22; }
.s-card-img i {
  font-size: 4.5rem;
  position: relative;
  z-index: 1;
  transition: transform .35s ease;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}
.s-card:hover .s-card-img i { transform: scale(1.08) translateY(-4px); }

/* card color themes */
.s-card-img.theme-pc       { background: linear-gradient(140deg, #1a2540 0%, #243050 100%); }
.s-card-img.theme-pc i     { color: #7eb8f7; }
.s-card-img.theme-kit      { background: linear-gradient(140deg, #1a2a20 0%, #223328 100%); }
.s-card-img.theme-kit i    { color: #6fcf97; }
.s-card-img.theme-dev      { background: linear-gradient(140deg, #1a1428 0%, #251c38 100%); }
.s-card-img.theme-dev i    { color: #c084fc; }

/* SVG illustration in cards */
.s-card-img svg {
  width: 140px;
  height: 95px;
  position: relative;
  z-index: 1;
  transition: transform .35s ease;
  overflow: visible;
}
.s-card:hover .s-card-img svg { transform: scale(1.06) translateY(-5px); }
.s-card-body { padding: 1.5rem; }
.s-card-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.s-card h3 {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: .6rem;
  line-height: 1.4;
}
.s-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.services-foot { text-align: center; margin-top: 2.5rem; }

/* ==============================
   About (index)
============================== */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  transform: translate(12px, 12px);
  z-index: -1;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.about-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ==============================
   CTA Banner
============================== */
.cta-banner {
  background: var(--gold);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--dark);
  font-weight: 800;
  margin-bottom: .75rem;
}
.cta-banner p {
  color: rgba(28,26,23,.7);
  margin-bottom: 2rem;
  font-size: .95rem;
}

/* ==============================
   Company Profile
============================== */
.profile { background: var(--bg-warm); }
.profile-inner { max-width: 820px; margin: 0 auto; }
.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.profile-table tr { border-bottom: 1px solid var(--border); }
.profile-table tr:last-child { border-bottom: none; }
.profile-table th {
  width: 30%;
  padding: 1.1rem 1.5rem;
  background: var(--bg-cream);
  color: var(--dark-mid);
  font-weight: 700;
  font-size: .875rem;
  text-align: left;
  border-right: 1px solid var(--border);
  vertical-align: top;
}
.profile-table td {
  padding: 1.1rem 1.5rem;
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
}

/* ==============================
   Mission (about page)
============================== */
.mission { background: var(--dark); }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.m-card {
  border: 1px solid rgba(201,169,110,.25);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: var(--transition);
}
.m-card:hover {
  background: rgba(201,169,110,.07);
  border-color: var(--gold);
}
.m-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.m-card h3 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.m-card p  { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.8; }

/* ==============================
   Service Detail (service.html)
============================== */
.svc-list { background: var(--bg); }
.svc-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: 5rem;
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}
.svc-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.svc-item.reverse .svc-img { order: 2; }
.svc-item.reverse .svc-body { order: 1; }
.svc-img {
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-img img { width: 100%; height: 320px; object-fit: cover; }
.svc-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--bg-cream);
  line-height: 1;
  margin-bottom: .25rem;
  font-variant-numeric: tabular-nums;
}
.svc-body h2 { font-size: 1.5rem; color: var(--dark); margin-bottom: 1rem; line-height: 1.35; }
.svc-body p  { color: var(--text-muted); font-size: .9rem; line-height: 1.9; margin-bottom: 1.25rem; }
.svc-features { display: flex; flex-direction: column; gap: .5rem; }
.svc-feat {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: var(--text);
}
.svc-feat::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23C9A96E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ==============================
   Contact
============================== */
.contact { background: var(--bg-warm); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.contact-sidebar {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 2.25rem;
  position: sticky;
  top: 90px;
}
.contact-sidebar h3 { color: var(--gold); font-size: 1rem; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(201,169,110,.2); }
.c-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.25rem; }
.c-item:last-child { margin-bottom: 0; }
.c-icon { color: var(--gold); font-size: .95rem; margin-top: .15rem; flex-shrink: 0; }
.c-item strong { display: block; font-size: .7rem; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.c-item span { font-size: .875rem; color: rgba(255,255,255,.75); line-height: 1.6; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--dark-mid);
  margin-bottom: .4rem;
  letter-spacing: .03em;
}
.form-label .req { color: var(--gold); margin-left: .3rem; font-size: .7rem; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-warm);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); background: var(--bg); box-shadow: 0 0 0 3px rgba(201,169,110,.12); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%;
  padding: .95rem;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: .04em;
}
.btn-submit:hover { background: var(--gold-dark); transform: translateY(-1px); }
.form-msg {
  display: none;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  margin-top: .9rem;
  font-size: .875rem;
}
.form-msg.ok  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.form-msg.err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.form-control.input-error { border-color: #dc2626; background: #fff8f8; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
label.input-error { color: #dc2626; }
.field-error { display: block; margin-top: .35rem; font-size: .78rem; color: #dc2626; }

/* ==============================
   Privacy
============================== */
.privacy-wrap { max-width: 820px; margin: 0 auto; padding: 5rem 1.5rem; }
.privacy-wrap h2 { font-size: 1.15rem; color: var(--dark); margin: 2.25rem 0 .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); font-weight: 700; }
.privacy-wrap p  { color: var(--text-muted); line-height: 1.9; margin-bottom: 1rem; font-size: .92rem; }
.privacy-wrap ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-muted); font-size: .92rem; }
.privacy-wrap li { margin-bottom: .4rem; line-height: 1.75; }

/* ==============================
   Footer
============================== */
.footer { background: var(--dark-mid); }
.footer-top {
  padding: 4rem 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}
.footer-brand { flex: 0 0 auto; }
.footer-brand .logo img { height: 44px; margin-bottom: 1.5rem; display: block; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.85; }
.footer-menu { margin-left: auto; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .85rem; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-info-list { display: flex; flex-direction: column; gap: .7rem; }
.footer-info-list li { display: flex; gap: .65rem; font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.6; }
.footer-info-list i { color: var(--gold); margin-top: .15rem; flex-shrink: 0; }
.footer-bottom {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.3); transition: color .3s; }
.footer-bottom a:hover { color: var(--gold); }

/* ==============================
   Animations
============================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity .8s ease; }
.fade-in.visible { opacity: 1; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* ==============================
   Responsive
============================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-wrap: wrap; }
}

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

  .nav-list {
    position: fixed;
    inset: 0 -100% 0 auto;
    width: 260px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .4s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,.4);
    z-index: 1050;
  }
  .nav-list.open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-btns { flex-direction: column; }
  .about-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .about-img::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .mission-grid  { grid-template-columns: 1fr; }
  .svc-item { grid-template-columns: 1fr; gap: 2rem; }
  .svc-item.reverse .svc-img  { order: 0; }
  .svc-item.reverse .svc-body { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-menu { margin-left: 0; }
  .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .profile-table th { width: 38%; font-size: .82rem; padding: .9rem 1rem; }
  .profile-table td { font-size: .82rem; padding: .9rem 1rem; }
}
