/* 全体のフォント設定 */
body, h1, h2, h3, p, a, li, strong {
    font-family: 'Dosis', sans-serif;
}

/* 全体設定 */
* {
    font-family: 'Dosis', sans-serif;
    color: #3F4B49;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.8em;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-decoration: none;
}

body {
    width: 100vw;
    height: 100vh;
    background-color: #F0F0F0;
    position: relative;
    overflow-x: hidden;
}

.wrap {
    max-width: 1000px;
    min-height: 100vh;
    position: relative;
    padding: 70px;
    overflow: hidden;
    margin: 0 auto 30px;
}

/* リンク文字 */
a {
    transition: 0.2s;
    border-bottom: 1px dashed #16C6A4;
}

a:hover {
    color: #16C6A4;
}

/* 強調文 */
strong {
    font-weight: bold;
    display: inline-block;
    position: relative;
    z-index: 0;
}

strong:before {
    background-color: #16C6A4;
    opacity: 0.2;
    border-radius: 1px;
    content: '';
    display: block;
    height: 7px;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: -1;
}

/* ナビゲーションのリンク修正 */
.nav li a {
    font-size: 13px;
    color: #FFF;
    border-bottom: none !important;
    letter-spacing: 0.2em;
}

/* ヘッダー＋コンテンツのレイアウト */
.main-flex {
    display: flex;
    align-items: flex-start;
    column-gap: 7%;
}

/* ヘッダーメニュー */
header {
    width: 23%;
    height: auto;
    text-align: center;
    padding: 65px 40px;
    border-radius: 16px;
    background-color: #16C6A4;
}

.nav {
    padding: 0;
}

.nav li {
    display: block;
    text-align: center;
    padding: 12px 0;
    transition: 0.2s;
}

.nav li+li {
    content: '';
    border-top: 1px solid rgba(255,255,255,0.4);
}

.nav li a {
    font-size: 13px;
    color: #FFF;
    border-bottom: none;
    letter-spacing: 0.2em;
}

.nav li a:hover {
    opacity: 0.5;
}

/* メインコンテンツ */
main {
    width: 70%;
    margin: 0 auto;
    padding: 60px 60px 80px;
    background-color: #FFF;
    border-radius: 16px;
}

/* 見出し */
h1,h2,h3,h4 {
    font-weight: 700;
}

h1 {
    font-size: 20px;
    text-align: center;
    padding-bottom: 30px;
    color: #FFF;
    letter-spacing: 0.15em;
    word-wrap: break-word;
}

h2 {
    font-size: 16px;
    padding-bottom: 5px;
    color: #16C6A4;/* ★h2見出しの文字色 */
}

h3 {
    font-size: 14px;
    padding-bottom: 5px;
}

h3:before {
    content: '';
    width: 3px;
    height: 12px;
    border-radius: 1px;
    background-color: #16C6A4;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: -2px;
}

/* セクション（見出し＋本文のセット） */
.section {
    width: 100%;
}

.section+.section {
    margin-top: 50px;
}

/* 入力フォームと送信ボタン */
form {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

input[type="text"],
input[type="radio"],
input[type="button"],
input[type="reset"],
input[type="submit"],
select,
textarea {
-webkit-appearance: none;
-moz-appearance: none;
-webkit-box-shadow: none;
appearance: none;
box-shadow: none;
background: #F4F4F4;/* ★フォームの背景色 */
border-radius: 4px;
color: #3F4B49;
border: 1px solid #F4F4F4;
width: 30em;
height:2.0em;
padding: 0 6px;
}

input:focus, textarea:focus {
outline: none;
height:2.0em;
background: #FFF;/* ★フォームフォーカス時の背景色 */
border: 1px solid #C9C9C9;/* ★フォームフォーカス時の枠線の色 */
}

input[type="submit"] {
width: auto;
border: none;
background-color: #16C6A4;/* ★送信ボタンの背景色 */
color: #FFF;/* ★送信ボタンの文字色 */
padding: 0 10px;
cursor: pointer;
transition: 0.2s;
}

input[type="submit"]:hover {
background-color: #3F4B49;/* ★送信ボタンホバー時の背景色 */
color: #16C6A4;/* ★送信ボタンホバー時の文字色 */
}

/* 名前変換フォーム */
.dream {
margin-bottom: 20px;
flex-wrap: wrap;
gap: 10px;
}

.dream input[type="text"] {
width: 70px;
}

.dream input[type="submit"] {
width: 30px;
}

/* 分岐ページ */
.long+.long {
padding-top: 10px;
}

/* ブログ */
.blog-ttl {
font-size: 18px;
text-align: center;
padding-bottom: 30px;
}

.list {
padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: 1px dashed rgba(0,0,0,0.13);
}

.date {
padding: 1px 8px;
background-color: #F0F0F0;
width: fit-content;
border-radius: 5px;
margin-bottom: 10px;
}

.btn {
text-align: right;
padding-top: 10px;
}

.btn a {
padding: 1px 8px;
border-radius: 5px;
background-color: #16C6A4;/* ★追記ボタンの背景色 */
color: #FFF;/* ★追記ボタンの文字色 */
border-bottom: none;
}

.btn a:hover {
background-color: #3F4B49;/* ★追記ボタンホバー時の背景色 */
color: #16C6A4;/* ★追記ボタンホバー時の文字色 */
}

.back {
text-align: left;
}

.page {
text-align: center;
}

/* フッター */
footer {
    text-align: right;
    margin-top: 20px;
    font-size: 11px;
    opacity: 0.6;
}

/* モーダルウィンドウの表示 */
.modal-wrapper {
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 10px;
  text-align: center
}

.modal-wrapper:not(:target) {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.modal-wrapper:target {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s, visibility .4s;
}

.modal-wrapper::after {
  display: inline-block;
  height: 100%;
  margin-left: -.05em;
  vertical-align: middle;
  content: ""
}

.modal-wrapper .modal-window {
  box-sizing: border-box;
  display: inline-block;
  z-index: 20;
  position: relative;
  width: 70%;
  max-width: 600px;
  padding: 30px 30px 15px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, .6);
  vertical-align: middle
}

/* モーダル内のコンテンツ（画像表示） */
.modal-wrapper .modal-window .modal-content {
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
  position: relative;
}

/* モーダルウィンドウ内に画像が表示される場合 */
.modal-wrapper .modal-window img {
  width: 100%; /* 画像をモーダルの幅に合わせる */
  height: auto; /* アスペクト比を維持 */
  object-fit: contain; /* 画像が収まるように調整 */
  display: block; /* 画像をブロック要素にして余白を削除 */
  margin: 0 auto; /* 画像の中央寄せ */
}

.modal-overlay {
  z-index: 10;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .8)
}

.modal-wrapper .modal-close {
  z-index: 20;
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  color: #95979c !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  text-decoration: none;
  text-indent: 0
}

.modal-wrapper .modal-close:hover {
  color: #2b2e38 !important
}

/* 640px以下のデバイスでの見え方 */
@media screen and (max-width: 640px)  {
.wrap{
    padding: 25px;
}

.main-flex {
    display: block;
    height: auto;
}

header {
    width: 100%;
    padding: 15px 30px;
}

.nav {
    display: flex;
    column-gap: 25px;
    justify-content: center;
}

h1 {
    padding-bottom: 0;
}

.nav li+li {
    content: '';
    border-top: none;
}

main {
    width: 100%;
    margin-top: 30px;
    padding: 40px 30px;
}

@media screen and (max-width: 640px) {
  .modal-wrapper {
    padding: 10px; /* 余白を減らしてモーダルが画面にフィットするように */
  }

  /* モーダルウィンドウのサイズ調整 */
  .modal-wrapper .modal-window {
    width: 90%;  /* モーダルウィンドウの幅を画面幅の90%に */
    max-width: 90%; /* 最大幅を90%に */
    padding: 15px;  /* 内部の余白を小さく */
  }

  /* モーダルウィンドウ内の画像のサイズ調整 */
  .modal-wrapper .modal-content img {
    width: 100%;  /* 画像の幅をモーダルの幅に合わせる */
    height: auto;  /* 高さは自動調整 */
  }

  /* 閉じるボタンのサイズ調整 */
  .modal-wrapper .modal-close {
    font-size: 18px;  /* 閉じるボタンの文字サイズを小さく */
    width: 30px;  /* 幅を小さく */
    height: 30px; /* 高さを小さく */
    line-height: 30px; /* 高さに合わせて中央寄せ */
  }
}