/* ================================================================
   common.css
   ================================================================ */

/*  RESET & BASE  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/*  CSS VARIABLES  */
:root {
  /*--green:         #1a8a2a;*/
  --green:         #07a019;
  --green-dark:    #136b20;
  --green-mid:     #2aaa3a;
  --green-light:   #e8f7ea;
  --green-pale:    #f2faf3;
  --white:         #ffffff;
  --gray-100:      #f5f5f5;
  --gray-200:      #e8e8e8;
  --gray-400:      #aaa;
  --gray-600:      #666;
  --gray-800:      #333;
  --ink:           #1a1a1a;

  --header-top-h:  72px;
  --header-nav-h:  44px;
  --header-total:  116px;

  --transition:    0.22s ease;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.12);
}

/* ================================================================
   HEADER
================================================================ */

.header-top {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 999;
}
.header-top__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* LOGO */
.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
	margin-right: auto;
}
.header-logo:hover { opacity: 0.82; }
.logo-mark { flex-shrink: 0; line-height: 0; }
.logo-mark img { height: 60px; width: auto; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-sub {
  display: block;
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.logo-main {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

.header-top__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-top__sns {
  display: flex;
  gap: 8px;
}
.header-top__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--green);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.header-top__sns-link:hover {
  background: var(--green-light);
  border-color: var(--green);
}
.header-top__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  transition: background var(--transition);
  white-space: nowrap;
}
.header-top__btn svg { flex-shrink: 0; }
.header-top__btn--contact {
  background: var(--green);
  color: var(--white);
}
.header-top__btn--contact:hover { background: var(--green-dark); }
.header-top__btn--contact svg { color: var(--white); }
.header-top__btn--member {
  background: var(--green);
  color: var(--white);
}
.header-top__btn--member:hover { background: var(--green-dark); }
.header-top__btn--member svg { color: var(--white); }

.header-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-text {
  text-align: left;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.action-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  transition: background var(--transition);
  white-space: nowrap;
}
.action-contact:hover { background: var(--green-dark); }
.action-contact svg { flex-shrink: 0; color: var(--white); }

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--green);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.action-icon:hover {
  background: var(--green-light);
  border-color: var(--green);
}

.action-member {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  padding: 17px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  transition: background var(--transition);
  white-space: nowrap;
}
.action-member:hover { background: var(--green-dark); }
.action-member svg { flex-shrink: 0; color: var(--white); }
/*  NAVIGATION BAR  */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.site-header.is-fixed {
  position: fixed;
  box-shadow: var(--shadow-sm);
}

/*  NAV MINI LOGO  */
.nav-logo {
  display: none;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
  line-height: 0;
}
.nav-logo img { height: 28px; width: auto; }
.site-header.is-fixed .nav-logo { display: flex; }

/*  GLOBAL NAV  */
.global-nav {
  background: var(--green);
  height: var(--header-nav-h);
  position: relative;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: stretch;
}
.nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: 100%;
}

/* NAV ITEM */
.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.18);
  transition: background var(--transition);
  position: relative;
}
.nav-item:first-child .nav-link { border-left: 1px solid rgba(255,255,255,0.18); }

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255,255,255,0.18);
  outline: none;
}
.nav-link.is-active {
  background: var(--green-dark);
}
.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--white);
  border-radius: 2px 2px 0 0;
}

/* Arrow icon */
.arrow-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: rgba(255,255,255,0.75);
}
.nav-item.is-open .arrow-icon,
.nav-item:hover .arrow-icon {
  transform: rotate(180deg);
}

/*  DROPDOWN  */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--green);
  border-radius: 0 0 6px 6px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-6px);
  z-index: 200;
  white-space: nowrap;
}

/* Wide dropdown (8 items) */
.nav-item:nth-child(4) .dropdown,
.nav-item:nth-child(5) .dropdown {
  min-width: 260px;
}

/* Edge adjustment: right-side items */
.nav-item:nth-child(n+5) .dropdown {
  left: auto;
  right: 0;
  transform: translateY(-6px);
}
.nav-item:nth-child(n+5) .dropdown {
  left: auto; right: 0;
}

/* Show on hover */
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-item:nth-child(n+5).has-dropdown:hover .dropdown,
.nav-item:nth-child(n+5).has-dropdown:focus-within .dropdown {
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.dropdown-link:hover,
.dropdown-link:focus-visible {
  background: var(--green-pale);
  border-left-color: var(--green);
  color: var(--green-dark);
  outline: none;
}

/* Separator between items */
.dropdown li + li {
  border-top: 1px solid var(--gray-200);
}

/* HEADER SPACER */
.header-spacer {
  height: var(--header-total);
}

/* ================================================================
   HAMBURGER (Mobile)
================================================================ */
.mobile-menu-footer { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   RESPONSIVE ? MOBILE (900px以下)
================================================================ */
@media (max-width: 900px) {

  :root {
    --header-top-h: 60px;
    --header-nav-h: 0px;
  }

  /* Header Top */
  .header-topbar { position: relative; }
  .header-inner { padding: 10px 16px; gap: 12px; padding-right: 56px; }
  .logo-main { font-size: 16px; }
  .logo-sub { font-size: 10px; }
  .logo-mark img { height: 40px; }
  .action-contact { display: none; }
  .action-icon { display: none; }
  .action-member { display: none; }

  /* ナビバーを非表示、ハンバーガーをトップバーに配置 */
  .global-nav { 
  height: 0;
  overflow: visible;
}
	.header-spacer {
    height: var(--header-top-h);
  }
  .hamburger {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }
  .hamburger span {
    background: var(--green);
  }

  /* ドロワーが開いた時：×ボタンを右上に固定 */
  .hamburger.is-open {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1010;
    transform: none;
  }
  .hamburger.is-open span {
    background: var(--ink);
  }

  /* Mobile drawer */
  .nav-list { display: none; }
  .nav-list.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    overflow-y: auto;
    z-index: 1002;
    padding-top: 56px;
    padding-bottom: 40px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    animation: slideInRight 0.28s ease;
  }
  @keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
  }
  .nav-overlay { display: block; }

  /* Mobile nav items */
  .nav-item {
    flex: none;
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
  }
  .nav-link {
    color: var(--ink);
    font-size: 14px;
    padding: 14px 20px;
    justify-content: space-between;
    border: none;
    background: var(--white);
    width: 100%;
    text-align: left;
  }
  .nav-link:hover { background: var(--green-pale); color: var(--green); }
  .nav-link.is-active { background: var(--green-pale); color: var(--green-dark); }
 .nav-link.is-active::after {
    display: none;
  }
  .nav-item.has-dropdown .nav-link.is-active::after {
    display: block;
    content: '+';
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    transform: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: var(--gray-600);
  }
  .nav-item.has-dropdown.is-open .nav-link.is-active::after {
    content: '\2212';
    color: var(--green);
  }

  /* +/- アイコン */
  .nav-item.has-dropdown .arrow-icon { display: none; }
  .nav-item.has-dropdown .nav-link::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: var(--gray-600);
    transition: transform var(--transition);
  }
  .nav-item.has-dropdown.is-open .nav-link::after {
    content: '\2212';
    color: var(--green);
  }

  /* Mobile dropdown */
  .dropdown {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    min-width: 100%;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    background: var(--green-pale);
    padding: 0;
  }
  .dropdown.is-open { display: block; }
  .dropdown-link {
    padding: 11px 20px 11px 36px;
    font-size: 13px;
    border-left: none;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-800);
  }
  .dropdown-link:hover {
    background: var(--green-light);
    border-left: none;
    color: var(--green-dark);
    padding-left: 36px;
  }
  .dropdown li + li { border-top: none; }

  .nav-item.has-dropdown .nav-link { cursor: pointer; }
  .nav-item.is-open .dropdown { display: block; }

  /* モバイルメニュー下部リンク */
  .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 20px 24px;
    border-top: 1px solid var(--gray-200);
  }
  .mobile-menu-sns {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
  }
  .mobile-menu-sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--green);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
  }
  .mobile-menu-sns a:hover {
    background: var(--green-light);
    border-color: var(--green);
  }
  .mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--green);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background var(--transition);
  }
  .mobile-menu-link:hover { background: var(--green-dark); }
  .mobile-menu-link svg { flex-shrink: 0; color: var(--white); }
  .mobile-menu-link:last-child { background: #4a2c2a; }
  .mobile-menu-link:last-child:hover { background: #3a1f1d; }
}

@media (max-width: 480px) {
  .logo-main { font-size: 14px; }
  .logo-mark { display: block; }
  .logo-mark img { height: 36px; width: auto; }
  .header-inner { gap: 8px; }
}

/* ================================================================
   UTILITY / GLOBAL LAYOUT
================================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  margin-top: 0;
	background: url('../img/common/footer_bk.jpg') center / cover no-repeat;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/*  Footer Top:   */
.footer-top {
  background: transparent;
  padding: 32px 0 24px;
}
.footer-top .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.footer-logo-mark { flex-shrink: 0; line-height: 0; }
.footer-logo-mark img { width: 52px; height: 52px; }
.footer-logo-text { display: flex; flex-direction: column; gap: 2px; }
.footer-logo-sub {
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 0.02em;
}
.footer-logo-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}
.footer-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--green);
  transition: opacity var(--transition);
}
.footer-sns:hover { opacity: 0.7; }
.footer-contact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  transition: background var(--transition);
  white-space: nowrap;
}
.footer-contact-btn:hover { background: var(--green-dark); }
.footer-contact-btn svg { color: var(--white); flex-shrink: 0; }


.footer-sitemap {
  background: transparent;
  padding: 24px 0 32px;
}
.sitemap-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.sitemap-col {
  min-width: 0;
}
.sitemap-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  transition: color var(--transition);
}
.sitemap-title:hover { color: var(--green); }
.sitemap-col ul { padding: 0; }
.sitemap-col li {
  margin-bottom: 3px;
}
.sitemap-col li a {
  font-size: 12px;
  color: var(--gray-600);
  transition: color var(--transition);
}
.sitemap-col li a {
  font-size: 12px;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
  display: inline-block;
}
.sitemap-col li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.35s ease;
}
.sitemap-col li a:hover {
  color: var(--green);
}
.sitemap-col li a:hover::after {
  width: 100%;
}

.footer-buttons {
  background: transparent;
  padding: 32px 0 32px;
	border-top:1px solid #136b20;
}
.footer-buttons-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-address {
  font-size: 13px;
  color: var(--gray-800);
  line-height: 1.8;
}
.footer-address-name {
  font-weight: 700;
  margin-bottom: 2px;
}
.footer-btn-area {
  flex-shrink: 0;
}
.footer-btn-row {
  display: flex;
  align-items: flex-start;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.footer-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.footer-btn--member {
  background: var(--green);
  color: var(--white);
}
.footer-btn--member:hover { background: var(--green-dark); }
.footer-btn--member svg { color: var(--white); flex-shrink: 0; }
.footer-btn--admin {
  background: #4a2c2a;
  color: var(--white);
  border: 2px solid #4a2c2a;
}
.footer-btn--admin:hover {
  background: #3a1f1d;
  border-color: #3a1f1d;
}
.footer-pw-link {
  text-align: center;
  margin-top: 12px;
}
.footer-pw-link a {
  font-size: 12px;
  color: var(--green);
  text-decoration: underline;
  transition: color var(--transition);
}
.footer-pw-link a:hover { color: var(--green-dark); }


.footer-copyright {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/*  Footer  */
@media (max-width: 900px) {
  .footer-top .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-logo-main { font-size: 16px; }
  .sitemap-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-buttons-row {
    flex-direction: column;
    gap: 20px;
  }
  .footer-btn-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer-btn { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .footer-logo-mark { display: none; }
	.sitemap-col li {
	margin-left: 10px;
}
}

/* ページトップボタン */
.page-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.page-top a {
  display: block;
  line-height: 0;
}
.page-top img {
  width: 56px;
  height: auto;
}
.page-top a:hover {
  opacity: 0.7;
}

