.technology-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 30px;
}

.technology-page section {
  background: #1b1b1b;
  padding: 35px;
  margin-bottom: 35px;
  border: 1px solid #333;
  border-radius: 14px;
}

.technology-page h1 {
  font-size: 48px;
  margin-bottom: 50px;
}

.technology-page h2 {
  font-size: 30px;
  margin-bottom: 25px;
}

.technology-page h3 {
  font-size: 20px;
  margin-top: 25px;
}

.technology-page p {
  line-height: 1.8;
}

.aws-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.tech-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
}

.tech-card h3 {
  margin-top: 0;
  font-size: 22px;
}

.tech-card p {
  color: #ccc;
  line-height: 1.7;
}

.code-button {
  margin-top: 15px;
  padding: 10px 18px;
  background: transparent;
  color: white;
  border: 1px solid #666;
  border-radius: 6px;
  cursor: pointer;
}

.code-button:hover {
  background: white;
  color: #111;
}

.architecture-box {
  margin-top: 25px;
  padding: 25px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
}

.architecture-box h3 {
  margin-top: 0;
}

@media (max-width: 700px) {
  .aws-grid {
    grid-template-columns: 1fr;
  }
}


.architecture-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.architecture-flow span {
  padding: 12px 18px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #161616;
}



.command-button {
  padding: 10px 18px;
  background: transparent;
  color: white;
  border: 1px solid #666;
  border-radius: 6px;
  cursor: pointer;
}

.command-button:hover {
  background: white;
  color: #111;
}

.command-modal {
  display: none;
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.75);

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

  z-index: 1000;
}

.command-modal.show {
  display: flex;
}

.command-modal-content {
  width: 90%;
  max-width: 700px;
  max-height: 80vh;

  background: #161616;
  border: 1px solid #444;
  border-radius: 12px;

  padding: 30px;
  position: relative;

  display: flex;
  flex-direction: column;
}

.command-modal-content h3 {
  margin-top: 0;
  flex-shrink: 0;
}

.command-modal-content pre {
  margin: 15px 0 0 0;

  background: #0d0d0d;
  padding: 20px;
  border-radius: 8px;

  overflow: auto;
  max-height: 60vh;

  white-space: pre;
  text-align: left;
}

.command-modal-content code {
  display: block;
  white-space: pre;
}

.close-command-modal {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 40px;
  height: 40px;

  background: transparent;
  border: none;

  color: white;
  font-size: 26px;

  cursor: pointer;
  z-index: 10;
}



/* IT Journey */
.journey-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.journey-button {
    background: rgba(15, 23, 42, 0.75);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.journey-button:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 700px) {
    .journey-buttons {
        grid-template-columns: 1fr;
    }
}








/* =========================
   IT Journey
========================= */

.journey-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.journey-button {
    background: rgba(15, 23, 42, 0.75);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.journey-button:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
}


/* =========================
   IT Journey Modal
========================= */

.journey-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    overflow-y: auto;
    padding: 40px 20px;
}

.journey-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.journey-modal-content {
    width: min(800px, 100%);
    max-height: 85vh;
    overflow-y: auto;

    background: rgba(15, 23, 42, 0.98);
    color: white;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;

    padding: 36px;
    margin: auto;

    position: relative;
}

.journey-modal-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    padding-right: 40px;
}

.journey-modal-content p {
    line-height: 1.9;
    margin-bottom: 18px;
}

.close-journey-modal {
    position: absolute;
    top: 12px;
    right: 18px;

    background: none;
    border: none;
    color: white;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

.close-journey-modal:hover {
    opacity: 0.65;
}


/* Mobile */
@media (max-width: 700px) {

    .journey-buttons {
        grid-template-columns: 1fr;
    }

    .journey-modal {
        padding: 20px 12px;
    }

    .journey-modal-content {
        padding: 28px 20px;
        max-height: 90vh;
    }
}






.architecture-group {
    margin-top: 24px;
}

.architecture-group h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.architecture-group:first-of-type {
    margin-top: 18px;
}







/* =========================
   Classical / Natural Style
========================= */

.technology-page {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.01em;
}


/* Main title */
.technology-page h1 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: 0.04em;
}


/* Section headings */
.technology-page h2 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0.03em;
}


/* Card titles */
.technology-page h3 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}


/* Smaller headings */
.technology-page h4 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}


/* Body text */
.technology-page p {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.015em;
}


/* Reduce app / game-like rounded corners */
.technology-page section,
.tech-card,
.architecture-box,
.journey-button,
.journey-modal-content,
.command-modal-content {
    border-radius: 6px;
}


/* Technology cards */
.tech-card {
    background: rgba(12, 17, 27, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
}


/* Architecture */
.architecture-box {
    background: rgba(12, 17, 27, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
}


/* Architecture labels */
.architecture-flow span {
    border-radius: 3px;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-weight: 400;
}


/* IT Journey buttons */
.journey-button {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;

    background: rgba(12, 17, 27, 0.45);
    color: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;

    font-weight: 500;
    letter-spacing: 0.02em;

    transition: 0.25s ease;
}

.journey-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
    transform: none;
}


/* Command buttons */
.command-button,
.code-button {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

    background: transparent;
    color: rgba(255, 255, 255, 0.9);

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;

    font-weight: 400;
    letter-spacing: 0.02em;

    transition: 0.2s ease;
}

.command-button:hover,
.code-button:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* Modal text */
.journey-modal-content,
.command-modal-content {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    background: rgba(10, 14, 22, 0.98);
}

.journey-modal-content h2,
.command-modal-content h3 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
    font-weight: 500;
}


/* Slightly calmer section appearance */
.technology-page section {
    background: rgba(12, 17, 27, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
