:root {
  --background-color: #fff;
  --primary-color-main: #005bac;
  --primary-color-dark: #003a70;
  --secondary-color: #f8f9fa;
  --accent-color: #ff9800;
  --text-main: #333;
  --text-secondary: #fff;
  --text-sub: #666;
  --link-color: #1a0dab;
  --divider-color: #aaa;
  --footer-color: #f6f6fc;

  --success-color: #2e7d32;
  --error-color  : #d32f2f;
  --warning-color: #ed6c02;
  --info-color   : #0288d1;

  --marker-color: lightyellow;

  --support-bg-color: rgba(2, 136, 209, 0.1);

  --transition: 0.2s;
  --hover-opacity: 0.7;
  --hover-color: rgba(0, 0, 0, 0.1);
}

html {
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  margin: 0;
  overflow-y: auto;

  color: var(--text-main);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
}

footer {
  background: var(--footer-color);
  padding: 1rem 0;
  text-align: center;
  margin-top: auto;
  width: 100%
}

p.copyright {
  color: var(--text-sub);
  font-size: 0.75rem;
  display: inline-block;
}

h3 {
  border-left: 5px solid var(--primary-color-main);
  padding-left: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

h4 {
  margin: 1rem 0 0 2rem;
}

p {
  margin: 0;
}

ul, ol {
  margin: 4px 0 0;
  padding-left: 0;
}

li ol, li ul {
  margin-top: 0;
}

li {
  margin-bottom: 8px;
}

li li {
  margin-bottom: 0;
}

li.no-marker {
  display: contents;
}

li.bold::marker {
  font-weight: bold;
}

li h4 {
  margin-left: 0;
}

a.with-icon {
  display: flex;
  align-items: baseline;
}

.hidden {
  display: none !important;
}

.no-margin {
  margin: 0 !important;
}

.indent {
  margin-left: 60px;
}

.indent .indent {
  margin-left: 30px;
}

.sub-text {
  color: var(--text-sub);
  font-size: 0.9rem;
}

.h-box {
  display: flex;
}

.v-box {
  display: flex;
  flex-direction: column;
}

.h-space {
  margin-right: 16px;
}

.v-space {
  margin-top: 16px;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.h-divider {
  border-top: 1px var(--divider-color) solid;
  width: 100%;
}

/* アイコン */
.material-symbols-outlined, .material-symbols-rounded {
  font-size: 1rem;
  height: 1rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled, .material-symbols-rounded.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}



/* カラーテーマ */
.marker {
  background-color: var(--marker-color);
}

.info {
  color: var(--info-color);
}

.warning {
  color: var(--warning-color);
}

.error {
  color: var(--error-color);
}

.success {
  color: var(--success-color);
}

.pawpad {
  transform: rotate(15deg);
  color: #d0af4c;
}

/* ハイライト用のアニメーション */
@keyframes highlight-fade {
  0% { background-color: transparent; }
  50% { background-color: var(--marker-color); }
  85% { background-color: var(--marker-color); }
  100% { background-color: transparent; }
}

.animate-highlight {
  width: 100%;
  animation: highlight-fade 1.2s ease-out;
}


/* ===== コンポーネントのスタイル ===== */

/* ローディングのカバー */
#loading {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.4);
  user-select: auto;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* メインコンテナ */
.container {
  max-width: 1000px;
  width: 1000px;
  margin: -3rem auto 4rem;
  padding: 0 1rem;
}

/* メインカード */
.main-card {
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  text-align: center;
}

/* ダウンロード */
.dl-section {
  margin-bottom: 2rem;
}

#dl-button {
  display: inline-flex;
  gap: 8px;
  background-color: var(--accent-color);
  color: var(--text-secondary);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  cursor: pointer;
}

#dl-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.version-info {
  margin-top: 1rem;
}

/* ヒーローセクション */
.hero {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color-main) 0%, var(--primary-color-dark)  100%);
  color: var(--text-secondary);
  padding: 3rem 2rem 6rem;
  text-align: center;
  box-sizing: border-box;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.hero p {
  opacity: 0.9;
}

/* アコーディオン */
.accordion {
  position: relative;
}

.ac-summary {
  position: relative;
  list-style: none;
  transition: opacity, background-color;
  transition-duration: var(--transition);
  user-select: none;
  align-items: center;
  cursor: pointer;
}

.ac-summary:hover {
  opacity: var(--hover-opacity);
  background-color: var(--marker-color);
}

.ac-icon {
  background-image: url("./assets/arrow_down.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 16px; height: 16px;
  padding: 8px;
  position: absolute;
  top: 0; right: 0;
  border-radius: 100px;
  transition: transform var(--transition), background-color var(--transition);
}

.ac-icon:hover {
  background-color: var(--hover-color);
}

.accordion.open .ac-icon {
  transform: rotate(180deg);
}

.ac-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows calc(var(--transition)*2);
}

.ac-content > * {
  min-height: 0;
}

.accordion.open>.ac-content{
  grid-template-rows: 1fr;
}

.ac-digest {
  position: absolute;
  top: 24px;
  transition: opacity var(--transition);
}

.accordion.open>.ac-digest {
  opacity: 0;
}

/* セクション */
.section-content p {
  font-size: 15px;
}


/* alert */
.alert-container {
  border-width: 4px;
  border-style: double;
  margin: 12px 0;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
}

.alert-header {
  display: flex;
  position: absolute;
  background-color: inherit;
  top: -16px; left: 12px;
  background-color: var(--background-color);
  padding: 0 4px; gap: 4px;
}

.alert-content {
  color: var(--text-main);
  font-size: 0.9rem;
}

/* tab */
.tab-group {
  margin: 0 2rem;
}

.tab-buttons {
  display: flex;
  justify-content: space-between;
}

.tab-button {
  width: 100%;
  height: 3rem;
  text-shadow: 0.5px 0px 0.5px var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  border-bottom: 2px var(--primary-color-main) solid;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
    text-shadow: var(--transition);
}

.tab-button:hover {
  opacity: var(--hover-opacity);
}

.tab-button.active {
  background-color: var(--primary-color-main);
  color: var(--secondary-color);
  text-shadow: 0.5px 0px 0.5px var(--secondary-color);
}

.tab-button.active:hover {
  opacity: 1;
  cursor: default;
}

.tab-content {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  max-width: 1000px;
  text-align: left;
  opacity: 0;
  height: 0;
  display: none;
  transition: opacity var(--transition) ease, display var(--transition);
}

.tab-content h4:first-child {
  margin-top: 0;
}

.tab-content.active {
  opacity: 1;
  width: 100%;
  height: fit-content;
  /* visibility: visible; */
  display: block;
  position: relative;
  z-index: 1;
}

.tab-content img {
  border: 1px #000 solid;
  pointer-events: none;
  user-select: none;
  margin: 0 auto;
}

.introduction {
  text-align: left;
  padding: 1rem 0 0;
}

.tab-link {
  padding: 0 4px;
  cursor: pointer;
  text-decoration: underline;
  color: var(--link-color);
}

.tab-link:hover {
  opacity: var(--hover-opacity);
}

/* ヘルプ */
.support-content {
  margin-bottom: 20px;
}

.support-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  margin-left: 24px;
  border-radius: 4px;
  background-color: var(--support-bg-color);
  text-shadow: 0.5px 0px 0.5px var(--text-main);
}

.support-header>.material-symbols-outlined {
  font-size: 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.support-answer {
  font-size: 0.9rem;
}
