/* ==========================================
   1. Reset & Base
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  background: #0d0d0d;
  color: #ededed;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ==========================================
   2. Layout
   ========================================== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ==========================================
   3. Navigation
   ========================================== */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #18E299;
}

.lang-switch {
  margin-left: auto;
  color: #999999;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 9999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
  color: #ededed;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   4. Breadcrumb
   ========================================== */
.breadcrumb {
  font-size: 13px;
  color: #999999;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
}

.breadcrumb a {
  color: #999999;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #18E299;
}

/* ==========================================
   5. Typography & Page Structure
   ========================================== */
.page-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.64px;
  color: #ededed;
}

.page-header {
  margin-bottom: 48px;
}

.page-desc {
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.7;
}

.last-updated {
  color: #999999;
  font-size: 14px;
  margin-bottom: 48px;
  text-align: center;
}

.intro-text {
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* terms / privacy-policy のセクション */
.section {
  margin-bottom: 48px;
}

.section > p {
  color: #b0b0b0;
  font-size: 16px;
  margin-bottom: 12px;
}

.section > ul {
  list-style: none;
  margin: 10px 0;
}

.section > ul li {
  color: #b0b0b0;
  font-size: 16px;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.section > ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #18E299;
}

/* articles/index のセクション区切りラベル */
p.section-label {
  font-size: 13px;
  font-weight: 500;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* terms / privacy-policy の見出し */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #ededed;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.category-title {
  font-size: 22px;
  font-weight: 600;
  color: #ededed;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.44px;
}

.category-title:first-of-type {
  margin-top: 0;
}

.all-articles {
  text-align: center;
  margin-bottom: 48px;
}

.all-articles a {
  color: #b0b0b0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.all-articles a:hover {
  color: #18E299;
}

.all-articles-lead {
  color: #999999;
  font-size: 14px;
  margin-bottom: 12px;
}

/* 強調リンク（CTAや意図的に目を止める箇所に限定） */
.link-accent {
  color: #18E299;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.link-accent:hover {
  opacity: 0.8;
}

/* ==========================================
   6. Article
   ========================================== */
.article {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px;
}

.article-title {
  font-size: 32px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 32px;
  color: #ededed;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.article-meta {
  font-size: 13px;
  color: #999999;
  margin-bottom: 32px;
  font-weight: 400;
}

.article-meta a {
  color: #999999;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 2px;
}

.article h2:not(.article-title) {
  font-size: 22px;
  font-weight: 600;
  color: #ededed;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.44px;
}

.article h2:not(.article-title):first-child {
  margin-top: 0;
}

.article h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: #ededed;
  letter-spacing: -0.18px;
}

.article h3:first-of-type {
  margin-top: 0;
}

.article p {
  color: #b0b0b0;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

/* コンテンツインラインリンク
   p・li の中の <a> のみ対象とし、カード系リンク（related-link 等）を除外する */
.article p a,
.article li a,
.section p a,
.intro-text a {
  color: #b0b0b0;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.article p a:hover,
.article li a:hover,
.section p a:hover,
.intro-text a:hover {
  color: #18E299;
}

.article ul {
  list-style: none;
  margin: 20px 0 24px;
}

.article ul li {
  color: #b0b0b0;
  font-size: 16px;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.article ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #18E299;
  font-weight: 400;
}

.article strong {
  color: #ededed;
  font-weight: 600;
}

/* Model Box（Baddeley モデル等の構造化情報） */
.model-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

p.model-box-title {
  font-size: 12px;
  font-weight: 500;
  color: #18E299;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.model-component {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.model-component:last-child {
  margin-bottom: 0;
}

.model-component-name {
  min-width: 160px;
  font-size: 13px;
  font-weight: 600;
  color: #ededed;
  flex-shrink: 0;
}

.model-component-desc {
  font-size: 13px;
  color: #999999;
  line-height: 1.7;
}

/* Info Box（補足情報・注記） */
.info-box {
  background: rgba(24, 226, 153, 0.04);
  border: 1px solid rgba(24, 226, 153, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

.article .info-box p {
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 0;
  line-height: 1.7;
}

.info-box strong {
  color: #18E299;
}

/* Compare Table（比較テーブル） */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ededed;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.14px;
}

.compare-table td {
  padding: 12px 16px;
  color: #b0b0b0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  line-height: 1.7;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Further Reading & References（文献情報） */
.further-reading {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

p.further-reading-title {
  font-size: 12px;
  font-weight: 500;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.article .references {
  list-style: none;
  margin: 0;
}

.article .references li {
  font-size: 13px;
  color: #999999;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 0;
}

.article .references li::before {
  display: none;
}

/* Related Articles（関連記事） */
.related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

p.related-title {
  font-size: 12px;
  font-weight: 500;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.related-link {
  display: block;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s ease;
  margin-bottom: 8px;
}

.related-link:hover {
  border-color: rgba(24, 226, 153, 0.3);
  color: #ededed;
}

/* 記事一覧カード */
.article-card {
  display: block;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  color: #ededed;
  transition: all 0.15s ease;
  margin-bottom: 10px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 4px;
}

.article-card:hover {
  border-color: rgba(24, 226, 153, 0.3);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 4px 8px;
}

.article-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #ededed;
  letter-spacing: -0.15px;
}

.article-card-desc {
  font-size: 14px;
  color: #999999;
  line-height: 1.7;
}

/* ==========================================
   7. Components
   ========================================== */

/* Key Message */
.key-message {
  margin-bottom: 24px;
  padding: 22px 26px;
  background: rgba(24, 226, 153, 0.07);
  border: 1px solid rgba(24, 226, 153, 0.25);
  border-left: 4px solid #18E299;
  border-radius: 12px;
}

.key-headline {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #ededed;
  letter-spacing: -0.48px;
}

.key-sub {
  font-size: 16px;
  color: #b0b0b0;
  line-height: 1.7;
}

/* Project Cards */
.project-card {
  display: block;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: #ededed;
  transition: all 0.15s ease;
  margin-bottom: 16px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 4px;
}

.project-card:hover {
  border-color: rgba(24, 226, 153, 0.3);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-name {
  font-size: 17px;
  font-weight: 600;
  color: #ededed;
  letter-spacing: -0.17px;
}

.project-desc {
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.7;
}

.project-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: rgba(24, 226, 153, 0.08);
  border: 1px solid rgba(24, 226, 153, 0.2);
  border-radius: 9999px;
  font-size: 12px;
  color: #18E299;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.project-unit {
  margin-bottom: 16px;
}

.project-unit .project-card {
  margin-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.project-science {
  display: block;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 16px 16px;
  font-size: 13px;
  color: #999999;
  text-decoration: none;
  transition: color 0.15s ease;
}

.project-science:hover {
  color: #18E299;
}

.project-science-name {
  color: #18E299;
}

/* Profile（トップページ） */
.profile {
  text-align: center;
  margin-bottom: 60px;
}

.profile-name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.64px;
  color: #ededed;
}

.profile-tagline {
  color: #999999;
  font-size: 16px;
  margin-bottom: 24px;
  font-weight: 400;
}

/* Badge（about ページ） */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 13px;
  color: #b0b0b0;
  font-weight: 500;
}

/* Social Links（about ページ） */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px;
}

.social-link:hover {
  border-color: rgba(24, 226, 153, 0.3);
  color: #18E299;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

/* Contact Form（contact ページ） */
.contact-form {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 4px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #999999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ededed;
  font-size: 16px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #18E299;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999999;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background: #18E299;
  color: #0d0d0d;
  border: none;
  border-radius: 9999px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-result {
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 32px;
  text-align: center;
  display: none;
}

.form-result.success {
  background: rgba(24, 226, 153, 0.06);
  border: 1px solid rgba(24, 226, 153, 0.25);
  color: #18E299;
}

.form-result.error {
  background: rgba(212, 86, 86, 0.06);
  border: 1px solid rgba(212, 86, 86, 0.25);
  color: #d45656;
}

.info-list {
  list-style: none;
  margin-top: 8px;
}

.info-list li {
  color: #b0b0b0;
  font-size: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 16px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  color: #999999;
  min-width: 130px;
  font-size: 13px;
  flex-shrink: 0;
}

.info-intro {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ==========================================
   8. Footer
   ========================================== */
.footer {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 16px;
  color: #999999;
  font-size: 13px;
}

.footer a {
  color: #999999;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #18E299;
}

/* ==========================================
   9. Media Queries
   ========================================== */
@media (max-width: 480px) {
  .container {
    padding: 32px 20px;
  }
  .main-nav {
    gap: 12px;
  }
  .main-nav a {
    font-size: 13px;
    padding: 8px 4px;
  }
  .article {
    padding: 24px;
  }
  .article-card {
    padding: 16px 18px;
  }
  .social-links {
    flex-wrap: wrap;
  }
  .model-component {
    flex-direction: column;
    gap: 4px;
  }
  .model-component-name {
    min-width: auto;
  }
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }
  .info-list li {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }
  .info-list .label {
    min-width: auto;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .footer a {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .footer a:last-of-type {
    border-bottom: none;
  }
  .footer span {
    margin-top: 16px;
  }
}

/* ==========================================
   10. Hamburger Navigation (mobile ≤480px)
   ========================================== */

/* ハンバーガーボタン — デスクトップでは非表示 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

@media (max-width: 480px) {
  .main-nav {
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
  }

  /* ☰ ボタンを左端に配置 */
  .nav-toggle {
    display: flex;
    order: 1;
    margin-right: auto;
    padding: 8px 4px;
  }

  /* lang-switch を右端に固定 */
  .main-nav .lang-switch {
    order: 2;
    margin-left: 0;
  }

  /* 通常リンクを非表示（open 時に展開） */
  .main-nav > a:not(.lang-switch) {
    display: none;
    order: 3;
    width: 100%;
    padding: 12px 4px;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  /* open 時にリンクを表示 */
  .main-nav.open > a:not(.lang-switch) {
    display: block;
  }

  /* open 時の × アイコンをハイライト */
  .main-nav.open .nav-toggle {
    color: #fff;
  }
}
