/* =====================================================
   全国介護福祉支援コンソーシアム — style.css
   ===================================================== */

/* ---- Reset & base (responsive-base.css準拠) ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #2b2b28;
  background: #fbfaf6;
  line-break: strict;
  overflow-wrap: break-word;
  word-break: auto-phrase;
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.4; }
p { text-wrap: pretty; line-height: 1.9; }

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

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

ul { list-style: none; }

svg { display: inline-block; }

:root {
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  --green-deep: #2f6d4f;
  --green-main: #4f8f68;
  --green-soft: #8fbf9e;
  --green-pale: #dcefe0;
  --coral: #ef8354;
  --coral-deep: #d9663a;
  --cream: #fbfaf6;
  --ink: #2b2b28;
  --ink-soft: #5c5c56;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

.section {
  padding-top: clamp(40px, 7vw, 100px);
  padding-bottom: clamp(40px, 7vw, 100px);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(12px, 2vw, 32px);
}

.eyebrow {
  display: inline-block;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.12em;
  color: var(--green-main);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 40px);
  color: var(--green-deep);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
  min-height: 44px;
  padding: 0 4px;
}
.link-arrow svg { flex-shrink: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 109, 79, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 32px);
  padding: clamp(10px, 1.6vw, 16px) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(13px, 1.6vw, 18px);
  color: var(--green-deep);
  flex-shrink: 1;
  min-width: 0;
}
.logo .mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.logo-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.main-nav {
  display: none;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
}

.main-nav .has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(43, 43, 40, 0.14);
  padding: 10px;
  min-width: 220px;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel { display: block; }

.dropdown-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  min-height: 44px;
}
.dropdown-panel a:hover { background: var(--green-pale); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  padding: 12px clamp(14px, 3vw, 22px);
  border-radius: 999px;
  white-space: nowrap;
  min-height: 44px;
  flex-shrink: 0;
}

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-pale);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding: clamp(16px, 3vw, 32px) 0 0;
}

.hero-frame {
  position: relative;
  border-radius: clamp(20px, 3vw, 40px);
  overflow: hidden;
  background: linear-gradient(180deg, #d9ecec 0%, #d9ecec 38%, var(--green-soft) 38%, var(--green-main) 70%, var(--green-deep) 100%);
  min-height: clamp(480px, 70vw, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(220px, 26vw, 300px);
  color: #fff;
}

.hero-copy .tagline {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  margin-bottom: clamp(10px, 1.5vw, 18px);
}

.hero-copy h1 {
  font-size: clamp(34px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-copy .sub {
  margin-top: clamp(10px, 1.5vw, 16px);
  font-size: clamp(12px, 1.2vw, 15px);
  opacity: 0.9;
}

.hero-link-btn {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(80px, 10vw, 120px);
  z-index: 3;
  background: #fff;
  color: var(--green-deep);
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 15px);
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-link-btn .circ {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-person {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  bottom: 0;
  width: clamp(90px, 12vw, 140px);
  z-index: 1;
}

.hero-cta-strip {
  position: relative;
  z-index: 3;
  margin: 0 clamp(16px, 4vw, 48px);
  transform: translateY(50%);
  background: var(--coral);
  border-radius: 999px;
  padding: clamp(14px, 2vw, 18px) clamp(20px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 18px);
  min-height: 44px;
}
.hero-cta-strip .circ {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-spacer { height: clamp(30px, 5vw, 50px); }

/* ---- Library / Guide cards ---- */
.top-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 24px);
}
@media screen and (min-width: 768px) {
  .top-cards { grid-template-columns: 1fr 1fr; }
}

.top-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(43,43,40,0.06);
  min-height: 44px;
}
.top-card .kicker { font-size: clamp(12px, 1.1vw, 14px); color: var(--ink-soft); }
.top-card h3 { font-size: clamp(18px, 2vw, 24px); color: var(--green-deep); }

/* ---- About ---- */
.about-section {
  background: var(--green-pale);
  border-radius: clamp(20px, 3vw, 40px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media screen and (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-soft), var(--green-main));
}

.about-text h2 {
  font-size: clamp(24px, 3.4vw, 40px);
  color: var(--green-deep);
  margin-bottom: 16px;
}
.about-text p { color: var(--ink-soft); margin-bottom: 24px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--green-deep);
  color: var(--green-deep);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  min-height: 44px;
  font-size: clamp(13px, 1.2vw, 15px);
}

/* ---- Events ---- */
.event-card, .news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(43,43,40,0.06);
  display: flex;
  flex-direction: column;
}
.event-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--green-main), var(--green-deep));
}
.event-body { padding: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-date { font-size: 13px; color: var(--coral-deep); font-weight: 700; }
.event-body h3 { font-size: clamp(15px, 1.4vw, 18px); }
.event-meta { font-size: 13px; color: var(--ink-soft); }

/* ---- News ---- */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  padding: clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid rgba(43,43,40,0.08);
  min-height: 44px;
}
.news-date { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tag {
  font-size: 11px;
  background: var(--green-pale);
  color: var(--green-deep);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.news-row h3 { font-size: clamp(14px, 1.3vw, 16px); font-weight: 600; }

@media screen and (min-width: 640px) {
  .news-row { grid-template-columns: 120px 1fr; }
}

/* ---- Logo wall ---- */
.logo-group { margin-bottom: clamp(20px, 3vw, 32px); }
.logo-group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.5vw, 16px);
}
@media screen and (min-width: 640px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media screen and (min-width: 1024px) { .logo-wall { grid-template-columns: repeat(6, 1fr); } }

.logo-chip {
  background: #fff;
  border: 1px solid rgba(43,43,40,0.08);
  border-radius: 12px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 8px;
}

/* ---- Contact ---- */
.contact-section { background: var(--green-deep); border-radius: clamp(20px, 3vw, 40px); color: #fff; }
.contact-section .section-head h2 { color: #fff; }
.contact-section .section-head p { color: rgba(255,255,255,0.75); }

.contact-cards { display: grid; grid-template-columns: 1fr; gap: clamp(12px, 2vw, 24px); }
@media screen and (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card h3 { font-size: clamp(16px, 1.6vw, 20px); }
.contact-card p { color: rgba(255,255,255,0.75); font-size: 14px; flex: 1; }
.contact-card .link-arrow { color: #fff; }

.contact-other {
  display: block;
  text-align: center;
  margin-top: clamp(20px, 3vw, 32px);
  font-weight: 700;
  text-decoration: underline;
  min-height: 44px;
  padding: 10px;
}

/* ---- Footer ---- */
.site-footer { background: #22352a; color: rgba(255,255,255,0.8); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px);
}
@media screen and (min-width: 900px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .logo { color: #fff; }
.sns-links { display: flex; gap: 12px; }
.sns-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-col h4 { font-size: 13px; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a { min-height: 44px; display: flex; align-items: center; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: clamp(16px, 2vw, 24px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { min-height: 44px; display: flex; align-items: center; }

.footer-final-cta {
  display: block;
  background: var(--coral);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 16px;
  min-height: 44px;
}
