@charset "utf-8";

/* ============ Modern, simple, responsive ============ */
:root{
  --bg: #0b1020;
  --fg: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --line: rgba(15, 23, 42, .12);
  --accent: #3b82f6;
  --brand: #121665;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(2, 6, 23, .12);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(18,22,101,.18), transparent 55%),
    linear-gradient(180deg, var(--bg) 460px, #f6f7fb 460px);
  line-height:1.75;
}

a{ color: inherit; }
a:hover{ color: var(--brand); }
img{ max-width:100%; height:auto; vertical-align:middle; border:0; }

.container{ width:min(1100px, 92vw); margin-inline:auto; }

.skip{
  position:absolute;
  left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left: 12px; top: 12px;
  width:auto; height:auto;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(11,16,32,.60);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}
.brand{
  text-decoration:none;
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 220px;
}
.brand-logo{ width: 260px; height:auto; display:block; }
.brand-sub{ font-size:12px; color: rgba(255,255,255,.72); }

.nav{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  text-decoration:none;
  color: rgba(255,255,255,.88);
  font-size:14px;
  font-weight:600;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.nav a:hover{
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

/* Hero */
.hero{
  padding: 54px 0 30px;
  color:#fff;
}
.kicker{ margin:0 0 10px; font-size:14px; color: rgba(255,255,255,.72); }
.hero h1{
  margin:0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.15;
  letter-spacing: .01em;
}
.lead{
  margin:0 0 18px;
  color: rgba(255,255,255,.78);
  max-width: 70ch;
}
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:700;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(2,6,23,.25);
}
.btn.ghost{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

/* Slideshow wrapper (works with existing slide.css) */
#mainimg {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 18px;
}

/* すべてのスライド画像 */
@keyframes slide1 {
	0% {opacity: 0;}
	10% {opacity: 1;}
	30% {opacity: 1;}
	40% {opacity: 0;}
	100% {opacity: 0;}
}
/*２枚目*/
@keyframes slide2 {
	0% {opacity: 0;}
	20% {opacity: 0;}
	30% {opacity: 1;}
	60% {opacity: 1;}
	70% {opacity: 0;}
	100% {opacity: 0;}
}
/*３枚目*/
@keyframes slide3 {
	0% {opacity: 0;}
	50% {opacity: 0;}
	60% {opacity: 1;}
	85% {opacity: 1;}
	95% {opacity: 0;}
	100% {opacity: 0;}
}

/*4枚目*/
@keyframes slide4 {
	0% {opacity: 0;}
	50% {opacity: 0;}
	60% {opacity: 1;}
	85% {opacity: 1;}
	95% {opacity: 0;}
	100% {opacity: 0;}
}

/*mainimg
---------------------------------------------------------------------------*/
/*画像ブロック*/
#mainimg {
	clear: left;
	position: relative;
	margin-bottom: 40px;
	border: 10px solid #fff;
	-webkit-box-shadow: 0px 0px 20px rgba(0,0,0,0.5);	/*影の設定。右へ、下へ、ぼかし幅。rgbaは色設定で0,0,0は黒。0.2が透明度。*/
	box-shadow: 0px 0px 20px rgba(0,0,0,0.5);			/*同上*/
}
/*３枚画像の共通設定*/
#slide1,#slide2,#slide3,#slide4 {
	-webkit-animation-duration: 12s;	/*実行する時間。「s」は秒の事。*/
	animation-duration: 12s;			/*同上*/
	-webkit-animation-iteration-count:infinite;	/*実行する回数。「infinite」は無限に繰り返す意味。*/
	animation-iteration-count:infinite;			/*同上*/
	position: absolute;left:0px;top:0px;width: 100%;height: 100%;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
}
/*土台画像*/
#slide0 {
	position: relative;width: 100%;height: 100%;
}
/*１枚目*/
#slide1 {
	-webkit-animation-name: slide1;	/*上で設定しているキーフレーム（keyframes）の名前*/
	animation-name: slide1;			/*同上*/
}
/*２枚目*/
#slide2 {
	-webkit-animation-name: slide2;	/*上で設定しているキーフレーム（keyframes）の名前*/
	animation-name: slide2;			/*同上*/
}
/*３枚目*/
#slide3 {
	-webkit-animation-name: slide3;	/*上で設定しているキーフレーム（keyframes）の名前*/
	animation-name: slide3;			/*同上*/
}
/*4枚目*/
#slide4 {
	-webkit-animation-name: slide4;	/*上で設定しているキーフレーム（keyframes）の名前*/
	animation-name: slide4;			/*同上*/
}

/* Section */
.section{
  padding: 34px 0 18px;
}
.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section h2{
  margin:0;
  font-size: 20px;
  color: var(--fg);
}
.muted{ margin:0; color: var(--muted); font-size: 13px; }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}

/* News as timeline + cards */
.news{
  margin: 0;
  padding: 6px 0 0 18px;
  border-left: 3px solid rgba(18,22,101,.18);
}
.news dt{
  float:none;
  width:auto;
  font-weight:800;
  color: var(--brand);
  margin-top: 18px;
}
.news dd{
  margin: 8px 0 0;
  padding: 14px 14px;
  background: #f8f9ff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(2,6,23,.05);
}

/* Make legacy <font> tags look modern (no need to rewrite all entries immediately) */
#newinfo font{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 6px;
  border: 1px solid transparent;
  line-height: 1.1;
}
#newinfo font[color="red"]{
  color: #9a1111 !important;
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.22);
}
#newinfo font[color="blue"]{
  color: #0b4fbf !important;
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.22);
}
#newinfo font[color="green"]{
  color: #0a7a2b !important;
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.22);
}
#newinfo img{
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 10px;
}

/* Links block */
.more-links{ margin-top: 18px; }
.more-links h3{ margin:0 0 10px; font-size: 16px; }
.linklist{ margin:0; padding-left: 18px; color: var(--muted); }
.linklist li{ margin: 6px 0; }
.linklist a{ text-decoration: none; color: var(--accent); font-weight: 650; }
.linklist a:hover{ text-decoration: underline; }

/* Footer */
.site-footer{
  padding: 24px 0 30px;
  color: rgba(255,255,255,.72);
}
.site-footer a{ text-decoration:none; }

/* Responsive */
@media (max-width: 840px){
  body{
    background: linear-gradient(180deg, var(--bg) 420px, #f6f7fb 420px);
  }
  .brand-logo{ width: 220px; }
  .nav a{ font-size: 13px; padding: 8px 10px; }
  .hero{ padding: 44px 0 24px; }
}
@media (max-width: 840px){
  body#top{
    background: linear-gradient(180deg, var(--bg) 650px, #f6f7fb 680px);
  }
  body{
    background: linear-gradient(180deg, var(--bg) 480px, #f6f7fb 500px);
  }
}

@media (max-width: 640px){
  .hero h1{
    font-size: 22px;
  }
}
