@charset "UTF-8";

/* ============================================
   支援機関 - Stylesheet
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --color-primary: #0a337c;
  --color-secondary: #18181c;
  --color-bg: #ffffff;
  --color-card-bg: #f8f9fa;
  --color-footer-bg: #dfe4ed;
  --color-hero-bg: rgba(241, 243, 247, 0.8);
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-display: 'Zen Kaku Gothic New', sans-serif;
  --font-mono: 'Montserrat', sans-serif;
  --font-open: 'Open Sans', sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-secondary);
  background: var(--color-bg);
  line-height: 1.75;
}

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

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

/* ============================================
   Page Hero Section
   ============================================ */
.page-hero {
  width: 100%;
  background: var(--color-hero-bg) url('../img/bg_headder_containts.png') center center / cover no-repeat;
  margin-top: 77px;
}

.page-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px;
}

.page-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 1px;
  line-height: 0.86;
}

.page-hero__subtitle {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 0.8px;
  line-height: 0.93;
}

/* ============================================
   Main Content
   ============================================ */
.main {
  width: 100%;
}

.main__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  gap: 80px;
}

/* ============================================
   Agency Sections
   ============================================ */
.agency-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.agency-section__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.8px;
  text-align: center;
}

/* Agency Grid */
.agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

/* Agency Card */
.agency-card {
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.agency-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.agency-card__logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  margin: 12px 12px 0;
}

.agency-card__logo img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
}

.agency-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.agency-card__name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.5;
}

.agency-card__dept {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: #666666;
  line-height: 1.5;
  margin-top: 2px;
}

.agency-card__address,
.agency-card__tel,
.agency-card__mail {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: #333333;
  line-height: 1.5;
  margin-top: 8px;
}

.agency-card__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #666666;
}

.agency-card__link {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 12px;
  color: var(--color-primary);
}

.agency-card__link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Coming Soon
   ============================================ */
.coming-soon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
  width: 100%;
}

.coming-soon__text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.8px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-footer-bg);
  width: 100%;
}

.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 79px;
  padding: 60px 40px 40px 40px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.footer__contact-title {
  font-family: var(--font-open);
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  line-height: 1.8;
  padding-bottom: 15px;
  border-bottom: 1px solid #a0a3aa;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
}

.footer__contact-name {
  font-family: var(--font-open);
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.8;
}

.footer__contact-detail {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.8;
}

.footer__copyright {
  font-family: var(--font-open);
  font-size: 16px;
  font-weight: 600;
  color: #110a51;
  line-height: 1.8;
}

/* ============================================
   Responsive
   ============================================ */

/* --- スマホ（767px以下）--- */
@media (max-width: 767px) {
  .page-hero__inner {
    padding: 40px 20px;
  }

  .page-hero__title {
    font-size: 36px;
    line-height: 1.2;
  }

  .page-hero__subtitle {
    font-size: 16px;
  }

  .main__inner {
    padding: 40px 16px;
    gap: 60px;
  }

  .agency-section__title {
    font-size: 22px;
  }

  .agency-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .agency-card__logo {
    height: 90px;
  }

  .agency-card__name {
    font-size: 14px;
  }

  .footer__inner {
    padding: 40px 20px 30px;
    gap: 40px;
  }

  .footer__contact-title {
    font-size: 18px;
  }

  .footer__contact-name,
  .footer__contact-detail {
    font-size: 14px;
  }

  .footer__copyright {
    font-size: 14px;
  }
}

/* --- 中間サイズ（768px〜1023px）--- */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-hero__title {
    font-size: 56px;
  }

  .page-hero__subtitle {
    font-size: 20px;
  }

  .agency-section__title {
    font-size: 28px;
  }

  .agency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Back Button
   ============================================ */
.back-button-wrapper {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border: 2px solid #0e508e;
  border-radius: 9999px;
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.8px;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button:hover {
  background: var(--color-primary);
  color: #ffffff;
}

@media (max-width: 767px) {
  .back-button {
    width: 100%;
    font-size: 14px;
    padding: 14px 24px;
  }
}
