/*
Theme Name: Tokyo Theme
Theme URI: http://localhost/tokyo-theme
Author: あなたの名前
Description: Tokyo Stock Market のカスタムテーマ
Version: 1.0
*/


body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

.main-visual {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  background: url('<?php echo get_template_directory_uri(); ?>/images/top-bg.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* 背景固定で確認用、不要なら削除 */
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロールを防ぐ */
}


/* 赤い輪っか画像 */
.arc {
  display: block;
  margin: 0 auto;
  width: 270px;
  margin-bottom: -70px;
   transform: translate(-1cm, -1cm); /* X方向: -1cm 左 / Y方向: -3cm 上 */
}
/* タイトル全体 */
.main-title {
  display: flex;
  flex-direction: column;  /* 縦に並べる */
  align-items: center;     /* 横方向センター */
  justify-content: center; /* 縦方向センター */
  text-align: center;
  color: #fff;
}

/* TOKYO → Arial */
.main-title .tokyo {
  font-family: Arial, sans-serif;
  font-size: 64px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* 赤い線 */
.main-title .red-line {
  display: block;
  width: 70px;
  height: 1px;
  background: red;
  margin: 8px 0;
}

/* Stock Market → Poppins */
.main-title .stock {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 500;
  margin-top: 10px;
}

/* 白い線 */
.main-title .white-line {
  display: block;
  width: 70px;
  height: 1px;
  background: white;
  margin: 8px 0;
}

/* サブタイトル → ヒラギノ明朝 ProN */
.main-subtitle {
  font-family: "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 18px;
  color: #ddd;
  margin-top: 25px;
}

.about-section {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: red;
  margin: 10px auto 30px;
}

.section-subtitle {
  font-size: 1.2rem;
  font-family: "Hiragino Mincho ProN", serif;
  margin-bottom: 50px;
}
/* Aboutの部分 */
.about-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.about-card {
  background: #f5f5f5;
  padding: 30px 20px;
  border-radius: 20px;
  width: 280px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card .icon img {
  width: 50px;
  margin-bottom: 15px;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.sns-section {
  text-align: center;
  padding: 60px 20px;
}

.sns-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.sns-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  width: 320px;       /* 横幅統一 */
  height: 520px;      /* 高さも固定 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; /* 中央寄せ */
  text-align: center;
}

.sns-embed {
  flex: 1; /* 埋め込み部分を自動で広げる */
  display: flex;
  justify-content: center;
  align-items: center;
}

.sns-embed iframe,
.sns-embed blockquote {
  max-width: 100%;
  max-height: 100%;
}
/* SNS共通カード */
.sns-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  width: 320px;        /* 横幅を固定 */
  height: 520px;       /* 全部の高さを揃える */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;    /* 中身がはみ出すのを隠す */
}

/* 埋め込み全般 */
.sns-embed iframe,
.sns-embed blockquote {
  width: 100%;
  height: 360px;   /* ここで表示する高さを固定 */
  max-height: 360px;
}
.sns-link {
  display: inline-block;
  margin-top: 10px;
  color: #e60023;
  font-weight: bold;
  text-decoration: none;
}


.contact-section {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 40px 0;
}

.contact-icon {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}

.icon-circle {
  width: 120px;   /* 丸の大きさ */
  height: 120px;
  border: 2px solid #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  overflow: hidden; /* はみ出し防止 */
}

.icon-circle img {
  width: 60%;   /* 丸の中に収めるサイズ */
  height: auto;
}
/* --- 丸のクリック反応改善 --- */
.contact-icon {
  position: relative;
  z-index: 1;
}

.icon-circle {
  cursor: pointer; /* 手の形に */
}

.icon-circle img {
  pointer-events: none; /* ←画像がクリックを邪魔しないようにする */
}
.contact-icon:hover .icon-circle {
  background: #e74c3c;
  transform: scale(1.1);
}

.contact-icon:hover .icon-circle img {
  filter: brightness(0) invert(1); /* 白く反転して見やすくする */
}

.contact-icon span {
  font-size: 16px;
  margin-top: 8px;
}

.contact-mail a {
  color: #e74c3c;
  font-weight: bold;
  text-decoration: none;
}

.contact-mail a:hover {
  text-decoration: underline;
}

/* ========== ① オーバーレイ（全画面フェード） ========== */
.page-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;          /* 何よりも手前に */
  opacity: 1;
  pointer-events: none;   /* クリックは素通り */
}
.page-overlay--white { background:#fff; }
.page-overlay--black { background:#000; }

/* body に is-ready が付いたタイミングで消える */
@keyframes overlayFade {
  to { opacity: 0; visibility: hidden; }
}
body.is-ready .page-overlay{
  animation: overlayFade .8s ease .1s forwards; /* 0.1s後に0.8sでフェード */
}

/* ========== ② ヒーローの各要素：初期は非表示 ========== */
/* 最初は透明 */
.hero .tokyo,
.hero .arc-wrap,
.hero .stock,
.hero .main-subtitle,
.hero .red-line,
.hero .white-line {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

/* 順番（arc-wrapを最後に！） */
body.is-ready .hero .tokyo {
  animation: fadeUp .8s ease 0.95s forwards;
}
body.is-ready .hero .stock {
  animation: fadeUp .8s ease 1.45s forwards;
}
body.is-ready .hero .main-subtitle {
  animation: fadeUp .8s ease 1.9s forwards;
}
body.is-ready .hero .arc-wrap {
  animation: fadeUp .8s ease 2.5s forwards; /* 🎯 最後に表示 */
}

/* （任意）線：幅0から出す場合 */
.hero .red-line,
.hero .white-line {
  display: inline-block;
  width: 0;
  height: 4px;                         /* 既存に合わせて */
  background: currentColor;            /* 既存色をそのまま使いたい場合 */
  transform: none;                     /* 線はY移動不要 */
  opacity: 1;                          /* 線は幅だけアニメする */
}

/* ========== ③ アニメのキーフレーム ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes growWidth {
  from { width: 0; }
  to   { width: 70px; }  /* 既存に合わせて調整 */
}

/* ========== ④ アニメを順番に開始（body.is-ready がスイッチ） ========== */
body.is-ready .hero .tokyo {
  animation: fadeUp .8s ease .95s forwards;       /* オーバーレイ終了後に少し待って表示 */
}
body.is-ready .hero .stock {
  animation: fadeUp .8s ease 1.85s forwards;      /* さらに遅らせる */
}
body.is-ready .hero .main-subtitle {
  animation: fadeUp .8s ease 2.1s forwards;  
   /* 最後にふわっと */
}
body.is-ready .hero .arc-wrap {
  animation: fadeUp .8s ease 2.5s forwards; 
}

/* 線も出したい場合（任意） */
body.is-ready .hero .red-line  { animation: growWidth .6s ease 1.05s forwards; }
body.is-ready .hero .white-line{ animation: growWidth .6s ease 2.0s forwards; }

/* ========== ⑤ アクセシビリティ（アニメ無効派に配慮） ========== */
@media (prefers-reduced-motion: reduce) {
  .page-overlay { animation: none !important; opacity: 0 !important; visibility: hidden !important; }
  .hero .tokyo,
  .hero .arc-wrap,
  .hero .stock,
  .hero .main-subtitle,
  .hero .red-line,
  .hero .white-line {
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
  }
}
/* ===============================
   固定ページ（プライバシーポリシーなど）
================================= */
.page-content {
  background-color: #fff;     /* 背景は白 */
  color: #000 !important;     /* 黒文字を強制 */
  padding: 120px 20px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  color: #0b1a2d;             /* 濃紺系で上品に */
  margin-top: 40px;
}

.page-content a {
  color: #0044cc;             /* リンクは青 */
  text-decoration: underline;
}

.page-content a:hover {
  color: #e74c3c;             /* ホバー時に赤 */
}

.page-content p {
  margin-bottom: 16px;
}