/*
Theme Name: EAF Theme
Theme URI: https://eaf.thebridge.jp
Author: THE BRIDGE, Inc.
Author URI: https://thebridge.jp
Description: Enable AI Foundry official website theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eaf
*/

/* ==========================================
   Enable AI Foundry - WordPress Theme CSS
   Mobile-first, beige theme, Nunito font
   ========================================== */

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

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #222;
  background: #ebeae5;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   Shared
   ========================================== */
.section-divider {
  max-width: 720px;
  margin: 0 auto 32px;
  border-top: 2px dotted #d5d4cf;
}

/* ==========================================
   Header
   ========================================== */
.header {
  position: sticky;
  top: 0;
  background: rgba(235, 234, 229, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d5d4cf;
  z-index: 100;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 24px;
  width: auto;
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 1px;
  transition: transform 0.2s;
}

/* Nav */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ebeae5;
  border-bottom: 1px solid #d5d4cf;
  padding: 12px 20px;
}

.nav.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav a {
  color: #4A4A4A;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 0;
}

.nav a:hover {
  color: #251086;
}

.nav-active {
  color: #251086 !important;
}

/* ==========================================
   Hero
   ========================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #251086 0%, #3a1ca8 40%, #72DDC3 100%);
  padding: 56px 20px 48px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: rgba(114, 221, 195, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255, 0, 70, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  text-align: left;
}

/* ==========================================
   Email Signup
   ========================================== */
.signup {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.signup-card {
  background: #fff;
  border: 1px solid #d5d4cf;
  border-radius: 12px;
  padding: 24px;
}

.signup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #222;
}

.section-icon {
  width: 22px;
  height: 22px;
  color: #251086;
}

.signup-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4A4A4A;
  margin-bottom: 8px;
}

.signup-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-input-group button {
  align-self: center;
  width: auto;
}

.signup-input-group input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  border: 1px solid #d5d4cf;
  border-radius: 8px;
  outline: none;
  background: #f9f9f7;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-input-group input:focus {
  border-color: #251086;
  box-shadow: 0 0 0 3px rgba(37, 16, 134, 0.12);
}

.signup-input-group button {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: #fff;
  background: #251086;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.signup-input-group button:hover {
  background: #1a0b60;
}

.signup-input-group button:active {
  transform: scale(0.98);
}

.signup-message {
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 1.2em;
}

.signup-success {
  color: #1a7a3a;
}

.signup-error {
  color: #c0392b;
}

/* ==========================================
   About
   ========================================== */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
  text-align: center;
}

.about-icon-wrap {
  margin-bottom: 16px;
}

.about-logo {
  width: 64px;
  height: auto;
  opacity: 0.7;
}

.about h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4A4A4A;
  margin-bottom: 16px;
}

.about > p {
  font-size: 0.95rem;
  color: #222;
  line-height: 2;
  text-align: left;
}

/* ==========================================
   5 Domains
   ========================================== */
.domains {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
  text-align: center;
}

.domains h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4A4A4A;
  text-align: center;
  margin-bottom: 24px;
}

.domains-image-wrap {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.domains-image {
  width: 100%;
  height: auto;
  display: block;
}

.domains-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.domain-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #d5d4cf;
  border-radius: 10px;
}

.domain-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ebeae5;
}

.domain-icon {
  width: 22px;
  height: 22px;
  color: #251086;
}

.domain-body {
  flex: 1;
  min-width: 0;
}

.domain-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.domain-desc {
  display: block;
  font-size: 0.8rem;
  color: #686868;
  line-height: 1.4;
}

/* ==========================================
   Bases
   ========================================== */
.bases {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
  text-align: center;
}

.bases h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4A4A4A;
  text-align: center;
  margin-bottom: 16px;
}

.bases-lead {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.9;
  margin-bottom: 24px;
}

.bases-image-wrap {
  border-radius: 12px;
  overflow: hidden;
}

.bases-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   Links
   ========================================== */
.links {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d5d4cf;
  border-radius: 12px;
  text-decoration: none;
  color: #222;
  transition: background 0.2s, box-shadow 0.2s;
}

.link-card:hover {
  background: #f5f5f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.link-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon-blue { background: #e8e0f7; }
.link-icon-blue .link-icon { color: #251086; }
.link-icon-red { background: #ffe0ea; }
.link-icon-red .link-icon { color: #FF0046; }

.link-icon {
  width: 22px;
  height: 22px;
}

.link-body {
  flex: 1;
  min-width: 0;
}

.link-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.link-desc {
  display: block;
  font-size: 0.8rem;
  color: #686868;
  line-height: 1.4;
}

.link-arrow {
  width: 18px;
  height: 18px;
  color: #bbb;
  flex-shrink: 0;
}

/* ==========================================
   Notice
   ========================================== */
.notice {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.notice p {
  font-size: 0.8rem;
  color: #686868;
  line-height: 1.8;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  border-top: 1px dashed #aaa;
  text-align: center;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #4A4A4A;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.75rem;
  color: #999;
}

/* ==========================================
   Page Header (News etc.)
   ========================================== */
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #251086 0%, #3a1ca8 40%, #72DDC3 100%);
  padding: 40px 20px 36px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(114, 221, 195, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   News List
   ========================================== */
.news-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: #fff;
  border: 1px solid #d5d4cf;
  border-radius: 12px;
  overflow: hidden;
}

.news-card-image {
  display: block;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
  transform: scale(1.03);
}

.news-card-body {
  padding: 20px 24px 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.news-meta time {
  font-size: 0.8rem;
  color: #686868;
  font-weight: 600;
}

.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #251086;
  background: #e8e0f7;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.news-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.news-title a {
  color: #222;
  text-decoration: none;
}

.news-title a:hover {
  color: #251086;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #4A4A4A;
  line-height: 1.8;
  margin-bottom: 16px;
}

.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #251086;
  text-decoration: none;
}

.news-readmore:hover {
  text-decoration: underline;
}

.news-readmore-icon {
  width: 16px;
  height: 16px;
}

/* ==========================================
   Article Single
   ========================================== */
.article-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #251086 0%, #3a1ca8 40%, #72DDC3 100%);
  padding: 32px 20px 36px;
}

.article-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(114, 221, 195, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.article-header-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 20px;
}

.article-back:hover { color: #fff; }

.article-back-icon {
  width: 16px;
  height: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.article-meta time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.article-meta .news-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.article-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}

/* Article Cover Image */
.article-cover {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: -8px;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 12px 12px;
}

.article-cover-caption {
  font-size: 0.8rem;
  color: #686868;
  line-height: 1.6;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 3px solid #d5d4cf;
}

/* Article Body */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.article-body p {
  font-size: 0.95rem;
  color: #222;
  line-height: 2;
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ebeae5;
}

.article-body a {
  color: #251086;
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 28px 0;
}

.article-body figure {
  margin: 28px 0;
}

.article-body figure img {
  margin: 0;
}

.article-body figcaption {
  font-size: 0.8rem;
  color: #686868;
  line-height: 1.6;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 3px solid #d5d4cf;
}

.article-body blockquote {
  font-size: 0.9rem;
  color: #4A4A4A;
  line-height: 1.9;
  margin: 24px 0;
  padding: 20px 24px;
  background: #f5f5f0;
  border-left: 4px solid #251086;
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  margin-bottom: 0;
}

/* Article Source */
.article-source {
  margin-top: 40px;
  padding: 16px 20px;
  background: #f5f5f0;
  border: 1px solid #d5d4cf;
  border-radius: 8px;
}

.article-source p {
  font-size: 0.85rem !important;
  color: #686868 !important;
  margin-bottom: 0 !important;
}

/* Article Footer Nav */
.article-footer-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.article-back-bottom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #251086;
  text-decoration: none;
  padding: 12px 20px;
  background: #f5f5f0;
  border: 1px solid #d5d4cf;
  border-radius: 8px;
  transition: background 0.2s;
}

.article-back-bottom:hover {
  background: #ebeae5;
}

/* ==========================================
   Membership
   ========================================== */
.membership {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.membership-structure {
  display: flex;
  flex-direction: column;
}

/* 構成員（最上段） */
.ms-tier-founding {
  background: linear-gradient(135deg, #251086 0%, #3a1ca8 40%, #72DDC3 100%);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 28px 24px 20px;
  text-align: center;
}

.ms-tier-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ms-tier-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 4px 0 8px;
}

.ms-tier-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}

.ms-founding-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.ms-badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ms-secretariat {
  margin-top: 12px;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* コネクタ */
.ms-connector {
  display: flex;
  justify-content: center;
  background: #fff;
  border-left: 1px solid #d5d4cf;
  border-right: 1px solid #d5d4cf;
  height: 24px;
}

.ms-connector span {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #251086, #72DDC3);
  opacity: 0.3;
}

/* 準構成員 */
.ms-tier-associate {
  background: #fff;
  border-left: 1px solid #d5d4cf;
  border-right: 1px solid #d5d4cf;
  padding: 28px 24px;
  position: relative;
}

.ms-tier-associate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, #251086, #72DDC3);
  border-radius: 1px;
}

/* 一般会員 */
.ms-tier-member {
  background: #fff;
  border: 1px solid #d5d4cf;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 28px 24px 32px;
  position: relative;
}

.ms-tier-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #e8e6e1;
}

/* 共通パーツ */
.ms-tier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ms-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ms-icon-purple { background: #e8e0f7; color: #251086; }
.ms-icon-teal { background: #e0f7f1; color: #1a7a3a; }

.ms-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.ms-name-en {
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
}

.ms-desc {
  font-size: 0.88rem;
  color: #4A4A4A;
  margin-bottom: 16px;
  line-height: 1.8;
}

.ms-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ms-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
}

.ms-detail-label {
  flex-shrink: 0;
  width: 56px;
  color: #999;
  font-weight: 700;
  font-size: 0.75rem;
  padding-top: 2px;
}

.ms-detail > span:last-child {
  color: #4A4A4A;
}

.ms-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 14px;
}

.ms-highlight-purple { background: #e8e0f7; color: #251086; }
.ms-highlight-teal { background: #e0f7f1; color: #1a7a3a; }

/* 特典リスト */
.ms-benefits {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ms-benefits li {
  font-size: 0.85rem;
  color: #4A4A4A;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.ms-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #251086;
  border-radius: 50%;
  opacity: 0.5;
}

/* 賛助会員 申込案内 */
.ms-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f5f0ff;
  border-left: 3px solid #251086;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
  border-radius: 4px;
}

/* 料金タグ */
.ms-price {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid;
  margin-right: 6px;
}

.ms-price-free {
  color: #1a7a3a;
  border-color: #c8edd8;
  background: #edfaf2;
}

.ms-price-paid {
  color: #251086;
  border-color: #d8d0f0;
  background: #f4f0ff;
}

/* CTA */
.ms-cta {
  text-align: center;
  margin-top: 36px;
}

.ms-cta-btn {
  display: inline-block;
  background: #251086;
  color: #fff;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.ms-cta-btn:hover {
  background: #1a0b60;
}

.ms-cta-btn:active {
  transform: scale(0.98);
}

/* ==========================================
   Bylaws
   ========================================== */
.bylaws {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.bylaws-content {
  background: #fff;
  border: 1px solid #d5d4cf;
  border-radius: 16px;
  padding: 32px 24px;
}

.bylaws-preamble {
  font-size: 0.9rem;
  color: #4A4A4A;
  line-height: 1.9;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e6e1;
}

.bylaws-article {
  margin-bottom: 28px;
}

.bylaws-article:last-child {
  margin-bottom: 0;
}

.bylaws-article h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #251086;
  margin-bottom: 10px;
}

.bylaws-article p {
  font-size: 0.88rem;
  color: #222;
  line-height: 1.9;
  margin-bottom: 8px;
}

.bylaws-article ol {
  list-style: none;
  counter-reset: bylaws-counter;
  margin: 0;
  padding: 0;
}

.bylaws-article ol li {
  counter-increment: bylaws-counter;
  font-size: 0.88rem;
  color: #222;
  line-height: 1.9;
  padding-left: 28px;
  position: relative;
  margin-bottom: 6px;
}

.bylaws-article ol li::before {
  content: counter(bylaws-counter) ".";
  position: absolute;
  left: 0;
  color: #999;
  font-weight: 700;
  font-size: 0.85rem;
}

.bylaws-article ol li strong {
  color: #222;
}

.bylaws-note {
  font-size: 0.82rem !important;
  color: #686868 !important;
  margin-top: 8px;
}

/* ==========================================
   Register (会員登録)
   ========================================== */
.register {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.register-card {
  background: #fff;
  border: 1px solid #d5d4cf;
  border-radius: 12px;
  padding: 36px 28px;
}

.register-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #251086;
  margin-bottom: 6px;
}

.register-divider {
  width: 40px;
  height: 3px;
  background: #251086;
  margin: 0 auto 20px auto;
  border-radius: 2px;
}

.register-lead {
  text-align: center;
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 28px;
  line-height: 1.8;
}

.register-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.register-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  flex: 1;
}

.register-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4A4A4A;
  margin-bottom: 6px;
}

.register-field .required {
  color: #FF0046;
  margin-left: 2px;
}

.register-field input,
.register-field select {
  padding: 12px 16px;
  border: 1px solid #d5d4cf;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  color: #222;
  background: #f9f9f7;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.register-field input:focus,
.register-field select:focus {
  outline: none;
  border-color: #251086;
  box-shadow: 0 0 0 3px rgba(37, 16, 134, 0.12);
}

.register-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.register-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: #251086;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.register-submit:hover { background: #1a0b60; }
.register-submit:active { transform: scale(0.98); }

.register-message {
  text-align: center;
  font-size: 0.88rem;
  margin-top: 12px;
  min-height: 1.4em;
}

.register-success { color: #1a7a3a; }

.register-note {
  text-align: center;
  font-size: 0.78rem;
  color: #999;
  margin-top: 24px;
  line-height: 1.7;
}

.register-note a {
  color: #251086;
  text-decoration: underline;
}

/* Register info cards */
.register-info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #f9f9f7;
  border: 1px solid #e8e6e1;
  border-radius: 10px;
}

.register-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.register-info-icon-teal { background: #e0f7f1; color: #1a7a3a; }
.register-info-icon-purple { background: #e8e0f7; color: #251086; }

.register-info-body { flex: 1; }

.register-info-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 2px;
}

.register-info-desc {
  font-size: 0.8rem;
  color: #686868;
  line-height: 1.6;
}

/* ==========================================
   Contact (お問い合わせ)
   ========================================== */
.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.contact-card {
  background: #fff;
  border: 1px solid #d5d4cf;
  border-radius: 12px;
  padding: 36px 28px;
}

.contact-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #251086;
  margin-bottom: 6px;
}

.contact-divider {
  width: 40px;
  height: 3px;
  background: #251086;
  margin: 0 auto 20px auto;
  border-radius: 2px;
}

.contact-lead {
  text-align: center;
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 28px;
  line-height: 1.8;
}

.contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  flex: 1;
}

.contact-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4A4A4A;
  margin-bottom: 6px;
}

.contact-field .required {
  color: #FF0046;
  margin-left: 2px;
}

.contact-field input,
.contact-field textarea {
  padding: 12px 16px;
  border: 1px solid #d5d4cf;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  color: #222;
  background: #f9f9f7;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #251086;
  box-shadow: 0 0 0 3px rgba(37, 16, 134, 0.12);
}

.contact-agree {
  margin-bottom: 20px;
}

.contact-agree label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #4A4A4A;
  cursor: pointer;
}

.contact-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #251086;
  flex-shrink: 0;
}

.contact-agree a {
  color: #251086;
  text-decoration: underline;
}

.contact-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: #251086;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.contact-submit:hover { background: #1a0b60; }
.contact-submit:active { transform: scale(0.98); }

.contact-error-msg {
  text-align: center;
  color: #d32f2f;
  font-size: 0.88rem;
  margin-bottom: 16px;
  padding: 10px;
  background: #fdecea;
  border-radius: 6px;
}

.contact-note {
  text-align: center;
  font-size: 0.78rem;
  color: #999;
  margin-top: 24px;
  line-height: 1.7;
}

.contact-note a {
  color: #251086;
  text-decoration: underline;
}

/* Contact thanks */
.contact-thanks {
  text-align: center;
  padding: 32px 0;
}

.contact-thanks-icon {
  color: #1a7a3a;
  margin-bottom: 16px;
}

.contact-thanks-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 8px;
}

.contact-thanks-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact-back-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #251086;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.contact-back-btn:hover { background: #1a0b60; }

/* ==========================================
   Desktop (768px+)
   ========================================== */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 24px;
  }

  .hero {
    padding: 80px 20px 64px;
  }

  .hero::before {
    width: 380px;
    height: 380px;
    top: -120px;
    right: -80px;
  }

  .hero::after {
    width: 220px;
    height: 220px;
  }

  .hero-tagline {
    font-size: 2.5rem;
  }

  .hero-lead {
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
  }

  .signup-input-group {
    flex-direction: row;
  }

  .signup-input-group button {
    width: auto;
  }

  .signup-input-group input {
    max-width: 400px;
  }

  .domains-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .about h2,
  .domains h2,
  .bases h2 {
    font-size: 1.8rem;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .article-body h2 {
    font-size: 1.4rem;
  }

  /* Membership desktop */
  .ms-tier-founding { padding: 36px 32px 24px; }
  .ms-tier-title { font-size: 1.5rem; }
  .ms-tier-associate,
  .ms-tier-member { padding: 32px; }
  .ms-details {
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
  }

  /* Bylaws desktop */
  .bylaws-content { padding: 40px 36px; }

  /* Register desktop */
  .register-card { padding: 44px 36px; }
  .register-row { gap: 16px; }
}

/* ==========================================
   Mobile (480px-)
   ========================================== */
@media (max-width: 480px) {
  .register-row {
    flex-direction: column;
    gap: 0;
  }
  .register-card {
    padding: 28px 20px;
  }
}
