@charset "utf-8";
/*-------------------------------------------------------------------

  JAPURI アプリ側テーマ  ( Aqua / Swim Theme )

  - common.css の後に読み込む「上書き専用」CSS
  - 読み込み対象は アプリ側レイアウトのみ
      resources/views/layout/masters_swim_layout.blade.php
      resources/views/login.blade.php
  - 管理側 (japuri_manage_layout.blade.php) では読み込まないこと
  - 元に戻す場合は上記 2 ファイルの <link> 1 行を削除するだけでよい

-------------------------------------------------------------------*/

/*
  カラートークン
--------------------------*/
:root {
  /* 水の階調 */
  --aqua-deep: #00337a;
  --aqua-900: #0046a5;
  --aqua-800: #0057c8;
  --aqua-700: #0071d6;
  --aqua-600: #0090e3;
  --aqua-500: #00a9e0;
  --aqua-400: #00c4dd;
  --aqua-300: #6fd9ea;
  --aqua-200: #a9e6f4;
  --aqua-100: #dcf1fb;
  --aqua-50: #f1f9fe;

  /* テキスト */
  --ink: #12283f;
  --ink-sub: #5d778c;

  /* 強調（招集・重要） */
  --alert: #ff4d5e;
  --alert-deep: #d81f34;

  /* グラデーション */
  --grad-main: linear-gradient(120deg, #0057c8 0%, #0095df 52%, #00cbd6 100%);
  --grad-main-x: linear-gradient(90deg, #0057c8 0%, #0095df 52%, #00cbd6 100%);
  --grad-alert: linear-gradient(90deg, #ff5f52 0%, #ff3f6d 100%);
  --grad-page: linear-gradient(180deg, #eaf6fe 0%, #f6fbff 240px, #f6fbff 100%);

  /* 影 */
  --shadow-sm: 0 2px 8px rgba(0, 82, 160, 0.07);
  --shadow-md: 0 8px 22px rgba(0, 82, 160, 0.10);
  --shadow-lg: 0 14px 34px rgba(0, 82, 160, 0.18);

  --radius: 18px;

  /* 既存変数の上書き（common.css の参照先を丸ごと水色系へ） */
  --normal: #12283f;
  --cv: #0090e3;
  --blue: #0046a5;
  --font-gray: #5d778c;
  --light-gray: #eef7fd;
  --red: #e8283c;
}

/*
  ベース
--------------------------*/
html,
body {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.01em;
}
/* 背景は html にのみ指定する。
   body にも背景を持たせると body の背景ボックスが
   z-index:-1 の装飾レイヤー（波・光）を隠してしまうため。 */
html {
  background: #f6fbff;
}
body {
  background: transparent;
}

/* 水面のゆらぎ（ページ最上部のさりげない装飾） */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(0, 196, 221, 0.16) 0%, rgba(0, 196, 221, 0) 60%),
    radial-gradient(110% 80% at 92% 6%, rgba(0, 87, 200, 0.14) 0%, rgba(0, 87, 200, 0) 62%);
}

main {
  padding: 60px 0 62px;
  background: transparent;
}
main.bg_gray {
  background: transparent;
}
.header.--tab + main {
  padding-top: 95px;
}

/* ホーム下部のキャラクターは水面に浮かべる */
main.chara:before {
  bottom: 72px;
  filter: drop-shadow(0 6px 10px rgba(0, 82, 160, 0.22));
}

/*
  カード
--------------------------*/
.round_cont {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 18px;
  border: 1px solid rgba(0, 144, 227, 0.10);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
/* 上端のレーンライン */
.round_cont::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-main-x);
  opacity: 0.9;
}
.round_cont + .round_cont {
  margin-top: 16px;
}
.container_flex {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 144, 227, 0.10);
  box-shadow: var(--shadow-sm);
  padding: 24px 18px;
}

/*
  ヘッダー
--------------------------*/
.header {
  background: var(--grad-main);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 16px rgba(0, 74, 150, 0.22);
  overflow: visible;
}
/* 下端の波 */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 16px;
  background-image: var(--grad-main-x);
  pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0,0 L1440,0 L1440,15 C1215,54 995,-10 720,19 C450,46 235,-8 0,21 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0,0 L1440,0 L1440,15 C1215,54 995,-10 720,19 C450,46 235,-8 0,21 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.header .h1_title,
.header .logo {
  color: #fff;
}
.header .logo {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 45, 95, 0.25);
}
.header .logo img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.header .h1_title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 45, 95, 0.25);
}
.header .back_link,
.header .setting_link,
.header .logout_link,
.header .card_link2 {
  color: #fff;
}
.header .back_link {
  color: rgba(255, 255, 255, 0.92);
}
.header .card_link {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 45, 95, 0.25);
}
.header .card_link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header .back_settings {
  color: #fff;
}

/*
  タブ
--------------------------*/
.header.--tab .tab_menu {
  padding: 0 3% 6px;
  gap: 8px;
}
.tab_menu li {
  width: auto;
  flex: 1 1 0;
  line-height: 30px;
  border-bottom: none;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 600;
  transition: all 0.25s ease;
}
.tab_menu li.active {
  color: var(--aqua-800);
  background: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 45, 95, 0.18);
}

/*
  フッター（タブバー）
--------------------------*/
.footer {
  height: 62px;
  z-index: 5;
  border-top: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 18px rgba(0, 82, 160, 0.10);
}
.footer a {
  height: 62px;
  padding-top: 10px;
  color: #9db4c4;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer i {
  font-size: 20px;
  margin-bottom: 3px;
}
.footer .active a {
  color: var(--aqua-700);
}
/* 選択中タブの水滴ハイライト */
.footer .active a::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(0, 196, 221, 0.16), rgba(0, 87, 200, 0.12));
  z-index: -1;
}
.footer .new a:before {
  background: var(--alert);
  box-shadow: 0 0 0 2px #fff;
  width: 7px;
  height: 7px;
}

/*
  サイドメニュー
--------------------------*/
.menu {
  background: linear-gradient(160deg, #0046a5 0%, #0090e3 55%, #00c4dd 100%);
  box-shadow: -8px 0 28px rgba(0, 45, 95, 0.25);
}
/* 水中の光のゆらぎ */
.menu > div::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 40% at 110% 8%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(60% 35% at -10% 92%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 60%);
}
.menu nav li {
  border-bottom: solid 1px rgba(255, 255, 255, 0.28);
}
.menu nav a {
  font-weight: 600;
  transition: background 0.2s ease;
}
.menu nav a:active {
  background: rgba(255, 255, 255, 0.14);
}
.menu nav a:before {
  opacity: 0.75;
}
.menu .close {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/*
  ボタン
--------------------------*/
.button {
  line-height: 50px;
  border: none;
  background: var(--grad-main-x);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(0, 116, 205, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 116, 205, 0.26);
}
.button.--sub {
  background: #fff;
  color: var(--aqua-700);
  border: solid 2px var(--aqua-300);
  line-height: 46px;
  box-shadow: var(--shadow-sm);
}
.button.--gaibu:before {
  opacity: 0.85;
}
.text_link {
  color: var(--aqua-700);
  font-weight: 600;
  text-underline-offset: 3px;
}
.button-link {
  cursor: pointer;
}
body .save-button,
body .selectButton {
  background: var(--grad-main-x);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 116, 205, 0.28);
}
body .save-button:hover,
body .selectButton:hover {
  background: linear-gradient(90deg, #0049b0 0%, #0082c8 52%, #00b4c0 100%);
}
body .modern-button {
  background: var(--grad-main-x);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 116, 205, 0.25);
}
body .modern-button:hover {
  background: linear-gradient(90deg, #0049b0 0%, #0082c8 52%, #00b4c0 100%);
}
body .action-header {
  background: var(--aqua-50);
  border-radius: 14px;
}

/*
  モーダル
--------------------------*/
.modal_back {
  background: rgba(3, 33, 66, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal_cont {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.modal_cont h2 {
  background: var(--grad-alert);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.modal_cont p {
  color: var(--ink);
}
.modal_cont .button {
  border-radius: 999px;
}
.modal_cont .button_area {
  border-top: solid 1px var(--aqua-100);
}

/*
  入力フォーム
--------------------------*/
input[type="text"],
input[type="password"],
textarea,
.text-area {
  background: #fff;
  border: 1.5px solid #d7e8f4;
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
.text-area:focus {
  border-color: var(--aqua-500);
  box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.16);
}
.error-item,
.error-item:focus {
  border: solid 2px var(--alert);
}
.errmsg {
  color: var(--alert-deep);
}
.input_item dt {
  font-weight: 700;
  color: var(--aqua-900);
  font-size: 13px;
  letter-spacing: 0.03em;
}
body select.selectbox-5 {
  border: 1.5px solid #d7e8f4;
  border-bottom: 1.5px solid #d7e8f4;
  border-radius: 12px;
  background-color: #fff;
  color: var(--ink);
  padding: .4em calc(.8em + 24px) .4em .9em;
}

/*
  ログイン画面
--------------------------*/
.login {
  padding-top: 8px;
}
.login .cont {
  background: #fff;
  margin: 16px 4% 0;
  padding: 26px 20px 30px;
  border-radius: 20px;
  border: 1px solid rgba(0, 144, 227, 0.10);
  box-shadow: var(--shadow-md);
}
.login .cont + .cont {
  border-top: 1px solid rgba(0, 144, 227, 0.10);
  margin-top: 16px;
}
.login p {
  color: var(--ink-sub);
  line-height: 1.8;
  margin-bottom: 22px;
}
/* 水面のイメージをログイン背景に */
.login::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  z-index: -1;
  background:
    radial-gradient(100% 70% at 20% 0%, rgba(0, 196, 221, 0.22), rgba(0, 196, 221, 0) 65%),
    radial-gradient(100% 70% at 85% 10%, rgba(0, 87, 200, 0.18), rgba(0, 87, 200, 0) 65%);
}
/* 画面下部のプールの波 */
.login::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath fill='%23dcf1fb' d='M0,74 C250,120 430,38 720,64 C1015,90 1200,138 1440,90 L1440,160 L0,160 Z'/%3E%3Cpath fill='%23bce4f5' d='M0,116 C270,152 470,84 760,108 C1045,130 1235,162 1440,126 L1440,160 L0,160 Z'/%3E%3C/svg%3E");
}

/*
  トップページ
--------------------------*/
.news_item h2 {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.news_item p {
  color: var(--ink-sub);
  line-height: 1.8;
}
.news_item .cat {
  border: none;
  color: #fff;
  background: var(--grad-main-x);
  border-radius: 999px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.news_item time {
  color: var(--ink-sub);
  line-height: 24px;
}
.news_item a {
  color: var(--aqua-700);
  font-weight: 600;
  word-break: break-all;
}
.search-results {
  gap: 0;
  background: #fff;
  border: 1px solid rgba(0, 144, 227, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 6px 18px;
  margin-top: 16px;
  overflow: hidden;
}
.search-result {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px dashed var(--aqua-100);
  color: var(--ink);
}
.search-result:last-child {
  border-bottom: none;
}
.search-result > div:first-child {
  color: var(--ink-sub);
  font-weight: 600;
  white-space: nowrap;
}
.search-result > div:last-child {
  text-align: right;
  font-weight: 600;
}
/* ジャンボウポイントのカード内リスト */
.round_cont.search-results {
  padding: 22px 18px 6px;
  font-weight: 700;
  color: var(--aqua-900);
}

/* 招集などの重要通知 */
.notice_item {
  padding: 0;
  overflow: hidden;
}
.notice_item h2 {
  background: var(--grad-alert);
  line-height: 40px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.notice_item::before {
  display: none;
}
.notice_item p {
  line-height: 1.85;
}
.notice_item p span {
  color: var(--alert-deep);
}

.alert {
  border-radius: 14px;
  font-weight: 600;
}
.success_alert {
  background: linear-gradient(90deg, #d3f5e3, #e6faf0);
  color: #0f6b45;
}
.error_alert {
  background: linear-gradient(90deg, #ffdfe2, #ffecee);
  color: var(--alert-deep);
}
.text-container {
  color: var(--alert-deep);
  font-weight: 600;
}

/*
  リスト（招集通知・大会情報）
--------------------------*/
.notice_list {
  padding: 4px 4% 0;
}
.notice_list li {
  background: #fff;
  border: 1px solid rgba(0, 144, 227, 0.10);
  border-bottom: 1px solid rgba(0, 144, 227, 0.10);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  padding: 18px 16px;
}
.notice_list h2 {
  margin: 10px 0 8px;
  font-weight: 700;
}
.notice_list p {
  color: var(--ink-sub);
}
.notice_list .cat {
  background: #c3d5e0;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.notice_list .cat.now {
  background: var(--grad-main-x);
}
.notice_list time {
  color: var(--ink-sub);
}
/* ボタンだけを並べる用途（大会通知・設定）では枠を出さない */
.notice_list li:has(> .button) {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px 0;
  margin-bottom: 10px;
}

/*
  大会情報　一覧
--------------------------*/
.tournament h2 {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.tournament p {
  color: var(--ink-sub);
}
.now_list li,
.past_list li {
  border-bottom: 1px solid rgba(0, 144, 227, 0.10);
}
/* now_list は <a> 側に余白があるため li の余白は持たせない */
.now_list li {
  padding: 0;
  overflow: hidden;
}
.now_list a {
  padding: 18px 34px 18px 16px;
  border-radius: 16px;
}
.now_list a:before,
.past_list a:before {
  color: var(--aqua-400);
}
.past_list div {
  margin-top: 14px;
}
.past_list a {
  border: 1.5px solid var(--aqua-200);
  border-radius: 12px;
  background: var(--aqua-50);
  color: var(--aqua-800);
  font-weight: 600;
  padding: 12px 32px 12px 14px;
}

/*
  大会情報　詳細
--------------------------*/
.tournament_detail h2 {
  font-weight: 700;
  color: var(--aqua-900);
  font-size: 17px;
  line-height: 1.5;
}
.tournament_detail dt {
  background: var(--aqua-50);
  border-left: 4px solid var(--aqua-400);
  color: var(--aqua-900);
  font-weight: 700;
  border-radius: 0 8px 8px 0;
  margin: 0 15px;
  padding: 10px 14px;
}
.tournament_detail dd {
  padding: 14px 20px 24px;
  color: var(--ink);
  line-height: 1.8;
}
.tournament_detail h3 {
  color: var(--aqua-800);
  font-weight: 700;
}
.tournament_detail section > p {
  color: var(--ink-sub);
  line-height: 1.85;
}
.tournament_detail .button_area {
  bottom: 62px;
  background: linear-gradient(to top, #f6fbff 45%, rgba(246, 251, 255, 0));
}

/*
  登録カード
--------------------------*/
.card_item {
  background: #fff;
  padding: 26px 0 34px;
}
.card_item::before {
  height: 6px;
}
.card_item img {
  border-radius: 10px;
}
.card_item .user_info {
  border-top: 1px dashed var(--aqua-200);
  padding-top: 26px;
}
.card_item .user_info img {
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.card_item h2 {
  color: var(--aqua-900);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card_item p {
  color: var(--ink);
}
.card .light_up {
  background: var(--grad-main-x);
  box-shadow: 0 4px 12px rgba(0, 116, 205, 0.3);
}
/* 明るくするボタン（インラインスタイル併用のため個別指定） */
.card_item #light_up {
  border-radius: 999px !important;
  background: var(--grad-main-x) !important;
  box-shadow: 0 4px 12px rgba(0, 116, 205, 0.28);
  font-size: 15px !important;
  font-weight: 700;
  padding: 10px 18px !important;
  margin-right: 16px;
}

/*
  設定まわり
--------------------------*/
.settings-body {
  background: transparent;
}
.settings-option {
  font-size: 17px;
  padding: 12px 0 12px 38px;
  font-weight: 600;
}
.settings-option input:checked ~ .settings-checkmark {
  background: var(--aqua-600);
}
.settings-checkmark {
  background: #e4f1f9;
  border: 1.5px solid #cfe6f4;
}
#imagePreview {
  border: 2px dashed var(--aqua-200);
  border-radius: 14px;
  background: var(--aqua-50);
}
.icon {
  border-radius: 10px;
}

/*
  メッセージ一覧（modern-table）
--------------------------*/
body .modern-table thead th {
  color: var(--aqua-900);
  border-bottom: 2px solid var(--aqua-100);
  font-weight: 700;
}
body .modern-table tbody tr {
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
body .modern-table tbody tr td:first-child {
  border-radius: 14px 0 0 14px;
}
body .modern-table tbody tr td:last-child {
  border-radius: 0 14px 14px 0;
}
body .modern-table tbody tr.important {
  border-left: 4px solid var(--alert);
}
body .icon-btn i.active {
  color: var(--aqua-500);
}
body .title-btn:hover {
  color: var(--aqua-600);
}
.msg_title_attention {
  color: var(--aqua-700);
}
.msg_title_important {
  color: var(--alert-deep);
}

/*
  ダイアログ（確認モーダル）
--------------------------*/
body dialog#confirmDlg {
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
body dialog#confirmDlg #okBtn {
  background: var(--grad-main-x);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
}
body dialog#confirmDlg #okBtn:hover {
  background: linear-gradient(90deg, #0049b0 0%, #0082c8 52%, #00b4c0 100%);
}
body dialog#confirmDlg button[value="cancel"] {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  background: #eef4f8;
  color: var(--ink-sub);
  font-weight: 700;
}

/*
  ページネーション
--------------------------*/
.pagination a,
.pagination span {
  border-radius: 10px;
}
.pagination .active span,
.pagination li.active span {
  background: var(--aqua-600);
  border-color: var(--aqua-600);
}

/*
  細部
--------------------------*/
.border {
  border: 1px solid rgba(0, 144, 227, 0.16);
}
.table_set {
  border: 1px solid rgba(0, 144, 227, 0.16);
}
.overlay {
  backdrop-filter: none;
}
.side_open .overlay {
  background: rgba(3, 33, 66, 0.32);
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  .button,
  .tab_menu li,
  .footer a {
    transition: none;
  }
}
