@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* =====================================================
   GLOBAL RESET & VARIABLES
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* 明るいグリーン＆オレンジ・白背景 */
  --color-green:  #6ab75a; /* 生命力を感じる鮮やかなグリーン */
  --color-orange: #f4a261; /* 温かみのあるオレンジ */
  --color-red:    #e76f51; /* 柔らかめの赤 */
  --color-bg-base: #ffffff; /* 潔い白 */
  --color-bg-section: #f0f7ef; /* 非常に淡いグリーン（背景用） */
  --color-bg-publications: #f0f7ef; /* 刊行物セクション背景 */
  --color-text:   #363636; /* 黒ではなく濃いグレーで優しさを */
  --color-text-light: #888888;
  --color-border: #e2ecd9; /* 緑がかったグレーのボーダー */

  --max-width: 1080px;
  --font-base: 'Noto Sans JP', sans-serif;

  /* 角丸と影 */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-pill: 9999px;
  --shadow-soft: 0 4px 20px rgba(106, 183, 90, 0.08);
  --shadow-hover: 0 8px 30px rgba(106, 183, 90, 0.2);
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg-base);
  line-height: 1.8;
  font-size: 16px;
  word-wrap: break-word;
  letter-spacing: 0.05em;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =====================================================
   CONTAINER
===================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 576px)  { .container { padding: 0 20px; } }
@media (min-width: 768px)  { .container { padding: 0 24px; } }

/* =====================================================
   HEADER
===================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--color-green);
  transition: box-shadow 0.3s ease;
}
/* スクロール後に影を付与 */
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(106, 183, 90, 0.18);
}
@media (max-width: 991px) {
  .site-header { position: fixed; }
  main{padding-top:76px;}
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 8px 16px;
}
@media (min-width: 992px) {
  .header-inner { min-height: 90px; padding: 12px 40px; }
}

.logo-wrap {
  display: flex;
  align-items: center;
}
.logo-wrap img {
  width: 86%;
}
@media (min-width: 992px) {
  .logo-wrap img { width: auto; }
}

.header-right {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
@media (min-width: 992px) {
  .header-right { display: flex; }
}

.header-btns {
  display: flex;
  gap: 12px;
}

.btn-header {
  font-size: 13px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-header:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-inquiry { background: var(--color-orange); color: #fff; }
.btn-link { background: var(--color-green); color: #fff; }
.btn-recruit { background: var(--color-red); color: #fff; }

.header-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 32px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  padding: 4px 0;
  position: relative;
}
.header-nav a:hover { color: var(--color-green); }
/* 緑のドットホバー */
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  transition: transform 0.3s;
}
.header-nav a:hover::after { transform: translateX(-50%) scale(1); }

/* 1470px以下でナビを2行に折り返す区切り要素 */
.nav-br {
  flex-basis: 100%;
  height: 0;
  display: none;
}
@media (max-width: 1470px) {
  .nav-br { display: block; }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: var(--color-bg-section);
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-pill);
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-green);
  border-radius: 3px;
  transition: all 0.3s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (min-width: 992px) { .hamburger { display: none; } }

.mobile-menu {
  background: #fff;
  border-top: 2px solid var(--color-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.mobile-menu.is-open { max-height: 1000px; }
@media (min-width: 992px) { .mobile-menu { display: none; } }

.mobile-menu-btns {
  display: flex;
  gap: 12px;
  padding: 24px 20px 16px;
  justify-content: center;
}
.mobile-nav-list li { border-bottom: 1px solid var(--color-bg-section); }
.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-weight: 700;
  color: var(--color-text);
}
.mobile-nav-list a::after {
  content: '→';
  color: var(--color-green);
  font-size: 20px;
}
.mobile-nav-list a:hover { background: var(--color-bg-section); padding-left: 32px; }

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  border-radius: 80px 80px 0 0;
  background: var(--color-green);
  color: #fff;
  padding-top: 60px;
  margin-top: 40px;
}
.footer-nav-bar {
  padding-bottom: 40px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}
/* スマホではフッターナビは非表示 */
@media (max-width: 991px) {
  .footer-nav-bar { display: none; }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
}
.footer-nav a {
  font-size: 15px;
  color: #e0f2dc;
  font-weight: 700;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-info {
  padding: 40px 0;
}
.footer-info-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-info-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

.logo-main { color: #fff; }
.logo-sub { color: #e0f2dc; }

.footer-logo address {
  font-style: normal;
  color: #e0f2dc;
  margin-top: 16px;
  font-weight: 500;
  line-height: 1.8;
}
.footer-copy {
  color: #e0f2dc;
  font-size: 14px;
  font-weight: 500;
}
