/*! destyle.css v2.0.2 | MIT License | https://github.com/nicolas-cusan/destyle.css */

/* Reset box-model and set borders */
/* ============================================ */

*,
::before,
::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
}

/* Document */
/* ============================================ */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 * 3. Remove gray overlay on links for iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -webkit-tap-highlight-color: transparent; /* 3*/
}

.selectlink{
  margin: 30px 0px 0px;
  padding: 15px;
  border: 2px #ddd solid;
  border-radius: 3px;
  background-color: #fff;
  cursor: pointer;
}

/* ナビゲーションバーの基本的なスタイル */
.navbar {
    display: flex; /* ボタンを横に並べる */
    justify-content: center; /* 中央寄せ */
    background-color: #FFFFFF;
    padding: 10px;
}

/* ====================================================== */
/* ドロップダウンメニューの全体スタイル (PC版) */
/* ====================================================== */
#drop-down-menu {
  margin: 0 auto;
  padding: 0px;
  list-style: none; /* リストのマーカーを削除 */
  font-size: 20px;
  font-weight: bold;
  width: 100%; /* 画面幅いっぱいに広げる */
  background-color: #4654b3; /* メニューバーの背景色 */

  /* メニュー項目を中央揃えにするためのFlexbox設定 */
  display: flex;
  justify-content: center; /* 子要素（li）を中央揃え */
  align-items: center; /* 子要素（li）を縦方向にも中央揃え (最も重要) */
}

/* floatの解除 (clear-fix) - Flexboxを使用しているため、実質的には不要ですが残しておきます。 */
#drop-down-menu::after {
  content: "";
  clear: both;
  display: table;
}

/* ====================================================== */
/* メニュー項目（li）のスタイル */
/* ====================================================== */
#drop-down-menu li {
  position: relative; /* サブメニューのabsolute配置の基準 */
  margin: 0 10px; /* 各メニュー項目間に左右の余白を追加 */
  width: 190px; /* 各li要素の幅を固定 */
  flex-shrink: 0; /* ★追加: Flexアイテムが縮まないようにする */
}

/* メニューのリンク（a）のスタイル */
#drop-down-menu li a {
  text-decoration: none;
  color: #FFFFFF;
  background-color: transparent; /* メニューバー全体に色を付けたので透明に */
  
  /* <a>タグ自体をFlexコンテナにし、その中の内容を中央揃えにする */
  display: flex;
  flex-direction: column; /* <a>タグ内の要素（テキストと∨記号）を縦に並べる */
  justify-content: center; /* 縦方向の中央揃え */
  align-items: center; /* 横方向の中央揃え */

  padding: 6px 5px; /* 縦幅を短縮 */
  transition: background-color 0.3s ease; /* ホバー時のアニメーション */
  height: auto; /* コンテンツの高さに合わせる */
}

/* 改行タグ（<br>）のスタイルを調整 (高さを取らないように徹底) */
#drop-down-menu li a br {
  display: block; /* 改行として機能させる */
  height: 0px; /* 高さを0に設定 */
  line-height: 0; /* 行の高さを0に設定 */
  margin: 0; /* マージンをリセット */
  padding: 0; /* パディングをリセット */
  overflow: hidden; /* はみ出しを隠す */
}

/* 下向き矢印のpタグ（<p class="text">∨</p>）のスタイルを調整 */
#drop-down-menu li a p.text {
  font-size: 10px; /* ∨記号のフォントサイズ */
  line-height: 1; /* ∨記号の行の高さを最小限に */
  margin: 0; /* デフォルトマージンをリセット */
  padding: 0; /* デフォルトパディングをリセット */
  display: block; /* <a>内のFlexアイテムとしてブロック表示 */
  transform: scaleX(2); /* ∨記号を横方向に拡大 */
}

/* メインメニュー項目にマウスを乗せた時の背景色 */
#drop-down-menu li:hover > a {
  background-color: #3845a0; /* 少し暗い色に */
}

/* ====================================================== */
/* サブメニュー（ドロップダウン部分）のスタイル */
/* ====================================================== */
#drop-down-menu li ul {
  /* 初期状態では非表示 (高さ0で隠し、hoverでheightを変更) */
  margin: 0px;
  padding: 0px;
  list-style: none;
  overflow: hidden; /* はみ出したコンテンツを隠す */
  height: 0px; /* 初期高さ */
  position: absolute; /* 親要素（li）を基準に配置 */
  
  /* ★修正点：サブメニューの幅をコンテンツに合わせて自動調整し、中央に配置 */
  transform: translateX(-50%); /* 自身の幅の半分だけ左に戻し、中央に */
  left: 50% !important; /* 他のCSSとの競合を避けるため!importantを追加 */
  
  width: max-content; /* ★変更点: コンテンツの最大幅に合わせる */
  min-width: 190px; /* ★追加点: ただし、最低限190pxは確保する (もしコンテンツが190pxより短い場合) */

  background-color: #4654b3; /* サブメニューの背景色 */
  z-index: 100; /* 他のコンテンツの上に表示 */
  transition: height 0.2s ease-out; /* 高さが変わる時のアニメーション */
}

/* メインメニュー項目にマウスを乗せた時にサブメニューを表示 */
#drop-down-menu li:hover ul {
  height: auto; /* 高さを自動調整して表示 */
}

/* サブメニュー内の項目（li）を縦並びにする */
#drop-down-menu li ul li {
  float: none; /* 横並びを解除 */
  width: 100%; /* 親要素（ul）の幅いっぱいに */
  border-top: 1px solid #5a68c0; /* 各項目間に区切り線 */
}

/* サブメニュー内のリンク（a）のスタイル */
#drop-down-menu li ul li a {
  background-color: #4654b3; /* 親メニューと同じ背景色 */
  padding: 8px 5px; /* サブメニュー内のpaddingは維持 */
  font-size: 18px; /* 親メニューより少し小さめ */
}

/* サブメニューの各項目にマウスを乗せた時の背景色 */
#drop-down-menu li ul li:hover a {
  background-color: #3845a0; /* 親メニューのホバーと同じ色 */
}


.scrollable-table {
    width: 90%; /* テーブルの幅を親要素に合わせる */
    max-height: 250px; /* テーブルの最大高さを設定 */
    overflow-y: auto; /* 垂直スクロールを有効にする */
    display: block; /* テーブルをブロック要素として扱う */
}

.blinking-image {
  animation: blink-animation 1s infinite; /* 1秒ごとに点滅、無限に繰り返す */
}

@keyframes blink-animation {
  0% { opacity: 1; }   /* 開始時は不透明 */
  50% { opacity: 0; }  /* 中間は透明 */
  100% { opacity: 1; }  /* 終了時は不透明 */
}

/* Sections */
/* ============================================ */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

@keyframes infinity-scroll-right {
from {
  transform: translateX(-100%);
}
  to {
  transform: translateX(0%);
}

.accordion-004 {
    max-width: 500px;
    margin-bottom: 7px;
    border: 2px solid #d0d0d0;
    border-radius: 5px;
}

.accordion-004 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
}

.accordion-004 summary::-webkit-details-marker {
    display: none;
}

.accordion-004 summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid #333333b3;
    border-right: 3px solid #333333b3;
    content: '';
    transition: transform .3s;
}

.accordion-004[open] summary::after {
    transform: rotate(225deg);
}

.accordion-004 p {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 2em 1.5em;
    color: #333333;
    transition: transform .5s, opacity .5s;
}

.accordion-004[open] p {
    transform: none;
    opacity: 1;
}


/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

.top-banner{
    display: flex;
    flex-wrap:wrap;
}
.top-banner li {
    width: calc(100%/4);/
   box-sizing:border-box;
}
.top-banner li img {
    max-width:100%; /
    height: auto; /
}

/* Vertical rhythm */
/* ============================================ */

p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
  margin: 0;
}

/* Headings */
/* ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  margin: 0;
}

/* Lists (enumeration) */
/* ============================================ */

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Lists (definition) */
/* ============================================ */

dt {
  font-weight: bold;
}

dd {
  margin-left: 0;
}

/* Grouping content */
/* ============================================ */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
  border-top-width: 1px;
  margin: 0;
  clear: both;
  color: inherit;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: inherit; /* 2 */
}

address {
  font-style: inherit;
}

/* Text-level semantics */
/* ============================================ */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: inherit; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content */
/* ============================================ */

/**
 * Prevent vertical alignment issues.
 */

img,
embed,
object,
iframe {
  vertical-align: bottom;
}

/* Forms */
/* ============================================ */

/**
 * Reset form fields to make them styleable
 */

button,
input,
optgroup,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: 0;
  border-radius: 0;
  text-align: inherit;
}

/**
 * Reset radio and checkbox appearance to preserve their look in iOS.
 */

[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

[type="radio"] {
  -webkit-appearance: radio;
  appearance: radio;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button[disabled],
[type="button"][disabled],
[type="reset"][disabled],
[type="submit"][disabled] {
  cursor: default;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Remove arrow in IE10 & IE11
 */

select::-ms-expand {
  display: none;
}

/**
 * Remove padding
 */

option {
  padding: 0;
}

/**
 * Reset to invisible
 */

fieldset {
  margin: 0;
  padding: 0;
  min-width: 0;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the outline style in Safari.
 */

[type="search"] {
  outline-offset: -2px; /* 1 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/**
 * Clickable labels
 */

label[for] {
  cursor: pointer;
}

/* Interactive */
/* ============================================ */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/*
 * Remove outline for editable content.
 */

[contenteditable] {
  outline: none;
}

/* Table */
/* ============================================ */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption {
  text-align: left;
}

td,
th {
  vertical-align: top;
  padding: 0;
}

th {
  text-align: left;
  font-weight: bold;
}

/* Misc */
/* ============================================ */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

.bold{ font-weight: bold; }
.font10{ font-size: 10px; }
.font11{ font-size: 11px; }
.font13bold{ font-size: 13px ; font-weight: bold; }
.whiteboldtext { color: #ffffff; font-weight: bold; }
.whitetext { color: #ffffff; }
.blueboldtext { color: #0066cc; font-weight: bold; }
.bluetext { color: #5a78db; }
.pinkboldtext { color: #CC6699; font-weight: bold; }
.pinktext { color: #CC6699; }
.redboldtext { color: #DD0000; font-weight: bold; }
.redtext { color: #DD0000; }
.orangeboldtext { color: #FF8636; font-weight: bold; }
.orangetext { color: #FF8636; }
.oratext { color: #FF8636; }
.errortext { color: #EE3429; }
.errorboldtext { color: #EE3429; font-weight: bold; }
.amazontext { color: #ff8888;}


.blackbolddecotext { text-shadow: -1px -1px 0 #FFF, 0 -1px 0 #FFF, 1px -1px 0 #FFF,
    -1px 0 0 #FFF, 0 0 1px #FFF, 1px 0 0 #FFF,
    -1px 1px 0 #FFF, 0 1px 0 #FFF, 1px 1px 0 #FFF,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #000;}
.blackdecotext { text-shadow: -1px -1px 0 #FFF, 0 -1px 0 #FFF, 1px -1px 0 #FFF,
    -1px 0 0 #FFF, 0 0 1px #FFF, 1px 0 0 #FFF,
    -1px 1px 0 #FFF, 0 1px 0 #FFF, 1px 1px 0 #FFF,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #000;
	font-weight: bold;}
a.blackboldadecotext:link { text-shadow: -1px -1px 0 #FFF, 0 -1px 0 #FFF, 1px -1px 0 #FFF,
    -1px 0 0 #FFF, 0 0 1px #FFF, 1px 0 0 #FFF,
    -1px 1px 0 #FFF, 0 1px 0 #FFF, 1px 1px 0 #FFF,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #000; font-weight: bold; text-decoration: none;}
a.blackboldadecotext:visited { text-shadow: -1px -1px 0 #FFF, 0 -1px 0 #FFF, 1px -1px 0 #FFF,
    -1px 0 0 #FFF, 0 0 1px #FFF, 1px 0 0 #FFF,
    -1px 1px 0 #FFF, 0 1px 0 #FFF, 1px 1px 0 #FFF,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #000; font-weight: bold; text-decoration: none;}
a.blackboldadecotext:hover { text-shadow: -1px -1px 0 #FFF, 0 -1px 0 #FFF, 1px -1px 0 #FFF,
    -1px 0 0 #FFF, 0 0 1px #FFF, 1px 0 0 #FFF,
    -1px 1px 0 #FFF, 0 1px 0 #FFF, 1px 1px 0 #FFF,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #000; font-weight: bold; text-decoration: none;}

.whitedecotext { text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000,
    -1px 0 0 #000, 0 0 1px #000, 1px 0 0 #000,
    -1px 1px 0 #000, 0 1px 0 #000, 1px 1px 0 #000,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #111; font-weight: none; text-decoration: none;}
.whitebolddecotext { text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000,
    -1px 0 0 #000, 0 0 1px #000, 1px 0 0 #000,
    -1px 1px 0 #000, 0 1px 0 #000, 1px 1px 0 #000,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #111; font-weight: bold; text-decoration: none;}
a.whiteatext:link { text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000,
    -1px 0 0 #000, 0 0 1px #000, 1px 0 0 #000,
    -1px 1px 0 #000, 0 1px 0 #000, 1px 1px 0 #000,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #111; font-weight: none; text-decoration: none;}
a.whiteatext:visited { text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000,
    -1px 0 0 #000, 0 0 1px #000, 1px 0 0 #000,
    -1px 1px 0 #000, 0 1px 0 #000, 1px 1px 0 #000,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #111; font-weight: bold; text-decoration: none;}
a.whiteatext:hover { text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000,
    -1px 0 0 #000, 0 0 1px #000, 1px 0 0 #000,
    -1px 1px 0 #000, 0 1px 0 #000, 1px 1px 0 #000,
    2px 2px 2px rgba( 0, 0, 0, 0.3 );
	color: #111; font-weight: bold; text-decoration: none;}

a.red_link:link { color:#FF0000; text-decoration:underline; }
a.red_link:visited { color:#FF0000; text-decoration:underline; }
a.red_link:hover { color:#0062FF; text-decoration:none;  }

	
	

//角丸
.kadomaru   {  
    border-radius: 5px;        /* CSS3草案 */  
    -webkit-border-radius: 5px;    /* Safari,Google Chrome用 */  
    -moz-border-radius: 5px;   /* Firefox用 */  
}

.kadomaru_sub {border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;}

//角丸

.bshadow{
     box-shadow:5px 5px;
     border:1px solid #000;
     width:100px;
     height:50px;
}

