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

:root {
  --bg-deep:   #e8f4fd;
  --bg-card:   #ffffff;
  --bg-card2:  #f0f8ff;
  --border:    #b3d9f5;
  --gold:      #c8a84b;
  --orange:    #0288d1;
  --blue:      #0288d1;
  --blue-lt:   #4fc3f7;
  --green:     #0097a7;
  --red:       #bc002d;
  --text:      #1a2e3a;
  --text-dim:  #4a6a82;
  --white:     #ffffff;
  --font: 'Inter', 'Noto Sans JP', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 15px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-deep); color: var(--text); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  overflow: visible;
  background: transparent;
  backdrop-filter: blur(0);
  box-shadow: none;
}
.nav-brand { display: flex; align-items: center; gap: 4px; font-size: 1.15rem; font-weight: 700; position: relative; }
.nav-logo {
  height: 130px; width: auto; object-fit: contain;
  border-radius: 50%;
  background: #e8e8e8;
  padding: 8px 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  position: relative; top: 44px;
}
.footer-logo { height: 120px; width: auto; object-fit: contain; border-radius: 50%; background: #e8e8e8; padding: 10px 20px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); margin-bottom: 8px; }
.logo-jp  { color: var(--red); }
.logo-sep { color: var(--gold); margin: 0 2px; }
.logo-cm  { color: #4caf50; }
.logo-text { color: var(--white); margin-left: 6px; font-size: 0.95rem; font-weight: 400; }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: rgba(255,255,255,0.92); text-decoration: none;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--gold); border-color: var(--gold); color: #0d2137; }
.nav-links a + a { border-left: none; padding-left: 14px; }

.lang-switcher { display: flex; gap: 6px; }
.lang-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.9); padding: 4px 10px; border-radius: 20px;
  cursor: pointer; font-size: 0.78rem; transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--gold); border-color: var(--gold);
  color: var(--bg-deep); font-weight: 700;
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }
/* flag visuals */
.flag-blend { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; justify-content: center; }
.flag-cm {
  width: 54px; height: 80px; border-radius: 4px;
  background: linear-gradient(to right, #007a5e 33%, #ce1126 33%, #ce1126 66%, #fcd116 66%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.flag-torii { font-size: 3rem; filter: drop-shadow(0 0 10px rgba(200,168,75,0.6)); }
.flag-jp {
  width: 54px; height: 80px; border-radius: 4px; background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.flag-jp::after { content: ''; width: 26px; height: 26px; background: #bc002d; border-radius: 50%; position: absolute; }

.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  background: linear-gradient(135deg, #0277bd 0%, #0288d1 50%, #01579b 100%);
  position: relative; overflow: hidden;
}
/* Corner accents */
.hero::before, .hero::after,
.hero-corner-bl, .hero-corner-br {
  content: ''; position: absolute; width: 80px; height: 80px;
}
.hero::before  { top: 0; left: 0;  border-top: 3px solid var(--blue);   border-left: 3px solid var(--blue);   border-radius: 12px 0 0 0; }
.hero::after   { top: 0; right: 0; border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); border-radius: 0 12px 0 0; }
.hero-corner-bl { bottom: 0; left: 0;  border-bottom: 3px solid var(--orange); border-left: 3px solid var(--orange); border-radius: 0 0 0 12px; }
.hero-corner-br { bottom: 0; right: 0; border-bottom: 3px solid var(--blue);   border-right: 3px solid var(--blue);  border-radius: 0 0 12px 0; }

.hero-inner { text-align: center; max-width: 720px; position: relative; z-index: 1; }
.hero-flag { font-size: 3rem; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--white); font-weight: 800; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(20,110,180,0.4); }
.hero h1 span { color: var(--gold); }
.hero-sub { color: rgba(255,255,255,0.92); font-size: 1.05rem; max-width: 560px; margin: 0 auto 12px; }
.hero-badge-wrap { margin-bottom: 32px; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  padding: 2px; border-radius: 8px;
}
.hero-badge-inner {
  background: rgba(1,87,155,0.85); padding: 7px 22px; border-radius: 6px;
  color: #ffffff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em;
}
.hero-badge-inner a { color: var(--orange); text-decoration: none; font-weight: 700; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 0.92rem; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--gold); color: var(--bg-deep); }
.btn-primary:hover { background: #e6c200; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #0d2137;
  margin-bottom: 8px;
}
.section-title-underline {
  display: inline-block;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.section-subtitle { color: #0277bd; font-size: 0.95rem; font-style: italic; margin-bottom: 32px; font-weight: 600; }
.section-sub { color: #2d4a5e; max-width: 560px; margin: 0 auto 40px; text-align: center; font-size: 0.95rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.about-card:hover { transform: translateY(-3px); }
.about-card.featured { border-color: var(--gold); box-shadow: 0 6px 24px rgba(255,215,0,0.15); }
.about-icon { font-size: 1.8rem; margin-bottom: 14px; }
.about-card h3 { font-size: 1rem; font-weight: 700; color: #0d2137; margin-bottom: 10px; }
.about-card p { color: var(--text); font-size: 0.9rem; }
.values-list { list-style: none; font-size: 0.9rem; }
.values-list li { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.08); color: #2d4a5e; }
.values-list li::before { content: '✦ '; color: var(--gold); }

/* ===== POLES ===== */
.poles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.pole-card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  position: relative; transition: transform 0.2s;
  border-top: 4px solid var(--blue);
}
.pole-card:nth-child(2) { border-top-color: var(--orange); }
.pole-card:nth-child(3) { border-top-color: var(--green); }
.pole-card:nth-child(4) { border-top-color: var(--red); }
.pole-card:hover { transform: translateY(-4px); }
.pole-num { font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,0.04); position: absolute; top: 12px; right: 18px; line-height: 1; }
.pole-icon { font-size: 2rem; margin-bottom: 14px; }
.pole-card h3 { font-size: 1rem; font-weight: 700; color: #0d2137; margin-bottom: 10px; }
.pole-card p { color: var(--text); font-size: 0.88rem; margin-bottom: 18px; }
.pole-link { color: var(--orange); font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.pole-link:hover { color: var(--gold); }

/* ===== SERVICES ===== */
.services-tabs { display: flex; gap: 10px; justify-content: center; margin: 36px 0 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 22px; border-radius: 24px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-dim); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-left: 4px solid var(--orange);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-3px); }
.service-card h4 { font-size: 0.95rem; font-weight: 700; color: #0d2137; margin-bottom: 8px; }
.service-card p { color: var(--text); font-size: 0.85rem; }

/* ===== TARGETS ===== */
.targets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 40px; }
.target-card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.target-card:hover { transform: translateY(-3px); }
.target-icon { font-size: 1.8rem; margin-bottom: 10px; }
.target-card h4 { font-size: 0.9rem; font-weight: 700; color: #0d2137; margin-bottom: 6px; }
.target-card p { color: #4a6a82; font-size: 0.82rem; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 40px; }
.stat-box {
  background: rgba(0,0,0,0.3); border-radius: 8px; padding: 20px;
  text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; margin-top: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; }
.contact-item strong { display: block; font-weight: 700; color: #0d2137; margin-bottom: 3px; font-size: 0.9rem; }
.contact-item p { color: #4a6a82; font-size: 0.88rem; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.9rem; font-family: var(--font);
  color: var(--text); background: var(--white);
  transition: border-color 0.2s; width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form select option { background: var(--bg-card); }
.contact-form textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 40px 0 20px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-brand p { font-size: 0.85rem; color: #4a6a82; }
.footer-links a { color: #4a6a82; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 0.75rem; color: #8aa0b0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(2,119,189,0.97); padding: 20px 32px;
    gap: 16px; z-index: 99; border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero::before, .hero::after, .hero-corner-bl, .hero-corner-br { width: 40px; height: 40px; }
}
