/* ============================================================
   北陸対外事業協同組合 共通スタイルシート
   ============================================================ */

:root {
  --navy: #0f2d5c;
  --navy-dark: #091e3f;
  --navy-mid: #1a4080;
  --gold: #c8972a;
  --gold-light: #e8b84b;
  --gold-pale: #fdf6e3;
  --teal: #0d7377;
  --teal-light: #14a085;
  --green: #166534;
  --green-mid: #16a34a;
  --green-pale: #f0fdf4;
  --text: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #7a7a9a;
  --border: #e0e8f0;
  --bg-light: #f5f8fd;
  --white: #ffffff;
  --red-badge: #d93025;
  --amber: #d97706;
  --amber-pale: #fffbeb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text); line-height: 1.85; background: var(--white); font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(15,45,92,0.08); }
.header-top { background: var(--navy-dark); color: rgba(255,255,255,0.8); font-size: 13px; padding: 7px 0; text-align: right; }
.header-top .inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.header-top a { color: var(--gold-light); margin-left: 20px; }
.header-main { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; flex-direction: column; gap: 2px; }
.logo-main { font-size: 19px; font-weight: 900; color: var(--navy); letter-spacing: 0.02em; font-family: 'Noto Serif JP', serif; }
.logo-sub { font-size: 11px; color: var(--text-light); letter-spacing: 0.05em; }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header-tel .tel-num { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: 0.05em; }
.header-tel .tel-num::before { content: "📞 "; font-size: 16px; }
.header-tel .tel-note { font-size: 11px; color: var(--text-light); }

/* ===== NAV ===== */
nav { background: var(--navy); }
nav ul { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; list-style: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
nav ul li a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 600; padding: 14px 16px; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s; white-space: nowrap; }
nav ul li a:hover, nav ul li a.active { background: var(--gold); color: var(--white); }
nav ul li.highlight a { background: var(--gold); color: var(--white); font-weight: 700; }
.badge-new { background: var(--red-badge); color: white; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 3px; display: inline-block; vertical-align: middle; line-height: 1; flex-shrink: 0; }

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%); color: white; padding: 50px 20px 44px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.page-hero.teal { background: linear-gradient(135deg, var(--teal) 0%, #0a5a5e 50%, var(--navy) 100%); }
.page-hero.green { background: linear-gradient(135deg, #0a3d1f 0%, #155d2e 45%, var(--navy) 100%); }
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: white; }
.page-hero h1 { font-size: 34px; font-weight: 900; line-height: 1.35; margin-bottom: 12px; font-family: 'Noto Serif JP', serif; }
.page-hero p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.9; max-width: 700px; }

/* ===== SECTIONS ===== */
section { padding: 60px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: 30px; font-weight: 900; color: var(--navy); margin-bottom: 10px; font-family: 'Noto Serif JP', serif; line-height: 1.35; }
.section-desc { font-size: 14px; color: var(--text-mid); margin-bottom: 36px; max-width: 650px; }
.bg-light { background: var(--bg-light); }
.bg-navy { background: var(--navy-dark); }

/* ===== BUTTONS ===== */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--white); font-size: 15px; font-weight: 700; padding: 12px 24px; border-radius: 6px; transition: background 0.2s, transform 0.1s; letter-spacing: 0.03em; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); }

/* ===== INFO TABLE ===== */
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th { background: var(--bg-light); color: var(--navy); font-weight: 700; padding: 14px 18px; border: 1px solid var(--border); text-align: left; width: 160px; vertical-align: top; }
.info-table td { padding: 14px 18px; border: 1px solid var(--border); vertical-align: top; line-height: 1.8; }
.info-table tr:hover td { background: #fafcff; }

/* ===== FAQ ===== */
.faq-category { margin-bottom: 48px; }
.faq-category-title { font-size: 16px; font-weight: 700; color: var(--navy); padding: 12px 18px; background: var(--navy); color: white; border-radius: 6px 6px 0 0; margin-bottom: 0; }
.faq-list { border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; background: white; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--navy); transition: background 0.15s; user-select: none; }
.faq-q:hover { background: var(--bg-light); }
.faq-q-icon { background: var(--navy); color: white; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.faq-q-arrow { margin-left: auto; font-size: 12px; color: var(--text-light); padding-top: 4px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px 60px; font-size: 13.5px; color: var(--text-mid); line-height: 1.8; background: #fafcff; }
.faq-item.open .faq-a { display: block; }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid)); color: white; padding: 64px 20px; text-align: center; }
.cta-section h2 { font-size: 28px; font-weight: 900; margin-bottom: 12px; font-family: 'Noto Serif JP', serif; }
.cta-section > .section-inner > p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.9; }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }
.cta-box { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 28px 20px; transition: background 0.2s; }
.cta-box:hover { background: rgba(255,255,255,0.18); }
.cta-box-icon { font-size: 28px; margin-bottom: 10px; }
.cta-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.cta-box p { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.6; }
.cta-box a { display: inline-block; background: var(--gold); color: white; font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 5px; transition: background 0.2s; }
.cta-box a:hover { background: var(--gold-light); }

/* ===== FOOTER ===== */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 50px 20px 24px; }

/* ===== PC readable typography tweak =====
   ご要望：PCで文字が小さく感じる → 見出し/タイトル系を控えめに拡大
*/
@media (min-width: 769px) {
  .logo-main { font-size: 21px; }
  .page-hero h1 { font-size: 36px; }
  .section-title { font-size: 32px; }
  .cta-section h2 { font-size: 30px; }
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 16px; font-weight: 900; color: var(--white); font-family: 'Noto Serif JP', serif; margin-bottom: 12px; }
.footer-desc { font-size: 12px; line-height: 1.8; margin-bottom: 16px; }
.footer-contact { font-size: 13px; line-height: 1.9; }
.footer-contact strong { color: var(--white); }
.footer-nav-title { font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav ul li a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 600; padding: 14px 16px; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.footer-nav ul li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 16px; }

/* ===== MEMBER PAGE ===== */
.member-area { max-width: 480px; margin: 0 auto; }
.login-box { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 40px; box-shadow: 0 4px 24px rgba(15,45,92,0.08); }
.login-box h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 24px; text-align: center; font-family: 'Noto Serif JP', serif; }
.login-error { background: #fee2e2; border: 1px solid #fca5a5; border-radius: 6px; padding: 12px 16px; font-size: 13px; color: #7f1d1d; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.form-group input[type="text"],
.form-group input[type="password"] { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 14px; font-family: 'Noto Sans JP', sans-serif; transition: border-color 0.2s, box-shadow 0.2s; color: var(--text); }
.form-group input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,45,92,0.1); }
.login-btn { width: 100%; padding: 14px; background: var(--navy); color: white; font-size: 15px; font-weight: 700; border: none; border-radius: 6px; cursor: pointer; font-family: 'Noto Sans JP', sans-serif; transition: background 0.2s; letter-spacing: 0.05em; margin-top: 8px; }
.login-btn:hover { background: var(--navy-mid); }
.member-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.member-nav-item { border: 1px solid var(--border); border-radius: 8px; padding: 18px; text-align: center; transition: box-shadow 0.2s, border-color 0.2s; }
.member-nav-item:hover { box-shadow: 0 4px 16px rgba(15,45,92,0.1); border-color: var(--gold); }
.member-nav-icon { font-size: 28px; margin-bottom: 8px; }
.member-nav-item h3 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.member-nav-item p { font-size: 11.5px; color: var(--text-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .info-table th { width: 110px; }
}
@media (max-width: 600px) {
  .header-tel { display: none; }
  .header-main { height: 60px; }
  .logo-main { font-size: 16px; }
  .page-hero { padding: 36px 16px; }
  .page-hero h1 { font-size: 24px; }
  section { padding: 44px 16px; }
  .section-title { font-size: 23px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .member-nav { grid-template-columns: 1fr; }
  .info-table { display: block; overflow-x: auto; }
}


/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 201;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 198;
  -webkit-tap-highlight-color: transparent;
}
.nav-overlay.is-open { display: block; }

/* ===== MOBILE DRAWER ===== */
@media (max-width: 768px) {
  /* ハンバーガー表示 */
  .hamburger { display: flex !important; }
  /* 電話番号非表示 */
  .header-tel { display: none !important; }
  /* ヘッダー高さ */
  .header-main { height: 56px !important; }

  /* ナビ：固定ドロワー */
  nav {
    position: fixed !important;
    top: 0 !important;
    right: -290px !important;
    left: auto !important;
    bottom: 0 !important;
    width: 270px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #091e3f !important;
    z-index: 200 !important;
    transition: right 0.3s ease !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4) !important;
    flex-direction: column !important;
  }
  nav.is-open { right: 0 !important; }

  /* ドロワー見出し */
  nav::before {
    content: 'メニュー';
    display: block !important;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* ナビリスト */
  nav ul {
    display: flex !important;
    flex-direction: column !important;
    padding: 8px 0 40px !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    list-style: none !important;
  }
  nav ul li {
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    float: none !important;
  }
  nav ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 22px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: normal !important;
    color: rgba(255,255,255,0.88) !important;
    background: none !important;
    letter-spacing: 0.03em !important;
  }
  nav ul li a:hover,
  nav ul li a.active {
    background: #c8972a !important;
    color: #fff !important;
  }
  nav ul li.highlight a {
    background: rgba(200,151,42,0.18) !important;
    color: rgba(255,255,255,0.95) !important;
  }
  nav ul li.highlight a:hover,
  nav ul li.highlight a.active {
    background: #c8972a !important;
    color: #fff !important;
  }
}
