/* トップ画面は実際の公会情報と次の行動を優先する。 */
.home-shortcuts {
  padding: 28px 5%;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.home-shortcuts-intro h2 {
  margin: 6px 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
}
.home-shortcuts-intro p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.home-shortcuts-intro .eyebrow {
  color: var(--gold);
  font-size: 10px;
}
.home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.home-shortcut-grid a {
  display: grid;
  grid-template-columns: 30px 1fr 16px;
  align-items: center;
  gap: 6px 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  min-width: 0;
}
.home-shortcut-grid a:hover {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, var(--panel));
}
.home-shortcut-grid a > span {
  grid-row: span 2;
  font-size: 28px;
  color: var(--gold);
}
.home-shortcut-grid strong {
  font-size: 15px;
}
.home-shortcut-grid small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.home-shortcut-grid b {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--gold);
}
@media (max-width: 900px) {
  .home-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .home-shortcuts {
    padding: 22px 18px;
  }
  .home-shortcut-grid {
    gap: 10px;
  }
  .home-shortcut-grid a {
    grid-template-columns: 1fr 16px;
    padding: 14px;
  }
  .home-shortcut-grid a > span {
    display: none;
  }
  .home-shortcut-grid small {
    grid-column: 1;
  }
  .home-shortcut-grid b {
    grid-column: 2;
  }
  .home-command .section-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  #home-refresh {
    min-height: 44px;
    width: 100%;
  }
  .home-surface h3 {
    overflow-wrap: anywhere;
  }
}
.home-command {
  margin-bottom: 32px;
}
.home-command .section-heading {
  margin-bottom: 12px;
  align-items: center;
}
.home-command .section-heading p:not(.eyebrow) {
  max-width: 720px;
}
.home-command > .hint {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 22px;
}
.home-board {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1.12fr;
  gap: 20px;
  align-items: stretch;
}
.home-surface {
  min-width: 0;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.home-board > .home-surface {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.home-card-heading .eyebrow {
  margin: 0;
}
.home-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 13%, var(--panel));
  color: var(--gold);
  font-size: 27px;
}
.home-surface h3 {
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.home-surface p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.home-surface .hint {
  font-size: 12px;
  line-height: 1.8;
}
.home-board > .home-surface > .action-link {
  margin-top: auto;
  font-size: 13px;
}
.home-board > .home-surface > :nth-last-child(2) {
  margin-bottom: 22px;
}
.home-next {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--gold) 9%, var(--panel)),
    var(--panel) 70%
  );
}
.home-badge {
  display: inline-block;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--gold);
  padding: 4px 10px;
  margin-bottom: 12px;
}
.home-raid-time {
  color: var(--ink) !important;
  font-weight: 600;
}
.home-text-link {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 8px;
}
.home-role-chart {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 6px 0 4px;
}
.home-role > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 7px;
}
.home-role span {
  color: var(--muted);
}
.home-surface progress {
  display: block;
  width: 100%;
  height: 9px;
  accent-color: var(--gold);
  border: 0;
  border-radius: 5px;
  overflow: hidden;
}
.home-surface progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: 5px;
}
.home-surface progress::-webkit-progress-value {
  background: var(--gold);
  border-radius: 5px;
}
.home-role.tank progress {
  accent-color: #5799bd;
}
.home-role.tank progress::-webkit-progress-value {
  background: #5799bd;
}
.home-role.heal progress {
  accent-color: #72a66e;
}
.home-role.heal progress::-webkit-progress-value {
  background: #72a66e;
}
.home-start-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: journey;
}
.home-start-steps li {
  border-top: 1px solid var(--line);
}
.home-start-steps li > a {
  counter-increment: journey;
  display: grid;
  grid-template-columns: 25px 1fr 18px;
  column-gap: 9px;
  padding: 12px 0;
  font-size: 14px;
}
.home-start-steps li > a::before {
  content: counter(journey, decimal-leading-zero);
  grid-row: 1/3;
  font-size: 11px;
  color: var(--gold);
  padding-top: 3px;
}
.home-start-steps li span {
  grid-column: 2;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 4px;
}
.home-start-steps li b {
  grid-column: 3;
  grid-row: 1/3;
  align-self: center;
  color: var(--gold);
}
.home-start-steps li a:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 20px;
  padding-block: 22px;
}
.home-recap .eyebrow {
  margin-top: 0;
}
.home-recap h3 {
  font-size: 20px;
}
.home-recap p:last-child {
  margin-bottom: 0;
}
.home-recap > a {
  flex-shrink: 0;
}
.home-stats {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.home-stats article:first-child {
  padding-left: 25px;
}
.home-stats strong {
  margin: 8px 0;
  font-size: 38px;
}
.home-stats small {
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .home-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-board > :last-child {
    grid-column: 1/-1;
  }
  .home-start-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .home-command .section-heading {
    align-items: flex-start;
  }
  .home-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .home-board > :last-child {
    grid-column: auto;
  }
  .home-surface {
    padding: 22px;
  }
  .home-start-steps {
    display: block;
  }
  .home-recap {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .home-recap > a {
    width: 100%;
  }
  .home-stats {
    margin-inline: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-stats article {
    padding: 22px 16px;
    border-bottom: 1px solid var(--line);
  }
  .home-stats article:first-child {
    padding-left: 16px;
  }
  .home-stats article:nth-child(even) {
    border-right: 0;
  }
}

.home-next > #home-next-raid {
  width: 100%;
}
#home-refresh:disabled {
  opacity: 0.6;
  cursor: wait;
}
