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

:root {
  --green: #2ecc40;
  --green-dark: #1fa82e;
  --black: #111111;
  --gray: #222222;
  --gray-light: #f4f4f4;
  --white: #ffffff;
  --font-en: 'Oswald', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

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

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

/* ===== BUTTON ===== */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  padding: 0.75rem 2rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--green);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, 90%);
  margin-inline: auto;
  height: 60px;
}

.logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.logo span { color: var(--green); }

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.nav a:hover { color: var(--green); }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(17,17,17,0.7) 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(46,204,64,0.03) 40px,
      rgba(46,204,64,0.03) 80px
    );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(46,204,64,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.line-white { color: var(--white); }
.line-green { color: var(--green); }

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

/* ===== LEAD ===== */
.lead {
  padding: 100px 0;
  background: var(--gray-light);
  color: var(--black);
}

.lead .container {
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  flex-wrap: wrap;
}

.lead-heading {
  font-family: var(--font-en);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  flex-shrink: 0;
}

.lead-outline {
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

.lead-green { color: var(--green); }

.lead-ja {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 2;
  color: var(--gray);
  padding-bottom: 0.4rem;
}

/* ===== APPS ===== */
.apps {
  padding: 100px 0;
  background: var(--black);
}

.section-header { margin-bottom: 0; }

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

.app-card {
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: 0 12px 40px rgba(46,204,64,0.15);
}

.app-card-link {
  display: block;
}

.app-thumb-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1a1a;
}

.app-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.app-card:hover .app-thumb {
  transform: scale(1.04);
}

.app-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-name {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.app-store-badge img {
  height: 36px;
  width: auto;
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: var(--green);
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--black);
  padding-right: 0;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--gray-light);
  color: var(--black);
}

.about .section-label { color: var(--green-dark); }
.about .section-title { color: var(--black); }

.about-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 260px;
}

.about-text p {
  line-height: 2;
  font-size: 0.95rem;
  color: var(--gray);
}

.about-accent { flex-shrink: 0; }

.about-accent-box {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.accent-num {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.accent-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 5%;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: min(1100px, 100%);
  margin-inline: auto;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ===== FADE IN ===== */
.fade-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
  padding: 140px 0 60px;
  background: var(--black);
}

.subpage-title {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
}

/* ===== NEWS SECTION (トップページ) ===== */
.news-section {
  padding: 100px 0;
  background: var(--black);
}

.news-list {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--green);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.news-title {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.news-empty {
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 0.65rem 1.8rem;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--black);
}

/* ===== NEWS FULL PAGE ===== */
.news-full-section {
  padding: 60px 0 100px;
  background: var(--black);
}

.news-list-full { margin-bottom: 0; }

.news-item-full {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.8rem 0;
}

.news-body { width: 100%; }

.news-title-full {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.news-content {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
}

/* ===== NEWS ITEM LINK ===== */
.news-item-link {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  width: 100%;
  color: inherit;
  transition: opacity 0.2s;
}

.news-item-link:hover {
  opacity: 0.7;
}

.news-item-link:hover .news-title,
.news-item-link:hover .news-title-full {
  color: var(--green);
}

/* ===== NEWS DETAIL PAGE ===== */
.news-detail-date {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--green);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

.news-detail-section {
  padding: 60px 0 120px;
  background: var(--black);
}

.news-detail-inner {
  max-width: 760px;
}

.news-detail-image-wrap {
  margin-bottom: 2.5rem;
}

.news-detail-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

.news-detail-content {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3rem;
}

.news-back-link {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.news-back-link:hover {
  color: var(--green);
}

.news-image-wrap {
  margin-top: 1.2rem;
}

.news-image {
  max-width: 100%;
  width: 480px;
  height: auto;
  display: block;
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 60px 0 120px;
  background: var(--black);
}

.contact-inner {
  max-width: 640px;
}

.contact-form {
  display: flex !important;
  flex-direction: column !important;
}

/* ===== FORM PARTS ===== */
.form-group {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 1.8rem !important;
  width: 100% !important;
}

.form-label {
  display: block !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem !important;
  color: rgba(255,255,255,0.8);
}

.required {
  color: var(--green);
  margin-left: 0.2rem;
}

.form-input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-ja);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--green);
}

.form-input::placeholder {
  color: rgba(255,255,255,0.3);
}

textarea.form-input {
  display: block !important;
  width: 100% !important;
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

/* ===== ALERT ===== */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(46,204,64,0.15);
  border-left: 4px solid var(--green);
  color: var(--green);
}

.alert-error {
  background: rgba(220,50,50,0.15);
  border-left: 4px solid #e74c3c;
  color: #e74c3c;
}

/* ===== ADMIN LOGIN ===== */
.admin-login-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 2rem;
}

.admin-login-box {
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.admin-login-logo {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.admin-login-title {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.admin-back-link {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  transition: color 0.2s;
}

.admin-back-link:hover { color: var(--green); }

/* ===== ADMIN DASHBOARD ===== */
.admin-wrap {
  min-height: 100svh;
  background: #0d0d0d;
  color: var(--white);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray);
  border-bottom: 2px solid var(--green);
  padding: 1rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.admin-header-logo span {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.admin-header-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.admin-header-links a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.admin-header-links a:hover { color: var(--green); }

.admin-logout { color: #e74c3c !important; }

.admin-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.admin-card {
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-card-title {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: middle;
  color: rgba(255,255,255,0.85);
}

.admin-table-date {
  color: var(--green) !important;
  font-family: var(--font-en);
  white-space: nowrap;
}

.admin-table-content {
  color: rgba(255,255,255,0.4) !important;
}

.btn-delete {
  background: transparent;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-ja);
}

.btn-delete:hover {
  background: #e74c3c;
  color: var(--white);
}

/* ===== CONTACT BANNER (トップページ) ===== */
.contact-banner {
  padding: 100px 0;
  background: var(--green);
}

.contact-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-banner .section-label {
  color: var(--black);
  opacity: 0.6;
}

.contact-banner-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.contact-banner-sub {
  font-size: 0.95rem;
  color: rgba(0,0,0,0.6);
}

.contact-banner .btn-primary {
  background: var(--black);
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-banner .btn-primary:hover {
  background: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav { gap: 1.2rem; }
  .lead .container { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .about-inner { flex-direction: column; }
  .about-accent-box { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
}
