body {
  margin: 0;
  padding: 0;
	background-color: dimgray;
	color: white;
  font-family: "Futura", Helvetica, sans-serif;

	overflow-wrap: anywhere;
	word-break: normal;
	line-break: strict;
}

img {
	max-width: 95%;
}

a {
  transition: color 0.3s;
  color: white;
}
a:visited {
  color: lightgray;
}
a:hover{
  color : yellow;
}

table {
width: 800px;
max-width: 95%;
margin: auto;
}

/*
no scriptの際のファイル選択
https://qiita.com/derodero24/items/99f2947c63d39ebd7b4b
*/
input[type='file'] {
  color: white;
  background-color: purple;
  cursor: pointer;
  border: 2px solid white;
  border-radius: 0.375rem;
  padding-right: 0.5rem;
  width: 24rem;
  font-size: 14pt;
  font-weight: 600;
  max-width: 95%;
}

::file-selector-button,
::-webkit-file-upload-button {
  background-color: dimgray;
  color: white;
  border: none;
  cursor: pointer;
  border-right: 2px solid white;
  padding: 0.25rem 1rem;
  margin-right: 1rem;
}

progress {
  height: 20px;
  width: 400px;
  max-width: 80%;
}
#progress_v {
  font-size: 20px;
}

/*PCでは無効（改行しない）*/
.smartphone {
    display: none;
}
/*スマートフォンでは有効（改行する）*/
@media screen and (max-width:768px) {
    .smartphone{
        display: block;
    }
}

.no-js #uploadForm {
    display: none;
}

/* https://eblogate.net/css-flame-sample */
.frame {
border: 3px solid #000;
margin: 2em auto;
width: 800px;
max-width: 95%;
background-color: #2b2b2b;
font-size: 18px;
}

.frame_testarea{
  text-align: left;
  width: 400px;
  max-width: 95%;
}
.frame_testarea code {
  font-size: 20px;
}

/* お知らせ */
.notice {
  font-size: 20px;
  height: 60px;
  width: 100%;
  background-color: darkmagenta;
  border: 3px solid violet;
  padding: 3px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* アフィリエイト */
.is-js .affiliate {
  width: 400px;
  max-width: 95%;
}
.affiliate_text{
  text-align: left;
}
.no-js .affiliate {
  display: none;
}

/* ファイルドロップエリア */
/* https://naifix.com/relative-absolute/ */
.is-js #uploadarea{
    position: relative;
    text-align: center;
    width: 500px;
    max-width: 95%;
    height: 250px;
    border: 6px dashed;
    border-color: purple;
    border-radius: 8px;
    background-color: violet;
}

.is-js .uploadarea_text {
	color: black;
	font-size: 26px;
  font-weight: 600;
	height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.no-js .uploadarea_text {
  display: none;
}
.no-js .noscriptarea_text {
  font-size: 26px;
}

.no-js #progress, .no-js #progress_v {
  display: none;
}

/* プレビュー画面 */
#preview img {
    max-height:640px;
    max-width:95%;
    margin: 5px;
    border: 3px solid #000;
}
/* プレビュー画面 */
#preview a {
    font-size: 24px;
}

/* ファイル保存期間選択 */
select {
  /* styling */
  background-color: white;
  border: thin solid orchid;
  border-radius: 4px;
  display: inline-block;
  font: inherit;
  line-height: 1.5em;
  padding: 0.5em 3.5em 0.5em 1em;

  /* reset */

  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}
/* arrows */
select.file_retention_period {
  background-image:
    linear-gradient(45deg, transparent 50%, purple 50%),
    linear-gradient(135deg, purple 50%, transparent 50%),
    linear-gradient(to right, violet, violet);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    100% 0;
  background-size:
    5px 5px,
    5px 5px,
    2.5em 2.5em;
  background-repeat: no-repeat;
}
select.file_retention_period:focus {
  background-image:
    linear-gradient(45deg, purple 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, purple 50%),
    linear-gradient(to right, orchid, orchid);
  background-position:
    calc(100% - 15px) 1em,
    calc(100% - 20px) 1em,
    100% 0;
  background-size:
    5px 5px,
    5px 5px,
    2.5em 2.5em;
  background-repeat: no-repeat;
  border-color: darkorchid;
  outline: 0;
}

/*アップロードボタン*/
#attachment label {
	color: black;
 /* ボタン部分の見た目（任意） */
    display: inline-block;
    position: relative;
    background-color: violet;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 2px solid darkmagenta;
    border-bottom: 6px solid darkmagenta;
}
#attachment label:hover {
    margin-top: 3px;
    background: mediumorchid;
    transition: all 0.4s;
    border: 2px solid darkmagenta;
    border-bottom: 3px solid darkmagenta
}
#attachment label input {
 /* 今回のポイント */
 position: absolute;
 left:0;
 top:0;
 opacity: 0;
 width: 100%;
 height: 100%;
}

/* プログレスバー用のスタイル */
.progress-container {
  margin: 20px 0;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 8px;
  display: none;
}
.progress-item {
  margin-bottom: 15px;
  padding: 10px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.progress-filename {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  word-break: break-all;
}
.progress-bar-wrapper {
  width: 100%;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 10px;
}
.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.overall-progress {
  margin-top: 20px;
  padding: 15px;
  background: #e8f5e8;
  border-radius: 5px;
  border: 2px solid #4CAF50;
}
.overall-progress-text {
  font-size: 16px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 10px;
}
.status-message {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}
.error-message {
  color: #d32f2f;
  font-weight: bold;
}
.success-message {
  color: #2e7d32;
  font-weight: bold;
}

/* inputを装飾 */
.button-dashboard {
    color: black;
 /* ボタン部分の見た目（任意） */
    display: inline-block;
    position: relative;
    background-color: violet;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 2px solid darkmagenta;
    border-bottom: 6px solid darkmagenta;
}
.button-dashboard:hover {
    margin-top: 3px;
    background: mediumorchid;
    transition: all 0.4s;
    border: 2px solid darkmagenta;
    border-bottom: 3px solid darkmagenta
}

/* アップロードしたファイル */
details {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  max-width: 95%;
}
/* details内のコンテンツ */
details > div,
details .encrypted-file-container,
details .file-content-wrapper {
  max-width: 95%;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}
summary {
  display: block;
  font-weight: bold;
  padding: 10px 15px;
  cursor: pointer;
  background-color: #787ea0;
  color: #fff;
}

/* 横並び */
.flex {
  font-size: 22px;
  display: flex; /*横並び*/
  justify-content: center;
  align-items: center;
}
.flex .qr_code {
  width: 200px;
  max-width: 50%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.flex .text {
  margin: 0 0 0 20px;
  padding: 0;
}

.flex p {
  line-height: 1.4;
}
.flex a {
  outline: none;
  text-decoration: none;
  padding: 2px 1px 0;
}
.flex a:link {
  color: violet;
}
.flex a:visited {
  color: fuchsia;
}
.flex a:focus {
  border-bottom: 1px solid;
  background: purple;
}
.flex a:hover {
  border-bottom: 1px solid;
  background: purple;
}
.flex a:active {
  background: purple;
  color: plum;
}

       /* アップした画像のモーダルのスタイル */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            padding-top: 60px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 700px;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

/* コンタクトフォーム */
.contact-form {
  max-width: 90%;
  font-size: 20px;
}
.contact-form input{
  font-size: 18px;
  box-sizing: border-box;
  width: 400px;
  max-width: 90%;
  padding: 0.3em;
  transition: 0.3s;
  letter-spacing: 1px;

  border-radius: 3px;
  border: 2px solid black;
  box-sizing: border-box;
}
.contact-form textarea{
  font-size: 18px;
  box-sizing: border-box;
  width: 500px;
  max-width: 95%;
  padding: 0.3em;
  transition: 0.3s;
  letter-spacing: 1px;

  border-radius: 3px;
  border: 2px solid black;
  box-sizing: border-box;
}
.no-js .contact-submit {
  display: none;
}

.donate a {
  font-size: 22px;
  outline: none;
  text-decoration: none;
  padding: 2px 1px 0;
}
.donate a:link {
  color: violet;
}
.donate a:visited {
  color: fuchsia;
}
.donate a:focus {
  border-bottom: 1px solid;
  background: purple;
}
.donate a:hover {
  border-bottom: 1px solid;
  background: purple;
}
.donate a:active {
  background: purple;
  color: plum;
}

/* 登録とログインフォーム */
@media only screen and (min-width: 600px) {
.register_login {
  width: 600px;
  max-width: 90%;
  text-align: right;
  margin: 0 200px 0 auto;
  }
}
       .error-message {
            color: #d32f2f;
            background-color: #ffebee;
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            border-left: 4px solid #d32f2f;
        }
        .success-message {
            color: #388e3c;
            background-color: #e8f5e8;
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            border-left: 4px solid #388e3c;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .form-group input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .password-requirements {
            font-size: 14px;
            margin-top: 5px;
        }
/*
メニュー
https://photopizza.design/css_hamburger_menu/
*/
  .container {
    display: flex;
    justify-content: flex-start; /* 左端に寄せる */
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
  }

  .logo {
    order: 1; /* ロゴを先頭に配置 */
    margin-right: auto; /* メニューを右端に寄せる */
    float: left;
  }
  .logo img {
    order: 1; /* ロゴを先頭に配置 */
    width: 50px;
    height: 50px;
  }

  .menu {
    order: 3; /* メニューを3番目に配置 */
    margin-right: auto; /* メニューを右端に寄せる */
    float: left;
  }


  @media only screen and (max-width: 600px) {
    /* スマホ版の場合 */
    .logo {
      display: none;
    }

    .menu {
      order: 1; /* メニューとロゴを先頭に配置 */
      display: none; /* スマホ版ではメニューを非表示に */
      position: absolute;
      background-color: #333;
      width: 100%;
      padding: 10px 0;
      left: 0;
      top: 52px;
    }

    .menu-btn:checked ~ .menu {
      display: block; /* ハンバーガーメニューをクリックした際にメニューを表示 */
    }

    .menu li {
      padding: 10px 20px;
      border-bottom: 1px solid #555;
      font-size: 1.4em;
    }

    .menu a {
      color: #fff;
      text-decoration: none;
    }
  }

  /* ハンバーガーメニューのアイコン */
  .menu-btn {
    display: none;
  }

  .menu-btn:checked + .menu-icon .navicon:before,
  .menu-btn:checked + .menu-icon .navicon:after {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-btn:checked + .menu-icon .navicon:before {
    transform: rotate(-45deg);
  }

  .menu-btn:checked + .menu-icon:not(.steps) .navicon:before,
  .menu-btn:checked + .menu-icon:not(.steps) .navicon:after {
    top: 0;
  }

  .menu-btn:checked + .menu-icon .navicon {
    background-color: transparent;
  }

  @media only screen and (max-width: 600px) {
    .menu-icon {
      cursor: pointer;
      display: inline-block;
      position: relative;
      padding: 24px 14px;
    }
  }
  @media only screen and (min-width: 601px) {
    .menu-icon {
      display: none;
    }
    .menu-text {
    order: 2; /* メニューを2番目に配置 */
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    }
  }

  .navicon {
    background-color: #fff;
    display: block;
    height: 3px;
    position: relative;
    transition: background 0.2s ease-out;
    width: 26px;
  }

  .navicon:before, .navicon:after {
    background-color: #fff;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
    width: 100%;
  }

  .navicon:before {
    top: 9px;
  }

  .navicon:after {
    bottom: 9px;
  }

  @media only screen and (min-width: 601px) {
    /* PC版の場合 */
    .menu {
      display: flex;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .menu li {
      padding: 10px 20px;
      font-size: 1.4em;
      /* border-bottom: 1px solid #555; */
    }

    .menu a {
      color: #fff;
      text-decoration: none;
    }
  }

/* login.php と register.php 用の修正CSS */
/* 基本的なログイン・登録フォームのレイアウト */
.auth-container {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background-color: #2b2b2b;
    border: 3px solid #000;
    border-radius: 8px;
}

.auth-form {
    width: 100%;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5em;
    color: white;
    font-size: 1.8em;
}

/* フォームグループの統一スタイル */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: violet;
    box-shadow: 0 0 5px rgba(238, 130, 238, 0.5);
}

/* チェックボックスのスタイル */
.form-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

/* Remember me チェックボックス用 */
.remember-me {
    margin: 15px 0;
    text-align: center;
}

.remember-me label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

/* パスワード要件の表示 */
.password-requirements {
    font-size: 13px;
    margin-top: 5px;
    color: #999;
    line-height: 1.4;
    padding: 8px;
    background-color: #1a1a1a;
    border-radius: 4px;
    border-left: 3px solid #555;
}

/* エラーメッセージと成功メッセージ */
.error-message {
    background-color: #2d1b1b;
    border: 1px solid #d32f2f;
    border-left: 4px solid #d32f2f;
    color: #ffcdd2;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.success-message {
    background-color: #1b2d1b;
    border: 1px solid #388e3c;
    border-left: 4px solid #388e3c;
    color: #c8e6c9;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* 送信ボタンのスタイル統一 */
#attachment {
    text-align: center;
    margin: 25px 0 15px 0;
}

#attachment label {
    color: black;
    display: inline-block;
    position: relative;
    background-color: violet;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 2px solid darkmagenta;
    border-bottom: 6px solid darkmagenta;
    cursor: pointer;
    min-width: 120px;
}

#attachment label:hover {
    margin-top: 3px;
    background: mediumorchid;
    transition: all 0.4s;
    border: 2px solid darkmagenta;
    border-bottom: 3px solid darkmagenta;
}

#attachment label input[type="submit"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Turnstile captcha の配置 */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* リンクのスタイル */
.auth-form a {
    color: violet;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-form a:hover {
    color: mediumorchid;
    text-decoration: underline;
}

.auth-form a:visited {
    color: plum;
}

/* 追加情報やナビゲーション */
.auth-nav {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 4px;
}

.auth-nav p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .auth-container {
        margin: 1em;
        padding: 1.5em;
        max-width: none;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        font-size: 16px; /* iOS でズームを防ぐ */
    }
    
    #attachment label {
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* 古いregister_loginクラスとの互換性 */
.register_login {
    max-width: 100%;
    text-align: left;
    margin: 0;
}

.register_login input[type="email"],
.register_login input[type="password"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 5px 0 10px 0;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}

/* フレーム内でのフォーム調整 */
.frame .auth-form {
    padding: 20px;
}

.frame .form-group {
    margin-bottom: 15px;
}

/* 自動ログインオプションのスタイル */
.auto-login-option {
    margin: 15px 0;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: 4px;
    border-left: 3px solid violet;
}

.auto-login-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

.auto-login-option input[type="checkbox"] {
    margin-right: 10px;
}

/* ロード中の状態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading #attachment label {
    background-color: #999;
    border-color: #666;
}

/* フォーカス可能な要素のアウトライン改善 */
input:focus,
button:focus,
label:focus {
    outline: 2px solid violet;
    outline-offset: 2px;
}

/* ダークモード対応の調整 */
@media (prefers-color-scheme: dark) {
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        background-color: #0a0a0a;
        border-color: #444;
    }
    
    .password-requirements {
        background-color: #0a0a0a;
    }
    
    .auth-nav {
        background-color: #0a0a0a;
    }
}

/* SNSボタン https://www.notitle-weblog.com/hatena-share-button/ */
.share-btn-outer {
border: 1px;
margin: 2em auto;
padding: 1em;
width: 900px;
max-width: 96%;

/* スマホでのはみ出し対策 */
box-sizing: border-box;
word-wrap: break-word;
}
.share-btn-type3 {
  margin: 1.2em 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.share-btn-type3 i {
  margin-right: 8px;
  font-size: 1rem;
  vertical-align: middle;
}
.share-btn-type3 .share-btn__item {
  width: 49.5%;
  height: 40px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  letter-spacing: .04em;
  line-height: 40px;
  border-radius: 4px;
  transition: all .3s;
}
.share-btn-type3 .share-btn__item--twitter {
  background-color: #2b2b2b;
  box-shadow: 0 4px #000000;
}
.share-btn-type3 .share-btn__item--hatebu {
  background-color: #00A4DE;
  box-shadow: 0 4px #038ebf;
}
.share-btn-type3 .share-btn__item--facebook {
  background-color: #1778F2;
  box-shadow: 0 4px #1366ce;
}
.share-btn-type3 .share-btn__item--line {
  background-color: #00c300;
  box-shadow: 0 4px #008000;
}
.share-btn-type3 .share-btn__item--pocket {
  background-color: #EF4155;
  box-shadow: 0 4px #c3293b;
}
.share-btn-type3 .share-btn__item--copy {
  background-color: #cd853f;
  box-shadow: 0 4px #d2691e;
}
.share-btn-type3 .share-btn__item:hover {
  transform: translateY(4px);
  box-shadow: 0 0 #333;
}
@media (min-width: 768px){
   /* PCやタブレットの場合 */
  .share-btn-type3 .share-btn__item {
    width: 33%;
  }
}


/* make_html.php からのE2EE移植スタイル - ダークテーマ対応版 */
/* 明るい背景での文字視認性を考慮した色調整 */
/* 暗号化通知エリア（基本的な情報表示） */
.encryption-notice-basic {
    background: linear-gradient(135deg, #e7f3ff, #cce7ff);
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto;
    max-width: 95%;
    color: #003366; /* ダークブルーで視認性確保 */
    text-align: center;
}

.encryption-notice-basic h3 {
    margin: 0 0 10px 0;
    color: #0044aa; /* より濃いブルー */
    font-size: 1.2em;
}

.encryption-notice-basic p {
    margin: 0;
    color: #004080; /* 明るい背景でも読みやすい濃い色 */
    line-height: 1.4;
}

/* 復号化エラー（明るい背景対応） */
.decryption-error-light {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border: 2px solid #cc0000;
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto;
    max-width: 95%;
    color: #660000; /* 濃い赤で視認性確保 */
}

.decryption-error-light h4 {
    margin: 0 0 15px 0;
    color: #990000; /* より濃い赤 */
    font-size: 1.3em;
}

.decryption-error-light p {
    margin: 10px 0;
    line-height: 1.4;
    color: #800000; /* 明るい背景でも読みやすい色 */
}

/* 読み込み中（明るい背景対応） */
.loading-light {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #6c757d;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 95%;
    color: #495057; /* 明るい背景でも読みやすいグレー */
}

.loading-light p {
    margin: 0;
    font-size: 1.1em;
    color: #343a40; /* より濃いグレー */
}

/* 暗号化プレビュー（明るい背景対応） */
.encrypted-preview-light {
    border: 3px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin: 10px auto;
    max-width: 95%;
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
    color: #1e3a1e; /* 明るい背景でも読みやすい濃い緑系 */
}

.encrypted-preview-light summary {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* セキュリティバッジ（コントラスト改善） */
.security-badge-light {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4);
}

/* 復号化進行バー（明るい背景対応） */
.decryption-progress-light {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px auto;
    max-width: 300px;
    border: 1px solid #ced4da;
}

.decryption-progress-bar-light {
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    height: 100%;
    width: 0%;
    animation: progressAnimationLight 2s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes progressAnimationLight {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* 復号化成功メッセージ（明るい背景対応） */
.decryption-success-light {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    max-width: 95%;
    color: #155724; /* 明るい背景でも読みやすい濃い緑 */
    text-align: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.decryption-success-light p {
    margin: 0;
    font-weight: bold;
    color: #0f4229; /* より濃い緑 */
}

/* 暗号化説明ボックス（明るい背景対応） */
.encrypted-explanation-light {
    background: linear-gradient(135deg, #e7f3ff, #cce7ff);
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto;
    max-width: 95%;
    color: #003366;
}

.encrypted-explanation-light p {
    margin: 8px 0;
    color: #004080;
    line-height: 1.4;
}

.encrypted-explanation-light strong {
    color: #0044aa;
    font-weight: bold;
}

/* レスポンシブ対応（明るい背景版） */
@media screen and (max-width: 768px) {
    .encryption-notice-basic,
    .decryption-error-light,
    .encrypted-preview-light,
    .decryption-success-light,
    .encrypted-explanation-light {
        margin: 15px 10px;
        padding: 12px;
    }
    
    .security-badge-light {
        display: block;
        margin: 10px auto 0 auto;
        text-align: center;
        max-width: 200px;
    }
    
    .loading-light {
        padding: 15px 10px;
    }
}

/* ホバー効果（明るい背景対応） */
.encrypted-preview-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.encryption-notice-basic:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

/* その他 */
/* レスポンシブデザイン */
 .responsive {
    display: flex;
    max-width: 95%;
    margin: auto;
    justify-content: center;
 }
 @media screen and (max-width: 767px) {
    .responsive {
      display: block;
    }
}

 .payments {
    display: flex;
    max-width: 95%;
    justify-content: center;
 }
 .payments img {
    height: 200px;
    width: 200px;
    max-width: none; /* グローバル制約を無効化 */
 }
 @media screen and (max-width: 767px) {
    .payments {
      display: block;
    }
}