: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;
}

* {
  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;
}

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

.portal-header {
  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: 76px;

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

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

.team-mark {
  width: 50px;
  height: 50px;
  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 3px;

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

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.portal-title {
  margin: 0;

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

  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.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;
}

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

  margin: 0 auto;
  padding: 28px 16px 48px;
}

.welcome-section {
  margin-bottom: 22px;
}

.section-label {
  margin: 0 0 7px;

  color: var(--hayate-enji);

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

.welcome-title {
  margin: 0 0 9px;

  color: var(--text-main);

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

.welcome-description {
  margin: 0;

  color: var(--text-sub);

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

.portal-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: 22px;
  font-weight: 800;
  line-height: 1.45;
}

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

  font-size: 15px;
  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;
}

@media screen and (max-width: 480px) {
  .header-inner {
    min-height: 68px;
    padding: 9px 12px;
    gap: 10px;
  }

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

    font-size: 21px;
  }

  .team-name {
    font-size: 10px;
  }

  .portal-title {
    font-size: 19px;
  }

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

    font-size: 10px;
  }

  .portal-main {
    padding: 20px 12px 36px;
  }

  .welcome-section {
    margin-bottom: 17px;
  }

  .welcome-title {
    font-size: 23px;
  }

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

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

    border-radius: 16px;
  }

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

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

  .status-note {
    font-size: 12px;
  }
}
/* ======================================
   Phase Portal-0-4
   アプリ移動カード
====================================== */

.app-menu-section {
  margin-bottom: 22px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.app-card {
  min-height: 104px;
  padding: 18px;

  display: flex;
  align-items: center;
  gap: 15px;

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

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

  text-decoration: none;

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

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.app-card:hover {
  border-color: rgba(116, 31, 43, 0.35);

  box-shadow:
    0 10px 28px rgba(17, 24, 39, 0.1);

  transform: translateY(-1px);
}

.app-card:active {
  transform: scale(0.99);
}

.app-card:focus-visible {
  outline: 3px solid var(--hayate-gold);
  outline-offset: 3px;
}

.app-card-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;

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

  border-radius: 16px;

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

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

.app-card-content {
  min-width: 0;
  flex: 1;
}

.app-card-heading {
  margin-bottom: 7px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.app-card-title {
  margin: 0;

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

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

.app-card-badge {
  padding: 3px 7px;

  border-radius: 999px;

  background: #fff4d6;
  color: #8a5a00;

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

.app-card-description {
  margin: 0;

  color: var(--text-sub);

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

.app-card-arrow {
  flex-shrink: 0;

  color: var(--hayate-enji);

  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}

@media screen and (max-width: 480px) {
  .app-menu-section {
    margin-bottom: 17px;
  }

  .app-card {
    min-height: 96px;
    padding: 15px;
    gap: 12px;

    border-radius: 16px;
  }

  .app-card-icon {
    width: 48px;
    height: 48px;

    border-radius: 14px;

    font-size: 22px;
  }

  .app-card-title {
    font-size: 17px;
  }

  .app-card-description {
    font-size: 12px;
  }

  .app-card-arrow {
    font-size: 27px;
  }
}
