/* =========================================================
   はれび (harevi.jp) — site styles
   旧 WordPress(Astra + Elementor) サイトの見た目を踏襲しています。
   色・フォントは :root の変数にまとめています。
   ========================================================= */

:root {
  --c-accent: #5eacc2;      /* 水色: ナビ現在地・ボタン・アイコン */
  --c-navy: #0e2e5b;        /* 紺: モバイルメニュー現在地の文字 */
  --c-text: #444444;        /* 本文 */
  --c-heading: #333333;     /* 見出し */
  --c-cream: #fff9ef;       /* About 背景 */
  --c-beige: #ece5d9;       /* Contact 背景 */
  --c-grayblue: #cbd0d8;
  --c-white: #ffffff;
  --c-hero-text: #cce6f5;   /* ヒーロー英文 */
  --c-field-text: #475569;
  --c-label: #111827;

  --f-sans: 'Zen Kaku Gothic Antique', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --f-serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;

  --container: 1140px;
  --hero-fade-delay: 5s;     /* 英文が出るまでの待ち時間 */
  --hero-fade-duration: 2s;  /* フェードインの長さ */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 1px;
  color: var(--c-text);
  background: var(--c-white) url("../assets/bg-paper.jpg") repeat center center;
}

img, video { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .75; }
button { font: inherit; letter-spacing: inherit; cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-heading);
}

.skip-link {
  position: absolute; top: 0; left: -9999px;
  padding: 8px 16px; background: #fff; color: var(--c-navy); z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  padding: 0 40px;
}
.header-inner { max-width: 1200px; margin: 0 auto; }

.header-brand { padding: 44px 0; line-height: 0; }
.brand-link { display: inline-block; line-height: 0; vertical-align: top; }
.brand-link img { width: 200px; height: auto; }

.menu-toggle { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 60px;
}
.nav-list { display: flex; align-items: center; }
.nav-link {
  display: block;
  padding: 0 14px;
  line-height: 60px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--c-text);
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-current { color: var(--c-accent); opacity: 1; }

.social-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
}
.social-instagram svg { width: 20px; height: 20px; fill: currentColor; }
.social-instagram:hover { color: #fff; opacity: .8; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* 動画読み込み前のプレースホルダ(動画と近い淡いグラデーション) */
  background: linear-gradient(120deg, #fff5d6 0%, #fbe3f1 35%, #eef3ff 65%, #d4f0fb 100%);
}
.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-copy {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--c-hero-text);
  pointer-events: none;
  opacity: 0;
  animation: heroFadeIn var(--hero-fade-duration) ease-in-out var(--hero-fade-delay) forwards;
}
@keyframes heroFadeIn { to { opacity: 1; } }

/* ---------- sections ---------- */
.section { padding: 100px 40px; }
.section-inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.section-inner--narrow { max-width: 800px; }

.section--about { background: var(--c-cream); }
.section--works { background: transparent; }
.section--contact { background: var(--c-beige); }

.section-title {
  font-size: 30px;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 40px;
}

/* 文節単位で折り返す(スマホで「ブランド/へ。」のような分断を防ぐ) */
.ph { display: inline-block; }

/* 日本語コピー: 見出し(1行目) + 本文(2〜3行目)。どちらも明朝 */
.tagline {
  margin: 0 0 1.1em;
  font-size: 26px;
  line-height: 1.7;
  letter-spacing: .12em;
  text-align: center;
}
.lead {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: .08em;
  color: var(--c-heading);
}

.profile { margin-top: 72px; }
.profile-label {
  /* 旧サイト同様、本文と同じ見た目の小さなラベル */
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.profile p + p { margin-top: .95em; }

/* ---------- works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 40px;
  text-align: left;
}
.work-card { margin: 0; }
.work-link { display: block; color: inherit; }
.work-link:hover { opacity: 1; }
.work-media {
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--c-cream);
}
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.work-card--contain .work-media img { object-fit: contain; }
.work-link:hover .work-media img { transform: scale(1.03); }
.work-meta {
  margin: 14px 0 4px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #8a8f99;
}
.work-title {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 1px;
}
.work-desc { margin-top: 6px; font-size: 13px; line-height: 1.8; }

/* ---------- contact form ---------- */
.contact-form { text-align: left; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-row { margin-bottom: 1.2em; }
.form-row label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1px;
  color: var(--c-label);
}
.form-row input,
.form-row textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: inherit;
  color: var(--c-field-text);
  background: #fff;
  border: 1px solid var(--c-cream);
  border-radius: 4px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input { height: 40px; }
.form-row textarea { height: 266px; line-height: 1.6; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(94, 172, 194, .25);
}

.form-actions { margin: 0; }
.btn-submit {
  display: inline-block;
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  background: var(--c-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 2px;
  transition: background .2s;
}
.btn-submit:hover { background: #4b9ab0; }
.btn-submit[disabled] { opacity: .6; cursor: default; }

.form-status { min-height: 1.5em; margin-top: 1em; font-size: 14px; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: var(--c-navy); }

/* ---------- footer ---------- */
.site-footer { padding-top: 140px; text-align: center; }
.footer-nav { padding: 40px 20px; }
.footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; }
.footer-nav a {
  display: inline-block;
  padding: 0 7px;
  font-size: 14px;
  line-height: 27px;
  letter-spacing: 1px;
  color: var(--c-accent);
}
.footer-copy {
  padding: 20px;
  background: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--c-text);
}
.footer-copy small { font-size: inherit; }

/* ---------- scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 30px; bottom: 30px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 2px;
  background: var(--c-accent);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { color: #fff; opacity: .85; }
.scroll-top svg { width: 18px; height: 18px; fill: currentColor; }

/* =========================================================
   responsive
   ========================================================= */

/* header: hamburger (旧サイトと同じ 921px で切替) */
@media (max-width: 921px) {
  .site-header { padding: 0 20px; }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
  }
  .header-brand { padding: 0; }
  .brand-link img { width: 100px; height: auto; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    padding: 12px;
    border: 0;
    background: transparent;
    color: var(--c-accent);
  }
  .menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link {
    padding: 0 20px;
    line-height: 48px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--c-text);
  }
  .nav-link:hover, .nav-link:focus-visible { color: var(--c-accent); }
  .nav-link.is-current { background: var(--c-beige); color: var(--c-navy); }
  .social-instagram { margin: 24px 20px 26px; }
}

/* content: mobile */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 60px 20px; }
  .section-inner { text-align: left; }
  .section-title { font-size: 22px; margin-bottom: 20px; }
  .tagline { font-size: 19px; text-align: left; margin-bottom: 1em; }
  .lead { font-size: 15px; line-height: 2; }
  .profile { margin-top: 56px; }

  .works-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-title { font-size: 17px; }
  .work-desc { font-size: 14px; }

  .footer-nav ul { flex-direction: column; align-items: center; }
  .footer-nav a { line-height: 30px; font-size: 16px; }
  .footer-copy { font-size: 14px; }
}

/* motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; opacity: 1; }
  .work-media img { transition: none; }
}
