@charset "UTF-8";

/* =====================================
  基本設定（共通）
===================================== */
:root {
  --beige: #f7efda;
  --red: #780109;
  --brown: #442913;
}

html {
  font-size: 100%;
}
body {
  font-family: 'Zen Maru Gothic', sans-serif;
  line-height: 1.7;
  color: var(--beige);
  background-color: var(--red);
  list-style: none;
  width: 100%;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* =====================================
  HEADER
===================================== */
.header {
  position: sticky;
  left: 0;
  top: 0;
  padding: 16px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 20px;
  font-weight: lighter;
  text-align: center;
  background-color: var(--red);
}

.header__h1 {
  margin: 0;
}
.header__img {
  height: 48px;
  display: block;
}
.header__nav {
  display: flex;
  align-items: center; /* ← ナビ内部も中央に */
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header__ul {
  display: flex;
  gap: 64px; /* 3項目の間隔は64px固定 */
  margin: 0;
  padding: 0;
}

.header__li {
  margin: 0;
}

.header__a {
  color: var(--beige);
  font-family: 'Modak', sans-serif;
  font-weight: normal;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.header__acontact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: normal;
  font-family: 'Modak', sans-serif;
  padding: 14px 32px 10px 32px;
  border-radius: 22px;
  background-color: #f7efda;
  color: #780109;
}

.header__acontact:hover {
  background-color: #d7cfbd;
  color: #780109;
}

.header__a:hover {
  color: var(--brown);
}

.header__p {
  margin: 8px 0 0 0;
  font-size: 20px;
  font-weight: normal;
  font-family: 'Modak', sans-serif;
  line-height: 1;
}
.header__span {
  display: block;
  font-size: 12px;
  font-family: 'Zen Maru Gothic', sans-serif;
  line-height: 1;
}

/* CONTACTボタン（既存の見た目・位置は維持） */
.button2 {
  font-size: 20px;
  font-weight: normal;
  font-family: 'Modak', sans-serif;
  background-color: var(--beige);
  color: #8b2c33;
  padding: 15px 30px; /* サイズ維持 */
  border-radius: 24px; /* 角丸維持 */
  border: none;
  cursor: pointer;
  position: relative;
  top: -32px; /* 既存の位置微調整を維持 */
}
.button2:hover {
  background-color: var(--brown);
  color: var(--beige);
}

/* =====================================
   ハンバーガー（PC非表示 / SP表示）
===================================== */
.hamburger-menu {
  display: none;
} /* PCでは非表示 */
.main__works {
  width: calc(100% - 160px);
  margin: 80px auto 160px;
  z-index: -10;
}
.main {
  background-color: var(--red);
}
.main__img {
  width: 48%;
  margin: 0 auto;
  padding: 120px 0;
}

.footer {
  background-color: var(--beige);
  padding: 24px;
}
.footer__copy {
  text-align: center;
  margin: 0;
  color: var(--brown);
  font-family: 'Modak', sans-serif;
  font-weight: normal;
  font-size: 16px;
}

/* =====================================
  強制表示デバッグ用（不要なら削除OK）
  ※最終では本番SP用に下の@mediaだけで十分
===================================== */
/* （デバッグ時に使ったdisplay制御や!importantは削除しました） */

/* =====================================
  PROFILE
===================================== */
.main-profile {
  width: calc(100% - 160px);
  margin: 0 auto 160px;
}
.main__title {
  font-family: 'Modak', sans-serif;
  font-weight: normal;
  font-size: 32px;
  text-align: center;
  margin-top: 80px;
  color: #f8f3e2;
}
.profile-kana {
  margin-top: 16px;
}
/* 文章左／写真右 */
.profile-contents {
  display: flex;
  flex-direction: row-reverse; /* 写真を右に */
  justify-content: center;
  align-items: flex-start; /* 上端を揃える */
  gap: 64px;
  margin: 64px auto 160px auto;
}

/* 左側の文章ブロック */
.main__sentence {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.03em;
  margin-top: 48px;
  color: #f8f3e2;
}

/* 右側の写真 */
picture {
  width: 480px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.me {
  width: 480px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  vertical-align: top;
}
.profile-name {
  font-size: 40px;
  font-weight: normal;
  font-family: 'Modak', sans-serif;
}

/* =====================================
  
WORKS
===================================== */
.works-content {
  display: flex;
  gap: 80px;
  margin: 64px auto 160px auto;
}
.works__item {
  position: relative;
  overflow: hidden;
  width: calc((100% / 3) - 57px);
}
.works__item img {
  width: 100%;
  filter: none;
}
.works-sentence {
  font-weight: bold;
  font-size: 16px;
  color: var(--beige);
  line-height: 2;
  font-family: 'Zen Maru Gothic', sans-serif;
  border-radius: 16px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  margin: 0;
  padding: 0;
  opacity: 0;
}
.works__item:hover img {
  filter: blur(2.5px) brightness(0.6);
}
.works__item:hover .works-sentence {
  opacity: 1;
}

/* =====================================
  CONTACT
===================================== */
.contact__main {
  background: var(--red);
  color: var(--beige);
  margin: 80px auto 160px;
}
.contact__copy {
  line-height: 1.5;
  text-align: center;
  margin-top: 24px;
}

.contact-form {
  margin: 48px auto 160px auto;
}
.button {
  background-color: var(--beige);
  padding: 15px 40px;
  border-radius: 5px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.125rem;
  font-weight: bold;
  margin-top: 40px;
  background-color: #f7efda;
  color: #780109;
}
.button:hover {
  background-color: #d7cfbd;
  color: #780109;
}

/* フォーム */
form {
  text-align: center;
}
form div {
  margin-top: 40px;
  font-family: 'Zen Maru Gothic', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ラベル */
form div label {
  width: 100%;
  max-width: 640px;
  text-align: left;
  font-size: 1.125rem;
  margin-bottom: 8px;
}
/* 入力欄 */
input[type='text'],
input[type='email'] {
  background: rgba(255, 255, 255, 0.5);
  border: 1px #fff solid;
  border-radius: 5px;
  padding: 0 16px;
  font-size: 1rem;
  width: 100%;
  max-width: 640px;
  height: 48px;
  box-sizing: border-box;
  margin-top: 10px;
}
/* テキストエリア */
textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 1px #fff solid;
  border-radius: 5px;
  padding: 16px;
  font-size: 1rem;
  width: 100%;
  max-width: 640px;
  height: 144px;
  box-sizing: border-box;
  margin-top: 10px;
}
/* 送信ボタン */
input[type='submit'] {
  border: none;
  cursor: pointer;
  line-height: 1;
  background-color: var(--beige);
  color: var(--red);
  font-size: 1rem;
  border-radius: 28px;
  margin-top: 64px;
  width: 168px;
  height: 51px;
  transition: all 0.3s ease;
}
input[type='submit']:hover {
  background-color: var(--red);
  color: var(--beige);
}

/* =====================================
  モバイル（≤ 920px）– 完全リファクタ版
  ※ これ以外の @media(max-width:920px) は削除してOK
===================================== */
@media (max-width: 920px) {
  /* ---- 基本 ---- */
  html,
  body {
    margin: 0;
    padding: 0;
  }

  /* ---- ヘッダー ---- */
  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px; /* ロゴと右メニューの高さを揃えやすい最小値 */
    background: var(--red);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .header__nav {
    display: none;
  } /* PCナビは隠す（ハンバーガーに置換） */

  .header__img {
    height: 40px;
  } /* ロゴ少しだけ小さく（任意） */

  /* ---- ハンバーガー（開閉ボタン）---- 
     ※ HTMLは input#drawer_input → label.drawer_open → nav.nav_content の順で同階層に並べること
  */
  .hamburger-menu {
    display: block;
  }

  /* チェックボックスは非表示（でもフォーカス/操作はできる） */
  .drawer_hidden {
    position: absolute;
    left: -9999px;
  }

  /* 右上の三本線ボタン */
  .drawer_open {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000; /* オーバーレイより前に出す */
  }
  .drawer_open span,
  .drawer_open span::before,
  .drawer_open span::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--beige);
    transition: 0.3s ease;
  }
  .drawer_open span {
    top: 50%;
    transform: translateY(-50%);
  }
  .drawer_open span::before {
    top: -8px;
  }
  .drawer_open span::after {
    top: 8px;
  }

  /* 開いた時は真ん中線を消し、上下を中央に寄せて回転（×印） */
  #drawer_input:checked ~ .drawer_open span {
    background: transparent;
  }
  #drawer_input:checked ~ .drawer_open span::before {
    top: 0;
    transform: rotate(45deg);
  }
  #drawer_input:checked ~ .drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* ---- フルスクリーン・オーバーレイメニュー ---- */
  .hamburger-menu .nav_content {
    position: fixed;
    inset: 0; /* top/right/bottom/left:0 の省略 */
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* 縦並び */
    left: 100%;
    opacity: 0;
    pointer-events: none;
    transition: left 0.35s ease, opacity 0.25s ease;
    z-index: 1500; /* ヘッダー下、開閉ボタンの下 */
    padding: 80px 24px 40px;
  }
  #drawer_input:checked ~ .nav_content {
    left: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .hamburger-menu .nav_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
    width: min(520px, 92vw);
    text-align: center;
  }
  .hamburger-menu .nav__a {
    display: inline-block;
    text-decoration: none;
    color: var(--beige);
  }
  .hamburger-menu .nav__a .en {
    display: block;
    font-family: 'Modak', sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .hamburger-menu .nav__a .jp {
    display: block;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.95;
    margin-top: 6px;
  }
  /* CONTACTだけ丸ボタン */
  .hamburger-menu .nav__a--btn {
    background: var(--beige);
    color: #8b2c33;
    border-radius: 28px;
    padding: 12px 36px;
    box-shadow: 0 4px 0 #c9b186;
  }

  /* ---- メインビジュアル ---- */
  .main__img {
    width: 72%;
    margin: 0 auto;
    padding: 80px 0;
    display: block;
  }
  .main__title {
    font-family: 'Modak', sans-serif;
    font-weight: normal;
    font-size: 30px;
    text-align: center;
    margin: 40px 0 0;
  }

  /* ---- PROFILE ---- */
  .main-profile {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-bottom: 80px; /* フッター被り防止 */
  }
  .profile-contents {
    display: flex;
    flex-direction: column; /* 画像→テキストの縦積み */
    align-items: center;
    gap: 40px;
    margin: 40px auto 0;
  }
  picture {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .me {
    width: min(90%, 360px);
    height: auto;
    display: block;
  }
  .main__sentence {
    font-size: 16px;
    margin: 0;
  }

  /* ---- WORKS ---- */
  #works {
    height: auto;
  }
  .main__works {
    width: calc(100% - 32px);
    margin: 80px auto;
    z-index: 1;
  }
  .works-content {
    display: grid;
    grid-template-columns: 1fr; /* 1列 */
    gap: 24px;
    place-content: center;
    width: min(360px, 92vw);
    margin: 0 auto;
  }
  .works__item {
    width: 100%;
  }
  .works__item img {
    width: 100%;
    display: block;
  }
  .works-sentence {
    font-size: 14px;
  }

  /* ---- CONTACT ---- */
  #contact {
    height: auto;
  }
  .contact__main {
    width: calc(100% - 32px);
    margin: 0 auto 80px;
  }
  label {
    font-size: 16px;
    display: block;
  }
  input[type='text'],
  input[type='email'],
  textarea {
    background: rgba(255, 255, 255, 0.5);
    border: 1px #fff solid;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
    margin-top: 10px;
  }
  input[type='text'],
  input[type='email'] {
    height: 48px;
    padding: 0 16px;
  }
  textarea {
    height: 144px;
    padding: 16px;
  }
  input[type='submit'] {
    border: none;
    cursor: pointer;
    line-height: 1;
    background-color: var(--beige);
    color: var(--red);
    font-size: 1rem;
    border-radius: 28px;
    margin-top: 40px;
    width: 168px;
    height: 51px;
    transition: all 0.3s ease;
  }
  input[type='submit']:hover {
    background-color: var(--red);
    color: var(--beige);
  }

  /* ---- フッター ---- */
  .footer {
    padding: 24px;
  }
  .footer__copy {
    text-align: center;
    margin: 0;
    color: var(--brown);
    font-family: 'Modak', sans-serif;
    font-weight: normal;
    font-size: 16px;
  }
}
@media (max-width: 920px) {
  .works-content {
    margin-top: 48px;
  } /* PROFILEと同じ見え方に */
}
@media (max-width: 920px) {
  .hamburger-menu .nav__a--btn {
    background: #f7efda;
    color: #8b2c33;
    border-radius: 32px;
    padding: 14px 42px 10px 42px; /* ← 上14px／下10pxで軽く */
    box-shadow: 0 3px 0 #c9b186; /* ← 影も控えめに */
    font-size: 24px;
    letter-spacing: 1px;
  }
}
/* CONTACT メッセージ：PCデフォルト（中央） */
.contact__copy {
  line-height: 1.8;
  text-align: center; /* ← PCは中央揃え */
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--beige);
  font-size: 16px;
  font-family: 'Zen Maru Gothic', sans-serif;
}

/* メールアドレス部分 */
.contact__mail a {
  color: var(--beige);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.contact__mail a:hover {
  color: #d7cfbd;
}

/* スマホ（920px以下）だけ左揃えに */
@media (max-width: 920px) {
  .contact__copy {
    text-align: left;
    padding: 0 16px;
  }
}
/* ==== ハンバーガーメニュー内 CONTACT ホバー色 ==== */
@media (max-width: 920px) {
  .hamburger-menu .nav__a--btn:hover {
    background-color: #d7cfbd; /* PC版と同じ */
    color: #780109; /* 深赤文字 */
  }
}

/* ==== 日本語部分はすべて Zen Maru Gothic ==== */
body,
p,
span,
label,
input,
textarea,
button,
.contact__copy,
.contact__mail,
.header__span,
.jp,
.profile-kana,
.main__sentence,
.works-sentence {
  font-family: 'Zen Maru Gothic', sans-serif !important;
  font-weight: 400;
}

/* ==== 英字は Modak ==== */
.en,
.header__p,
.header__a p,
.header__acontact,
.main__title,
.profile-name,
.footer__copy {
  /* ← ここでフッターを英字フォントに戻す！ */
  font-family: 'Modak', sans-serif !important;
  font-weight: normal;
}
@media (max-width: 920px) {
  .profile-kana {
    margin-bottom: 24px; /* ← スマホ表示のとき読み仮名の下にゆとりを追加 */
  }
}
/* 送信ボタン（通常） */
input[type='submit'] {
  border: none;
  cursor: pointer;
  line-height: 1;
  background-color: var(--beige);
  color: var(--red);
  font-size: 1rem;
  border-radius: 28px;
  margin-top: 64px;
  width: 168px;
  height: 51px;
  transition: all 0.3s ease;
}

/* 送信ボタン：ホバー時（CONTACTボタンと統一） */
input[type='submit']:hover {
  background-color: #d7cfbd; /* ← ヘッダーのCONTACTホバー色と同じ */
  color: #780109; /* ← テキスト色も合わせる */
}
