/* =============================================================
   BLUE CONTACT CORPORATE SITE — MAIN STYLESHEET
   Version: 1.0
   Design: Flat, Corporate, Trustworthy
   Primary: #003366  Base: #FFFFFF  Accent: #F9F9F9 / #F0F4F8 / #EAEAEA
============================================================= */

/* ---------------------------------------------------------------
   1. CSS RESET & BASE
--------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------------------------------------------------------------
   2. LAYOUT UTILITIES
--------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.container--narrow {
  max-width: 800px;
}

.container--accordion {
  max-width: 800px;
}

/* ---------------------------------------------------------------
   3. SECTION BASE
--------------------------------------------------------------- */
.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* Section Label (見出し) */
.section-label {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 60px;
  color: #003366;
}

.section-label--white {
  color: #ffffff;
}

.section-label--dark {
  color: #003366;
}

/* ---------------------------------------------------------------
   4. HEADER
--------------------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 51, 102, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

.site-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.site-logo img{
width:260px;
}

#site-nav {
  display: flex;
  align-items: center;
}

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

.nav-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.25s ease;
}

.nav-list a:hover {
  color: #ffffff;
}

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

.nav-contact-btn {
  background-color: #ffffff !important;
  color: #003366 !important;
  padding: 8px 20px;
  border-radius: 3px;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  transition: background-color 0.2s, opacity 0.2s !important;
}

.nav-contact-btn::after {
  display: none !important;
}

.nav-contact-btn:hover {
  opacity: 0.85;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 20px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------
   5. HERO SECTION
--------------------------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background-image: url('../images/FV-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 51, 102, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  width:100%;
  text-align:center;
}

.hero-catchcopy {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero-subcopy {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------------
   6. MISSION & VISION SECTION
--------------------------------------------------------------- */
.mission-section {
  background-color: #f9f9f9;
  text-align: center;
}

.mission-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333333;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.mission-text--bottom {
  margin-bottom: 80px;
}

/* ---------------------------------------------------------------
   7. VALUE SECTION
--------------------------------------------------------------- */
.value-section {
  background-color: #003366;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  max-width: 900px;
  margin: 0 auto;
}

.value-item {
  margin-bottom: 40px;
}

/* 5つ目のアイテムを中央に配置 */
.value-item--center {
  grid-column: 1 / -1;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.value-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  border-left: 4px solid #ffffff;
  padding-left: 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.value-item__text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  padding-left: 20px;
}

/* ---------------------------------------------------------------
   8. SERVICE SECTION
--------------------------------------------------------------- */
.service-section {
  background-color: #ffffff;
}

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

/* 7番目のカードを中央に */
.service-card--last {
  grid-column: 2 / 3;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(0, 51, 102, 0.1);
}

.service-card__image-wrap {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f0f4f8;
}

.service-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__image-wrap img {
  transform: scale(1.03);
}

.service-card__body {
  padding: 20px 24px 32px;
}

.service-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #003366;
  line-height: 1.6;
}

#service-heading + img{
width:50%;
margin:0 auto;
margin-bottom:40px;
}

/* ---------------------------------------------------------------
   9. COMPANY & CONTACT SECTION (ACCORDION)
--------------------------------------------------------------- */
.company-section {
  background-color: #f0f4f8;
}

.accordion {
  border: 1px solid #eaeaea;
  border-radius: 4px;
  overflow: hidden;
  background-color: #ffffff;
}

.accordion-item + .accordion-item {
  border-top: 1px solid #eaeaea;
}

/* Accordion Header */
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background-color: #ffffff;
  color: #003366;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background-color: #f5f8fb;
}

.accordion-header__title {
  flex: 1;
}

.accordion-header__icon {
  font-size: 1.25rem;
  font-weight: 400;
  color: #003366;
  line-height: 1;
  min-width: 20px;
  text-align: right;
  user-select: none;
}

/* Accordion Panel */
.accordion-panel {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.45s ease;
}

.accordion-panel--closed {
  max-height: 0;
}

.accordion-panel__inner {
  padding: 32px;
  border-top: 1px solid #eaeaea;
}

.accordion-panel__inner--center {
  text-align: center;
}

/* CEO Message */
.ceo-message {
  font-size: 0.9375rem;
  line-height: 2.0;
  color: #333333;
  margin-bottom: 24px;
}

.ceo-message--last {
  margin-bottom: 24px;
}

.ceo-signature {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #003366;
  text-align: right;
  margin-top: 16px;
}

/* Company Table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.company-table tr {
  border-bottom: 1px solid #eaeaea;
}

.company-table__last-row {
  border-bottom: none !important;
}

.company-table th,
.company-table td {
  padding: 16px 24px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.company-table th {
  width: 160px;
  font-weight: 700;
  color: #003366;
  white-space: nowrap;
}

.company-table td {
  color: #333333;
}

.company-table a {
  color: #003366;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.company-table a:hover {
  opacity: 0.75;
}

/* Contact */
.contact-lead {
  font-size: 0.9375rem;
  color: #333333;
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-btn {
  display: inline-block;
  width: 320px;
  max-width: 100%;
  padding: 20px 32px;
  background-color: #003366;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, background-color 0.2s;
}

.contact-btn:hover {
  background-color: #004080;
  opacity: 0.92;
}

/* ---------------------------------------------------------------
   10. FOOTER
--------------------------------------------------------------- */
#site-footer {
  background-color: #003366;
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.footer-address {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
}

/* sp only */
.sp-only{
  display:none;
}

/* ---------------------------------------------------------------
   11. RESPONSIVE — TABLET (max-width: 960px)
--------------------------------------------------------------- */
@media (max-width: 960px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  /* Service: 2 columns on tablet */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* 7番目のカードはタブレットでは自動配置 */
  .service-card--last {
    grid-column: auto;
  }

  /* Value: keep 2 columns on tablet */
  .value-grid {
    gap: 0 40px;
  }

  /* Header nav adjustments */
  .nav-list {
    gap: 20px;
  }
  .site-logo img {
    width: 200px;
  }
}

/* ---------------------------------------------------------------
   12. RESPONSIVE — MOBILE (max-width: 767px)
--------------------------------------------------------------- */
@media (max-width: 767px) {

  /* Container */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Section padding */
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  /* Section Label */
  .section-label {
    font-size: 1.625rem;
    margin-bottom: 48px;
  }

  /* Header */
  .header-inner {
    padding: 0 20px;
    height: 60px;
  }

  .site-logo {
    font-size: 0.875rem;
  }

  /* Mobile Nav */
  .nav-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 51, 102, 0.98);
    padding: 24px 0;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .nav-contact-btn {
    display: inline-block !important;
    margin: 8px 24px 8px !important;
    width: calc(100% - 48px) !important;
    text-align: center !important;
    padding: 14px 20px !important;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-content {
    margin-left: 5%;
    margin-right: 5%;
  }

  .hero-catchcopy {
    font-size: 1.625rem;
  }

  /* Mission */
  .mission-text {
    font-size: 1rem;
  }

  /* Value: 1 column on mobile */
  .value-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .value-item--center {
    grid-column: 1;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Service: 1 column on mobile */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card--last {
    grid-column: auto;
  }

  /* Accordion */
  .accordion-header {
    padding: 20px 20px;
  }

  .accordion-panel__inner {
    padding: 24px 20px;
  }

  .company-table th {
    width: 110px;
  }

  .company-table th,
  .company-table td {
    padding: 12px 12px;
    font-size: 0.875rem;
  }

  /* Contact Button */
  .contact-btn {
    width: 100%;
  }

  /* Footer */
  #site-footer {
    padding: 40px 20px;
  }

  /* sp only */
  .sp-only{
    display:block;
  }
}

/* ---------------------------------------------------------------
   13. SCROLL ANCHOR OFFSET (for fixed header)
--------------------------------------------------------------- */
#mission,
#value,
#service,
#company,
#contact {
  scroll-margin-top: 70px;
}
