/* ================================
   全ページ共通：基本設定
================================ */

:root {
  --btn-bg: rgb(121, 115, 115);
  --btn-hover: rgb(70, 70, 70);
  --bg-dark: #1e1e1e;
  --bg-middle: #7c8798;
  --bg-light: rgb(220, 224, 234);
  --color-highlight: #0014c5;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: monospace;
}

* {
  box-sizing: border-box;
}

.content {
  width: 100%;
  margin: 0 auto;
  height:calc(100vh - 60px);
}

/* ================================
   ヘッダー
================================ */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #333;
}

.logo {
  height: 40px;
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* ハンバーガー */
.hamburger {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: white;
  display: block;
}

/* メニュー */
.nav {
  position: absolute;
  z-index: 3;
  top: 60px;
  right: 10px;
  background: #333;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

.nav a:active{
  color:#636dd9;
}

.nav.active {
  display: flex;
}
/* ================================
   タイトルロゴ（使用ページのみ）
================================ */

.titlelogo-container {
  text-align: center;
  padding: 20px;
}

.titlelogo {
  height: 200px;
  padding: 10px;
  max-width: 100%;
}


/* ================================
   ボタン共通
================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 1rem;
  border: 0;
  border-radius: 10px;
  background-color: var(--btn-bg);
  color: white;
  cursor: pointer;
  text-shadow: 1px 1px 1px black;
  background-image: linear-gradient(
    to top left,
    rgb(0 0 0 / 0.2),
    rgb(0 0 0 / 0.2) 30%,
    transparent
  );
  box-shadow:
    inset 2px 2px 3px rgb(255 255 255 / 0.6),
    inset -3px -3px 3px rgb(0 0 0/0.7);
  transition: background-color .2s, box-shadow .2s;
  width: 100%;
  max-width: 100%;
  font-size: 1.2rem;
}

.btn:hover {
  background-color: var(--btn-hover);
}

.btn:active {
  box-shadow:
    inset -2px -2px 3px rgb(255 255 255 / 0.6),
    inset 2px 2px 3px rgb(0 0 0 / 0.6);
}

/* 補助アクション（戻る・追加画面）：メインのボタンより薄く */
.btn-muted,.btn-success{
  background-color: #d4d4d4;
  color: #5c5c5c;
  text-shadow: none;
  background-image: linear-gradient(
    to top left,
    rgb(255 255 255 / 0.45),
    transparent 50%
  );
  box-shadow:
    inset 1px 1px 2px rgb(255 255 255 / 0.55),
    inset -1px -1px 2px rgb(0 0 0 / 0.06);
}

.btn-muted:hover,.btn-success:hover {
  background-color: #c9c9c9;
  color: #444;
}

.btn-muted:active,.btn-success:active  {
  box-shadow:
    inset -1px -1px 2px rgb(255 255 255 / 0.45),
    inset 1px 1px 2px rgb(0 0 0 / 0.1);
}



/* 優先されるボタン（.btnと統一感あり） */
.btn-primary{
  background-color: #22c55e;
  color: white;

  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);

  background-image: linear-gradient(
    to top left,
    rgb(0 0 0 / 0.15),
    rgb(0 0 0 / 0.15) 30%,
    transparent
  );

  box-shadow:
    inset 2px 2px 3px rgb(255 255 255 / 0.5),
    inset -2px -2px 3px rgb(0 0 0 / 0.5);

  transition: background-color .2s, box-shadow .2s;
}

.btn-primary:hover {
  background-color: #16a34a;
}

.btn-primary:active {
  box-shadow:
    inset -2px -2px 3px rgb(255 255 255 / 0.5),
    inset 2px 2px 3px rgb(0 0 0 / 0.5);
}



.listbutton {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 20px;
}

.btn-success{
  background-image: url('../image/success.png');
  background-repeat: no-repeat;
  background-position:right;
  background-size: 10%
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
th {
  background-color: #f4f4f4;
}

/* ================================
   レスポンシブデザイン
================================ */

/* タブレット (481px - 768px) */
@media (min-width: 481px) {
  .content {
    max-width: 768px;
  }

  .btn {
    width: auto;
    min-width: 120px;
  }
}

/* タブレット横 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .content {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .titlelogo {
    height: 180px;
  }
}

/* デスクトップ (1025px以上) */
@media (min-width: 1025px) {
  .content {
    max-width: 1920px;
    min-width: 960px;
  }

  .titlelogo {
    height: 200px;
  }
}

/* モバイル (480px以下) */
@media (max-width: 480px) {
  header {
    padding-inline: 10px;
  }

  .logo {
    height: 40px;
  }

  .titlelogo-container {
    padding: 15px 10px;
  }

  .titlelogo {
    height: 120px;
    padding: 10px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 16px;
    margin: 5px 0;
  }

  .login-btn{
      width: 100px;
  }
}
