/* ===================================
   IZANOW - Style Sheet
   Color: Navy (#1B2A4A) + Orange (#E8802A)
   =================================== */

:root {
  --navy: #1B2A4A;
  --navy-light: #2C3E6B;
  --navy-dark: #101D35;
  --orange: #E8802A;
  --orange-light: #F5A623;
  --orange-pale: #FFF5EB;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #868E96;
  --gray-700: #495057;
  --gray-900: #212529;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-ja);
  color: var(--gray-900);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.sp-only {
  display: none;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

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

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

.nav-list {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--transition);
}

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

.nav-link:hover {
  color: var(--orange);
}

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

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  border-radius: 2px;
}

.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;
  background:
    linear-gradient(135deg, rgba(27,42,74,0.82) 0%, rgba(27,42,74,0.6) 100%),
    url('https://images.unsplash.com/photo-1536098561742-ca998e48cbcc?w=1600&q=80') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(27,42,74,0.3) 100%);
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-title .accent {
  color: var(--orange-light);
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  background: var(--orange);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(232,128,42,0.4);
}

.hero-cta:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,128,42,0.5);
}

/* ===== Section Common ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ===== About ===== */
.about {
  background: var(--gray-50);
}

.about-text {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.about-mission {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: 12px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.value-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--orange-pale);
  border-radius: 50%;
  color: var(--orange);
  margin-bottom: 16px;
}

.value-item h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== Service ===== */
.service-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card-icon.education {
  background: linear-gradient(135deg, #E8802A20, #E8802A10);
  color: var(--orange);
}

.service-card-icon.community {
  background: linear-gradient(135deg, #1B2A4A20, #1B2A4A10);
  color: var(--navy);
}

.service-card-icon.life {
  background: linear-gradient(135deg, #2C8C6B20, #2C8C6B10);
  color: #2C8C6B;
}

.service-card-title {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-list {
  flex: 1;
}

.service-list li {
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.6;
}

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

.service-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  transition: var(--transition);
}

.service-card:hover .service-card-link {
  transform: translateX(4px);
}

.service-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== News ===== */
.news {
  background: var(--white);
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-200);
}

.news-item {
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.news-item:hover {
  background: var(--gray-50);
}

.news-item a {
  display: grid;
  grid-template-columns: 120px 110px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 16px;
  color: inherit;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.news-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  justify-self: start;
}

.news-title {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

.news-more-link {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.news-more-link:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Works ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.work-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-img img {
  transform: scale(1.06);
}

.work-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.work-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
}

.work-tag.navy {
  background: #E9ECEF;
  color: var(--navy);
}

.work-date {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-left: auto;
}

.work-card-title {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}

.work-card-desc {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* News page list */
.news-page-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-200);
}

/* ===== Greetings ===== */
.greetings {
  background: var(--gray-50);
}

.greetings-content {
  max-width: 720px;
  margin: 0 auto;
}

.greetings-body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--orange);
}

.greetings-body p {
  margin-bottom: 20px;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.greetings-lead {
  font-size: 1.3rem !important;
  font-weight: 700;
  color: var(--navy) !important;
  line-height: 1.8;
  margin-bottom: 28px !important;
}

.greetings-highlight {
  font-weight: 500;
  color: var(--navy) !important;
  background: var(--orange-pale);
  padding: 20px 24px;
  border-radius: 8px;
  line-height: 2;
}

.greetings-sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.sign-company {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.sign-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
}

/* ===== Contact ===== */
.contact {
  background: var(--white);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

.required {
  color: var(--orange);
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-ja);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,128,42,0.15);
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-mission {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
}

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

/* ===== Fade In Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Sub Page Common ===== */
.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-top: 72px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.8) 0%, rgba(27,42,74,0.55) 100%);
}

.page-hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 60px 24px;
}

.page-hero-content .section-label {
  color: var(--orange-light);
}

.page-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero-content p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Sub page content */
.sub-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.sub-intro p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 2;
}

.detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-card:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-card.reverse {
  direction: rtl;
}

.detail-card.reverse > * {
  direction: ltr;
}

.detail-card-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail-card-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.detail-card-body h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.detail-card-body h3 .num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  margin-right: 10px;
}

.detail-card-body p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 16px;
}

.detail-card-body ul {
  list-style: none;
}

.detail-card-body ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.detail-card-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.back-link:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.sub-cta {
  text-align: center;
  padding: 60px 0 0;
}

.sub-cta p {
  margin-bottom: 20px;
  color: var(--gray-700);
}

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

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .greetings-body {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }

  .detail-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-card.reverse {
    direction: ltr;
  }

  .page-hero {
    min-height: 300px;
  }

  .news-item a {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 12px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-list {
    gap: 24px;
  }
}

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

  .hero-sub {
    font-size: 0.9rem;
  }

  .service-card-body {
    padding: 20px 16px;
  }
}
