@charset "UTF-8";

/* --- 全体・スクロール設定 --- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: #333;
}

.contact_page_wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 40px 4% 80px; /* 左右余白も%指定 */
}

/* --- レイアウト（%指定のFlexbox） --- */
.flex_container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  align-items: flex-start;
  justify-content: space-between;
}

/* 左側：メインエリア（全体の約62.5%） */
.main_col {
  width: 62.5%;
  min-width: 0;
  box-sizing: border-box;
}

/* 中央：縦線エリア（全体の約5%） */
.divider_col {
  width: 5%;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.vertical_line {
  width: 1px;
  background-color: #1e3a2b;
  opacity: 0.25;
}

/* 右側：サイドバーエリア（全体の約32.5%） */
.side_col {
  width: 32.5%;
  min-width: 0;
  box-sizing: border-box;
}

/* --- h2見出し装飾 --- */
h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e3a2b;
  border-bottom: 2px solid #1e3a2b;
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.main_col section:first-of-type h2,
.main_col h1 + section h2 {
  margin-top: 20px;
}

.main_col h1 {
  font-size: 1.8rem;
  color: #1e3a2b;
  margin-top: 0;
}

.inline_link {
  color: #1e3a2b;
  font-weight: bold;
  text-decoration: underline;
}

.inline_link:hover {
  opacity: 0.75;
}

/* --- カード風ボックス --- */
.form_card,
.author_card {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background-color: #fff;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- フォーム内部 --- */
.form_group {
  margin-bottom: 20px;
}

.form_group label {
  display: block;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.required {
  font-size: 0.75rem;
  background-color: #e63946;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.form_group input[type="text"],
.form_group input[type="email"],
.form_group select,
.form_group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #1e3a2b;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
  outline: none;
}

.form_group textarea {
  resize: vertical;
  min-height: 120px;
}

.select_wrapper {
  position: relative;
}

.select_wrapper::after {
  content: "▼";
  font-size: 0.8rem;
  color: #1e3a2b;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form_group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
}

/* 送信ボタン */
.form_btn_area {
  text-align: center;
  margin-top: 24px;
}

.submit_btn {
  background-color: #1e3a2b;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 40px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit_btn:hover {
  background-color: #2a503c;
}

/* --- FAQスタイル --- */
.faq_item {
  border: 2px solid #000;
  border-radius: 12px;
  background-color: #fff;
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 1rem;
}

.faq_q {
  padding: 18px 24px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq_q::-webkit-details-marker {
  display: none;
}

.faq_q::after {
  content: "▼";
  font-size: 0.9rem;
  color: #333;
  transition: transform 0.3s;
  margin-left: 12px;
}

.faq_item[open] .faq_q::after {
  transform: rotate(180deg);
}

.faq_a {
  padding: 18px 24px;
  border-top: 2px dashed #000;
  background-color: #fafafa;
}

.faq_a p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: bold;
}

/* --- サイドバー（画像バナー） --- */
.banner_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner_item {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.banner_item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  box-sizing: border-box;
}

.banner_item:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* --- ★スマホ対応（768px以下で縦並びにする設定） --- */
@media (max-width: 768px) {
  .flex_container {
    flex-direction: column; /* 縦並びに切替 */
  }

  .main_col,
  .side_col {
    width: 100%; /* スマホでは画面いっぱいに広げる */
  }

  .divider_col {
    display: none; /* スマホ時は真ん中の縦線を非表示 */
  }

  .side_col {
    margin-top: 40px; /* 下に回ったバナーとの間に余白を追加 */
  }
}

/* --- 製作者紹介（パワポ再現スタイル） --- */
.author_wrapper {
  padding: 10px 0;
}

/* 大見出し */
.author_headline {
  font-size: 1.4rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

/* 語り文章 */
.author_story {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: 32px;
}

.author_story p {
  margin: 0 0 16px 0;
}

.highlight_text {
  font-weight: bold;
}

/* 下段2カラムレイアウト */
.author_bottom_grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.profile_box {
  width: 35%; /* 左側の幅 */
}

.skills_box {
  width: 65%; /* 右側の幅 */
}

/* ボックスの見出し */
.box_title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 12px 0;
}

/* 薄グレーのカード枠 */
.box_content {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 20px;
  height: calc(100% - 40px); /* 高さを揃える */
  box-sizing: border-box;
}

/* プロフィール定義リスト */
.profile_list dt {
  font-size: 0.85rem;
  color: #4b5563;
  margin-top: 10px;
}

.profile_list dt:first-child {
  margin-top: 0;
}

.profile_list dd {
  margin: 2px 0 0 0;
  font-size: 0.95rem;
  font-weight: bold;
  color: #111827;
}

/* 得意分野の上下レイアウト（プロフと見た目を統一） */
.skills_list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* 項目同士の隙間 */
  margin: 0;
  padding: 0;
}

.skill_item {
  margin: 0;
}

/* 項目名（プロフのddに合わせたスタイル） */
.skill_label {
  font-size: 0.95rem;
  font-weight: bold;
  color: #111827;
  margin: 0;
}

/* コメント（改行して下に配置） */
.skill_desc {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 2px 0 0 0;
  line-height: 1.5;
}

/* スマホ表示時は1カラムに落とす */
@media (max-width: 768px) {
  .author_bottom_grid {
    flex-direction: column;
  }
  
  .profile_box,
  .skills_box {
    width: 100%;
  }
}

/* 左側のカードをFlexにして高さをいっぱいに使う */
.profile_box .box_content {
  display: flex;
  flex-direction: column;
}

.profile_list {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 項目を上から下まで均等配置 */
  height: 100%;
  margin: 0;
}

/* モーダル背景（薄暗くする） */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* モーダル本体 */
.modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  margin-top: 0;
  color: #1e3a2b;
  font-size: 1.25rem;
}

.modal-content p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 15px 0 20px;
}

/* 閉じるボタン */
.modal-btn {
  background-color: #1e3a2b;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.modal-btn:hover {
  opacity: 0.9;
}