/*
Theme Name: Rouge Gate
Theme URI: https://example.com/
Author: Rouge Gate Inc.
Description: 株式会社ルージュゲート コーポレートサイト用テーマ。ミニマルな1カラムのトップページ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rougegate
*/

:root {
  --rg-red: #802739;
  --rg-text: #111;
  --rg-sub: #666;
  --rg-line: #e5e5e5;
  --rg-bg: #fff;
  --rg-font-en: "Cambria Math", Cambria, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--rg-text);
  background: var(--rg-bg);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--rg-red); }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

.skipnav {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 200;
}
.skipnav:focus { left: 0; }

/* ---------- Header ---------- */
#header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 4px solid var(--rg-red);
  background: #fff;
  z-index: 100;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  font-size: 26px; font-weight: 800; letter-spacing: .12em; color: var(--rg-red);
}
.logo-sub { font-size: 11px; color: var(--rg-sub); letter-spacing: .08em; }

#gnav ul { display: flex; gap: 32px; }
#gnav a {
  display: block; padding: 6px 0; font-size: 14px; font-weight: 700;
  border-bottom: 2px solid transparent;
}
#gnav a:hover, #gnav a:focus-visible, #gnav .current-menu-item > a {
  color: var(--rg-red); border-bottom-color: var(--rg-red);
}

.menu-toggle { display: none; }

/* ---------- Top page ---------- */
.hero {
  min-height: calc(100vh - 220px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
}
.hero-title {
  margin: 0;
  font-size: clamp(28px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.4;
}
.hero-en {
  margin: 16px 0 0;
  font-size: clamp(14px, 1.8vw, 20px);
  letter-spacing: .2em;
  color: var(--rg-red);
  font-weight: 700;
}
.hero-text {
  margin: 36px 0 0;
  font-size: 15px;
  color: #333;
  line-height: 2.2;
}
.hero-msg {
  margin-top: 40px;
  font-size: 12px; font-weight: 700;
}
.hero-msg a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- News ticker ---------- */
.news-bar {
  display: flex; align-items: center;
  max-width: 1100px; margin: 0 auto 24px;
  padding: 0 24px; gap: 16px;
}
.news-label {
  flex: none; font-size: 12px; font-weight: 800; color: var(--rg-red);
  letter-spacing: .1em;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker {
  display: inline-flex; white-space: nowrap;
  padding-left: 100%;
  animation: rg-marquee 30s linear infinite;
}
.ticker-wrap:hover .ticker,
.ticker-wrap:focus-within .ticker { animation-play-state: paused; }
.ticker li { padding-right: 64px; font-size: 13px; }
.ticker time { margin-right: 10px; font-weight: 700; }
.news-more { flex: none; font-size: 12px; }
@keyframes rg-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; padding-left: 0; }
  .ticker-wrap { overflow-x: auto; }
}

/* ---------- Footer ---------- */
#footer {
  border-top: 4px solid var(--rg-red);
  padding: 32px 40px 24px;
  font-size: 12px; color: var(--rg-sub);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-company { font-style: normal; line-height: 1.9; }
.footer-company strong { color: var(--rg-text); font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.copyright { text-align: center; margin: 24px 0 0; font-size: 11px; }

/* ---------- Sub pages ---------- */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 60px 24px 80px; }
.page-title {
  font-size: 28px; margin: 0 0 32px; padding-bottom: 12px;
  border-bottom: 3px solid var(--rg-red);
}
.entry-content { line-height: 2; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--rg-line); }
.post-list time { display: block; font-size: 12px; color: var(--rg-sub); }
.post-list a { font-weight: 700; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  #header { padding: 14px 20px; }
  .logo-main { font-size: 22px; }
  .menu-toggle {
    display: block; width: 44px; height: 44px; background: none; border: 0;
    position: relative; cursor: pointer;
  }
  .menu-toggle span {
    position: absolute; left: 10px; right: 10px; height: 2px;
    background: var(--rg-text); transition: transform .2s, top .2s;
  }
  .menu-toggle span:nth-child(1) { top: 17px; }
  .menu-toggle span:nth-child(2) { top: 26px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

  #gnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--rg-line); padding: 8px 20px 16px;
  }
  #gnav.is-open { display: block; }
  #gnav ul { flex-direction: column; gap: 0; }
  #gnav a { padding: 14px 0; border-bottom: 1px solid var(--rg-line); }

  .hero { min-height: auto; padding: 56px 20px 32px; }
  .news-bar { padding: 0 20px; flex-wrap: wrap; }
  .news-more { width: 100%; text-align: right; }
  #footer { padding: 28px 20px 20px; }
}

/* ---------- English typeface ---------- */
.logo-main,
.hero-en,
.news-label,
[lang="en"] {
  font-family: var(--rg-font-en);
}

/* ---------- Logo image ---------- */
.logo img { display: block; height: 30px; width: auto; }
@media (max-width: 768px) {
  .logo img { height: 24px; }
}

/* ---------- Catchphrase line breaks ---------- */
.ph { display: inline-block; }
.hero-title, .hero-en, .hero-text { text-wrap: balance; }
@media (max-width: 768px) {
  .hero-title { font-size: clamp(24px, 7vw, 32px); letter-spacing: .04em; }
  .hero-en { letter-spacing: .12em; }
  .hero-text { font-size: 14px; line-height: 2; }
}
