@charset "UTF-8";

/* =========================
   共通設定
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    "Noto Sans JP",
    sans-serif;
  margin: 0;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

.section-title {
  font-family: "Playfair Display", "Didot", serif;
  letter-spacing: 0.08em;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.4;
	color: #583a26;
  text-align: center;
}

a {
  text-decoration: none;   /* 下線消す */
  color: inherit;          /* 親の色をそのまま使う */
}

a:visited {
  color: inherit;          /* 訪問後も紫にしない */
}

a:hover {
  text-decoration: none;   /* ホバーでも下線なし */
}

a:active {
  color: inherit;          /* クリック中も変えない */
}


/* =========================
   ファーストビュー
========================= */
.fv {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/bg-hero.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  position: relative;
  z-index: 0;
}

.fv-inner {
  position: relative;
  width: 100%;
  height: 90vh;
}

/* 花（1枚もの・背景） */
.flower {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(370vw, 1600px);
  height: 100vh;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* アーチ窓 */
.arch {
  font-family: "Playfair Display", "Didot", serif;
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(220px, 45vw, 250px);
	/* 学校のPCでは、501px以上1300未満の時アーチが250pxを採用されると大きすぎる。最大でも220pxぐらいにじゃないと */
  /* 大画面では350pxと630pxぐらいいる */
  /* width: clamp(220px, 45vw, 350px);
  max-height: 630px; */
  aspect-ratio: 3 / 5.3;
  min-height: 300px;
  max-height: 430px;
  border: 1px solid #222;
  border-radius: 180px 180px 12px 12px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arch {
	font-family: "Playfair Display", "Didot", serif;
	position: absolute;
	inset: 0;
	margin: auto;
	width: clamp(160px, 45vw, 250px);
	min-height: 240px;
	max-height: 430px;
	border: 1px solid #222;
	border-radius: 180px 180px 12px 12px;
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
}

@media (max-width: 480px) {
	.arch {
		width: 180px;
		min-height: 260px;
		border-radius: 140px 140px 12px 12px;
	}
}

/* アーチ内テキスト  */
.arch-text {
  text-align: center;
  opacity: 1;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.arch-text span {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

/* =========================
   PC
========================= */
@media (min-width: 768px) {
  .arch-text {
    font-size: 1.3rem;
  }

  .arch-text span {
    font-size: 1rem;
  }

  .section-title {
    font-size: 4rem;
  }
}

/* =========================
   ヘッダー
========================= */
.site-header {
  position: relative;
  width: 100%;
  z-index: 2;
}

.site-logo {
  font-family: "Playfair Display", "Didot", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  /* text-transform: uppercase; */
  font-weight: 400;
  position: fixed;
  top: 1.2rem;
  left: 1rem;
  z-index: 20;
}

.site-logo a {
  color: #583a26;
}

.header-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  gap: 1rem;
  background: transparent;
  z-index: 10; /* nav の基準 */
}

/* ===== ハンバーガー ===== */
.hamburger {
  width: 35px;
  height: 35px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  position: relative;
  z-index: 3;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #583a26;
  transition: transform 0.3s ease, opacity 0.3s ease;
	z-index: 4;
}

/* ハンバーガー active (バツ印) */
.hamburger.active span:first-child {
  transform: rotate(30deg) translate(5px, 5px);
}
.hamburger.active span:last-child {
  transform: rotate(-30deg) translate(5px, -5px);
}

/* ===== メニュー ===== */
.header-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background-image: url("../images/bg-mobile-menu.webp");
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.header-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.header-menu a {
  font-family: "Playfair Display", "Didot", serif;
  text-decoration: none;
  color: #583a26;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  position: relative;
  display: block;
}

/* 横線アニメ */
.header-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background-color: #5a4a2c;
  transition: width 0.3s ease;
}

.header-menu a:hover::after,
.header-menu a.active::after {
  width: 100%;
}

/* ===== PC ===== */
@media (min-width: 768px) {
  .hamburger {
      display: none;
  }

  .header-menu {
    position: static;
    flex-direction: row;
    gap: clamp(40px, 12vw,  180px);
    background: transparent;
    opacity: 1;
    pointer-events: auto;
  }

  .header-menu a {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .site-logo {
    left: 5rem;
  }
}

/* =========================
   Works Section
========================= */

.works-section {
  padding: 70px 20px;
}

.works-heading {
  margin-bottom: 3.5rem;
}

/* ===== モバイル（1列） ===== */

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.work-title {
  letter-spacing: 0.12em;
  color: #555;
  margin-top: 0.5rem;
}

/* 枠 */
.work-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #bfbfbf;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.work-frame img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  transition: transform 0.4s ease;
}

/* hover（画像だけ浮く） */
@media (hover: hover) {
  .work-frame:hover img {
    transform: translateY(-6px);
  }
}

/* ===== PC（2列） ===== */
@media (min-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 60px;
  }
}


/* =========================
   Abouut
========================= */
.about {
  position: relative;
  z-index: 1;
}

.about-title {
	margin-top: 4rem;
	margin-bottom: 3.5rem;
}

/* =========================
   Profile 上の左右ライン
========================= */

.about {
  position: relative;
  text-align: center;
  padding-top: 100px; /* ライン用余白 */
}

/* 左右ライン */
.about::before,
.about::after {
  content: "";
  position: absolute;
  top: 60px;          /* ← ラインの高さ調整 */
  height: 1px;
  background: #cbbba2;
  width: 23%;         /* ← 長さ（左右それぞれ） */
}

/* 左ライン */
.about::before {
  left: 0;
}

/* 右ライン */
.about::after {
  right: 0;
}

/* タイトル（線の下に表示） */

/* .about .section-title {
  font-size: 2.2rem;
  font-family: "Playfair Display", serif;
  margin: 0 0 3.5rem;
} */


.about-inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.3rem;
  /* padding: 1rem; */
  text-align: center;
}

.about-profile {
  position: relative;
  padding: 2rem;
  border-radius: 10px;
}

.about-profile-photo {
	width: 80%;
}

/* Name */
.about-name {
  text-align: center;
  margin-bottom: 1rem;
}

.about-person-name {
	margin-bottom: 1rem;
}

/* 斜め固定（外側） */
.name-ja {
  display: inline-block;
  transform: rotate(-2deg);
  opacity: 0.5;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  margin: 0;
}

.name-yurayura {
  display: inline-block;
  transform-origin: center bottom;
  animation: yurayura 5.5s ease-in-out infinite;
  will-change: transform;
  font-size: 0.875rem;
}

@keyframes yurayura {
  0% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(-6deg);
  }
}

.about-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 0.8rem;
  text-align: left;
  line-height: 1.8;
}

/* Moreボタン */
.about-more-btn {
  margin-top: 3.5rem;
}

.about-more-btn a {
  font-family: "Playfair Display", "Didot", serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #333;
  font-weight: 400;
  outline: 1px solid #a18961;
  display: block;
  position: relative;
  box-sizing: border-box;
  max-width: 250px;
  text-align: center;
  padding: 6px 30px;
  margin: 24px;
  margin-inline: auto;
  text-decoration: none;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s;
  padding-right: 40px;
}

.about-more-btn a::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100%;
  height: 100%;
  background: #fdf4dd;
  z-index: -1;
  transition: all 0.3s ease;
}

.about-more-btn a:hover::before {
  top: 0;
  left: 0;
  transition: all 0.3s;
  background: #d1ba9c;
}

/* 矢印文字 */
.about-more-btn a::after {
  content: "→";             /* 矢印文字 */
  position: absolute;
  right: 25px;              /* ボタン右端からの距離 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  transition: transform 0.3s ease;
}

.about-more-btn a:hover::after {
  transform: translateY(-50%) translateX(4px); /* ホバーで右に少し移動 */
}

/* =========================
   PC
========================= */
@media (min-width: 768px) {
  .about-inner {
    max-width: 950px;
    margin: 0 auto;
  }

  .about-person-img img {
    width: clamp(300px, 35vw, 600px);
    height: auto;
    flex-shrink: 0;
  }

  .about-profile {
    flex: 1; /* 文章部分は残り幅を使う */
  }

  .about-skill {
    margin-top: 4rem;
  }

  .about-skill-title {
    font-size: 1.3rem;
  }

  .skill-item {
    grid-template-columns: 180px auto;
    gap: 2rem;
  }

  .skill-name {
    font-size: 1rem;
  }

  .star {
    width: 1.2em;
    height: 1.2em;
  }

  .name-yurayura {
    font-size: 1.3rem;
  }
}

/* =========================
   contact
========================= */
.contact {
  background-image: url("../images/bg-contact.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 3rem 0;
}

/* =========================
   Wrapper
========================= */
.contact-wrapper {
  position: relative;
  width: 90vw;
  height: calc(90vw * 600 / 440);
  margin: 0 auto;
  overflow: hidden;
}

/* =========================
   SVG frame（完全に背景）
========================= */
.contact-frame,
.contact-frame * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* =========================
   Inner contents
========================= */
.contact-inner {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 2rem;
  transform: translateY(-20px);
}

/* =========================
   Text
========================= */
.contact-text {
  font-size: 0.875rem;
  line-height: 1.8;
}

/* =========================
   Mail block（唯一の操作対象）
========================= */
.contact-mail {
  margin-top: 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

/* 子要素は触らせない（安定） */
.contact-mail * {
  pointer-events: none;
}

.contact-mail:hover {
  opacity: 0.85;
}

/* =========================
   Icon
========================= */
.mail-icon img {
  width: 32px;
  height: auto;
  display: block;
  opacity: 0.8;
}

/* =========================
   Address + Arrow row
========================= */
.mail-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mail-address {
  font-size: 0.85rem;
}

/* =========================
   Arrow
========================= */
.mail-arrow {
  font-size: 0.75rem;
  opacity: 0.6;
  transform: translateY(-2px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-mail:hover .mail-arrow {
  transform: translateY(-6px);
  opacity: 0.85;
}

/* =========================
   PC
========================= */
@media (min-width: 768px) {
  .contact-wrapper {
    width: 440px;
    height: 600px;
  }
}

/* =========================
   footer
========================= */
.footer {
  position: relative;
  background: #fffbf1;
  z-index: 1;
}

.footer-title {
  margin-bottom: 2.5rem;
}

.footer-name {
  font-family: "Playfair Display", "Didot", serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}

.footer-nav {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.footer-menu {
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.footer-menu a {
  display: inline-block;
  padding: 4px 15px;
  border: 1px solid #5a4a2c;
  border-radius: 999px;
  color: #5a4a2c;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.footer-menu a:hover {
  border-color: #a18961;
  box-shadow:
    0 0 6px rgba(161, 137, 97, 0.6),
    0 0 12px rgba(161, 137, 97, 0.3);
}

.footer-bottom {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.footer-profile-signature {
  padding-top: 1.5rem;
}

/* =========================
   PC
========================= */
@media (min-width: 768px) {
  .footer-profile-signature {
    padding-top: 3.5rem;
    max-width: 600px;
    margin: 0 auto;
  }

	.footer-menu a {
		padding: 6px 22px;
	}
}
