@charset "UTF-8";

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

a  {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "MS Mincho", serif;
  color: #242020;
  background: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.roman {
  font-family: "Garamond", "Georgia", serif;
}

header {
  background: #007a8a;
  padding: 1.5rem 3.5rem;
  text-align: right;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 5rem;
  letter-spacing: 0.12em;
  margin: 0;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
}

header nav a:hover {
  color: #f1ce04;
  /* opacity: 0.6;*/
  transition: color 0.3s ease;  
}

nav ul {
  gap: 5rem;
  letter-spacing: 0.12em;
  margin: 0;
}

.hero {
  display: flex;
  height: 90vh; /* 高さはお好みで調整 */
  border-bottom: 45px solid #007a8a;
}

.hero-text {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background-color: #fff; /* 背景白でタイトル読みやすく */
  text-align: center;
}

.hero-text img {
  width: 34%;
  margin: auto;
}


.hero-image {
  width: 65%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile {
  position: relative;
  overflow: hidden; /* はみ出し防止 */
  padding: 3rem 2rem;
  border-bottom: 45px solid #007a8a;
  background: none; /* 元のbackground-image削除 */
}

.profile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 700px;
  height: 700px;
  background-image: url('../img/bg-img.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  /* transform: translateX(calc((100vw - 1100px) / 2));  */
  transform: translateX(200px); 
  pointer-events: none;
  z-index: 0;
}

.profile .container {
  position: relative;
  z-index: 1; /* 背景より前に出す */
}

.profile-content {
  display: flex;
  gap: 5rem;
  align-items: center;
  margin-bottom: 170px;
}

.profile-text {
  width: 50%;
}

.profile-img {
  width: 50%;
}

.profile-img img {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-name {
  font-size: 1.5rem;
  margin-top: 0;
  font-weight: 500;
}

.profile-subtext {
  font-size: 1.1rem;
}

.container {
  max-width: 1100px;
  margin: auto;
}

h2 {
  font-size: 4.5rem;
  letter-spacing: 0.07em;
  font-weight: 500;
  margin: 0;
  text-align: left;
  line-height: 1;
  margin-top: 100px;
}

.mt-30 {
  margin-top: 30px;
}

.subtitle {
  margin: 0;
  text-align: left;
  letter-spacing: 0.15em;
  color: #007a8a;
  margin-bottom: 100px;
  font-weight: 500;
  font-size: 1.3rem;
}

.gallery {
  margin: 3rem 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 最大4列に固定 */
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  width: 100%;         /* 幅を指定。親の幅に応じて伸縮します */
  padding-top: 100%;   /* 高さ＝幅 → 正方形になる */
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;    /* 中の画像がはみ出ないように */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 90%;
  max-height: 90%;
  transform: translate(-50%, -50%);
  object-fit: contain; /* 必要に応じて調整 */
}

/* ホバーで枠全体が浮き上がる */
.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.works {
  padding: 3rem 2rem;
  margin-bottom: 200px;
}

.works-content {
  display: flex;
  gap: 6rem;
  margin-top: 1rem;
}

.works-img {
  width: 50%;
}

.works-content img {
  max-width: 100%;
  height: auto;   /* ← 縦横比を維持しながら縮小 */
  display: block; /* ← 不要な隙間防止 */
}

.work-desc p {
  font-size: 1.4rem;
}

.work-desc ul {
  list-style: none;
  font-size: 1.1rem;
  padding: 0;
}

.work-desc li {
  margin-bottom: 10px;
}

.contact {
  text-align: center;
  padding: 3rem 2rem;
  background: #f1f1f1;
}

.center {
  text-align: center;
}

.mt-50 {
  margin-top: 50px;
}

.mb-60 {
  margin-bottom: 60px;
}

.contact .email-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 1.3rem 3rem;
  border: 1px solid #888;
  border-radius: 50px;
  color: #333;
  text-decoration: none;
  background-color: #ffffff;
  margin-bottom: 60px;
  letter-spacing: 0.15em;
   transition: background-color 0.3s ease, color 0.3s ease; /* ← 追加して滑らかに */
}

.contact .email-link:hover {
  background-color: #007a8a;  /* ホバー時の背景色 */
  color: #fff;             /* ホバー時の文字色 */
  border: 1px solid #007a8a;
}

.contact p {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
}

.social-icons {
  margin-top: 20px;
  text-align: center;
}

.instagram-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.instagram-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  transition: opacity 0.3s ease;
}

.instagram-icon:hover {
  opacity: 0.7;
}

.instagram-label {
  font-size: 0.75rem;
  color: #555;
}

footer {
  background: #f1f1f1;
  text-align: center;
  padding: 0;
  font-size: 0.75rem;
  color: #888;
}

footer p {
  margin: 0;
}

/* モーダルウィンドウ */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 120px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: 0.3s;
}

.close:hover {
  color: #ccc;
}

/* スクロールアクション */

.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* トップへ戻るボタン */

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: inline-block;
  background-color: #fff;           /* 白背景 */
  color: #888;                      /* 矢印の色（グレー） */
  padding: 1rem 1.3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #888;          /* グレーの線枠 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 998;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #f5f5f5;        /* ホバー時に少し暗めに */
  color: #444;                      /* 矢印も少し濃いグレーに */
  border-color: #444;
}

/* まずメニューボタンは非表示に */
#menuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 1001;
}

/* モバイルメニュー非表示 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(0, 122, 138, 0.95);
  padding-top: 4rem;
  z-index: 1000;
  text-align: center;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li {
  margin: 1.5rem 0;
}

.mobile-menu ul li a {
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
}

/* ハンバーガーアイコン基本設定 */
.hamburger {
  width: 30px;
  height: 24px;
  position: fixed;
  top: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
  cursor: pointer;
  background: #007a8a;
  border-radius: 6px;
  padding: 8px;
}

/* ベース設定：2本の線を上下中央に配置 */
.hamburger span {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 24px;
  height: 1px;
  background: #242020;
  border-radius: 1px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: center;
}

/* 通常状態の上下に分かれた位置 */
.hamburger span:nth-child(1) {
  transform: translateY(-5px);
}
.hamburger span:nth-child(2) {
  transform: translateY(5px);
}

/* open状態で “×” に交差 */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  transform: rotate(-45deg);
}

/* 川柳セクション */

.senryu {
  text-align: center;
  margin-top: 4rem;
  /* margin-bottom: 4rem; */
  font-family: 'Shippori Mincho', serif; /* 上品な明朝体に変更可能 */
  /* font-size: 1.4rem; */
  letter-spacing: 0.1em;
  /* line-height: 2.8; */
  color: #222;
  /* background: radial-gradient(circle, #fffaf5 0%, #fdfdfd 100%); */
  padding: 1rem 1rem;
  border-radius: 8px;
}

.senryu-line {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* 控えめな影で柔らかさを出す */
  margin: 1.3rem 0;
}

.line2 {
  display: inline-block;
  margin-left: 3em;
  margin-top: 0;
}

.senryu-pc {
  display: block;
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-size: 1.5rem;
  line-height: 2;
  color: #242020;
}

.senryu-mobile {
  display: none;
}



/* レスポンシブ */

@media screen and (max-width: 768px) {

  header {
    display: none; /* ヘッダーの青い帯を非表示にする */
  }
  
  header nav ul {
    display: none; /* PC用メニュー非表示 */
  }

  #menuToggle {
    display: block; /* メニューボタン表示 */
  }

   .hamburger {
    display: block;
    position: fixed;
  }

  .hero {
    flex-direction: column; /* 横並び → 縦並び */
    height: auto;       /* 高さ固定を解除（縦に広がる） */
  }

  .hero-text,
  .hero-image {
    width: 100%;            /* 幅を100%にすることで上下に並ぶ */
  }

  .hero-text {
    padding-top: 4rem;    /* モバイル用に余白を調整（任意） */
  }

  .hero-text img {
    margin-left: 0;
  }

  .hero-image img {
    height: auto;
    display: block;
  }

  /* プロフィールセクション */

  .profile {
    padding-top: 3rem;
    padding-bottom: 0;
  }

  .profile-content {
    flex-direction: column; 
    margin-bottom: 0;
    gap: 2rem;
  }

  .profile-text {
    width: 100%;
  }

  .profile::after {
    bottom: 110px;
    transform: translateX(30px); 
  }

  .profile-img {
    width: 100vw;
    margin-top: auto;           /* 下に押しやる */
  }

  .profile-img img {
    width: 100%;                /* 画像を画面幅いっぱいに */
    height: auto;
    display: block;
  }

  .profile-subtext {
    margin-bottom: 30px;
  }

  

h2 {
  font-size: 3.5rem;
  margin-top: 50px;
}

.subtitle {
  margin-bottom: 50px;
  font-size: 1rem;
}

.center .contact {
  text-align: left;
}

 .gallery-grid {
  grid-template-columns: repeat(2, 1fr) 
}

.gallery-item {
  min-width: auto;
}

.works-content {
    flex-direction: column; /* 横並び → 縦並びに変更 */
    gap: 2rem; /* 縦方向の余白 */
    align-items: center; /* 中央揃え（必要に応じて） */
  }

  .works-img {
    width: 100%; /* モバイルでは画像を全幅に */
  }

  .work-desc p,
  .work-desc ul {
    text-align: left; /* テキスト整列を左に固定（中央なら center） */
  }

  .work-desc {
    width: 100%;
  }

  .work-desc p {
    font-size: 1.2rem; /* 小さめに調整（元が1.4remなら） */
  }

  .work-desc ul {
    font-size: 1rem; /* 元が1.1remなら少し小さく */
  }

  .work-desc li {
    margin-bottom: 8px; /* 行間も少し詰めるとバランス良く見えます */
  }

  .works {
    margin-bottom: 0;
  }

  .senryu {
    text-align: left;
    font-size: 1.6rem;
    line-height: 2.2;
    padding-left: 1.5rem;
  }

  .senryu-line {
    white-space: pre-line;
    margin: 1rem 0;
    position: relative;
  }

  .senryu-pc {
    display: none;
  }

  .senryu-mobile {
    display: block;
    text-align: left;
    font-size: 1.4rem;
    line-height: 2.2;
    padding-left: 1.5rem;
    font-family: 'Shippori Mincho', serif;
    color: #222;
  }

  .senryu-mobile p {
    margin-bottom: 1.5rem;
  }


}




/* モバイルメニューが開いた状態 */
.mobile-menu.open {
  display: block;
}


@media screen and (max-width: 428px) {

html, body {
  overflow-x: hidden; /* 横スクロール防止 */
}

img {
  max-width: 100%;
  display: block;
}

  .gallery-grid {
  grid-template-columns: 1fr; /* モバイルでは1列 */
}

.fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .contact {
    text-align: left;
  }

  .contact .center {
    text-align: left !important;
  }

  .contact p {
    font-size: 1rem; /* お好みで 0.95rem などに調整可能 */
  }

  .contact .email-link {
    font-size: 0.8rem;
  }



}

/* ホバーが使えない「タッチデバイス（スマホ・タブレット）」ではホバーアクションオフ */
@media (hover: none) and (pointer: coarse) {
  .gallery-item:hover {
    transform: none !important;
  }
}
