/* 年齢計算ツール - 兄弟サイト（パーセント電卓）と同じヘッダー・フッター・余白 */
* {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Background（兄弟サイトと同じ） ── */
.app-bg {
  background: linear-gradient(160deg, #dbeafe 0%, #93c5fd 35%, #bfdbfe 65%, #eff6ff 100%);
  background-attachment: fixed;
}

/* ── Input Card（兄弟サイトと同じ） ── */
.input-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ── Display Card（結果エリア・兄弟サイトと同じ） ── */
.display-card {
  background: linear-gradient(145deg, #0c1929 0%, #152d50 55%, #1e3a5f 100%);
  border: 1px solid rgba(96, 165, 250, 0.15);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(96, 165, 250, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Content Card（兄弟サイトと同じ） ── */
.content-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 1.25rem;
}

/* ── 日付・年月日セレクト ── */
.age-date-input,
.age-select {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #1e293b;
  padding: 0.5rem 0.75rem;
  min-width: 4rem;
}
.age-select { cursor: pointer; min-height: 2.75rem; }
.age-select:focus,
.age-date-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.input-hint:empty { display: none; }

/* ── 計算ボタン（兄弟サイトの primary に合わせる） ── */
.age-btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
}
.age-btn-primary:active { transform: scale(0.98); }

/* ── Action Button（学歴コピー・兄弟サイトと同じ） ── */
.action-btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.12s ease;
  padding: 0 1.25rem;
}
.action-btn:active { transform: scale(0.95); }

.btn-copy {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

/* ── Ad Card（兄弟サイトと同じ） ── */
.ad-card {
  background: rgba(255, 255, 255, 0.28);
  border: 2px dashed rgba(147, 197, 253, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.25rem;
}

/* ── Footer（兄弟サイトと同じ） ── */
.footer-border {
  border-top: 1px solid rgba(147, 197, 253, 0.3);
}

.social-pill {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 9999px;
  transition: all 0.2s;
  text-decoration: none;
}
.social-pill:hover {
  background: rgba(219, 234, 254, 0.65);
}

.related-link {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  transition: all 0.15s;
  text-decoration: none;
}
.related-link:active {
  background: rgba(219, 234, 254, 0.7);
}

/* ── 学歴リスト・記念日・早見表 ── */
.school-list p { margin: 0.25rem 0; }

.longevity-list, .milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.longevity-list li, .milestone-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.longevity-list li:last-child, .milestone-list li:last-child { border-bottom: none; }

.age-table th, .age-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  vertical-align: top;
}
.age-table-cell .age-table-line-1,
.age-table-cell .age-table-line-2 {
  display: block;
  line-height: 1.4;
}
.age-table-cell .age-table-line-1 { margin-bottom: 0.2rem; }
.age-table-cell .age-table-line-2 { font-weight: 600; }

/* 年齢早見表アコーディオン */
.age-table-accordion summary {
  list-style: none;
}
.age-table-accordion summary::-webkit-details-marker {
  display: none;
}
.age-table-accordion summary::after {
  content: '+';
  float: right;
  font-weight: bold;
  color: #60a5fa;
  font-size: 1.125rem;
}
.age-table-accordion[open] summary::after {
  content: '\2212';
}
