/* ============================================================
   style.css — ＦＮＰ制作事務所
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --navy:      #1a2744;
  --navy-mid:  #233058;
  --navy-lt:   #2e3f6e;
  --orange:    #e87722;
  --orange-lt: #f59540;
  --white:     #ffffff;
  --gray-bg:   #f4f4f2;
  --gray-mid:  #e6e6e3;
  --gray-txt:  #666;
  --gray-mute: #999;
  --nav-h:     62px;
  --ease:      0.2s ease;
  --pad:       80px 40px;
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1060px; margin: 0 auto; width: 100%; }
.eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}
.sec-title {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}
.sec      { padding: var(--pad); }
.sec-gray { background: var(--gray-bg); }
.sec-navy { background: var(--navy); position: relative; }
.sec-navy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-lt), transparent);
}
.sec-navy .sec-title { color: var(--white); }
.sec-navy .eyebrow   { color: var(--orange-lt); }

/* ===== NAVBAR ===== */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 1000;
  transition: box-shadow var(--ease);
}
#nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.nav-in {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-btn {
  background: var(--orange);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  transition: background var(--ease);
}
.nav-btn:hover { background: var(--orange-lt); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 999;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.mob-nav.open { opacity: 1; transform: none; pointer-events: all; }
.mob-nav a {
  display: block;
  padding: 13px 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.04em;
}
.mob-nav a.mob-cta {
  background: var(--orange);
  color: var(--white);
  margin: 10px 16px 14px;
  border-radius: var(--r-sm);
  border: none;
  text-align: center;
  font-weight: 500;
}

/* ===== HERO ===== */
#hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 40px 64px;
  position: relative;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 52%;
  background: var(--navy-mid);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-in {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(232,119,34,0.15);
  border: 1px solid rgba(232,119,34,0.3);
  color: var(--orange-lt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 22px;
}
.hero-h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.hero-sub {
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-or {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 12px 26px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--ease);
}
.btn-or:hover { background: var(--orange-lt); }
.btn-wh {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.32);
  color: rgba(255,255,255,0.8);
  padding: 12px 26px;
  border-radius: var(--r-sm);
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: border-color var(--ease), color var(--ease);
}
.btn-wh:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }
.hero-tags { display: flex; flex-direction: column; gap: 10px; }
.hero-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid var(--orange);
  padding: 13px 18px;
  border-radius: var(--r-md);
  transition: background var(--ease);
}
.hero-tag:hover { background: rgba(255,255,255,0.08); }
.tag-ico {
  width: 34px; height: 34px;
  background: var(--navy-lt);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tag-ico svg {
  width: 17px; height: 17px;
  stroke: var(--orange);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tag-txt { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.83); }
.tag-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.3);
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ===== WORKS ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-mid);
  border: 1px solid var(--gray-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.work-card {
  background: var(--white);
  padding: 32px 26px;
  transition: background var(--ease);
}
.work-card:hover { background: #fafaf9; }
.work-ico {
  width: 46px; height: 46px;
  background: var(--navy);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.work-ico svg {
  width: 21px; height: 21px;
  stroke: var(--orange);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.work-cat {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 6px;
}
.work-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-mid);
}
.work-card ul { display: flex; flex-direction: column; gap: 8px; }
.work-card li {
  font-size: 13px;
  color: var(--gray-txt);
  padding-left: 13px;
  position: relative;
  line-height: 1.65;
}
.work-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 1px;
  background: var(--orange);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 48px;
  align-items: start;
}
.co-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.co-table tr { border-bottom: 1px solid var(--gray-mid); }
.co-table th {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding: 13px 0;
  width: 128px;
  vertical-align: top;
}
.co-table td { color: var(--gray-txt); padding: 13px 0; line-height: 1.8; }
.co-table td a { color: var(--orange); border-bottom: 1px solid rgba(232,119,34,0.3); }
.co-table td a:hover { border-color: var(--orange); }
.co-table small { display: block; font-size: 11px; color: var(--gray-mute); margin-top: 2px; }

/* access panel */
.access-panel { background: var(--navy); border-radius: var(--r-lg); overflow: hidden; }
.access-head {
  background: var(--navy-lt);
  padding: 13px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange-lt);
}
.access-body { padding: 22px; }
.a-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  align-items: flex-start;
}
.a-ico { flex-shrink: 0; margin-top: 2px; }
.a-ico svg { width: 14px; height: 14px; stroke: var(--orange); stroke-width: 1.8; fill: none; }
.a-div { height: 1px; background: rgba(255,255,255,0.07); margin: 16px 0; }
.tel-lbl { font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.38); }
.tel-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.access-cta {
  display: block;
  margin-top: 18px;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 11px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--ease);
}
.access-cta:hover { background: var(--orange-lt); }

/* map */
.map-wrap {
  margin-top: 40px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  height: 280px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ===== RECRUIT ===== */
.recruit-box {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  font-size: 14px;
  color: var(--gray-txt);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.c-intro h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.c-intro p  { font-size: 14px; color: var(--gray-txt); line-height: 1.85; }
.c-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
}
.c-tel svg { width: 18px; height: 18px; stroke: var(--orange); stroke-width: 2; fill: none; }
.privacy-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--gray-mute);
  line-height: 1.8;
}
.c-form { display: flex; flex-direction: column; gap: 14px; }
.f-grp { display: flex; flex-direction: column; gap: 5px; }
.f-grp label { font-size: 13px; font-weight: 700; color: var(--navy); }
.f-grp label .req { color: var(--orange); margin-left: 4px; font-size: 11px; }
.f-grp input,
.f-grp textarea {
  border: 1px solid var(--gray-mid);
  background: var(--white);
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.f-grp input:focus,
.f-grp textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.1);
}
.f-grp textarea { min-height: 110px; resize: vertical; }
.f-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: var(--r-sm);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--ease);
  width: 100%;
}
.f-submit:hover    { background: var(--orange-lt); }
.f-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.f-note { font-size: 12px; color: var(--gray-mute); }
.f-success,
.f-error {
  display: none;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
}
.f-success { background: #eafbf2; color: #1a7a4a; border: 1px solid #b0e8cd; }
.f-error   { background: #fff0f0; color: #a33232; border: 1px solid #f0b0b0; }

/* ===== FOOTER ===== */
footer { background: #0e1525; padding: 36px 40px; }
.foot-in {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-logo-wrap { display: flex; align-items: center; }
.foot-logo-img  { height: 28px; width: auto; filter: brightness(0) invert(0.7); }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.36);
  letter-spacing: 0.04em;
  transition: color var(--ease);
}
.foot-nav a:hover { color: rgba(255,255,255,0.65); }
.foot-copy { font-size: 11px; color: rgba(255,255,255,0.22); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  :root { --pad: 60px 28px; }
  .hero-in    { grid-template-columns: 1fr; gap: 36px; }
  .hero-shape { display: none; }
  #hero       { min-height: auto; padding-top: calc(var(--nav-h) + 44px); }
  .works-grid   { grid-template-columns: 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --pad: 52px 20px; --nav-h: 56px; }
  .nav-links, .nav-btn { display: none; }
  .hamburger { display: flex; }
  .mob-nav   { display: flex; }
  .nav-in    { padding: 0 20px; }
  .hero-h1   { font-size: 26px; }
  .hero-sub  { font-size: 13px; }
  .sec-title { font-size: 22px; }
  .foot-in   { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .map-wrap  { height: 220px; }
}
