/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ベーススタイル */
body {
  background: linear-gradient(135deg, #f6f9fc, #e9eef3); /* 淡いグラデーション */
  font-family: "BIZ UDPゴシック", "ヒラギノ角ゴ ProN W3", sans-serif;
  color: #333;
  text-align: center;
  padding: 20px;
}

/* ラッパ（デスクトップ: 最大幅 1300px） */
.wrapper {
  max-width: 1300px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* スマホ時は max-width を 900px に */
@media screen and (max-width: 768px) {
  .wrapper {
    max-width: 900px;
    padding: 15px;
  }
}

/* ヘッダー */
header {
  margin-bottom: 20px;
}
.header-image {
  width: 100%;
  border-radius: 12px;
}

/* メインコンテンツ */
main {
  padding: 1.5em;
}

/* ナビゲーションメニュー */
.main-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.main-nav li {
  margin: 0 10px;
}
.main-nav a {
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}
.main-nav a:hover {
  color: #004d99;
}

/* カード風セクション（プロフィール・リンク） */
.profile-section,
.links-section {
  background: #fff;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
}
.profile-section h2,
.links-section h2 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  border-left: 5px solid #6699cc;
  padding-left: 0.7em;
  color: #444;
}

/* プロフィール画像 */
.profile-photo {
  float: right;
  width: 150px;
  height: auto;
  border-radius: 24px;
  border: 2px solid #ccc;
  margin: 0 1em 1em 1em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* プロフィールテキスト */
.profile-text,
.profile-additional {
  line-height: 1.8;
  font-size: 1.1em;
}

.email {
  word-break: break-all;
}

/* リンクリスト */
.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.links-list li {
  margin: 10px 0;
}
.links-list a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s ease-in-out;
}
.links-list a:hover {
  text-decoration: underline;
  color: #004d99;
}

/* 入れ子用リスト */
.nested-links-list {
  padding-left: 3em;
}

/* 動画コンテナ */
.video-container {
  margin-top: 10px;
}

/* 問い合わせフォーム用 */
.contact-section,
.contact-section-inner {
  background: #fff;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
}
.contact-section h2,
.contact-section-inner h2 {
  font-size: 1.4em;
  margin-bottom: 0.7em;
  border-left: 5px solid #6699cc;
  padding-left: 0.7em;
  color: #444;
}
.contact-section form,
.contact-section-inner form {
  display: flex;
  flex-direction: column;
}
.contact-section .form-group,
.contact-section-inner .form-group {
  margin-bottom: 15px;
}
.contact-section label,
.contact-section-inner label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}
.contact-section textarea,
.contact-section-inner textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  outline: none;
  transition: border 0.2s ease-in-out;
}
.contact-section textarea:focus,
.contact-section-inner textarea:focus {
  border-color: #6699cc;
}
.contact-section button,
.contact-section-inner button {
  align-self: flex-end;
  padding: 10px 20px;
  background-color: #6699cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.contact-section button:hover,
.contact-section-inner button:hover {
  background-color: #557ba1;
}

/* ブログプレビューセクション */
.blog-preview {
  background: #fff;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
}
.blog-preview h2 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  border-left: 5px solid #6699cc;
  padding-left: 0.7em;
  color: #444;
}
.blog-entry {
  margin-bottom: 15px;
}
.blog-entry h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
}
.blog-entry p {
  font-size: 1em;
  line-height: 1.6;
}

/* ブログ記事専用スタイル */
.blog-post {
  background: #fff;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
}
.blog-post h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  border-left: 5px solid #6699cc;
  padding-left: 0.7em;
  color: #444;
}
.post-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .wrapper {
    max-width: 95%;
    padding: 15px;
  }

  .profile-photo {
    float: none;
    display: block;
    margin: 0 auto 15px;
  }

  .profile-section,
  .links-section,
  .blog-preview {
    text-align: center;
  }

  .links-list {
    padding-left: 0;
  }

  .contact-section {
    text-align: center;
  }
  .contact-section form {
    align-items: center;
  }
  .contact-section button {
    align-self: center;
  }

  /* 動画のiframeレスポンシブ */
  .video-container iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
  }
  
  /* メッセージ欄のiframe高さ拡大 */
  #message iframe {
    min-height: 400px !important;
  }
}
