@charset "utf-8";

/* =====================================================
   CSS Variables (Design Tokens)
   ===================================================== */
:root {
  --color-navy:    #0D1B4B;
  --color-royal:   #1A4DB5;
  --color-blue:    #3B82F6;
  --color-sky:     #93C5FD;
  --color-white:   #FFFFFF;
  --color-text:    #1F2937;
  --color-muted:   #6B7280;
  --color-light:   #F0F4FF;
  --color-border:  #E5E7EB;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.10);
  --shadow-md:     0 4px 16px rgba(13,27,75,0.15);
  --radius:        8px;
  --radius-lg:     16px;
  --max-width:     1100px;
}

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

body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: none;
  color: var(--color-text);
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
               "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック",
               "MS PGothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: var(--color-white);
}

h1, h2, h3, h4, h5,
p, ul, ol, li, dl, dt, dd,
form, figure, select, input, textarea {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-weight: normal;
}

.sp-br { display: none; }
ul  { list-style-type: none; }
ol  { padding-left: 40px; padding-bottom: 15px; }
img { border: none; max-width: 100%; height: auto; vertical-align: middle; }
table { border-collapse: collapse; font-size: 100%; border-spacing: 0; }
iframe { width: 100%; }

a {
  color: var(--color-royal);
  text-decoration: none;
  transition: color 0.25s, opacity 0.25s;
}
a:hover { color: var(--color-blue); }

/* =====================================================
   Header
   ===================================================== */
header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 16px;
}

/* Logo */
#logo { margin: 0; flex-shrink: 0; }
#logo a {
  display: flex;
  align-items: center;
  background: none;
  padding: 0 6px;
  transition: transform 0.25s, filter 0.25s;
}
#logo a:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
}
#logo img {
  height: 72px;
  width: auto;
  flex-shrink: 0;
  border-radius: 6px;
}

/* Navigation */
#menubar { margin: 0; }
#menubar ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#menubar li a {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
#menubar li a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
}
#menubar li a.btn-nav {
  background: var(--color-royal);
  color: var(--color-white);
  font-weight: bold;
  padding: 8px 18px;
  margin-left: 6px;
}
#menubar li a.btn-nav:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* =====================================================
   Hero Section (index.html)
   ===================================================== */
#hero {
  position: relative;
  min-height: 500px;
  background: url('../images/team_photo.png') center 30% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 75, 0.82) 0%,
    rgba(26, 77, 181, 0.62) 60%,
    rgba(59, 130, 246, 0.40) 100%
  );
}
#hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 60px 24px;
  max-width: 760px;
}
#hero-content .hero-sub {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--color-sky);
  margin-bottom: 14px;
  display: block;
}
#hero-content .hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: bold;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--color-white);
}
#hero-content .hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  line-height: 1.8;
}

/* X Profile Card */
.x-profile-card {
  max-width: 480px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 40px 32px;
  text-align: center;
}
.x-icon { fill: #000; margin-bottom: 12px; }
.x-handle {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 12px;
}
.x-desc {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.btn-x {
  display: inline-block;
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-x:hover { background: #333; }

/* CTA Buttons */
.btn-primary {
  display: inline-block;
  background: var(--color-royal);
  color: var(--color-white);
  padding: 16px 44px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(26,77,181,0.45);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  letter-spacing: 0.05em;
}
.btn-primary:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(59,130,246,0.5);
}

/* =====================================================
   Stats Bar
   ===================================================== */
#stats-bar {
  background: var(--color-navy);
  padding: 28px 0;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-item {
  text-align: center;
  color: var(--color-white);
}
.stat-item .num {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-sky);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.stat-item .label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  display: block;
}

/* =====================================================
   Section - Common
   ===================================================== */
.section-block {
  padding: 64px 0;
}
.section-block.section-alt {
  background: var(--color-light);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4%;
}
.section-title {
  text-align: center;
  margin-bottom: 44px;
}
.section-title h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-navy);
  margin-bottom: 10px;
}
.section-title .title-line {
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-blue));
  border-radius: 2px;
  margin: 0 auto 10px;
}
.section-title .subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.18em;
}

/* =====================================================
   Feature Cards
   ===================================================== */
.cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.card {
  flex: 1 1 260px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-royal);
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-alt .card {
  background: var(--color-white);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card .card-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--color-navy);
  margin-bottom: 10px;
}
.card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* =====================================================
   Achievements
   ===================================================== */
.achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.achievement-badge {
  background: linear-gradient(135deg, var(--color-navy), var(--color-royal));
  color: var(--color-white);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}
.achievement-badge .year {
  font-size: 0.72rem;
  color: var(--color-sky);
  display: block;
  margin-bottom: 2px;
}
.achievement-badge .result {
  font-weight: bold;
  font-size: 0.95rem;
  display: block;
}

/* =====================================================
   News Section
   ===================================================== */
#new dl {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
#new dl .news-row {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}
#new dl .news-row:last-child { border-bottom: none; }
#new dl .news-row:nth-child(even) { background: var(--color-light); }
#new dt {
  font-weight: bold;
  color: var(--color-royal);
  white-space: nowrap;
  min-width: 110px;
  font-size: 0.9rem;
  flex-shrink: 0;
}
#new dd {
  color: var(--color-text);
  font-size: 0.9rem;
}

/* =====================================================
   Page Hero (sub pages)
   ===================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-royal) 100%);
  padding: 52px 20px;
  text-align: center;
  color: var(--color-white);
}
.page-hero h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--color-white);
}
.page-hero p {
  font-size: 0.8rem;
  color: var(--color-sky);
  letter-spacing: 0.2em;
}

/* =====================================================
   Team Photo + Info
   ===================================================== */
.team-photo-section {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.team-photo-section img {
  border-radius: var(--radius-lg);
  flex: 1 1 300px;
  max-width: 480px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.team-info {
  flex: 1 1 280px;
}
.team-info h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-navy);
  margin-bottom: 8px;
  margin-top: 24px;
  padding-left: 12px;
  border-left: 4px solid var(--color-royal);
  line-height: 1.4;
}
.team-info h3:first-child { margin-top: 0; }
.team-info p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.85;
  margin-bottom: 4px;
}

/* =====================================================
   Welcome Grid (about page)
   ===================================================== */
.welcome-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.welcome-item {
  flex: 1 1 180px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-royal));
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}
.welcome-item .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.welcome-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  background: var(--color-light);
  padding: 16px 20px;
  font-weight: bold;
  color: var(--color-navy);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}
.faq-q::before {
  content: 'Q';
  background: var(--color-royal);
  color: white;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  line-height: 1;
}
.faq-a {
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.faq-a::before {
  content: 'A';
  background: var(--color-blue);
  color: white;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  line-height: 1;
}

/* =====================================================
   Steps (contact page)
   ===================================================== */
.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.step {
  text-align: center;
  flex: 1 1 150px;
  max-width: 200px;
  position: relative;
  padding: 0 12px;
}
.step:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -10px;
  top: 14px;
  font-size: 2rem;
  color: var(--color-royal);
  line-height: 1;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-royal));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-sm);
}
.step h4 {
  font-weight: bold;
  color: var(--color-navy);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.step p {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* =====================================================
   LINE Contact Box
   ===================================================== */
.line-contact-box {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 8px;
}
.line-contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.line-qr-area {
  text-align: center;
  flex-shrink: 0;
}
.line-qr {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto;
}
.line-qr-caption {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 10px;
}
.line-text-area {
  width: 100%;
  text-align: center;
}
.line-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.line-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-navy);
}
.line-desc {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 20px;
}
.btn-line {
  display: inline-block;
  background: #00B900;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,185,0,0.35);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  letter-spacing: 0.05em;
}
.btn-line:hover {
  background: #009900;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,185,0,0.45);
}
.line-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
  .line-contact-box { padding: 24px 20px; }
  .line-contact-inner { gap: 28px; flex-direction: column; align-items: center; }
  .line-qr { width: 140px; height: 140px; }
  .line-qr-area { width: 100%; text-align: center; }
  .line-text-area { text-align: center; flex: none; width: 100%; }
  .line-logo-row { justify-content: center; }
  .btn-line { display: block; text-align: center; }
  .line-note { text-align: center; }
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-royal) 100%);
  padding: 64px 20px;
  text-align: center;
}
.cta-section h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-white);
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* =====================================================
   Contents Area (general pages)
   ===================================================== */
#container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4%;
}
#contents {
  padding: 40px 0;
}
#contents h2 {
  clear: both;
  margin-bottom: 20px;
  color: var(--color-white);
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-royal));
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1.05rem;
}
#contents h3 {
  clear: both;
  margin-bottom: 16px;
  padding: 8px 20px;
  background: var(--color-light);
  border-left: 4px solid var(--color-royal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: bold;
  color: var(--color-navy);
}
#contents p {
  padding: 0 20px 20px;
}
#contents section + section { margin-top: 30px; }

/* =====================================================
   Gallery / List layout
   ===================================================== */
.list {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  padding: 20px;
}
.list h4 {
  color: var(--color-royal);
  font-weight: bold;
  margin-bottom: 6px;
}
.list img {
  width: 55%;
  float: left;
  margin-right: 4%;
  border-radius: var(--radius);
}
.list p {
  padding: 0 !important;
  margin-bottom: 10px;
}
.list iframe {
  float: left;
  width: 35%;
}

/* =====================================================
   Tables
   ===================================================== */
.ta1 caption {
  border: 1px solid var(--color-border);
  border-bottom: none;
  text-align: left;
  background: var(--color-light);
  font-weight: bold;
  padding: 10px;
}
.ta1 th.tamidashi {
  width: auto;
  text-align: left;
  background: var(--color-light);
}
.ta1 {
  table-layout: fixed;
  width: 100%;
  margin: 0 auto 20px;
}
.ta1, .ta1 td, .ta1 th {
  word-break: break-all;
  border: 1px solid var(--color-border);
  padding: 10px;
}
.ta1 th {
  text-align: center;
  width: 30%;
  background: var(--color-light);
  color: var(--color-navy);
  font-weight: bold;
}

/* =====================================================
   NEW icon
   ===================================================== */
.newicon {
  background: #EF4444;
  color: #FFF;
  font-size: 70%;
  line-height: 1.5;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 6px;
  vertical-align: text-top;
}

/* =====================================================
   Footer
   ===================================================== */
footer {
  clear: both;
  background: var(--color-navy);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 28px 0 18px;
  font-size: 13px;
}
footer a {
  color: var(--color-sky);
  text-decoration: none;
}
footer a:hover { color: var(--color-white); }
footer .pr {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
footer .pr a { color: rgba(255,255,255,0.35); }

/* =====================================================
   Gallery
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* =====================================================
   Utilities
   ===================================================== */
.look { background: var(--color-light); padding: 5px 10px; border-radius: 4px; }
.mb15, .mb1em { margin-bottom: 15px; }
.color1 { color: var(--color-royal); }
.pr-small { font-size: 12px; }
.wl { width: 96%; }
.ws { width: 50%; }
.c { text-align: center; }
.r { text-align: right; }
.l { text-align: left; }

/* =====================================================
   Responsive (≤768px)
   ===================================================== */
@media screen and (max-width: 768px) {
  body { font-size: 14px; line-height: 1.7; }
  .sp-br { display: block; }

  .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 10px 4%;
    gap: 8px;
    min-height: auto;
  }
  #logo a { padding: 0 8px; }
  #logo img { height: 48px; }
  #menubar ul {
    gap: 2px;
    justify-content: center;
  }
  #menubar li a { padding: 6px 8px; font-size: 11px; }
  #menubar li a.btn-nav { padding: 6px 12px; margin-left: 0; }

  #hero { min-height: 340px; }
  #hero-content { padding: 48px 16px; }
  #hero-content .hero-title { font-size: 1.55rem; }
  .btn-primary { padding: 14px 32px; font-size: 0.95rem; }

  .stats-inner { gap: 12px; }
  .stat-item .num { font-size: 1.4rem; }

  .section-block { padding: 44px 0; }
  .cards { flex-direction: column; }
  .achievement-list { gap: 10px; }

  .team-photo-section { flex-direction: column; }
  .team-photo-section img { max-width: 100%; flex: none; }

  .welcome-grid { flex-direction: column; }
  .steps { gap: 20px; }
  .step:not(:last-child)::after { display: none; }
  .step { max-width: none; }

  .list img { width: 100%; float: none; margin-right: 0; margin-bottom: 12px; }
  .list iframe { width: 100%; float: none; }
  .ws, .wl { width: 94%; }

  #new dl .news-row { flex-direction: column; gap: 2px; }
  #new dt { min-width: auto; }

  .page-hero { padding: 36px 16px; }
  .page-hero h2 { font-size: 1.4rem; }
  .cta-section { padding: 44px 16px; }
  .cta-section h2 { font-size: 1.3rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}