@charset "utf-8";

/* --- 共通設定（レイアウト安定） --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0 auto;
  min-width: 320px;
  min-height: 100vh;
  color: #000;
  padding: 0;
  background-image: url(http://masumo10.web.fc2.com/tile-g.gif);
  background-repeat: repeat-x;
  background-position: right;
  background-attachment: scroll;
  background-color: lightblue;
}

/* --- コンテナとセクション --- */
#container {
  min-height: 1180px;
  max-width: 1020px;
  padding: 0 20px;
  margin: 0 auto;
  background-color: #E0FFFF;
  text-align: center;
  border: 3px solid #E0FFFF;
}

#contents {
  max-width: 1000px;
  margin: 1em auto;
  background-color: #ADD8E6;
  text-align: left;
  color: #000;
  /* outline: 1px solid rgb(174, 9, 9); */
}

/* --- ヘッダー --- */
#header {
  max-width: 1000px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background-color: #4cc5ce96;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
}

#header a,
.nav-link {
  text-decoration: none;
  color: #004C25;
  font-weight: bold;
}

#header a:hover,
.nav-link:hover {
  text-decoration: underline;
}

/* --- ナビゲーションリスト --- */
ul.nav {
  display: flex;
  gap: 2em;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

ul.nav li {
  font-size: 1rem;
  line-height: 3;
}

.nav a {
  display: block;
  color: #00008B;
  border: 1px solid #999;
  padding: 0 7px;
  border-radius: 0.5em;
  text-decoration: none;
}

.nav a:hover {
  color: #FEF !important;
  border: 1px solid white;
}

/* --- 詳細展開 <details> --- */
details {
  margin-top: 1em;
  cursor: pointer;
}

details[open],
details[open] > .nav-details {
  position: relative;
  z-index: 9999;
  background: white;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-details {
  margin-left: 1em;
  background-color: #f9f9f9;
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  max-width: 600px;
}

.nav-summary {
  font-weight: bold;
  color: #004C25;
  font-size: 1rem;
  margin-bottom: 0.5em;
}

/* --- テーブル内リンクナビ --- */
.nav-table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
  border-collapse: collapse;
  margin-top: 0.5em;
}

.nav-table td,
.nav-table th {
  padding: 4px 8px;
  text-align: left;
  font-size: 0.9rem;
  word-break: break-word;
}

.nav-table a {
  text-decoration: none;
  color: #004C25;
}

.nav-table a:hover {
  text-decoration: underline;
}

/* --- welcomeブロック --- */
#welcome {
  border-radius: 16px;
  max-width: 605px;
  float: left;
  padding: 8px 5px;
  margin: 0 auto;
  background-color: #8A2BE2;
  color: #fff;
  text-align: left;
  border: 3px solid #5A189A;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- リストの先頭アイコン付き --- */
.top li {
  list-style-image: url('https://canape2020.stars.ne.jp/img/c.png');
}
#side ul.top {
  text-align: left;
}

#side ul.top li {
  line-height: 1.8;
  margin: 4px 0;
  padding-left: 1em;
  text-indent: -1em;
  text-align: left;
}

li {
  list-style-type: none;
  margin: 6px 0;
}

/* --- sideエリア --- */
#side {
  max-width: 400px;
  margin: 0 auto 0 1px;
  padding: 0 3px 0 70px;
  float: left;
}

/* --- フッター --- */
#footer {
  background-color: #D3D3D3;
  max-width: 970px;
  margin: 2em auto 0;
  padding: 1em;
  border-top: 1px solid #ccc;
  text-align: center;
  clear: both;
}

#footer ul.nav {
  display: flex;
  justify-content: center;
  gap: 2em;
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul.nav li a {
  text-decoration: none;
  color: #004C25;
  font-weight: bold;
}

#footer ul.nav li a:hover {
  text-decoration: underline;
  color: #1a1ac7;
}

.contact-link {
  color: #1a1ac7;
}

.privacy-link {
  font-style: italic;
}

/* --- 横ライン・装飾 --- */
.translate-rotate {
  margin-top: 25px;
  width: 470px;
  height: 2px;
  background-color: gold;
  transform: translateX(170px) rotate(12deg);
}

.margin-1em {
  margin: 1em;
}

.margin-2em {
  margin: 2em;
}

.bottom-em6 {
  padding-bottom: 6em;
}

/* --- メモ欄 --- */
#memo {
  background-color: #D8D8D8;
  padding: 0 0 30px 0;
  text-align: left;
}

/* --- テキスト装飾 --- */
.text_bold {
  color: gold;
}

.over-t {
  text-decoration: overline;
}

.under-t {
  text-decoration: underline;
}

p.sample4 {
  text-decoration: line-through;
}

.position {
  font-size: 20px;
}

.cap-i {
  font-style: italic;
}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 600px) {
  #header {
    flex-direction: column;
    height: auto;
    padding: 1em 0;
  }

  ul.nav {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  .image-block {
    flex-direction: column;
    align-items: center;
  }
}
@media screen and (max-width: 600px) {
  #header {
    flex-direction: column;
    height: auto;
    padding: 1em 0;
  }

  ul.nav {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  .image-block {
    flex-direction: column;
    align-items: center;
  }
}

