@charset "UTF-8";

/* --- 基本設定 --- */
body {
  background-image: url('back01.gif');
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  margin: 0;
  padding: 0;
}

/* --- ヘッダー --- */
.header {
  text-align: center;
  padding: 40px 0;
}
.header h1 {
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 40px;
  font-weight: 500;
  color: #2c2c2c;
  letter-spacing: 2px;
  margin: 0;
}
.header h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #777;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 10px 0 0 0;
}

/* --- トップページ：上部のナビゲーションエリア --- */
.top-container {
  width: 535px;
  margin: 0 auto;
}
.content-table {
  width: 100%;
  border-collapse: collapse;
}
.navigation {
  width: 187px;
  text-align: center;
  vertical-align: top;
}
.navigation p {
  margin: 20px 0;
}
.navigation a {
  color: #333333;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.navigation a:hover {
  color: #8B4513;
}
.navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #8B4513;
  transition: width 0.3s ease;
}
.navigation a:hover::after {
  width: 100%;
}
.main-image {
  width: 167px;
  height: 226px;
  display: block;
}

/* --- コンテンツセクションの共通スタイル --- */
.content-section {
  padding: 40px 0;
  border-top: 1px solid #ddd;
}
/* 文章用コンテナ */
.text-container {
  width: 90%;
  max-width: 650px;
  margin: 0 auto;
}
/* ギャラリー用コンテナ */
.gallery-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

hr {
  border: 0;
  height: 1px;
  background: #ccc;
  margin: 20px 0;
}
.page-title {
  text-align: center;
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 20px 0 40px 0;
}

/* --- 「ごあいさつ」セクション --- */
.main-text {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  color: #996600;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  padding: 20px 0;
}
.author-name {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  color: #996600;
  font-size: 18px;
  text-align: center;
  padding: 30px 0;
}
.eng-link {
  text-align: center;
  padding: 30px 0 30px 0;
}
.eng-link a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #8B4513;
  color: #8B4513;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.eng-link a:hover {
  background-color: #8B4513;
  color: #FFFFFF;
}

/* --- 「プロフィール」セクション --- */
.profile-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.profile-list li {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
.profile-year {
  width: 60px;
  flex-shrink: 0;
  font-weight: bold;
  color: #3333CC;
}
.profile-desc {
  line-height: 1.6;
  color: #FF6633;
}
.publications-list {
  margin-top: 40px;
  padding-bottom: 30px;
  text-align: right;
  font-size: 14px;
  color: #3366FF;
  line-height: 1.7;
}
.publications-list p {
  margin: 5px 0;
}
.publications-list .year {
  color: #3333CC;
  font-weight: bold;
}

/* --- ギャラリー共通スタイル --- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding-bottom: 60px;
}

/* ギャラリーの外枠（div） */
.gallery-item {
  width: 150px;
  height: 120px;
  position: relative; /* 子要素の基準点 */
  box-sizing: border-box; /* paddingを含めたサイズ計算 */
  border: 1px solid #ddd;
  background: #fff;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

/* 画像を囲むリンクタグ */
.gallery-zoom-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* 灰色の背景スタイル */
.gallery-item.is-gray {
  background: #f0f0f0;
  border-color: #ddd;
}

/* --- 随筆ページ用スタイル (zuihitsu.html) --- */
.essay-container {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
  line-height: 2.2;
  font-size: 16px;
  text-align: justify;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.essay-container p {
  margin-bottom: 24px;
  text-indent: 1em;
}
.essay-title-area {
  text-align: center;
  margin-bottom: 50px;
}
.essay-main-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.essay-sub-title {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}
.essay-author {
  font-size: 18px;
  text-align: right;
  margin-right: 20px;
}
.essay-image-container {
  text-align: center;
  margin: 60px 0;
}
.essay-image {
  max-width: 100%;
  width: 600px;
  height: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
}

/* --- ページ遷移ボタン（次へ・戻る） --- */
.button-container {
  text-align: center;
  margin: 60px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-direction: row-reverse; /* PCでは右が次へ、左が戻る */
}

.next-page-btn, .back-page-btn {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  transition: opacity 0.3s, background-color 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: #fff;
}
.next-page-btn {
  background-color: #8B4513;
}
.next-page-btn:hover {
  background-color: #a0522d;
  opacity: 0.8;
}
.back-page-btn {
  background-color: #666;
}
.back-page-btn:hover {
  background-color: #444;
  opacity: 0.8;
}

/* --- お問い合わせフォーム --- */
.contact-section h2 {
  text-align: center;
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 20px 0 10px 0;
}
.contact-section p {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
  font-size: 16px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.contact-form label {
  font-weight: 600;
  color: #333;
  margin-bottom: -5px;
  display: block;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button[type="submit"] {
  padding: 12px 25px;
  background-color: #8B4513;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-end;
  margin-top: 10px;
}
.contact-form button[type="submit"]:hover {
  background-color: #A0522D;
}

/* フッター */
.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #777;
}

/* --- ページトップへ戻るボタン --- */
#page-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  width: 45px;
  height: 45px;
  background-color: #8B4513;
  color: #FFFFFF;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  z-index: 999;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#page-top-btn:hover {
  background-color: #A0522D;
  opacity: 0.9;
}

/* --- スティッキーナビゲーション --- */
#sticky-nav-container {
  position: fixed;
  top: -150px;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #ddd;
  z-index: 998;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  height: auto;
  min-height: 50px;
  padding: 10px 0;
  transition: top 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sticky-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 95%;
  max-width: 1000px;
  gap: 15px;
}
.sticky-nav-inner a {
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 8px;
  margin: 0;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}
.sticky-nav-inner a:hover {
  color: #8B4513;
  background-color: #f0f0f0;
}

/* --- ハンバーガーアイコン --- */
#hamburger-icon {
  display: none;
  padding: 0 10px;
  height: 44px;
  margin-right: 10px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.menu-text {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1;
}
#hamburger-icon.is-open .menu-text {
  display: none;
}
#hamburger-icon > div {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
#hamburger-icon > div > span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}
#hamburger-icon.is-open > div > span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
#hamburger-icon.is-open > div > span:nth-child(2) {
  opacity: 0;
}
#hamburger-icon.is-open > div > span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- スマホ用メディアクエリ (768px以下) --- */
@media (max-width: 768px) {
  .top-container {
    width: 100%;
    padding-top: 20px;
  }
  .content-table,
  .content-table tr,
  .content-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  .navigation {
    vertical-align: baseline;
    width: 100% !important;
    padding: 10px 0;
    text-align: center;
  }
  .navigation p {
    display: inline-block;
    margin: 5px 8px;
  }
  .main-image {
    margin: 0 auto;
  }
  .content-table td[width="80"] {
    display: none;
  }

  /* スマホナビゲーション調整 */
  #sticky-nav-container {
    justify-content: flex-end;
    padding: 0;
    height: 50px;
  }
  .sticky-nav-inner {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    max-width: none;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 0;
  }
  .sticky-nav-inner.is-open {
    display: block;
  }
  .sticky-nav-inner a {
    display: block;
    text-align: center;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }
  .sticky-nav-inner a:last-child {
    border-bottom: none;
  }

  #hamburger-icon {
    display: flex;
  }
  .menu-text {
    display: block;
  }

  /* モーダルスマホ調整 */
  .modal-content-wrapper {
    width: 95%;
  }
  .close-modal {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }

  /* ▼▼▼ ボタン配置調整（スマホ） ▼▼▼ */
  .button-container {
    flex-direction: column;
    align-items: center;
  }
  .next-page-btn, .back-page-btn {
    width: 80%;
    max-width: 300px;
  }
}

/* ▼▼▼ 画像拡大モーダルのスタイル ▼▼▼ */
.modal {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  z-index: 2000; /* ナビゲーションより上に表示 */
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* 画像が大きい場合はスクロール */
  background-color: rgba(0, 0, 0, 0.9); /* 背景を黒く透過 */
}

.modal-content-wrapper {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  text-align: center;
  position: relative;
  padding-bottom: 50px;
}

.modal-content {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal-caption-area {
  margin-top: 20px;
  color: #fff;
  text-align: left; /* 左寄せ */
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

#modal-title {
  font-family: "游明朝", serif;
  font-size: 24px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

#modal-text {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
}

.close-modal {
  position: fixed;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}