/* ============================================
   ともに社労士事務所 - Style
   Color: White + Green#388E3C
   Font: Noto Sans JP
   ============================================ */

:root {
  --primary: #388E3C;
  --primary-dark: #2E7D32;
  --primary-light: #66BB6A;
  --primary-pale: #E8F5E9;
  --dark: #1A1A1A;
  --dark-light: #2D2D2D;
  --text: #444444;
  --text-light: #777777;
  --white: #FFFFFF;
  --off-white: #FAFCFA;
  --bg-light: #F2F7F2;
  --border: #D8E8D8;
  --font-main: 'Noto Sans JP', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-line {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

.section-desc {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 2;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 142, 60, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-full {
  width: 100%;
  text-align: center;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 10px 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header.scrolled .logo-text {
  color: var(--dark);
}

.header.scrolled .nav-link {
  color: var(--text);
}

.header.scrolled .nav-link:hover {
  color: var(--primary);
}

.header.scrolled .hamburger span {
  background: var(--dark);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.4s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

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

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 142, 60, 0.75) 0%, rgba(30, 80, 35, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-desc {
  font-size: 1rem;
  line-height: 2;
  opacity: 0.9;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: var(--white);
  animation: scrollAnim 2s ease infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollAnim {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 2;
}

.about-message {
  margin-top: 32px;
  padding: 24px;
  background: var(--primary-pale);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.message-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-style: italic;
}

.message-author {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Services */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  padding: 40px;
  background: var(--white);
  border-radius: 16px;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56, 142, 60, 0.1);
  border-color: var(--primary-light);
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--primary-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.service-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Strength */
.strength {
  background: var(--white);
}

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

.strength-item {
  text-align: center;
  padding: 32px 24px;
}

.strength-circle {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.strength-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.strength-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* Cases */
.cases {
  background: var(--bg-light);
}

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

.case-card {
  background: var(--white);
  padding: 36px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.case-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Numbers */
.numbers {
  background: var(--primary);
  padding: 80px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.number-item {
  color: var(--white);
}

.number-value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  display: inline;
}

.number-unit {
  font-size: 1rem;
  font-weight: 600;
}

.number-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Flow */
.flow {
  background: var(--white);
}

.flow-steps {
  max-width: 760px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.flow-step:last-child {
  border-bottom: none;
}

.flow-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 48px;
  line-height: 1;
}

.flow-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.flow-body p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* FAQ */
.faq {
  background: var(--bg-light);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-icon {
  min-width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.faq-icon::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 16px;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 2;
}

/* Company */
.company {
  background: var(--white);
}

.company-table-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

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

.company-table th {
  padding: 18px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  width: 160px;
  vertical-align: top;
}

.company-table td {
  padding: 18px 20px;
  font-size: 0.93rem;
  color: var(--text-light);
}

/* Contact */
.contact {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.contact-box {
  background: var(--white);
  padding: 28px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.contact-box h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-phone {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-email {
  font-size: 1.05rem;
  color: var(--primary);
}

.contact-hours {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-top: 4px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.required {
  color: var(--primary);
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.93rem;
  border: 1px solid var(--border);
  background: var(--off-white);
  color: var(--text);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo-text {
  color: var(--white);
}

.footer-desc {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

.footer-links h4 {
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary-light);
}

.footer-links a,
.footer-links p {
  display: block;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.5rem; }
  .cases-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 1.5rem; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px;
    gap: 20px;
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .nav.active { right: 0; }
  .nav.active .nav-link { color: var(--text); }
  .hamburger { display: flex; z-index: 1001; }

  .hero-title { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .number-value { font-size: 2.2rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .flow-step { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .btn { padding: 14px 28px; font-size: 0.9rem; }
}

/* Print */
@media print {
  .header, .hero-scroll, .hamburger { display: none; }
  .section { padding: 32px 0; }
}
