/* ==========================================
   shojix2.net — Main Stylesheet
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;700&display=swap');

/* --- Variables --- */
:root {
  --primary:       #1b6fa8;
  --primary-light: #2a85c0;
  --accent:        #0fa3b1;
  --accent-light:  #3dbfcc;
  --bg:            #ffffff;
  --surface:       #eaf5fb;
  --border:        #c8e3f0;
  --text:          #1e2d3d;
  --text-muted:    #5a7080;
  --white:         #ffffff;
  --shadow-sm:     0 2px 8px rgba(27,111,168,.08);
  --shadow-md:     0 6px 24px rgba(27,111,168,.13);
  --shadow-lg:     0 16px 48px rgba(27,111,168,.18);
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    .3s cubic-bezier(.4,0,.2,1);
  --font-sans:     'Noto Sans JP', sans-serif;
  --font-serif:    'Noto Serif JP', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* --- Layout --- */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--surface);
}

/* --- Typography --- */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--accent);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,36,64,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,150,12,.2);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
}

.logo-tagline {
  font-size: .6rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  padding: .4rem .7rem;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: 6px;
  letter-spacing: .03em;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-light);
  background: rgba(200,150,12,.12);
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: var(--primary);
  border: 1px solid rgba(200,150,12,.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: .55rem 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  transition: background var(--transition), color var(--transition);
}

.dropdown a:hover {
  background: rgba(200,150,12,.12);
  color: var(--accent-light);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(200,150,12,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(26,58,96,.6) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 92%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  border: 1px solid rgba(200,150,12,.4);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .accent { color: var(--accent-light); }

.hero-desc {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,12,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}

.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.4);
  font-size: .7rem;
  letter-spacing: .15em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent-light), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================
   SERVICE CARDS (Home)
   ========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(200,150,12,.15), rgba(200,150,12,.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(200,150,12,.2);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
}

.service-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   PAGE HEADER (Inner pages)
   ========================================== */

.page-header {
  background: var(--primary);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 80% 50%, rgba(200,150,12,.07) 0%, transparent 60%);
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,.5);
}
.page-header .breadcrumb a:hover { color: var(--accent-light); }
.page-header .breadcrumb .sep { font-size: .65rem; }

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.page-header .page-subtitle {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  margin-top: .5rem;
}

/* ==========================================
   NEWS
   ========================================== */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: .75rem 1.5rem;
  background: var(--bg);
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
}

.news-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.news-item:hover { background: var(--surface); }

.news-date {
  font-size: .82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  letter-spacing: .02em;
}

.news-sep {
  flex-shrink: 0;
  color: var(--border);
  font-size: .75rem;
}

.news-title {
  font-size: .88rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

@media (max-width: 600px) {
  .news-item {
    flex-wrap: wrap;
    white-space: normal;
    gap: .3rem .75rem;
  }
  .news-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    flex-basis: 100%;
  }
}

/* ==========================================
   PROFILE / INFO CARDS
   ========================================== */

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.info-card-header {
  background: var(--primary);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-card-header .icon {
  font-size: 1.5rem;
}

.info-card-header h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.info-table th {
  width: 180px;
  padding: 1rem 1.5rem;
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  vertical-align: top;
}

.info-table td {
  padding: 1rem 1.5rem;
  font-size: .9rem;
  color: var(--text);
  vertical-align: top;
}

/* ==========================================
   CONTENT CARDS (Vision, Objective etc.)
   ========================================== */

.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.content-block::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: linear-gradient(var(--accent), var(--accent-light));
  border-radius: 0 3px 3px 0;
}

.content-block h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
}

.content-block p, .content-block li {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.content-block ul {
  padding-left: 1rem;
}

.content-block ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: .4rem;
}

.content-block ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .75rem;
  top: .15em;
}

/* ==========================================
   MORAL CODE
   ========================================== */

.moral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.moral-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.moral-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.moral-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent-light);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.moral-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.moral-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   FINANCIAL STATEMENT
   ========================================== */

.finance-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: .25rem;
}

.finance-tab {
  padding: .55rem 1.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.finance-tab:hover { color: var(--primary); }
.finance-tab.active {
  color: var(--accent);
  background: rgba(200,150,12,.08);
  border-bottom: 2px solid var(--accent);
  margin-bottom: -2px;
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.finance-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: .9rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  text-align: left;
}

.finance-table tbody tr:nth-child(even) { background: var(--surface); }

.finance-table tbody td {
  padding: .8rem 1.25rem;
  font-size: .88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.finance-table tfoot td {
  padding: .9rem 1.25rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(200,150,12,.08);
  border-top: 2px solid var(--accent);
}

.amount { text-align: right; font-variant-numeric: tabular-nums; }

/* ==========================================
   LINK PAGE
   ========================================== */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
  color: inherit;
}

.link-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.link-card-body h3 {
  font-size: .92rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .15rem;
}

.link-card-body p {
  font-size: .78rem;
  color: var(--text-muted);
}

.link-card-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: .8rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}

.link-card:hover .link-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-tagline { color: rgba(255,255,255,.4); }

.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: .4rem;
}

.footer-col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent-light); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================
   UTILITIES
   ========================================== */

.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(200,150,12,.1);
  color: var(--accent);
  border: 1px solid rgba(200,150,12,.25);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(15,36,64,.04), rgba(200,150,12,.06));
  border: 1px solid rgba(200,150,12,.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--primary);
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    gap: .25rem;
  }
  .menu-toggle { display: flex; }

  .nav-item .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius);
    margin-top: .25rem;
    padding: .25rem 0;
  }
  .nav-item:hover .dropdown,
  .nav-item.open .dropdown { display: block; }

  .news-item {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .info-table th { width: 120px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
