/*
Theme Name: TEKO Corporate
Theme URI: https://preview.te-ko.co.jp/
Author: GitHub Copilot
Description: TEKOコーポレートサイトの第1段階「見た目の再現」用テーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: teko-corporate
*/

/* =========================================================
   TEKO Corporate Site - style.css
   Designed for: WordPress (Lightning推奨) - 士業・法律事務所
   Color: Navy × Beige × White
   ========================================================= */

/* ----- CSS Variables ----- */
:root {
  --c-navy:        #1A2A4A;
  --c-navy-deep:   #0F1B33;
  --c-navy-soft:   #2C3E63;
  --c-gold:        #C4A572;
  --c-gold-deep:   #A88950;
  --c-beige:       #F5F2EC;
  --c-beige-deep:  #E8E1D2;
  --c-white:       #FFFFFF;
  --c-text:        #2C2C2C;
  --c-text-soft:   #6B6B6B;
  --c-line:        #E5E0D5;

  --ff-serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --ff-sans:  "Noto Sans JP", "Yu Gothic", "游ゴシック", sans-serif;

  --container: 1140px;
  --header-h: 76px;

  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(26, 42, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 42, 74, 0.10);
  --shadow-lg: 0 16px 40px rgba(26, 42, 74, 0.14);

  --tr: 0.3s cubic-bezier(.2,.7,.2,1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--c-navy); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--c-gold-deep); }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-family: var(--ff-sans);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--c-gold-deep);
  font-weight: 700;
  margin: 0 0 12px;
  display: inline-block;
  position: relative;
  padding: 0 30px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: ""; position: absolute; top: 50%;
  width: 20px; height: 1px; background: var(--c-gold);
}
.section-eyebrow::before { left: 0; }
.section-eyebrow::after  { right: 0; }
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--c-navy);
  margin: 0 0 16px;
  letter-spacing: .04em;
  line-height: 1.4;
}
.section-desc {
  color: var(--c-text-soft);
  margin: 0;
  font-size: 15px;
}

/* ----- Header ----- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  z-index: 100;
  transition: box-shadow var(--tr), height var(--tr);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--c-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 52px; width: auto; display: block;
  transition: opacity var(--tr);
}
.logo:hover .logo-img { opacity: .8; }
.site-header.is-scrolled .logo-img { height: 44px; }
.gnav ul { display: flex; gap: 36px; align-items: center; }
.gnav a {
  font-size: 14px; font-weight: 500; color: var(--c-navy);
  position: relative; padding: 6px 0;
}
.gnav a:not(.nav-cta)::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; background: var(--c-gold);
  transition: all var(--tr); transform: translateX(-50%);
}
.gnav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--c-navy); color: var(--c-white) !important;
  padding: 10px 22px !important; border-radius: var(--radius);
  transition: background var(--tr);
}
.nav-cta:hover { background: var(--c-gold-deep); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  width: 26px; height: 2px; background: var(--c-navy);
  transition: all var(--tr);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  background: var(--c-navy);
  color: var(--c-white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(196,165,114,.16), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(44,62,99,.7), transparent 60%),
    linear-gradient(135deg, var(--c-navy-deep), var(--c-navy));
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.hero-inner { position: relative; padding: 80px 24px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: .35em; color: var(--c-gold);
  margin: 0 0 24px; font-weight: 700;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700; line-height: 1.45;
  margin: 0 0 28px; letter-spacing: .04em;
}
.hero-title-accent {
  color: var(--c-gold);
  position: relative;
  display: inline-block;
  padding: 0 .15em;
}
.hero-title-accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 4px; background: var(--c-gold);
  opacity: .4;
}
.hero-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2;
  color: rgba(255,255,255,.85);
  margin: 0 0 40px;
  max-width: 680px;
}
.hero-lead strong {
  color: var(--c-white); font-weight: 700;
}
.hero-lead-strong {
  display: inline-block; margin-top: 8px;
  color: var(--c-gold); font-weight: 700;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .08em;
  border-radius: var(--radius);
  transition: all var(--tr);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--c-gold); color: var(--c-navy-deep);
}
.btn-primary:hover {
  background: var(--c-white); color: var(--c-navy);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: rgba(255,255,255,.6); color: var(--c-white);
}
.btn-outline:hover {
  background: var(--c-white); color: var(--c-navy);
  border-color: var(--c-white);
}
.btn-detail {
  background: var(--c-navy); color: var(--c-white);
  padding: 12px 24px; font-size: 13px;
}
.btn-detail:hover { background: var(--c-gold-deep); color: var(--c-white); transform: translateY(-2px); }
.btn-large { padding: 18px 56px; font-size: 15px; }

/* ----- About ----- */
.section-about { background: var(--c-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px; align-items: center;
}
.about-text p { margin: 0 0 18px; line-height: 2; }
.about-text strong {
  color: var(--c-navy); font-weight: 700;
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 2px;
}
.about-card {
  background: var(--c-beige);
  padding: 40px;
  border-radius: var(--radius);
  border-left: 4px solid var(--c-gold);
}
.about-values { display: flex; flex-direction: column; gap: 18px; }
.about-values li {
  display: flex; align-items: center; gap: 14px;
  font-weight: 500; color: var(--c-navy);
}
.about-values i { color: var(--c-gold-deep); font-size: 20px; }

/* ----- Service ----- */
.section-service {
  background: linear-gradient(180deg, var(--c-beige) 0%, var(--c-white) 100%);
}
.service-list { display: flex; flex-direction: column; gap: 32px; }
.service-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  background: var(--c-white);
  padding: 44px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: all var(--tr);
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold);
}
.service-item-featured {
  border: 2px solid var(--c-navy);
  background: linear-gradient(180deg, var(--c-white) 0%, #FBFAF6 100%);
}
.service-num {
  font-family: var(--ff-serif);
  font-size: 64px; font-weight: 700;
  color: var(--c-gold);
  line-height: 1; letter-spacing: .04em;
  border-right: 1px solid var(--c-line);
  padding-right: 20px;
}
.service-title {
  font-family: var(--ff-serif);
  font-size: 26px; font-weight: 700;
  color: var(--c-navy);
  margin: 0 0 16px; letter-spacing: .04em;
}
.service-sub {
  font-size: 14px; color: var(--c-text-soft);
  font-weight: 400; margin-left: 12px;
  font-family: var(--ff-sans);
}
.service-points {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.service-points li {
  position: relative;
  padding-left: 20px;
  color: var(--c-text);
}
.service-points li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 1px; background: var(--c-gold);
}
.service-lead {
  margin: 0 0 28px;
  line-height: 1.95;
}
.service-lead strong {
  color: var(--c-navy); font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(196,165,114,.35) 65%);
}

/* ----- Plan Table ----- */
.plan-table-wrap {
  margin-bottom: 16px;
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}
.plan-table th, .plan-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--c-line);
}
.plan-table thead th {
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 700;
  letter-spacing: .04em;
  border-bottom: 0;
}
.plan-table tbody th {
  background: var(--c-beige);
  color: var(--c-navy);
  font-weight: 500;
  text-align: left;
  width: 200px;
}
.plan-th-label { text-align: left !important; }
.plan-recommend { background: var(--c-gold-deep) !important; position: relative; }
.plan-recommend::before {
  content: "おすすめ";
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--c-white); color: var(--c-gold-deep);
  font-size: 10px; font-weight: 700; padding: 2px 10px;
  border-radius: 10px; border: 1px solid var(--c-gold-deep);
  letter-spacing: .1em;
}
.plan-table .dot { color: var(--c-gold-deep); font-size: 18px; }
.plan-table .muted { color: #BFBFBF; }
.plan-price-row td { font-weight: 700; color: var(--c-navy); font-size: 15px; }
.plan-price-row td small { font-size: 11px; font-weight: 400; color: var(--c-text-soft); display: block; }
.plan-note {
  font-size: 12px; color: var(--c-text-soft); line-height: 1.8;
  margin: 0 0 24px;
}

/* ----- TEKO News ----- */
.section-news { background: var(--c-white); }
.news-list { max-width: 880px; margin: 0 auto; }
.news-item {
  display: grid;
  grid-template-columns: 110px 110px 1fr;
  gap: 24px; align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--c-line);
}
.news-item:first-child { border-top: 1px solid var(--c-line); }
.news-date {
  font-family: var(--ff-serif);
  font-size: 14px; color: var(--c-navy); font-weight: 500;
  letter-spacing: .04em;
}
.news-cat {
  display: inline-block; text-align: center;
  font-size: 11px; font-weight: 700;
  background: var(--c-navy); color: var(--c-white);
  padding: 4px 10px; border-radius: 2px; letter-spacing: .08em;
}
.news-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 15px; color: var(--c-text);
  transition: color var(--tr);
}
.news-link:hover { color: var(--c-gold-deep); }
.news-link i { font-size: 12px; color: var(--c-text-soft); flex-shrink: 0; }
/* ----- note ----- */
.section-note {
  background: linear-gradient(180deg, var(--c-beige) 0%, var(--c-white) 100%);
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.note-card {
  display: flex; flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: all var(--tr);
  color: var(--c-text);
}
.note-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold);
}
.note-card:hover .note-thumb img { transform: scale(1.05); }
.note-card:hover .note-title { color: var(--c-gold-deep); }
.note-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--c-beige);
}
.note-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.note-thumb::after {
  content: "note";
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.95);
  color: var(--c-navy);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 2px;
}
.note-body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  flex-grow: 1;
}
.note-date {
  font-family: var(--ff-serif);
  font-size: 13px; color: var(--c-text-soft);
  letter-spacing: .04em;
}
.note-title {
  font-family: var(--ff-sans);
  font-size: 16px; font-weight: 700;
  color: var(--c-navy);
  line-height: 1.7; margin: 0;
  transition: color var(--tr);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--c-gold-deep);
  letter-spacing: .04em;
}
.note-link i { font-size: 11px; }

/* ----- LINE ----- */
.section-line {
  background: var(--c-navy);
  color: var(--c-white);
  position: relative; overflow: hidden;
}
.section-line::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(196,165,114,.12), transparent 50%);
}
.section-line .section-eyebrow { color: var(--c-gold); }
.section-line .section-title { color: var(--c-white); }
.line-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px; align-items: center;
  position: relative;
}
.line-text .section-eyebrow { padding: 0 30px 0 0; }
.line-text .section-eyebrow::before { display: none; }
.line-desc {
  margin: 24px 0 32px;
  color: rgba(255,255,255,.85);
  line-height: 2;
}
.line-merits { display: flex; flex-direction: column; gap: 12px; }
.line-merits li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.95);
}
.line-merits i { color: var(--c-gold); }
.line-qr {
  background: var(--c-white);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 340px; margin: 0 auto;
}
.line-qr img {
  width: 100%; height: auto; max-width: 280px;
  margin: 0 auto;
}
.line-qr-caption {
  margin: 16px 0 0;
  font-size: 13px; color: var(--c-text-soft);
  font-weight: 500;
}

/* ----- Contact ----- */
.section-contact { background: var(--c-beige); }
.contact-form {
  max-width: 720px; margin: 0 auto;
  background: var(--c-white);
  padding: 56px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--c-gold);
}
.form-row { margin-bottom: 28px; }
.form-row label,
.form-row legend {
  display: block;
  font-size: 14px; font-weight: 700;
  color: var(--c-navy); margin-bottom: 8px;
  padding: 0;
}
.required { color: #D03B3B; font-size: 14px; margin-left: 4px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  background: var(--c-beige);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: all var(--tr);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  background: var(--c-white);
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(196,165,114,.15);
}
.form-row-checkbox { border: 0; padding: 0; margin: 0 0 28px; }
.form-row-checkbox legend { margin-bottom: 14px; }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--c-beige);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--tr);
  font-weight: 400 !important;
  color: var(--c-text);
}
.check:hover { border-color: var(--c-gold); background: var(--c-white); }
.check input { margin-top: 6px; flex-shrink: 0; accent-color: var(--c-navy); }
.check input:checked + span { color: var(--c-navy); font-weight: 700; }
.form-row-checkbox textarea {
  margin-top: 10px;
  display: none;
}
.form-privacy { margin: 32px 0 24px; text-align: center; }
.form-privacy .check {
  display: inline-flex; background: transparent; border: 0;
  padding: 0; margin: 0;
}
.form-privacy .check:hover { background: transparent; }
.form-submit { text-align: center; margin-top: 16px; }
.form-note {
  margin-top: 20px; text-align: center;
  font-size: 13px; color: var(--c-text-soft);
  line-height: 1.8;
}
.form-note a { text-decoration: underline; }

/* ----- Footer ----- */
.site-footer {
  background: var(--c-navy-deep);
  color: rgba(255,255,255,.75);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo-img {
  height: 72px; width: auto;
  display: block; margin: 0 0 20px;
  background: var(--c-white);
  padding: 14px 22px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.footer-tagline {
  font-size: 13px; color: var(--c-gold); margin: 0 0 16px;
  letter-spacing: .04em;
}
.footer-address { font-size: 13px; line-height: 1.9; margin: 0; }
.footer-address a { color: rgba(255,255,255,.85); }
.footer-address a:hover { color: var(--c-gold); }
.footer-nav ul {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-nav a {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  transition: color var(--tr);
  position: relative; padding-left: 16px;
}
.footer-nav a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 1px; background: var(--c-gold);
  transition: width var(--tr);
}
.footer-nav a:hover { color: var(--c-gold); }
.footer-nav a:hover::before { width: 10px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; text-align: center;
}
.copyright small {
  font-size: 11px; color: rgba(255,255,255,.5);
  letter-spacing: .12em;
}

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: all .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-shown { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .about-grid,
  .line-inner,
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-item { grid-template-columns: 80px 1fr; gap: 20px; padding: 32px 24px; }
  .service-num { font-size: 48px; padding-right: 12px; }
  .service-title { font-size: 22px; }
  .contact-form { padding: 36px 24px; }
  .note-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--c-white);
    transform: translateX(100%);
    transition: transform var(--tr);
    padding: 40px 24px;
  }
  .gnav.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { width: 100%; border-bottom: 1px solid var(--c-line); }
  .gnav a { display: block; padding: 18px 0; font-size: 15px; }
  .gnav .nav-cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
  }
  .hamburger { display: flex; }
  .hero { min-height: 80vh; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px; padding: 20px 8px;
  }
  .news-cat { justify-self: start; }
  .news-link { flex-direction: column; align-items: flex-start; gap: 8px; }
  .note-grid { grid-template-columns: 1fr; }
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
