/* ==========================================================
   世界イグルー研究所 – igloolab.jp
   手書き静的サイト用スタイルシート
   (STUDIO からの移行版 / 2026)
   ========================================================== */

:root {
  --bg: #e8ded4;          /* サイト背景ベージュ */
  --bg-input: #eae3d7;    /* フォーム入力背景 */
  --ink: #333333;         /* 基本テキスト */
  --ink-dark: #111111;    /* ロゴなど濃色 */
  --tan: #bdaa8b;         /* アクセント(茶) */
  --tan-bar: #d3c4a5;     /* ロゴ背景バー */
  --white: #ffffff;
  --blue: #1a1ae6;        /* 参加申込ボタン */
  --serif-en: "Libre Baskerville", "Times New Roman", serif;
  --sans-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --serif-jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --header-h: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-jp);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 40px 0 52px;
  pointer-events: none; /* 背面クリックを妨げない(リンクのみ有効化) */
}
.site-header a, .site-header button { pointer-events: auto; }

.site-logo {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.4em;
  line-height: 1;
  color: var(--ink-dark);
  background: var(--tan-bar);
  padding: 6px 10px 8px;
  white-space: nowrap;
}

.site-nav { display: flex; gap: 34px; align-items: center; }
.site-nav a {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-dark);
  transition: color 0.3s;
}
.site-nav a:hover { color: var(--tan); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-dark);
  cursor: pointer;
}

/* ---------- ヒーロー(トップ) ---------- */
.hero {
  padding: 24px;
}
.hero__img {
  width: 100%;
  height: clamp(420px, 64vh, 780px);
  object-fit: cover;
}

/* ---------- セクション共通 ---------- */
.section-title-en {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.2em;
  color: var(--ink);
  line-height: 1.2;
}

.view-all {
  display: block;
  width: min(264px, 40%);
  margin-left: auto;
  padding: 12px 0 10px;
  font-family: var(--serif-en);
  font-size: 16px;
  letter-spacing: 0.25em;
  color: var(--tan);
  border-bottom: 1px solid var(--tan);
  transition: opacity 0.3s;
}
.view-all:hover { opacity: 0.6; }

/* ---------- トップ:PROJECT ---------- */
.home-project {
  padding: 150px 24px 0;
  max-width: 1100px;
  margin: 0 auto;
}
.home-project__title {
  text-align: center;
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 110px;
}

.project-feature {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}
.project-feature__card {
  position: relative;
  z-index: 2;
  background: var(--white);
  width: 376px;
  max-width: 90%;
  padding: 64px 24px;
  text-align: center;
  margin-right: -60px;
  box-shadow: 0 0 24px rgba(0,0,0,0.04);
}
.project-feature__season {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--tan);
  margin-bottom: 28px;
}
.project-feature__catch {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: var(--ink-dark);
  margin-bottom: 36px;
}
.project-feature__link {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.project-feature__link:hover { color: var(--tan); }
.project-feature__img {
  width: 564px;
  max-width: 70%;
  height: auto;
}

/* ---------- トップ:GALLALY ---------- */
.home-gallery {
  position: relative;
  padding: 130px 24px 0 105px;
  max-width: 1100px;
  margin: 0 auto;
}
.vertical-label {
  position: absolute;
  left: 40px;
  top: 150px;
  writing-mode: vertical-rl;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
}
.vertical-label::after {
  content: "";
  display: block;
  width: 1px;
  height: 64px;
  background: var(--ink);
  margin: 12px auto;
}
.vertical-label .sub { font-size: 11px; color: var(--ink); letter-spacing: 0.35em; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 235 / 337;
  object-fit: cover;
}

/* ---------- トップ:WORKS ---------- */
.home-works {
  position: relative;
  margin-top: 170px;
}
.home-works__heading {
  position: absolute;
  z-index: 3;
  top: -46px;
  left: 35px;
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0.22em;
  color: var(--ink);
}
.works-strip {
  position: relative;
  display: flex;
  height: clamp(420px, 62vh, 674px);
  overflow: hidden;
}
.works-strip__side { flex: 0 0 35px; object-fit: cover; height: 100%; }
.works-strip__main { flex: 1 1 auto; object-fit: cover; height: 100%; min-width: 0; }

.works-card {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -76px;
  transform: translateX(-50%);
  background: var(--white);
  width: min(747px, 86vw);
  padding: 34px 20px 30px;
  text-align: center;
  box-shadow: 0 0 24px rgba(0,0,0,0.05);
}
.works-card__title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.1em;
  color: var(--ink-dark);
  margin-bottom: 14px;
}
.works-card__meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.works-card__meta span { margin: 0 12px; }
.works-card a:hover { color: var(--tan); }

.home-works .view-all {
  margin-top: 120px;
  margin-right: 24px;
}

/* ---------- トップ:ABOUT ---------- */
.home-about {
  display: flex;
  gap: 56px;
  max-width: 1110px;
  margin: 0 auto;
  padding: 170px 24px 0 37px;
}
.home-about__side { flex: 0 0 200px; }
.home-about__side .section-title-en { font-size: 48px; margin-bottom: 44px; }
.sns-list { list-style: none; }
.sns-list li { margin-bottom: 16px; }
.sns-list a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-en);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--ink);
  transition: color 0.3s;
}
.sns-list a:hover { color: var(--tan); }
.sns-list svg { width: 17px; height: 17px; fill: var(--ink-dark); }

.home-about__body h3 {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.14em;
  color: var(--ink-dark);
  margin-bottom: 20px;
}
.home-about__body .director {
  font-size: 15px;
  margin-bottom: 18px;
}
.home-about__body p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 18px;
}
.media-heading {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink-dark);
  margin: 44px 0 18px;
}
.media-list { list-style: none; }
.media-list li { margin-bottom: 12px; }
.media-list a {
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.media-list a:hover { color: var(--tan); border-color: var(--tan); }

/* ---------- トップ:CONTACT ---------- */
.home-contact {
  max-width: 865px;
  margin: 170px auto 0;
  padding: 0 24px;
}
.contact-card {
  position: relative;
  background: var(--white);
  padding: 96px 24px 110px;
}
.contact-card .vertical-hello {
  position: absolute;
  left: 36px;
  top: 96px;
  writing-mode: vertical-rl;
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--ink);
}
.contact-card .vertical-hello .line {
  display: inline-block;
  width: 1px;
  height: 70px;
  background: var(--ink);
  margin: 14px 0;
  vertical-align: middle;
}
.contact-card h2 {
  text-align: center;
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 46px);
  letter-spacing: 0.22em;
  color: var(--ink);
  margin-bottom: 40px;
}
.contact-card .lead {
  max-width: 565px;
  margin: 0 auto 48px;
  font-size: 14px;
  line-height: 2;
}

.contact-form { max-width: 565px; margin: 0 auto; }
.contact-form .field { margin-bottom: 26px; }
.contact-form label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 0;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #b0a696; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--tan-bar); }
.contact-form textarea { height: 170px; resize: vertical; }

.privacy-link {
  display: block;
  text-align: center;
  margin: 40px 0 28px;
  font-size: 13px;
  color: var(--tan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-link:hover { opacity: 0.7; }

.send-btn {
  display: block;
  margin: 0 auto;
  min-width: 305px;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 320px;
  padding: 18px 48px;
  font-family: var(--serif-en);
  font-size: 17px;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: opacity 0.3s;
}
.send-btn:hover { opacity: 0.8; }

.form-status {
  max-width: 565px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }

/* ---------- フッター ---------- */
.site-footer {
  text-align: center;
  padding: 110px 24px 60px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* ---------- 下層ページ共通 ---------- */
.page-hero {
  padding: calc(var(--header-h) + 110px) 24px 0;
  text-align: center;
}
.page-hero .section-title-en { font-size: clamp(32px, 5vw, 44px); }
.page-hero .filter {
  margin-top: 40px;
  font-family: var(--serif-en);
  font-size: 15px;
}

.breadcrumb {
  max-width: 1110px;
  margin: 120px auto 0;
  padding: 0 24px 0 52px;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--ink);
}
.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--tan); }
.breadcrumb .sep { margin: 0 10px; }

/* ---------- PROJECT ページ ---------- */
.project-page-feature {
  max-width: 1100px;
  margin: 90px auto 0;
  padding: 0 24px;
}
.project-outline {
  background: var(--white);
  margin-top: 120px;
  padding: 100px 24px 110px;
}
.project-outline__inner {
  max-width: 830px;
  margin: 0 auto;
  font-family: var(--serif-jp);
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: var(--ink-dark);
}
.project-outline__title {
  text-align: center;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 64px;
}
.project-outline h3 {
  font-weight: 600;
  font-size: 17px;
  margin: 48px 0 8px;
}
.project-outline ul { list-style: none; }
.project-outline .note { font-size: 14px; }

.project-entry {
  padding: 130px 24px;
  text-align: center;
}
.entry-btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  min-width: min(548px, 90%);
  padding: 20px 40px;
  font-size: 16px;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}
.entry-btn:hover { opacity: 0.85; }

/* ---------- 汎用ユーティリティ ---------- */
.page-works-list, .page-gallery {
  max-width: 1100px;
  margin: 90px auto 0;
  padding: 0 24px;
}
.page-works-list .works-item {
  max-width: 747px;
  margin: 0 auto;
}
.page-works-list .works-item img { width: 100%; height: auto; }
.page-works-list .works-card-inline {
  background: var(--white);
  text-align: center;
  padding: 30px 20px;
}

/* ---------- スクロール出現アニメーション ---------- */
.appear {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.appear.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .appear { opacity: 1; transform: none; transition: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  :root { --header-h: 80px; }

  .site-header { padding: 24px 24px 0 24px; }
  .site-logo { font-size: 18px; letter-spacing: 0.3em; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px; right: 16px;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 12px 0;
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 28px; }
  .nav-toggle { display: block; }

  .hero__img { height: 56vh; }

  .home-project { padding-top: 110px; }
  .home-project__title { margin-bottom: 60px; }
  .project-feature { flex-direction: column-reverse; }
  .project-feature__card {
    margin: -32px 0 0 0;
    width: min(420px, 92%);
    padding: 48px 20px;
  }
  .project-feature__img { max-width: 100%; width: 100%; }

  .home-gallery { padding: 110px 0 0; }
  .vertical-label { position: static; writing-mode: horizontal-tb; padding: 0 24px 32px; }
  .vertical-label::after { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .home-works { margin-top: 120px; }
  .home-works__heading { top: -34px; left: 20px; }
  .works-strip__side { display: none; }
  .works-card { bottom: -70px; }
  .home-works .view-all { margin-top: 110px; }

  .home-about { flex-direction: column; padding: 130px 24px 0; gap: 40px; }

  .home-contact { margin-top: 130px; }
  .contact-card { padding: 72px 20px 80px; }
  .contact-card .vertical-hello { display: none; }
  .send-btn { min-width: min(305px, 100%); }

  .breadcrumb { padding-left: 24px; }
}
