/* ===== 全ページ共通設定 ===== */

/* ページ基本スタイル + フッター固定用の縦レイアウト */
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f6f8fa;
  color: #1d275a;

  /* header → main → footer を縦並び */
  display: flex;
  flex-direction: column;
}

/* 画面高さを100%にする（flexレイアウト用） */
html, body {
  height: 100%;

}

/* サイズ計算をborder-box基準に統一 */
* {
  box-sizing: border-box;
}





/* ===== ヘッダー ===== */

/* ヘッダーを画面上部に固定 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ヘッダーの背景と余白 */
.header {
  background: #ffffff;
  padding: 16px 20px;
}

/* ロゴ中央配置用ラップ */
.header-inner {
  position: relative;
  height: 60px;

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

/* ロゴサイズ */
.logo img {
  height: 40px;
}

/* ハンバーガーボタン右配置 */
.hamburger {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  background: none;
  border: none;
  cursor: pointer;
}

/* 三本線 */
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #1d275a;
  margin: 5px 0;
}





/* ===== コンテンツ中央ラップ（最大幅480px） ===== */

.container {
  padding: 45px;
  max-width: 480px;
  margin: 0 auto;
}





/* ===== ログインページ全体 ===== */

.login-page {

  background-color: #f6f8fa;

  /* フッターを下に押し出す */
  flex: 1;

  /* 中央配置 */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 最大幅480pxで中央寄せ */
.login-wrapper {
  width: 100%;
  max-width: 480px;
  padding: 0 45px;
  box-sizing: border-box;
}

/* ページタイトル */
.login-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  color: #1d275a;
  margin-bottom: 70px;
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
}

/*  ログインフォーム */

.login-form {
  width: 100%;
}

/* 入力ブロック */
.login-group {
  margin-bottom: 50px;
}

.login-group label {
  display: block;
  font-size: 1.1rem;
  color: #1d275a;
  margin-bottom: 0px;
}

/* 下線のみの入力欄 */
.login-group input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #1d275a;
  background: transparent;
  padding: 0px 0;
  font-size: 0.9rem;
  color: #1d275a;
  outline: none;
}

/* フォーカス時の強調 */
.login-group input:focus {
  border-bottom: 2px solid #1d275a;
}

/*  丸型ログインボタン  */

.login-button {
  display: block;
  margin: 80px auto 0;

  width: 70px;
  height: 70px;
  border-radius: 50%;

  background-color: #1d275a;
  border: none;
  cursor: pointer;

  position: relative;

  box-shadow:
    5px 5px 10px rgba(29, 39, 90, 0.28);

  transition: 0.2s ease;
}

/* 押下アニメーション */
.login-button:active {
  transform: scale(0.95);
}

/* 中央矢印 */
.login-button::after {
  content: "›";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-45%, -50%);
  font-size: 3rem;
  color: #ffffff;
  line-height: 1;

}





/* ===== ドロワーメニュー ===== */

/* 右からスライド表示されるメニュー本体 */
.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 80%;
  max-width: 350px;
  height: 100vh;

  background: #f6f8fa;

  padding: 120px 30px 60px;

  /* 初期状態は画面外 */
  transform: translateX(100%);
  transition: transform 0.4s ease;

  z-index: 2000;
}

/* メニュー表示時 */
.drawer-menu.open {
  transform: translateX(0);
}


/* リストのデフォルト装飾を解除 */
.drawer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各メニュー項目の区切り線 */
.drawer-menu li {
  border-bottom: 1px solid rgba(29,39,90,0.25);
}

/* メニューリンク */
.drawer-menu a {
  display: block;
  padding: 18px 0;

  font-size: 1rem;
  font-weight: 500;

  color: #1d275a;
  text-decoration: none;
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
}


/* メニュー内の閉じるボタン */

.drawer-close {
  position: absolute;
  top: 30px;
  right: 30px;

  font-size: 2rem;
  background: none;
  border: none;
  color: #1d275a;
  cursor: pointer;
}

/* 背景を暗くするオーバーレイ */

.drawer-overlay {
  position: fixed;
  inset: 0;

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

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  /* メニューより下 */
  z-index: 1500;
}

/* オーバーレイ表示時 */
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}





/* ===== トップページ：上部ステータス表示 ===== */

/* 上部情報エリア全体 */
.top-info {
  margin-bottom: 0;
}

/* 日付・切替などの横並び */
.top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

/* ステータス行 */
.status-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

/* ステータス行 */
.status-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

/* 左ボタン */
.label {
  background-color: #ffffff;

  width: calc(50% - 7px);
  text-align: center;
  padding: 6px 0;

  font-weight: 600;
  font-size: 0.80rem;
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;

  border-bottom: 1px solid rgba(29,39,90,0.7); /* ← 少し太く */
}

/* 右テキスト */
.status-row span:last-child {
  flex: 1;

  border-bottom: 1px solid rgba(29,39,90,0.7);
  padding-bottom: 6px;

  display: flex;
  justify-content: center; /* ← 中央に配置 */
}

/*  カードグリッド  */

/* 2列レイアウト */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* 共通カードデザイン */
.card {
  background: #ffffff;
  border-radius: 0px;

  aspect-ratio: 1 / 1;

  padding: 14px;

  text-align: center;
  text-decoration: none;
  color: #1d275a;
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;

  box-shadow:
    5px 5px 10px rgba(29, 39, 90, 0.28),
    0 0 0 1px rgba(29, 39, 90, 0.03);

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

  transition: 0.2s ease;
}

/* 押下時の縮小アニメーション */
.card:active {
  transform: scale(0.97);
}

/* アイコン */
.card img {
  width: 50%;
  max-width: 55px;
  margin-bottom: 8px;
}

/* タイトル */
.card p {
  font-size: 0.82rem;
  font-weight: bold;
  margin: 6px 0;
}

/* 説明文 */
.card small {
  font-size: 0.65rem;
  line-height: 1.35;
}





/* ===== 身体検査：日付一覧ページ ===== */

/* 背景画像付きセクション */
.exam-page-section {
  margin-top: 40px;

  background-image: url("images/exam-bg.png");
  background-size: cover;
  background-position: center;
}

/* コンテンツラップ（白レイヤー） */
.exam-wrapper {

  padding: 80px 45px 60px;

  background: rgba(255,255,255,0.75); /* ← 白レイヤー */

}

/* タイトルエリア */
.exam-header {
  text-align: center;
  margin-bottom: 40px;
}

/* 英語サブタイトル */
.exam-en {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* 日本語タイトル */
.exam-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

/* 日付リスト縦並び */
.exam-list {
  display: flex;
  flex-direction: column;

  gap: 28px;
}

/* 日付ボタン */
.exam-item {
  background: #ffffff; /* ← 白に変更 */

  border-radius: 0px;

  padding: 14px 24px;

  text-decoration: none;
  color: #1d275a;

  position: relative;

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

  font-size: 0.95rem;

  font-weight: 500;

  box-shadow:
    5px 5px 10px rgba(29, 39, 90, 0.28),
    0 0 0 1px rgba(29, 39, 90, 0.03);

  transition: 0.2s ease;
}

/* 押下時アニメーション */
.exam-item:active {
  transform: scale(0.97);
}

/* 右側矢印 */
.arrow {
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
}





/* ===== 身体検査：詳細ページ ===== */

/* 背景画像付きセクション */
.exam-detail-page {
  margin-top: 0px;

 background-color: #f6f8fa;
  background-size: cover;
  background-position: center;
}

/* コンテンツラップ（左右余白） */
.exam-detail-wrapper {
  padding: 50px 45px 60px;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

/* 日付表示 */
.exam-detail-date {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #1d275a;
}

/* 検査項目リスト縦並び */
.exam-detail-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 各検査項目カード */
.exam-detail-page .exam-item {
  background: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(29,39,90,0.25);
  padding: 14px 0;
}

/* 左側の縦バー */
.bar {
  width: 1px;
  height: 20px;
  background: #1d275a;
  margin-right: 14px;
}

/* 項目名 */
.exam-item p {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
}

/* 値 */
.value {
  font-size: 0.8rem;
}





/* ===== 血液検査：異常ありページ ===== */

/* セクション全体 */
.blood-page {
  padding: 60px 45px 60px;
  background-color: #f6f8fa;
}



/*  タイトルエリア  */
.blood-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.blood-en {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.blood-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

/* テキストカード */
.blood-note-card {

  background: #ffffff;

  padding: 20px 24px;

  margin-top: 20px;
  margin-bottom: 40px;

  box-shadow:
    5px 5px 10px rgba(29,39,90,0.28),
    0 0 0 1px rgba(29,39,90,0.03);

}

.blood-note-card p {
  margin: 0;
}

.blood-note-card p + p {
  margin-top: 8px;
}


/*  日付表示  */
.blood-date {
  font-size: 0.9rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

/*  注意コメント  */
.blood-note {
  font-size: 0.72rem;
  line-height: 1.5;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

/*  検査項目リスト  */
.blood-list {
  display: flex;
  flex-direction: column;
  gap: 28px; /* Examと一致 */
  position: relative;
  z-index: 2;
}

/* 各検査項目行（ボタン → 下線デザイン） */
.blood-item {
  display: flex;
  align-items: center;

  padding: 14px 0;

  background: none;     /* 背景削除 */
  border-radius: 0;
  box-shadow: none;

  border-bottom: 1px solid rgba(29,39,90,0.25); /* 下線 */
}

/* 左側の縦バー */
.bar {
  width: 1px;
  height: 22px;
  background: #1d275a;
  margin-right: 12px;
  border-radius: 1px;
}

/* 項目名と値 */
.blood-text {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.blood-text p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.unit {
  font-size: 0.75rem;
}

.unit small {
  font-size: 0.75rem;
}





/* ===== 血液検査：異常なしページ ===== */

/* セクション全体 */
.blood-simple-page {
  padding: 60px 45px 60px;
  background-color: #f6f8fa;
}



/*  タイトルエリア  */
.blood-simple-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;

}

.blood-simple-header h1 {
  font-size: 1.4rem; /* 上のページと同じ */
  margin: 0;
}

/* テキストカード */
.blood-simple-card {

  background: #ffffff;

  padding: 20px 24px;

  margin-top: 20px;

  box-shadow:
    5px 5px 10px rgba(29,39,90,0.28),
    0 0 0 1px rgba(29,39,90,0.03);

}

/*  日付表示  */
.blood-simple-page .blood-date {
  font-size: 0.9rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

/*  本文テキスト  */
.blood-simple-text {
  font-size: 0.75rem;
  line-height: 1.45;
  margin-bottom: 2px;
  position: relative;
  z-index: 2;
}

/* 補足説明 */
.blood-simple-sub {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 0;
  position: relative;
  z-index: 2;
}





/* ===== グラフページ ===== */

/* セクション全体 */
.charts-page {
  padding: 40px 45px 60px;
  background-color: #f6f8fa;
}

/* 内側ラップ */
.charts-wrapper {
  position: relative;
}

/*  タイトルエリア  */
.charts-header {
  text-align: center;
  margin-bottom: 30px;
}

.charts-en {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.charts-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

/*  PDFリンク  */
.chart-link-wrapper {
  text-align: center;
  margin-top: 24px;
}

.chart-link {
  color: #0f8a9d;
  font-size: 0.9rem;
  font-weight: 500;

  text-decoration: underline;
  text-decoration-color: #0f8a9d;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;

  transition: 0.2s ease;
}

/* ホバー時 */
.chart-link:hover {
  opacity: 0.7;
}





/* ===== 獣医師コメント一覧ページ ===== */

/* セクション全体 */
.vet-page {
  padding: 60px 45px 90px; /* ← 他ページに合わせる */
  background-color: #f6f8fa;
}

/* 横幅制御 */
.vet-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

/* タイトルエリア */
.vet-header {
  text-align: center;
  margin-bottom: 40px;
}

.vet-en {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.vet-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

/* カード＋ボタンラップ */
.vet-content {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* コメントカード */
.vet-card {
  width: 100%;
  background: #ffffff;
  border-radius: 0;
  padding: 20px 24px;

  font-size: 0.75rem;

  position: relative;
  z-index: 2;

}


/* 猫画像削除 */
.vet-image {
  display: none;
}

/* 下部ボタン */
.vet-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -80px;

  width: 100%;

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

  background: #ffffff;
  border-radius: 0;
  padding: 14px 24px;

  text-decoration: none;
  color: #1d275a;

  font-size: 0.85rem;
  font-weight: 500;

  box-sizing: border-box;

  box-shadow:
    5px 5px 10px rgba(29,39,90,0.28),
    0 0 0 1px rgba(29,39,90,0.03);
}

/* ボタン右側の矢印 */
.vet-button::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 45%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
}





/* ===== 獣医師コメント一覧：日付リスト用調整 ===== */

/* 一覧ページのみボタン背景色を変更 */
#vet-notes .exam-item {
  background: #ffffff;
}

#vet-notes {
  background-image: none;
  background-color: #f6f8fa;
}

#vet-notes .exam-wrapper {
  background: none;
}

/* 上余白の微調整＋縦レイアウト維持 */
#vet-notes {
  margin-top: -20px;
  flex: 1;
}





/* ===== 獣医師コメント：詳細ページ ===== */

/* セクション全体 */
.vet-detail-page {
  background-color: #f6f8fa;
  padding: 80px 45px 60px;
  flex: 1;
  box-sizing: border-box;
}

/* 横幅制御ラップ */
.vet-detail-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 詳細コメントカード */
.vet-card {
  width: 100%;
  padding: 12% 6%;
  background: #fff;
  display: block;

  font-size: 0.75rem;

  box-shadow:
    5px 5px 10px rgba(29,39,90,0.28),
    0 0 0 1px rgba(29,39,90,0.03);
}





/* ===== 診断結果レポートページ ===== */

/* セクション全体 */
.report-page {
  padding: 60px 45px 100px;
}

/* タイトルエリア（Chartsと共通デザイン）*/
.report-header {
  text-align: center;
  margin-bottom: 30px;
}

.report-en {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.report-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

/*  PDFリンク  */
.report-link-wrapper {
  text-align: center;
  margin-top: 24px;
}

.report-link {
  color: #0f8a9d;
  font-size: 0.9rem;
  font-weight: 500;

  text-decoration: underline;
  text-decoration-color: #0f8a9d;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;

  transition: 0.2s ease;
}

/* ホバー時 */
.report-link:hover {
  opacity: 0.7;
}


.notes-text {
  font-size: 0.7rem;
  font-weight: 300;
  color: #7c87bc;
  margin: 0;
}




/* ===== フッター ===== */

/* フッター全体 */
.site-footer {
  background: #1d275a;
  padding: 12px 20px 10px;
  text-align: center;
}

/* 横幅制御 */
.footer-inner {
  max-width: 480px;
  margin: 0 auto;
}

/* ロゴ画像 */
.footer-logo img {
  width: 105px;
  max-width: 70%;
  display: block;
  margin: 6px auto 6px;
}

/* コピーライト文字 */
.footer-copy {
  font-size: 0.5rem;
  color: #ffffff;
}

/* ===== タイトルフォント指定（全ページ共通） ===== */
h1 {
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
}

/* ===== ペット切り替えセレクター ===== */
.switch {
  position: relative;
}

#pet-switch-form {
  margin: 0;
}

.pet-selecer {
  padding: 6px 12px;
  border: none;
  background: #f6f8fa;
}









