/* ============================================================
   common.css — ikukonakajima.jp 共通スタイル
   全ページで共有。ページ固有のスタイルは各HTMLの<style>に記述。
   ============================================================ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  --accent: #f04a00;
  --line-strong: 1px solid #ccc;
  --line-soft: 1px solid #ececec;
  --line-accent: 2px solid #f04a00;
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 48px;
  --space-xl: 64px;
}

/* Base */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: 'BIZ UDPGothic', sans-serif;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  margin: 0;
  position: relative;
}

/* コンテンツ幅制限（bodyではなく各コンテナに適用） */
.page-wrap,
nav,
.page-header,
.statement-hero,
.page-body,
.concept-body,
.contact-body,
.outputs-list,
footer {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Nav
   ============================================================ */
nav {
  padding: 0 48px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #ccc;
}
.nav-top {
  display: flex;
  align-items: flex-end;
}
.nav-bottom {
  padding: 0;
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(0,0,0,0.06);
  text-decoration: none;
  line-height: 0.75;
  display: block;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a.active {
  color: #1a1a1a;
}
.nav-case {
  position: relative;
}
.nav-case-ja {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 10px;
  color: #888;
  white-space: nowrap;
  padding-top: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  letter-spacing: 0.06em;
}
.nav-case:hover .nav-case-ja {
  opacity: 1;
}
.nav-lang {
  border: 1px solid #ccc;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10px !important;
  color: #999 !important;
  letter-spacing: 0.1em;
}

/* Dropdown */
.nav-item {
  position: relative;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 12px;
  z-index: 100;
}
.nav-item:hover .nav-dropdown {
  display: block;
}
.nav-dropdown ul {
  list-style: none;
  background: #fff;
  border: 1px solid #ccc;
  padding: 12px 0;
  min-width: 160px;
}
.nav-dropdown ul li a {
  display: block;
  padding: 6px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.1em;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown ul li a:hover {
  color: var(--accent);
}

/* ============================================================
   Page header（index以外の全サブページ共通）
   ============================================================ */
.page-header {
  padding: 24px 48px 0 48px;
  overflow: hidden;
  border-bottom: 2px solid #1a1a1a;
  display: flex;
  align-items: baseline;
  gap: 32px;
}
.page-header-en {
  font-family: 'Inter', sans-serif;
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: -0.2em;
}
.page-header-ja {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.06em;
}

/* ============================================================
   Statement hero — 全ページ共通ヒーロー部品
   ============================================================ */
/* キービジュアルブロック（全ページ共通） */
.keyvisual-block {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 48px;
  overflow: hidden;
}
.keyvisual-block img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.statement-hero-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #aaa;
  text-align: right;
  padding: 0 48px;
  margin: 6px 0 16px 0;
}
.statement-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  align-items: start;
  padding: 32px 48px 32px 48px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 48px;
}
/* concept-body内のstatement-heroはフル幅表示 */
.concept-body > .statement-hero {
  margin-left: -48px;
  margin-right: -48px;
}
.statement-hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ddd;
  padding-right: 40px;
}
.statement-hero-body {
  padding-left: 32px;
  font-size: 13px;
  line-height: 2;
  color: #666;
  letter-spacing: 0.03em;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background-color: #000;
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('./key/IMG_0177B.jpeg');
  background-size: cover;
  background-position: center;
  padding: 20px 48px;
  text-align: right;
  min-height: clamp(60px, 10vw, 120px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.08em;
}

footer a {
  color: inherit;
}

/* ============================================================
   Hamburger
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  padding: 8px;
  z-index: 200;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #888;
  transition: all 0.25s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   Responsive — 共通
   ============================================================ */
@media (max-width: 768px) {

  /* Hamburger */
  .hamburger { display: flex; }

  /* Nav */
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 !important;
    position: relative;
  }
  .nav-bottom { width: 100%; padding: 0 !important; }
  .nav-logo { padding: 10px 16px !important; display: block; }

  .nav-top {
    display: none;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
  }
  .nav-top.open { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 4px 16px 16px;
    width: 100%;
  }
  .nav-links > li { border-bottom: 1px solid #f5f5f5; }
  .nav-links a { display: block; padding: 11px 0; white-space: normal; }

  .nav-item .nav-dropdown {
    position: static;
    display: block !important;
    padding-top: 0;
  }
  .nav-item .nav-dropdown ul {
    border: none;
    background: #fafafa;
    padding: 0 0 8px 16px;
    min-width: unset;
  }
  .nav-item .nav-dropdown ul li a { padding: 8px 0; font-size: 11px; }

  /* Page header */
  .page-header { padding: 24px 16px 20px !important; flex-wrap: wrap; gap: 8px; }

  /* Content areas — 各ページの主コンテナ */
  .concept-body,
  .page-body,
  .contact-body,
  .outputs-list { padding: 24px 16px 40px !important; }

  /* Keyvisual block */
  .keyvisual-block { padding: 0 16px !important; }

  /* Index — Hero */
  .hero-img-wrap { padding: 16px !important; }
  .hero-text { grid-template-columns: 1fr !important; }
  .hero-catchcopy { padding: 20px 16px 12px !important; }
  .hero-right { padding: 12px 16px 24px !important; max-width: 100%; }

  /* Index — Pages grid */
  .pages-grid { grid-template-columns: 1fr !important; }
  .page-card { padding: 24px 16px !important; border-right: 1px solid #ccc !important; }

  /* Case pages */
  .illust-wrap { grid-template-columns: 1fr !important; gap: 20px; }
  .photo-grid { grid-template-columns: 1fr !important; }
  .photo-grid-3 { grid-template-columns: 1fr 1fr !important; }

  /* Concept */
  .three-item { grid-template-columns: 40px 1fr !important; gap: 12px; }
  .notes { padding-left: 52px !important; }

  /* Profile */
  .profile-wrap { grid-template-columns: 1fr !important; padding: 32px 16px 48px !important; gap: 28px; }

  /* Outputs / career */
  .career-item { grid-template-columns: 48px 1fr !important; gap: 12px; }
  .year-block { grid-template-columns: 1fr !important; gap: 8px; }
  .year-label { font-size: 20px !important; }

  /* Statement hero */
  .statement-hero { grid-template-columns: 1fr !important; padding: 24px 16px !important; }
  .statement-hero-title { padding-right: 0 !important; margin-bottom: 16px; }
  .statement-hero-body { padding-left: 0 !important; border-left: none !important; }
  .concept-body > .statement-hero { margin-left: -16px; margin-right: -16px; }

  /* Documentation */
  .doc-block { grid-template-columns: 1fr !important; gap: 20px; }
  .doc-cards-grid { grid-template-columns: 1fr !important; }
  .doc-thumb { max-width: 100%; }

  /* Background sketch */
  .bg-sketch { display: none; }

  /* Footer */
  .footer-copy { right: 16px !important; }
}
