/* ===========================
   CSS Variables
=========================== */
:root {
  --primary: #2818a0;
  --primary-light: #3828be;
  --accent: #a02818;
  --accent-light: #c03828;
  --green: #188040;
  --text: #1a1030;
  --text-light: #585070;
  --bg: #f2f2fa;
  --white: #ffffff;
  --gray: #9090b0;
  --border: #d4d0f0;
  --shadow: 0 4px 20px rgba(40, 24, 160, 0.09);
  --radius: 12px;
  --font: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===========================
   Navbar
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 10, 88, 0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===========================
   Hero
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: #180c60;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 下部だけ暗くして文字を読みやすく */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.32) 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(242,242,250,0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  animation: fadeUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  background: rgba(160,40,24,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 4px 30px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255,255,255,0.95);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160,40,24,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}
.hero-scroll a { color: rgba(255,255,255,0.5); font-size: 1.2rem; }

/* ===========================
   Catch Bar
=========================== */
.catch-bar {
  background: var(--primary);
  padding: 18px 0;
  overflow: hidden;
}
.catch-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.catch-item {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.catch-item i { color: var(--accent); }

/* ===========================
   Container & Sections
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 60px 48px;
  margin: 48px 0;
  box-shadow: var(--shadow);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-light), var(--accent), var(--green));
  border-radius: 2px;
  margin: 0 auto 16px;
}
.section-sub {
  color: var(--text-light);
  font-size: 1rem;
}

/* ===========================
   About
=========================== */
.about-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-photo-wrap {
  flex-shrink: 0;
}
.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 20px rgba(40,24,160,0.15);
}

.about-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.about-name-kanji {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.about-info {
  margin-bottom: 1.5rem;
}
.info-row {
  display: flex;
  gap: 1.5rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.info-label {
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
}

.about-message {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.about-sns { display: flex; gap: 1rem; flex-wrap: wrap; }
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.sns-x { background: var(--primary); color: var(--white); }
.sns-x:hover { background: var(--primary-light); transform: translateY(-2px); }
.sns-email { background: #e8e8f8; color: var(--primary); }
.sns-email:hover { background: #d4d0f4; transform: translateY(-2px); }

/* ===========================
   Policy Cards
=========================== */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.policy-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
}
.policy-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(160,40,24,0.15);
}

.policy-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #3828be);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.policy-icon i { font-size: 1.5rem; color: var(--accent); }

.policy-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.policy-card ul { text-align: left; }
.policy-card li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 4px 0;
  padding-left: 1rem;
  position: relative;
}
.policy-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
}

/* ===========================
   Career
=========================== */
.career-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.career-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.career-subtitle i { color: var(--accent); }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-dot {
  position: absolute;
  left: -21px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--accent);
}
.timeline-dot--current {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(160,40,24,0.2);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}
.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Certs */
.cert-list { margin-bottom: 2rem; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.cert-item i { color: var(--green); font-size: 0.85rem; }

/* Business cards */
.business-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 12px;
}
.biz-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.business-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.business-card p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===========================
   Activities
=========================== */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.activity-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.activity-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--green));
}
.activity-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.activity-date {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 8px;
}
.activity-tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.activity-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.activity-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   Contact
=========================== */
.contact-wrap { text-align: center; }

.contact-info {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 20px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.25s;
  min-width: 280px;
}
.contact-btn i { font-size: 1.5rem; }
.contact-btn span { text-align: left; line-height: 1.4; }
.contact-btn small { font-size: 0.8rem; font-weight: 400; opacity: 0.8; }

.contact-email {
  background: var(--primary);
  color: var(--white);
}
.contact-email:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(40,24,160,0.25);
}

.contact-twitter {
  background: #222;
  color: var(--white);
}
.contact-twitter:hover {
  background: #444;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.contact-form {
  background: #1a6b3a;
  color: var(--white);
}
.contact-form:hover {
  background: #226047;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,58,0.3);
}

.contact-openchat {
  background: #06C755;
  color: var(--white);
}
.contact-openchat:hover {
  background: #05a847;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,199,85,0.35);
}

.contact-support.contact-disabled {
  background: #e8e8f8;
  color: #aab;
  cursor: not-allowed;
  position: relative;
  opacity: 0.75;
}
.contact-support.contact-disabled small::after {
  content: ' 🔒';
}

.contact-note {
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ===========================
   Footer
=========================== */
.footer {
  background: var(--primary);
  padding: 40px 24px;
  margin-top: 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-sns { display: flex; gap: 1rem; justify-content: center; }
.footer-sns a {
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  transition: color 0.2s;
}
.footer-sns a:hover { color: var(--accent); }

/* ===========================
   Note Feed
=========================== */
.note-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.note-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray);
  padding: 3rem 0;
  font-size: 1rem;
}
.note-loading i { margin-right: 0.5rem; }

.note-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 0;
  color: var(--text-light);
}
.note-fallback p { margin-bottom: 1.2rem; }
.note-fallback .btn-note { display: inline-flex; }

.note-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.note-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.note-card-date {
  font-size: 0.78rem;
  color: var(--gray);
}
.note-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
}
.note-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
}
.note-card-link {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.note-card-link:hover { text-decoration: underline; }

.note-link-wrap {
  text-align: center;
}
.btn-note {
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s;
}
.btn-note:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40,24,160,0.2);
}

/* ===========================
   Animations
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .career-columns { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--primary);
    padding: 1rem 0;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu a::after { display: none; }
  .hamburger { display: flex; }

  .section { padding: 40px 24px; margin: 24px 0; }

  .about-grid { flex-direction: column; align-items: center; }
  .about-photo-placeholder { width: 150px; height: 150px; }

  .contact-btn { min-width: unset; width: 100%; max-width: 340px; }

  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .catch-container { gap: 1rem; }
  .catch-item { font-size: 0.82rem; }
}
