/****************   SKSJ CSS   *****************/

/****************   ローディングアニメーション   *****************/
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: white;
}


/****************   ローディングアニメーション   *****************/
.sksj-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

.sksj-loading .loader {
  width: 50px;
  height: 50px;
  background-image: url('./sksj_figures/sksj_wait.png');
  background-size: contain;
  background-repeat: no-repeat;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/****************   アイコン   *****************/
.sksj-icon-wrapper {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  width: 100px;
  height: 90px;
  background-color: white;
}

.sksj-icon-wrapper img {
  width: 100%;
  height: 100%;
}


/****************   ハンバーガーアイコン   *****************/
.sksj-hamburger {
  position: fixed;
  top: 40px;
  right: 15px;
  cursor: pointer;
  z-index: 1001;
}

.sksj-hamburger div {
  width: 35px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0px;
  transition: 0.4s;
}

.sksj-fullscreen-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgb(40,41,119, 0.9);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 3000;
}

.sksj-fullscreen-menu a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  margin: 10px 0;
}

.sksj-fullscreen-menu.show {
  display: flex;
}


/****************   ヘッダー（タイトル＋（メンバーリンク or 無し））   *****************/
.sksj-header {
  width: 100%;
  vertical-align: middle;
  background-color: white;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.sksj-title-container {
  text-align: center;
  font-family: serif;
  font-weight: bold;
  font-size: 40px;
  color: #333;
  /* background-color: white; */
  background-image: url('./sksj_figures/sksj_bg3.png'); 
  background-size: 35%;
  background-position: 98% 4%;
  background-repeat: no-repeat;
  /* kokomade */
  padding: 45px 5px 25px 5px;
}

.sksj-navbar-container {
  font-family:sans-serif;
  background-color: white;
  padding: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sksj-navbar {
  display: inline-flex;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  width: 100%;
  white-space: nowrap;
}

.sksj-navbar a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
}

/* ▼ ナビゲーションリンク（通常状態）*/
.sksj-navbar a:hover{
  color: white;
  background-color: rgb(40, 41, 119);
  border-radius: 8px;
  text-decoration: none; /* 下線を消してすっきりさせる */
  transition: all 0.3s ease-in-out; /* なめらかなホバーアニメーションを追加 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* 少し立体感を追加 */
}

/* ▼ クリック時の沈み込み */
.sksj-navbar a:active{
  transform:translateY(0);
  box-shadow:0 3px 4px rgba(0,0,0,0.2);
}

.sksj-second-header {
  font-family: serif;
  font-weight: bold;
  font-size: 25px;
  text-align: center;
  color: #333;
  background-color: white;
  margin: 35px auto;
  width: fit-content;
}

.link-header {
  margin-bottom: 10px;
}

.sksj-centering-wrap{
  text-align:center;
  margin:2rem 0;     /* 上下ゆとり */
}

.sksj-important-link a{
  display:inline-block;
  padding:0.6rem 1.6rem;
  background:#282977;
  color:#fff;
  font-weight:600;
  border-radius:4px;
  text-decoration:none;
  box-shadow:0 2px 4px rgba(0,0,0,.15);
  transition:transform .1s, box-shadow .1s;
}

.sksj-important-link a:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 8px rgba(0,0,0,.25);
}

/****************   本体   *****************/
.sksj-container {
  max-width: 100%;
  color: #333;
  background-color: white;
  padding: 10px;
  box-shadow: 0px -3px 6px rgba(40, 41, 119, 0.3);
  position: relative;
}

.sksj-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px; /* 横線の太さ */
  background: linear-gradient(to right, rgba(40, 41, 119, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

.sksj-left-text{
  font-size: 1.0em;
  font-family:sans-serif;
  color: #333;
  text-align:left;
  padding:20px 0 20px 0;
  margin: auto;
  max-width: 710px;
}

.sksj-right-text{
  font-size: 1.0em;
  font-family:sans-serif;
  color: #333;
  text-align:right;
  padding:20px 0 20px 0;
  margin: auto;
  max-width: 710px;
}

.sksj-center-text{
  font-size: 1.0em;
  font-family:sans-serif;
  color: #333;
  text-align:center;
  padding:20px 0 0 0;
  margin: auto;
  max-width: 710px;
}

.sksj-small-right-text{
  font-size: 0.9em;
  font-family:sans-serif;
  color: #fff;
  text-align: right;
  padding-right:10px;
}

.sksj-note-small {
  font-size: 0.5em;
}

a {
  color: #333;
}

.quote-container {
  border: 2px solid #888;
  background-color: #f9f9f9;
  padding: 15px;
  margin: 20px auto;
  width: 65%;
  border-radius: 8px;
  font-family: 'Arial', sans-serif;
}
.quote-container b {
  font-size: 1.0em;
  color: #333;
}
.quote-container p {
  text-indent: 0;
  margin: 10px 0;
  line-height: 1.6;
  color: #555;
}

/****************   hr   *****************/
.sksj-hr {
  border: none;                    /* デフォ枠を消す */
  height: 2px;                     /* 線の太さ */
  width: 80%;                      /* PC 幅 */
  margin: 2.5rem auto;             /* 上下 2.5rem / 中央寄せ */
  border-radius: 2px;              /* 角丸で柔らかく */

  /* 中央を濃く→端でフェードアウト */
  background: linear-gradient(
    to right,
    transparent 0%,
    #282977 20%,
    #282977 80%,
    transparent 100%
  );

  /* ほのかな光彩で立体感 */
  box-shadow: 0 0 6px rgba(40, 41, 119, 0.45);
}

@media (max-width: 768px) {
  .sksj-hr {
    width: 90%;        /* 画面幅に合わせて広げる */
    height: 3px;       /* 細くして主張を弱める */
    margin: 2rem auto; /* 余白を少し圧縮 */
    box-shadow: 0 0 4px rgba(40, 41, 119, 0.35);
  }
}


/****************   画像   *****************/
.sksj-img-frame img {
  cursor: pointer;
  transition: opacity .3s;
}
.sksj-date {
  white-space: nowrap;
}
.sksj-year,
.sksj-month {
  display: inline-block;
  font-size: 0.9rem;
}

/* クリック後に生成されるオーバーレイ */
.sksj-img-overlay {
  position: fixed;
  inset: 0;                      /* top/left/right/bottom:0 をまとめて書ける */
  background: rgba(0,0,0,.8);    /* ちょい透け黒 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sksj-img-overlay img {
  max-width: 90vw;               /* 画面サイズの 90% まで拡大 */
  max-height: 90vh;
  box-shadow: 0 0 10px rgba(255,255,255,.8);
}

.sksj-small-link {
  font-size: 0.7rem;
  line-height: 0.7rem;
  margin: 0px;
  padding: 0;
  position: relative;
  top:-10px;
}



/****************   リスト   *****************/
.sksj-left-list {
  max-width: 700px;
  padding-top: 0px;
  padding-bottom: 10px;
  margin: auto;
  line-height: 1.7;
}

.sksj-left-list li {
  margin-top: 25px;
  margin-bottom: 25px;
  line-height: 1.5;
  list-style-position: outside;
  padding-left: 12px;
}

.sksj-left-list li ul {
  margin-top: 5px;
  margin-bottom: 10px;
  list-style: disc;
}

.main-list {
  counter-reset: main-counter; /* メインカウンタをリセット */
  max-width: 660px;
  margin: auto;
  line-height: 1.8;
}

.main-list > li {
  list-style: none;
  font-weight: bold;
  counter-increment: main-counter; /* メインカウンタをインクリメント */
  margin-top:20px;
}

.main-list > li::before {
  content: counter(main-counter) ". "; /* 1. を表示 */
}

.main-list > li > ol {
  counter-reset: sub-counter; /* サブカウンタをリセット */
  font-weight: normal;
  margin-left: 25px; /* 子リスト全体の左側の余白を調整 */
  padding-left: 0; /* 子リストのデフォルトのインデントを消す */
}

.main-list > li > ol > li {
  list-style: none;
  counter-increment: sub-counter; /* サブカウンタをインクリメント */
  margin-left:0;
}

.main-list > li > ol > li::before {
  content: counter(main-counter) "." counter(sub-counter) " "; /* 1.1 を表示 */
}



/****************   テーブル   *****************/
.sksj-table-highlight {
  background-color: orange;
  color:#333;
}
.sksj-table-link {
  color: #333;
}

.sksj-table-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0 20px 0;
}

table {
  width: 80%;
  margin: 0 auto;
  margin-bottom: 30px;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 14px;
  background-color: white;
  color: #333;
  overflow: hidden;
}

table thead tr {
  background-color: white;
  color: #333;
  text-align: center;
}

table thead th {
  padding: 12px;
  font-weight: bold;
  border: none;
}

table tbody td {
  padding: 12px;
  text-align: center;
  border: 1px solid rgb(40, 41, 119);
}

table tbody tr:nth-child(even) {
  background-color: rgb(40, 41, 119, 0.1);
}

.sksj-signature-table {
  width: 350px;
  border: none;
  background: none;
  text-align: center;
  font-size: 16px;
  margin-left: auto;
  margin-bottom: 30px;
}

.sksj-signature-table td {
  text-align: center;
  border: none;
  padding: 5px;
  background-color:white; 
}




/****************   イメージ用   *****************/
.sksj-img-frame {
  text-align:center;
  padding: 20px;
}

.sksj-img-frame img {
  display: inline-block;
  width: 450px;
  border-radius: 10px; /* 角を丸く */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加 */
  transition: transform 0.3s, box-shadow 0.3s; /* ホバー時のエフェクト */
}

.sksj-img-ijin-frame {
  text-align:center;
  margin: 0 auto;
  margin-left:-27px; /*　苦肉のさく 見直しが必要かも */
}

.sksj-img-ijin-frame img {
  display: inline-block;
  width: 330px;
  border-radius: 10px; /* 角を丸く */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加 */
  transition: transform 0.3s, box-shadow 0.3s; /* ホバー時のエフェクト */
}

.sksj-img-frame-vertical {
  text-align:center;
  padding: 20px;
}

.sksj-img-frame-vertical img {
  display: inline-block;
  width: 250px;
  border-radius: 10px; /* 角を丸く */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加 */
  transition: transform 0.3s, box-shadow 0.3s; /* ホバー時のエフェクト */
}

.sksj-geant4-ref-frame {
  text-align:center;
  padding-top: 0px;
  margin-top:0px;
}

.sksj-geant4-ref-frame img {
  display: inline-block;
  width: 50%;
}

/****************   ビデオ/Youtube,youtube用   *****************/
.sksj-video-frame {
  text-align:center;
  padding: 20px;
}

.sksj-video-frame video {
  display: inline-block;
  width: 390px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sksj-youtube-wrapper {
  text-align:center;
  margin: 20px 0;
}

.sksj-youtube-video iframe{
  position: center;
  width: 680px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/****************   キャプション（イメージ/ビデオ共用）   *****************/
.sksj-caption {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #333;
}



/****************   フッター   *****************/
.sksj-footer {
  width: 100%;
  background-color: rgb(40, 41, 119);
  color: #fff;
  text-align: center;
  padding: 10px;
  margin: 0;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.2);
}

.sksj-footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.sksj-footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.875em;
}

.sksj-footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.sksj-footer-text {
  font-size: 0.875em;
  margin: 0;
}

/****************   アテンション   *****************/
.highlighted-content {
  position: relative;
  display: inline-block;
  padding-right: 0.6em;  /* 右端のバーぶんだけ余白を確保 */
}

.highlighted-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;              /* 常に要素の右端に張り付く */
  width: 0.4em;          /* バーの太さ */
  height: 100%;
  background: #ffeb3b;   /* 好きなハイライト色に変えてね */
}

/* バッジ本体 */
.attention-badge {
  position: absolute;
  top: -44px;
  right: -17px;
  background: #ffeb3b;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1;
  
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1); /* 少し拡大して目立たせる */
  }
}

/****************   コンタクトフォーム   *****************/
.contact-form {
  background-color: transparent;
  border: 2px solid #282977;
  border-radius: 12px;
  padding: 30px;
  padding-bottom: 20px;
  margin: auto;
  margin-bottom:20px;
  width: 90%;
  max-width: 550px;
  box-shadow: none;
  color: #282977;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #282977;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #282977;
  border-radius: 6px;
  background-color: transparent;
  color: #282977;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #282977;
  box-shadow: 0 0 8px rgba(40, 41, 119, 0.5);
}

.form-group textarea {
  resize: none;
  height: 100px;
}

.form-group input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 200px;
  background-color: transparent;
  color: #282977;
  border: 2px solid #282977;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 12px;
  margin: 20px auto 0;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.form-group input[type="submit"]:hover {
  background-color: #282977;
  color: white;
}

