:root {
  --hayate-enji: #741f2b;
  --hayate-enji-dark: #551720;
  --hayate-gold: #d7a63c;

  --background-color: #f3f4f6;
  --card-color: #ffffff;

  --text-main: #1f2937;
  --text-sub: #667085;
  --border-color: #e5e7eb;

  --header-height: 72px;
  --bottom-navigation-height: 72px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;

  background: var(--background-color);
  color: var(--text-main);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--hayate-enji-dark),
      var(--hayate-enji)
    );

  box-shadow:
    0 3px 12px rgba(55, 10, 18, 0.24);
}

.header-inner {
  width: 100%;
  max-width: 960px;
  min-height: var(--header-height);

  margin: 0 auto;
  padding: 10px 16px;

  display: flex;
  align-items: center;
  gap: 12px;
}

.team-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.12);

  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.header-title-area {
  min-width: 0;
  flex: 1;
}

.team-name {
  margin: 0 0 2px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.app-title {
  margin: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.environment-badge {
  flex-shrink: 0;

  padding: 5px 9px;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.12);

  font-size: 11px;
  font-weight: 700;
}

.app-main {
  width: 100%;
  max-width: 960px;

  margin: 0 auto;
  padding:
    24px
    16px
    calc(var(--bottom-navigation-height) + 32px);
}

.status-card {
  padding: 28px 22px;

  border: 1px solid var(--border-color);
  border-radius: 18px;

  background: var(--card-color);

  box-shadow:
    0 8px 24px rgba(17, 24, 39, 0.07);
}

.status-label {
  display: inline-block;

  margin: 0 0 14px;
  padding: 5px 10px;

  border-radius: 999px;

  background: #f5e9eb;
  color: var(--hayate-enji);

  font-size: 12px;
  font-weight: 800;
}

.status-title {
  margin: 0 0 12px;

  color: var(--hayate-enji-dark);

  font-size: 23px;
  line-height: 1.4;
}

.status-description {
  margin: 0 0 10px;

  font-size: 16px;
  line-height: 1.7;
}

.status-note {
  margin: 0;
  padding-top: 14px;

  border-top: 1px solid var(--border-color);

  color: var(--text-sub);

  font-size: 13px;
  line-height: 1.7;
}

.bottom-navigation {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;

  padding-bottom: env(safe-area-inset-bottom);

  border-top: 1px solid var(--border-color);

  background: rgba(255, 255, 255, 0.96);

  box-shadow:
    0 -4px 18px rgba(17, 24, 39, 0.08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-navigation-inner {
  width: 100%;
  max-width: 960px;
  min-height: var(--bottom-navigation-height);

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.nav-item {
  min-width: 0;
  padding: 9px 4px 8px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  border: 0;

  background: transparent;
  color: #7b8492;

  cursor: pointer;
}

.nav-item.is-active {
  color: var(--hayate-enji);
}

.nav-icon {
  min-height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 11px;
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .bottom-navigation {
    right: 50%;
    left: auto;

    width: 100%;
    max-width: 960px;

    transform: translateX(50%);

    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
  }
}

@media screen and (max-width: 480px) {
  :root {
    --header-height: 66px;
    --bottom-navigation-height: 66px;
  }

  .header-inner {
    padding: 9px 12px;
    gap: 10px;
  }

  .team-mark {
    width: 44px;
    height: 44px;

    font-size: 21px;
  }

  .app-title {
    font-size: 18px;
  }

  .environment-badge {
    padding: 4px 7px;

    font-size: 10px;
  }

  .app-main {
    padding:
      18px
      12px
      calc(var(--bottom-navigation-height) + 26px);
  }

  .status-card {
    padding: 22px 18px;

    border-radius: 16px;
  }

  .status-title {
    font-size: 20px;
  }

  .status-description {
    font-size: 15px;
  }

  .nav-icon {
    font-size: 19px;
  }

  .nav-label {
    font-size: 10px;
  }
}

/* ======================================
   Phase CF-1-3C
   画面切り替え用スタイル
====================================== */

.app-view[hidden] {
  display: none;
}

.page-heading {
  margin-bottom: 18px;
}

.page-label {
  margin: 0 0 6px;

  color: var(--hayate-enji);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-title {
  margin: 0 0 8px;

  color: var(--text-main);

  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}

.page-description {
  margin: 0;

  color: var(--text-sub);

  font-size: 14px;
  line-height: 1.7;
}

.placeholder-card {
  padding: 32px 22px;

  border: 1px solid var(--border-color);
  border-radius: 18px;

  background: var(--card-color);

  text-align: center;

  box-shadow:
    0 8px 24px rgba(17, 24, 39, 0.07);
}

.placeholder-icon {
  width: 58px;
  height: 58px;

  margin: 0 auto 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #f5e9eb;
  color: var(--hayate-enji);

  font-size: 26px;
  font-weight: 800;
}

.placeholder-title {
  margin: 0 0 10px;

  color: var(--hayate-enji-dark);

  font-size: 20px;
  line-height: 1.5;
}

.placeholder-description {
  margin: 0;

  color: var(--text-sub);

  font-size: 14px;
  line-height: 1.7;
}

.nav-item {
  position: relative;
}

.nav-item::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;

  width: 0;
  height: 3px;

  border-radius: 0 0 3px 3px;

  background: var(--hayate-enji);

  transform: translateX(-50%);

  transition:
    width 0.2s ease;
}

.nav-item.is-active::before {
  width: 36px;
}

.nav-item:focus-visible {
  outline: 2px solid var(--hayate-gold);
  outline-offset: -4px;
}

@media screen and (max-width: 480px) {
  .page-heading {
    margin-bottom: 14px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description {
    font-size: 13px;
  }

  .placeholder-card {
    padding: 26px 18px;

    border-radius: 16px;
  }

  .placeholder-icon {
    width: 52px;
    height: 52px;

    font-size: 23px;
  }

  .placeholder-title {
    font-size: 18px;
  }

  .placeholder-description {
    font-size: 13px;
  }
}
