/*
Theme Name: nana Corporate
Theme URI: https://nana-works.jp/
Author: nana合同会社
Author URI: https://nana-works.jp/
Description: nana合同会社のコーポレートサイト用カスタムテーマ。Google Ads API審査対応の固定LP（ホーム＋プライバシーポリシー）構成。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: nana-corporate
*/

/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック", YuGothic, Verdana, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
a { color: #B2000D; text-decoration: none; transition: color .2s; }
a:hover { color: #900; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
#header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
}
#header .wrap { display: flex; justify-content: space-between; align-items: center; }
#logo {
  font-size: 18px; font-weight: 700; color: #27343c;
  letter-spacing: 0.12em;
}
#logo a { color: inherit; }
#logo a:hover { color: #27343c; }
#header nav ul { display: flex; gap: 28px; list-style: none; }
#header nav a {
  color: #555; font-size: 13px; letter-spacing: 0.05em;
}
#header nav a:hover { color: #B2000D; }

/* ===== Main visual ===== */
#main_visual {
  background: #fff;
  color: #27343c;
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  border-bottom: 1px solid #e5e5e5;
}
#main_visual .mv-inner { max-width: 720px; }
.mv-logo-icon {
  width: 100px; height: 100px;
  margin: 0 auto 28px;
  display: block;
}
.mv-logo-icon svg { width: 100%; height: 100%; display: block; }
.mv-logo-text {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: #27343c;
  margin-bottom: 24px;
  text-indent: 0.4em;
}
.mv-tagline {
  font-size: 16px;
  color: #555;
  letter-spacing: 0.15em;
  margin-bottom: 48px;
}
.mv-scroll {
  display: inline-block;
  color: #999;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-top: 36px;
  position: relative;
}
.mv-scroll::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 24px;
  background: #999;
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.mv-scroll:hover { color: #27343c; }
.mv-scroll:hover::before { background: #27343c; }

/* ===== Section header ===== */
.front-cont-header {
  background: #343434;
  color: #fff;
  text-align: center;
  padding: 36px 24px 28px;
  position: relative;
}
.cont-icon {
  width: 56px; height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.cont-icon svg { width: 26px; height: 26px; fill: #fff; }
.cont-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
  text-indent: 0.18em;
}
.cont-ruby {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ccc;
  text-indent: 0.4em;
}
.tri-border {
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 56px solid transparent;
  border-right: 56px solid transparent;
  border-top: 18px solid #343434;
}

/* ===== Content sections ===== */
.front-main-cont { background: #fff; }
.c_box {
  border-bottom: 1px solid #e5e5e5;
  padding: 80px 0;
}
.c_box.c_box_left { background: #fff; }
.c_box.c_box_right { background: #fafafa; }
.c_box:last-of-type { border-bottom: 0; }
.c_box_inner { display: flex; flex-direction: column; gap: 24px; }

.c_title { text-align: center; margin-bottom: 8px; }
.c_number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: #B2000D;
  color: #fff;
  font-size: 22px; font-weight: 700;
  border-radius: 50%;
  margin-bottom: 14px;
  font-family: Georgia, serif;
}
.c_box h3 {
  font-size: 22px;
  color: #27343c;
  text-align: center;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.c_english {
  color: #27343c;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.7;
  margin-bottom: 24px;
}
.c_text {
  max-width: 720px;
  margin: 0 auto;
  color: #444;
  font-size: 15px;
  line-height: 2.0;
}
.c_text p { margin-bottom: 14px; }
.c_text p:last-child { margin-bottom: 0; }

/* ===== Company info dl ===== */
.company-dl {
  max-width: 720px;
  margin: 32px auto 0;
  border-top: 1px solid #e5e5e5;
}
.company-dl dl {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  padding: 18px 0;
}
.company-dl dt {
  flex: 0 0 30%;
  color: #27343c;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding-left: 8px;
}
.company-dl dd {
  flex: 1;
  color: #444;
  font-size: 15px;
}
.operator-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: #777;
  letter-spacing: 0.05em;
}

/* ===== CTA button ===== */
.c_btn { text-align: center; margin-top: 32px; }
.btn {
  display: inline-block;
  background: #B2000D;
  color: #fff !important;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
  padding: 16px 56px;
  font-size: 15px;
  letter-spacing: 0.2em;
  font-weight: 700;
  border-radius: 2px;
  transition: background .2s, transform .2s;
  text-indent: 0.2em;
}
.btn:hover {
  background: #900;
  color: #fff !important;
  transform: translateY(-1px);
}
.contact-email-line {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #666;
}
.contact-email-line a {
  color: #B2000D;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== Footer ===== */
#footer { background: #fff; border-top: 1px solid #e5e5e5; }
.footer-inner {
  padding: 40px 0 24px;
  text-align: center;
}
.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #555;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.footer-nav a:hover { color: #B2000D; }
.footer-operator {
  color: #777;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.05em;
}
.footer-copy {
  margin-top: 8px;
  color: #999;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ===== Pagetop ===== */
.pagetop {
  position: fixed; right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  background: rgba(52, 52, 52, 0.85);
  color: #fff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.pagetop.visible { opacity: 1; visibility: visible; }
.pagetop:hover { background: #B2000D; color: #fff; }
.pagetop::after {
  content: "";
  width: 10px; height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ===== Privacy policy page ===== */
.page-cont-header {
  background: #343434;
  color: #fff;
  text-align: center;
  padding: 48px 24px 36px;
  position: relative;
  margin-bottom: 36px;
}
.page-cont-header .cont-icon {
  border-color: #fff;
}
.page-cont-header h1 {
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
  text-indent: 0.18em;
}
.page-cont-header .meta {
  margin-top: 12px;
  font-size: 12px;
  color: #bbb;
  letter-spacing: 0.05em;
}
.privacy-main { padding: 32px 0 80px; }
.privacy-main .wrap { max-width: 880px; }
.privacy-main .intro {
  color: #444;
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 2;
}
.privacy-main h2 {
  font-size: 18px;
  font-weight: 700;
  color: #27343c;
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #B2000D;
  letter-spacing: 0.05em;
}
.privacy-main h2:first-of-type { margin-top: 0; }
.privacy-main h3 {
  font-size: 15px;
  font-weight: 700;
  color: #27343c;
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.privacy-main p { margin-bottom: 14px; font-size: 15px; color: #444; line-height: 2; }
.privacy-main ul, .privacy-main ol { margin: 10px 0 16px 24px; }
.privacy-main li { margin-bottom: 6px; font-size: 15px; color: #444; line-height: 1.9; }
.privacy-main .contact-block {
  background: #fafafa;
  border-left: 4px solid #B2000D;
  padding: 24px 28px;
  margin-top: 16px;
  line-height: 2;
}
.privacy-main .contact-block p { margin-bottom: 4px; font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #header nav { display: none; }
  #main_visual { min-height: 60vh; padding: 60px 24px 40px; }
  .mv-logo-icon { width: 76px; height: 76px; }
  .mv-logo-text { font-size: 28px; letter-spacing: 0.3em; }
  .mv-tagline { font-size: 14px; }
  .cont-title { font-size: 18px; letter-spacing: 0.14em; }
  .cont-ruby { font-size: 10px; }
  .c_box { padding: 60px 0; }
  .c_box h3 { font-size: 18px; }
  .c_text { font-size: 14px; line-height: 1.9; }
  .company-dl dl { flex-direction: column; padding: 14px 0; }
  .company-dl dt { flex: 0 0 auto; margin-bottom: 6px; }
  .btn { padding: 14px 36px; font-size: 14px; }
  .footer-nav { gap: 16px; }
  .pagetop { right: 12px; bottom: 12px; width: 40px; height: 40px; }
  .page-cont-header { padding: 36px 24px 28px; }
  .page-cont-header h1 { font-size: 18px; letter-spacing: 0.14em; }
  .privacy-main { padding: 24px 0 56px; }
  .privacy-main h2 { font-size: 16px; margin-top: 36px; }
  .privacy-main h3 { font-size: 14px; }
  .privacy-main p, .privacy-main li { font-size: 14px; }
}
