/* =========================================================
   Artechbuild common styles
   トーン：クリーン・信頼感（白地＋濃紺＋差し色1色）
   ========================================================= */

:root {
  --navy: #1e2a44;
  --navy-soft: #3a4763;
  --accent: #c0431f;      /* 差し色：ロゴのオレンジ〜ピンク系。白地・グレー地とも文字コントラスト 4.5 以上 */
  --text: #1f2430;
  --text-sub: #5b6273;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-muted: #f5f6f8;
  --radius: 6px;
  --container: 1080px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--navy);
  text-decoration: none;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--navy);
}

.global-nav a:hover { color: var(--accent); }

.global-nav .nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
}

.global-nav .nav-cta:hover {
  background: var(--navy);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-bottom: 6px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle span:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .menu-toggle { display: block; }

  .global-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .global-nav.is-open { display: block; }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
  }

  .global-nav li { width: 100%; }

  .global-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .global-nav .nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  .menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 136px 0 128px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 70%),
    url("/assets/images/hero.jpg") right center / cover no-repeat;
}

@media (max-width: 899px) {
  .hero {
    padding: 88px 0 0;
    background: #fff;
  }

  .hero::after {
    content: "";
    display: block;
    height: 220px;
    margin-top: 64px;
    background: url("/assets/images/hero.jpg") 80% center / cover no-repeat;
  }
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 32px;
}

.hero-lead {
  max-width: 680px;
  color: var(--text-sub);
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-muted { background: var(--bg-muted); }

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 48px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 2fr; gap: 64px; }
}

.about-body p + p { margin-top: 1.2em; }
.about-body strong { color: var(--navy); }

/* ---------- Profile ---------- */
.section-line { border-top: 1px solid var(--line); }

.profile-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .profile-grid { grid-template-columns: 280px 1fr; gap: 72px; align-items: start; }
  .profile-card { position: sticky; top: 100px; }
}

.profile-card { text-align: center; }

.profile-photo {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-muted);
  border: 1px solid var(--line);
}

.profile-role { font-size: 0.8rem; color: var(--text-sub); }
.profile-name { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.5; }
.profile-kana { font-size: 0.85rem; color: var(--text-sub); }

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.profile-tags li {
  padding: 2px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
}

.profile-body .section-title { margin-bottom: 32px; }
.profile-lead { margin-bottom: 56px; }

.profile-heading {
  font-size: 1.05rem;
  color: var(--navy);
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.timeline { list-style: none; padding: 0; margin: 0 0 56px; }

.timeline li {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.timeline-year { color: var(--accent); font-weight: 500; font-size: 0.85rem; padding-top: 2px; }
.timeline strong { display: block; color: var(--navy); }
.timeline li div { color: var(--text-sub); }

@media (max-width: 599px) {
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

.skills { margin: 0 0 24px; }
.skills > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 10px 0; font-size: 0.92rem; }
.skills dt { font-weight: 700; color: var(--navy); }
.skills dd { margin: 0; color: var(--text-sub); }

@media (max-width: 599px) {
  .skills > div { grid-template-columns: 1fr; gap: 2px; }
}

.stack { display: flex; flex-wrap: wrap; gap: 8px; }

.stack li {
  padding: 2px 12px;
  font-size: 0.8rem;
  color: var(--navy);
  background: var(--bg-muted);
  border-radius: 4px;
}

/* ---------- Business ---------- */
.business-list {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .business-list { grid-template-columns: repeat(3, 1fr); }
}

.business-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 32px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}

.business-img {
  display: block;
  width: calc(100% + 64px);
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 -32px 28px;
}

.business-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.business-name {
  font-size: 1.3rem;
  color: var(--navy);
}

.business-en {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.business-text {
  font-size: 0.95rem;
  margin-bottom: 32px;
  flex-grow: 1;
}

.business-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--navy);
  align-self: flex-start;
}

.business-link::after { content: " →"; }
.business-link:hover { color: var(--accent); border-color: var(--accent); }

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-sub);
  background: var(--bg-muted);
  border-radius: 3px;
}

.business-pending {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* エンタメ事業のサイト階層 */
.site-tree,
.site-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-tree { font-size: 0.85rem; line-height: 1.5; }

.site-tree ul {
  margin-left: 6px;
  padding-left: 18px;
  border-left: 1px solid #cfd4dc;
}

.site-tree li { position: relative; }
.site-tree ul > li { margin-top: 10px; }

.site-tree ul > li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.75em;
  width: 12px;
  border-top: 1px solid #cfd4dc;
}

.site-tree ul > li:last-child::after {
  /* 最後の枝で縦線を止める */
  content: "";
  position: absolute;
  left: -19px;
  top: calc(0.75em + 1px);
  bottom: 0;
  width: 3px;
  background: #fff;
}

.site-tree a {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  word-break: break-all;
}

.site-tree a:hover { color: var(--accent); text-decoration: underline; }

.tree-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-sub);
}

.site-tree > li > a { font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; }
}

.contact-lead { color: var(--text-sub); }

.contact-note { color: var(--text-sub); margin-bottom: 24px; }

.mail-buttons {
  display: grid;
  gap: 12px;
}

@media (min-width: 600px) {
  .mail-buttons { grid-template-columns: 1fr 1fr; }
}

.mail-buttons .btn {
  display: block;
  text-align: center;
}

.mail-address {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-sub);
  word-break: break-all;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 24px;
}

.site-footer .logo { color: #fff; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-address { font-size: 0.85rem; opacity: 0.8; margin-top: 8px; }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.85rem;
}

.footer-nav a { text-decoration: none; opacity: 0.85; }
.footer-pending { opacity: 0.6; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

.copyright {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 48px;
}

/* ---------- 404 ---------- */
.notfound { padding: 140px 0; text-align: center; }
.notfound .section-title { margin-bottom: 24px; }
.notfound p { color: var(--text-sub); margin-bottom: 40px; }

/* ---------- Sub pages (privacy etc.) ---------- */
.page { padding: 88px 0 104px; }
.page .container { max-width: 800px; }
.page h2 { font-size: 1.1rem; color: var(--navy); margin: 40px 0 12px; }
.page ul { list-style: disc; padding-left: 1.5em; }
.page .updated { margin-top: 48px; color: var(--text-sub); font-size: 0.9rem; }
