/* ==========================================================================
   Nexcel税理士法人 HP - style.css
   ========================================================================== */

:root {
  --color-primary: #0D6E38;
  --color-primary-dark: #094f28;
  --color-primary-light: #e6f2ec;
  --color-black: #1a1a1a;
  --color-gray: #555;
  --color-gray-light: #f5f5f5;
  --color-border: #e2e2e2;
  --color-white: #ffffff;
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --max-width: 1080px;
  --header-height: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--color-primary);
  text-decoration: none;
}

ul { margin: 0; padding: 0; list-style: none; }

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

.sp-only { display: none; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title-invert {
  color: var(--color-white);
}
.section-title-invert::after {
  background: var(--color-white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(13, 110, 56, .25);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-light); }

.btn-small {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-contact {
  background: var(--color-primary);
  color: var(--color-white);
  min-width: 240px;
}
.btn-contact:hover { background: var(--color-primary-dark); }
.btn-contact svg { width: 20px; height: 20px; }

.btn-contact-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-contact-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img { height: 48px; width: auto; }

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.global-nav a {
  color: var(--color-black);
  font-weight: 500;
  font-size: 15px;
}
.global-nav a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--color-primary-dark); }

/* ---------- MV ---------- */
.mv {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 55%, #062a17 100%);
  color: var(--color-white);
  padding: 88px 0 56px;
  text-align: center;
}

.mv-eyebrow {
  letter-spacing: .12em;
  font-size: 14px;
  opacity: .85;
  margin: 0 0 16px;
}

.mv-catch {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.5;
  margin: 0 0 24px;
}

.mv-lead {
  font-size: 16px;
  opacity: .92;
  margin: 0 0 36px;
}

.mv-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.mv-cta .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}
.mv-cta .btn-outline:hover { background: rgba(255,255,255,.12); }

.mv-members {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.mv-member { text-align: center; }

.mv-member-name {
  margin: 16px 0 2px;
  font-weight: 700;
  font-size: 17px;
}
.mv-member-role {
  margin: 0;
  font-size: 13px;
  opacity: .85;
}

/* ---------- Photo placeholder ---------- */
.photo-placeholder {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 3px solid rgba(255, 255, 255, .5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-fallback {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
}

.photo-placeholder-lg {
  width: 180px;
  height: 180px;
  background: var(--color-gray-light);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(13, 110, 56, .15);
}
.photo-placeholder-lg .photo-fallback {
  color: #999;
}

/* ---------- Strengths ---------- */
.strengths {
  padding: 80px 0;
  background: var(--color-white);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.strength-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.strength-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
  transform: translateY(-4px);
}

.strength-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.strength-icon svg { width: 30px; height: 30px; }

.strength-num {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
}

.strength-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.strength-desc {
  font-size: 14px;
  color: var(--color-gray);
  margin: 0;
}

.card-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5em;
}

/* ---------- Service ---------- */
.service {
  padding: 80px 0;
  background: var(--color-gray-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 32px 28px;
  border-top: 4px solid var(--color-primary);
}

.service-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--color-primary-dark);
}

.service-list li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  position: relative;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.service-more {
  text-align: center;
  margin: 48px 0 0;
  font-size: 14px;
  color: var(--color-gray);
}
.service-more .btn { margin-top: 16px; }

/* ---------- Profile ---------- */
.profile {
  padding: 80px 0;
}

.profile-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}
.profile-card:last-child { border-bottom: none; }

.profile-photo { flex: 0 0 auto; }

.profile-body { flex: 1; }

.profile-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
}
.profile-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  margin-left: 12px;
}

.profile-bio {
  font-size: 14px;
  color: var(--color-gray);
  margin: 0 0 20px;
}

.profile-strengths li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  margin-bottom: 10px;
}
.profile-strengths li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- About ---------- */
.about {
  padding: 80px 0;
  background: var(--color-gray-light);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
}
.about-table th,
.about-table td {
  padding: 18px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.about-table tr:last-child th,
.about-table tr:last-child td { border-bottom: none; }
.about-table th {
  width: 110px;
  color: var(--color-primary-dark);
  font-weight: 700;
  background: var(--color-primary-light);
}

.about-map iframe {
  border-radius: 12px;
  width: 100%;
}

/* ---------- Contact ---------- */
.contact {
  padding: 80px 0 100px;
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, #062a17 100%);
  color: var(--color-white);
  text-align: center;
}

.contact-lead {
  margin: 0 0 40px;
  opacity: .9;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.contact-form-wrap {
  background: var(--color-white);
  color: var(--color-black);
  border-radius: 16px;
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.contact-form-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}

.contact-form-note {
  font-size: 13px;
  color: var(--color-gray);
  text-align: center;
  margin: 0 0 24px;
}

.contact-form-embed iframe {
  width: 100%;
  border: none;
  display: block;
}

.contact-iframe {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 1050px;
  margin: 0 auto;
  border: 0;
}

.form-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
}

.form-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-note a:hover {
  opacity: 0.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: #ccc;
  padding: 48px 0 120px;
  font-size: 13px;
  text-align: center;
}

.footer-inner p { margin: 0 0 8px; }

.footer-logo-img {
  display: block;
  height: 44px;
  width: auto;
  margin: 0 auto 24px;
}

.footer-line a { color: #ccc; text-decoration: underline; }

.footer-links {
  margin-top: 16px !important;
}
.footer-links a {
  color: var(--color-white);
  font-weight: 500;
}

.footer-copyright {
  margin-top: 24px !important;
  color: #888;
  font-size: 12px;
}

/* ---------- Mobile fixed nav ---------- */
.mobile-fixed-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  box-shadow: 0 -4px 12px rgba(0,0,0,.12);
}

.mobile-fixed-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-white);
}
.mobile-fixed-btn svg { width: 20px; height: 20px; }

.mobile-fixed-btn-call { background: var(--color-primary); }
.mobile-fixed-btn-mail { background: var(--color-black); }

/* ---------- Header scrolled state (JS toggled) ---------- */
.site-header.is-scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .strengths-grid,
  .service-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
}

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

  .global-nav { display: none; }

  .mv { padding: 56px 0 40px; }
  .mv-catch { font-size: 32px; }
  .mv-members { gap: 32px; }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-strengths { text-align: left; }

  .photo-placeholder-lg {
    width: 140px;
    height: 140px;
  }

  .contact-form-wrap { padding: 24px; }

  .contact-iframe { height: 1200px; }

  .mobile-fixed-nav {
    display: flex;
  }

  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 480px) {
  .mv-catch { font-size: 26px; }
  .section-title { font-size: 22px; }
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .btn-contact { min-width: 0; }
}

/* ========================================
   プライバシーポリシーページ（privacy.html）
   ======================================== */

.legal-page {
  padding: 108px 24px 80px;
  background: #fff;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.9;
  color: #333;
}

.legal-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4em;
  letter-spacing: 0.05em;
}

.legal-org {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 3em;
}

.legal-lead {
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid #e5e5e5;
}

.legal-section {
  margin-bottom: 2.5em;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-left: 0.6em;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 0.8em;
}

.legal-section p {
  margin: 0;
}

.legal-list {
  margin: 1em 0 0;
  padding-left: 1.6em;
}

.legal-list li {
  margin-bottom: 0.5em;
}

/* お問い合わせ窓口 */
.legal-contact {
  margin: 1.2em 0 0;
  padding: 1.4em 1.6em;
  background: #f7f9f8;
  border-radius: 6px;
}

.legal-contact dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: #666;
  margin-top: 1em;
}

.legal-contact dt:first-child {
  margin-top: 0;
}

.legal-contact dd {
  margin: 0.2em 0 0;
}

.legal-contact a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-revised {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid #e5e5e5;
  text-align: right;
  font-size: 0.9rem;
  color: #666;
}

.legal-back {
  margin-top: 3em;
  text-align: center;
}

.legal-back a {
  display: inline-block;
  padding: 0.8em 2.4em;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.legal-back a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- モバイル ---------- */
@media (max-width: 768px) {
  .legal-page {
    padding: 90px 20px 60px;
  }
  .legal-title {
    font-size: 1.5rem;
  }
  .legal-org {
    margin-bottom: 2em;
  }
  .legal-lead {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
  }
  .legal-section {
    margin-bottom: 2em;
  }
  .legal-section h2 {
    font-size: 1.05rem;
  }
  .legal-contact {
    padding: 1.2em 1.2em;
  }
  .legal-contact dd {
    word-break: break-all;
  }
}