:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #0ea5e9;
  --bg-main: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:
    0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@font-face {
  font-family: HinaMincho;
  src: url("../font/HinaMincho-Regular.ttf"); /*カレントディレクトリから指定*/
}
html {
  scroll-behavior: smooth;
}

body {
    
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.header-logo h1 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.025em;
}

nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

nav a:hover {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.06);
}

.container {
  max-width: 1080px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  transform: translateY(-300px);
}

.svg-container {
  width: 98vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-10px);
}

text.title {
  color: mintcream;
  -webkit-text-stroke: 10px cadetblue;
  paint-order: stroke;

  font-size: 140px;
  font-weight: bold;
  /*fill: #333;*/
  /* CSS側でも letter-spacing を調整可能 */
  letter-spacing: 0.1em;
}
text.back-title {

  font-size: 300px;
  font-weight: bold;
  /*fill: #333;*/
  /* CSS側でも letter-spacing を調整可能 */
  letter-spacing: 0.1em;
}
.hero {
  background:
    radial-gradient(at 10% 20%, rgba(120, 119, 198, 0.3) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(255, 119, 115, 0.3) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(78, 205, 196, 0.25) 0px, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  /* 上から80%の位置までは不透明（black）、そこから100%に向けて透明（transparent） */
  mask-image: linear-gradient(to bottom, black 50%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 70%);
  z-index: -999;
}
.svg-container{
  z-index: -999;
}
svg{
    height: 80%;
}


/*こっから本家*/

 section {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }

        @media (min-width: 768px) {
            section {
                padding: 2.5rem;
                margin-bottom: 2rem;
            }
            .hero {
                padding: 4rem 2rem;
            }
            .hero h2 {
                font-size: 2.5rem;
            }
            .hero p {
                font-size: 1.125rem;
            }
            header {
                padding: 1rem 2rem;
            }
            .container {
                margin: 2.5rem auto;
                padding: 0 1.5rem;
            }
        }

        section:hover {
            box-shadow: var(--shadow-md);
        }

        h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-main);
            border-bottom: 2px solid var(--border);
            padding-bottom: 0.75rem;
            margin-top: 0;
            margin-bottom: 1.5rem;
            letter-spacing: -0.02em;
        }

        @media (min-width: 768px) {
            h3 {
                font-size: 1.35rem;
            }
        }

        h4 {
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--primary);
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }

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

        @media (min-width: 768px) {
            .grid-2 {
                grid-template-columns: 1fr 1fr;
                gap: 1.5rem;
            }
            header {
                flex-direction: row;
            }
        }

        .iframe-wrapper {
            margin-top: 0.5rem;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            background: #fff;
            box-shadow: var(--shadow-sm);
        }

        iframe {
            width: 100%;
            height: 280px;
            border: none;
            display: block;
            overflow: hidden;
        }

        ul {
            padding-left: 1.25rem;
            color: var(--text-main);
        }

        li {
            margin-bottom: 0.5rem;
            word-break: break-all;
        }

        p {
            margin-top: 0;
            margin-bottom: 1rem;
            color: #334155;
            word-break: break-word;
        }

        strong {
            color: var(--text-main);
            font-weight: 600;
        }

        code {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            background-color: #f1f5f9;
            color: var(--primary);
            padding: 0.2em 0.4em;
            border-radius: 4px;
            font-size: 0.85em;
            word-break: break-all;
        }

        .faq-item {
            background-color: #f8fafc;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 1rem;
            margin-bottom: 1rem;
            transition: var(--transition);
        }

        @media (min-width: 768px) {
            .faq-item {
                padding: 1.25rem;
            }
        }

        .faq-item:hover {
            border-color: #cbd5e1;
        }

        .faq-q {
            font-weight: 700;
            color: var(--primary);
            font-size: 1rem;
            margin-bottom: 0.35rem;
        }

        .faq-a {
            color: var(--text-main);
            margin: 0;
        }

        .news-box {
            background: #f8fafc;
            border-left: 4px solid var(--primary);
            padding: 1rem 1.25rem;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            margin-bottom: 1.25rem;
            border-top: 1px solid var(--border);
            border-right: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        @media (min-width: 768px) {
            .news-box {
                padding: 1.25rem 1.5rem;
            }
        }

        .news-box h4 {
            margin-top: 0;
            margin-bottom: 0.5rem;
            color: var(--text-main);
        }

        .archive-container {
            background: #0f172a;
            border-radius: var(--radius-md);
            padding: 1.25rem;
            color: #f8fafc;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
            font-size: 0.9rem;
            margin-top: 1rem;
            margin-bottom: 1.5rem;
        }

        .archive-header {
            font-weight: 700;
            color: #38bdf8;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #334155;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .archive-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            max-height: 450px;
            overflow-y: auto;
            padding-right: 0.25rem;
        }

        .archive-list::-webkit-scrollbar {
            width: 6px;
        }

        .archive-list::-webkit-scrollbar-track {
            background: #1e293b;
            border-radius: 3px;
        }

        .archive-list::-webkit-scrollbar-thumb {
            background: #475569;
            border-radius: 3px;
        }

        .archive-item {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: var(--radius-sm);
            padding: 0.875rem;
            transition: var(--transition);
        }

        .archive-item:hover {
            border-color: #64748b;
            background: #263548;
        }

        .archive-badge {
            display: inline-block;
            background: #0284c7;
            color: #fff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            margin-bottom: 0.35rem;
        }

        .archive-badge.level-7 {
            background: #dc2626;
        }

        .archive-badge.level-5 {
            background: #ea580c;
        }

        .archive-title {
            font-weight: 700;
            color: #f1f5f9;
            margin-bottom: 0.25rem;
            font-size: 1rem;
        }

        .archive-meta {
            font-size: 0.8rem;
            color: #94a3b8;
            margin-bottom: 0.35rem;
        }

        .archive-content-text {
            font-size: 0.85rem;
            color: #cbd5e1;
            margin-bottom: 0.35rem;
            white-space: pre-wrap;
        }

        .archive-verdict {
            font-size: 0.85rem;
            color: #38bdf8;
            border-top: 1px dashed #334155;
            padding-top: 0.35rem;
            margin-top: 0.35rem;
            white-space: pre-wrap;
        }

        .members-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .member-chip {
            background: #f1f5f9;
            border: 1px solid var(--border);
            padding: 0.35rem 0.75rem;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--primary);
        }

        details {
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 1rem;
            margin-bottom: 1rem;
            transition: var(--transition);
        }

        @media (min-width: 768px) {
            details {
                padding: 1.25rem;
            }
        }

        details[open] {
            background: #ffffff;
            border-color: #cbd5e1;
            box-shadow: var(--shadow-sm);
        }

        summary {
            font-weight: 700;
            cursor: pointer;
            color: var(--secondary);
            font-size: 1rem;
            user-select: none;
            outline: none;
        }

        details[open] summary {
            color: var(--primary);
            margin-bottom: 1rem;
            border-bottom: 1px dashed var(--border);
            padding-bottom: 0.75rem;
        }

        footer {
            text-align: center;
            padding: 2rem 1rem;
            color: var(--text-muted);
            font-size: 0.875rem;
            border-top: 1px solid var(--border);
            background: var(--surface);
            margin-top: 3rem;
        }