/*
  配色は実際の名刺デザイン(赤・緑・青の3色展開 + 黒のロゴマーク)から
  実測したブランドカラーに合わせています。
  - 赤 #dc2b1c / 緑 #70b530 / 青 #005fa8
  - 名刺は「3 temple circus」のロゴ部分のみ白、それ以外(名前・連絡先)は黒文字
    → セクションも黒系テキストを基本とし、白は見出しロゴ的な要素に限定
  - フォントは Source Han Sans JP 相当として Noto Sans JP を使用
*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --color-red: #dc2b1c;
  --color-green: #70b530;
  --color-blue: #005fa8;
  --color-black: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-muted: rgba(26, 26, 26, 0.65);
  --color-link: #1a1a1a;
  --color-border: rgba(26, 26, 26, 0.2);
  --max-width: 1040px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-red);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* トップページ: ヒーロー+ナビ+お知らせをまとめて画面の高さいっぱいに。
   このグループだけをmin-height:100vhのflexコンテナにすることで、
   後に続く他セクションの総量に関係なく判定できるようにしている。
   コンテンツがそれより短い場合は、お知らせの背景(緑)が余白を吸収して
   下に次のセクションの色がチラ見えしないようにする。
   コンテンツの方が長い場合は通常どおり伸びる(min-height:autoのため) */
body.home .first-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.home .first-screen #news.section {
  flex: 1 0 auto;
  /* 画面が高く余白ができる場合は、本文を上に貼り付けず中央寄せにする */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: inherit;
}

p {
  margin: 0;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 2px;
  transition: opacity 0.15s linear;
}

a:hover {
  opacity: 0.7;
}

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

/* 視覚的には隠すがスクリーンリーダー/検索エンジンには読める(クローキングではない正当な手法) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 3色のセクション背景(名刺の3バリエーションに対応) */
.bg-red {
  background: var(--color-red);
}

.bg-green {
  background: var(--color-green);
}

.bg-blue {
  background: var(--color-blue);
}

/* Hero: 名刺の「3 temple circus」ロゴ部分と同じく白文字 */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 5% 72px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(160deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 45%),
    var(--color-red);
  color: #ffffff;
}

.hero-inner {
  max-width: 89%;
  margin: 0 auto;
}

.hero-logo {
  width: 100%;
  max-width: clamp(280px, 34vw, 480px);
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
}

/* トップページはロゴの下に何も続かないので、下余白はヒーロー側のpaddingに任せる */
body.home .hero-logo {
  margin-bottom: 0;
}

/* プライバシーポリシー等、お知らせの無いページでは従来通りヒーロー内に表示 */
.hero-subtitle {
  margin: 0.5rem 0 0;
  font-size: clamp(16px, 3vw, 19px);
  font-weight: 400;
  line-height: 1.6;
}

/* PC/ラップトップでは実際のブラウザ窓(OSのタスクバー等も含む)が
   想定より低いことがあるため、ヒーローの余白をもう一段階詰める */
@media (min-width: 761px) {
  .hero {
    padding: 56px 5% 58px;
  }

  .hero-logo {
    margin: 0 auto 0.4rem;
  }

  .hero-subtitle {
    margin: 0.25rem 0 0;
  }
}

/* Nav: 黒(ロゴマークの色)で全セクションを貫く軸に。右側に言語切替の青タブ */
.site-nav {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--color-black);
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 0.9rem;
}

.site-nav-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ブランド行: ロゴ+社名+キャッチコピーを1段にまとめる */
.site-nav-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1rem;
  padding: 0.6rem 1rem 0.4rem;
}

.site-nav-company {
  color: #ffffff;
  font-weight: 700;
}

.site-nav-tagline {
  color: #ffffff;
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.85rem;
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
}

/* SNSリンク行: 横並び、大きめのアイコン */
.site-nav-social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  padding-top: 0.5rem;
  width: 100%;
  max-width: 320px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-nav-social a {
  display: flex;
  color: #ffffff;
  opacity: 0.7;
}

.site-nav-social a:hover {
  opacity: 1;
}

.site-nav-social svg {
  width: 26px;
  height: 26px;
}

/* 言語切替: ナビ右側に縦並び、トリコロールの青背景+黒文字 */
.site-nav-lang {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 1rem;
  line-height: 1.3;
  background: var(--color-blue);
}

.site-nav-lang a {
  color: var(--color-black);
  opacity: 0.75;
  font-weight: 500;
}

.site-nav-lang a:hover {
  opacity: 1;
}

.site-nav-lang a[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .site-nav-brand {
    gap: 0.3rem 0.6rem;
  }
  .site-nav-company {
    font-size: 0.85rem;
  }
  .site-nav-tagline {
    font-size: 0.78rem;
  }
  .site-nav-links {
    gap: 0.4rem 0.9rem;
    font-size: 0.82rem;
  }
  .site-nav-social svg {
    width: 24px;
    height: 24px;
  }
  .site-nav-lang {
    padding: 0.6rem 0.65rem;
    font-size: 0.78rem;
  }
}

/* PC/ラップトップでは、リンクとSNSアイコンを横一列にまとめてナビの高さを詰める
   (スクロール無しでお知らせまで見えるようにするため) */
@media (min-width: 761px) {
  .site-nav-brand {
    padding: 0.45rem 1rem 0.3rem;
  }
  .site-nav-main {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.3rem 1rem 0.5rem;
  }
  .site-nav-social {
    width: auto;
    max-width: none;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
  }
}

.site-nav-logo {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.site-nav-logo img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Sections */
.section {
  padding: 2.5rem 5%;
}

.section-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section.large-top {
  padding-top: 5rem;
}

.section.large-bottom {
  padding-bottom: 5rem;
}

.eyebrow {
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

/* single-column split-layout: 半分に画像(プレースホルダー=黒)、半分にテキスト */
.split-layout {
  padding-left: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 420px;
}

.split-layout .split-media {
  position: relative;
  background: var(--color-black);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

/* サーカスのスポットライト/リングをモチーフにした装飾(全アイコン共通) */
.split-media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 34vw, 320px);
  height: clamp(180px, 34vw, 320px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
}

.split-media svg {
  position: relative;
  width: 100%;
  max-width: clamp(150px, 26vw, 280px);
  height: auto;
}

.split-layout .section-content {
  padding: 3rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
}

.split-layout.reverse .split-media {
  order: 2;
}

.split-layout.reverse .section-content {
  order: 1;
}

@media (max-width: 760px) {
  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
  }
  .split-layout .split-media {
    order: 1 !important;
    min-height: 260px;
    padding: 1.5rem;
  }
  .split-layout .section-content {
    order: 2 !important;
  }
}

h2, h3 {
  font-size: clamp(26px, 5vw, 43px);
  line-height: 1.4;
  margin: 0 0 1.25rem;
}

h4 {
  font-size: clamp(19px, 3vw, 26px);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.section p {
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.6;
}

.section p + p {
  margin-top: 1.5rem;
}

/* Members: 写真+紹介文を縦に連ねる構成。写真プレースホルダーは黒 */
.member {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.member:last-child {
  margin-bottom: 0;
}

.member-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: var(--color-black);
  border: 4px solid rgba(0, 0, 0, 0.15);
}

.member h4 {
  margin: 0.25rem 0 1rem;
}

.member p {
  text-align: left;
}

.member .eyebrow {
  text-align: center;
}

/* メンバーごとのSNS等リンク(LinkedIn/WeChat/KakaoTalk) */
.member-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.member-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.8;
}

.member-link:hover {
  opacity: 1;
}

.member-link svg {
  width: 22px;
  height: 22px;
}

.member-link img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: block;
}

/* ロゴ由来セクション: 黒いカードパネル(名刺のロゴマークと同じ黒) */
.card-panel-section {
  padding: 4rem 5%;
}

.card-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-black);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
}

.card-panel a {
  color: #ffffff;
}

.card-panel-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  display: block;
}

/* News */
/* お知らせカルーセル: 直近の記事を横並びで自動送り+スワイプ切り替え */
.news-carousel {
  max-width: 760px;
  margin: 2rem auto 0;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.news-list::-webkit-scrollbar {
  display: none;
}

.news-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 1.25rem 0;
  text-align: left;
  scroll-snap-align: start;
}

.news-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.news-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.35;
  cursor: pointer;
}

.news-carousel-dot.is-active {
  opacity: 1;
}

.news-date {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.news-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.news-body {
  margin: 0;
  font-size: 1rem;
}

.news-empty {
  text-align: center;
  color: var(--color-text-muted);
}

/* スマホでは行間・文字サイズを詰めて、開いた直後の画面内で読めるようにする */
@media (max-width: 560px) {
  #news.section {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  #news h3.text-center {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
  }

  .news-list {
    margin-top: 0;
  }

  .news-item {
    padding: 0.6rem 0;
  }

  .news-date {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }

  .news-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .news-body {
    font-size: 0.92rem;
    line-height: 1.45;
  }
}

/* PC/ラップトップでも、お知らせ欄の上下余白と見出しを詰めて
   スクロール無しで本文まで見えるようにする。見出しは単なる
   セクションラベルなので、他セクションのeyebrowと同程度の
   小さな扱いにする */
@media (min-width: 761px) {
  #news.section {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  #news h3.text-center {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
  }

  .news-list {
    margin-top: 0;
  }

  .news-item {
    padding: 0.65rem 0;
  }

  .news-title {
    font-size: 1.1rem;
  }

  .news-body {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* Company info */
.company-info {
  margin: 2rem auto 0;
  max-width: 760px;
}

.company-info > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.company-info dt {
  font-weight: 700;
}

.company-info dd {
  margin: 0;
}

.company-info-business ol {
  margin: 0;
  padding-left: 1.2rem;
}

.company-info-business li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .company-info > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Contact form */
.contact-form {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: left;
  background: #ffffff;
  border-radius: 6px;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="date"],
.contact-form input[type="time"],
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
}

.checkbox-list,
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-item input,
.radio-item input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-fieldset {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.form-fieldset .form-field:last-child {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.form-submit {
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-black);
  border: none;
  border-radius: 4px;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: opacity 0.15s linear;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 2.5rem 5%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  background: var(--color-black);
}

/* QR code modal (WeChat / KakaoTalk): shown in-page instead of
   navigating to a bare image file */
body.qr-modal-open {
  overflow: hidden;
}

.qr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  z-index: 1000;
}

.qr-modal {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem;
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.qr-modal img {
  width: 100%;
  max-width: 240px;
  display: block;
  margin: 0 auto;
}

.qr-modal-caption {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
}

.qr-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.qr-modal-close:hover {
  color: var(--color-text);
}
