/*
Theme Name: tabilaugh
Theme URI: https://tabilaugh.com
Author: tabilaugh LLC
Description: Minimal corporate theme for tabilaugh LLC, the company behind andtopics.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500&family=Noto+Serif+JP:wght@400;500;600&display=swap');

:root {
  --bg: #fcfbf8;
  --text: #1a1a1a;
  --text-soft: #666;
  --text-muted: #999;
  --border: #e8e5df;
  --accent: #b8965f;
  --content-width: 720px;
  --container-width: 1080px;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.site-header { border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; }
.site-header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-brand a {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.site-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  line-height: 1;
}
.site-tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.2rem;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav .current-menu-item a { color: var(--accent); }

main.site-main { min-height: 60vh; }

.front-hero { text-align: center; padding: 8rem 2rem 7rem; }
.front-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 0;
}
.hero-divider {
  width: 30px;
  height: 1px;
  background: var(--accent);
  margin: 2.5rem auto;
}
.hero-lead {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
  line-height: 2.1;
  letter-spacing: 0.02em;
}

.front-section {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}
.front-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
  font-weight: 500;
}
.front-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.features { margin: 3.5rem 0 0; }
.feature {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.feature:first-child { border-top: 1px solid var(--border); }
.feature-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.95;
  margin: 0;
}

.media-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}
.media-list li {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}
.media-list li:first-child { border-top: 1px solid var(--border); }
.media-url {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.media-url:hover { color: var(--accent); }
.media-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.cta-section {
  text-align: center;
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
}
.cta-section p {
  color: var(--text-soft);
  margin: 0 0 2.5rem;
  font-size: 0.92rem;
}
.cta-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease;
}
.cta-link:hover { color: var(--accent); }

.page-header {
  padding: 6rem 2rem 3rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin: 0;
  color: var(--text);
}
.page-header::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
  margin: 2rem auto 0;
}

.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem 7rem;
}
.page-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin: 3.5rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin: 2.5rem 0 1rem;
}
.page-content p {
  font-size: 0.93rem;
  margin: 0 0 1.3rem;
  line-height: 1.95;
}
.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
}
.page-content li {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  line-height: 1.95;
}
.page-content li::marker { color: var(--accent); }
.page-content a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease;
}
.page-content a:hover { color: var(--accent); }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
}
.page-content table td {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.8;
}
.page-content table tr:first-child td { border-top: 1px solid var(--border); }
.page-content table td:first-child {
  width: 30%;
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding-right: 2rem;
}
.page-content table strong { font-weight: 500; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2.5rem;
}
.site-footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}
.footer-nav ul {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav li {
  display: inline-block;
  padding: 0 1.3rem;
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.footer-nav li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background: var(--border);
}
.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent); }
.copyright {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .site-header { padding: 1.25rem 1.5rem; }
  .site-header-inner { flex-direction: column; gap: 1.2rem; }
  .site-nav ul { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: 0.75rem; }
  .front-hero { padding: 5rem 1.5rem 4rem; }
  .front-hero h1 { font-size: 1.35rem; line-height: 1.7; }
  .hero-lead { font-size: 0.88rem; }
  .front-section { padding: 4rem 1.5rem; }
  .cta-section { padding: 4rem 1.5rem; }
  .media-list li { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .page-header { padding: 4rem 1.5rem 2rem; }
  .page-header h1 { font-size: 1.15rem; }
  .page-content { padding: 2rem 1.5rem 5rem; }
  .page-content table td { display: block; width: 100% !important; padding: 0.4rem 0; }
  .page-content table td:first-child { padding-top: 1.2rem; border-bottom: none; }
  .footer-nav ul { flex-direction: column; gap: 0.6rem; }
  .footer-nav li { padding: 0; }
  .footer-nav li:not(:last-child)::after { display: none; }
}

/* === Table refinement (remove borders, keep row separators) === */
.page-content .wp-block-table,
.page-content .wp-block-table table,
.page-content .wp-block-table tbody,
.page-content .wp-block-table tr,
.page-content .wp-block-table td,
.page-content table,
.page-content table tr,
.page-content table td {
  border: 0 !important;
  outline: 0 !important;
}
.page-content .wp-block-table td,
.page-content table td {
  border-bottom: 1px solid var(--border) !important;
  padding: 1.4rem 0 !important;
}
.page-content .wp-block-table tr:first-child td,
.page-content table tr:first-child td {
  border-top: 1px solid var(--border) !important;
}
.page-content table td:first-child,
.page-content .wp-block-table td:first-child {
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em !important;
  font-weight: 400 !important;
}
.page-content table td:first-child strong,
.page-content .wp-block-table td:first-child strong {
  font-weight: 400 !important;
  color: var(--text-muted) !important;
}

/* === Table header (th) cells === */
.page-content table th,
.page-content .wp-block-table table th {
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 1.4rem 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  font-family: var(--sans) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-align: left !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.08em !important;
}
.page-content table thead,
.page-content table thead tr,
.page-content .wp-block-table thead,
.page-content .wp-block-table thead tr {
  border: 0 !important;
  background: transparent !important;
}

/* === Site title (English wordmark) === */
.site-title {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.28em !important;
  line-height: 1 !important;
  color: var(--text) !important;
}

/* === Hero lead 幅調整(orphan 解消) === */
.hero-lead {
  max-width: 700px !important;
  word-break: auto-phrase;
}

/* === Footer: dark refined === */
.site-footer {
  background: #1a1a1a !important;
  color: #d0cec9 !important;
  border-top: none !important;
  padding: 3.5rem 2rem 2.5rem !important;
  margin-top: 5rem;
}
.footer-nav a {
  color: #d0cec9 !important;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: #d4b78c !important;
}
.footer-nav li:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.15) !important;
}
.copyright {
  color: #888 !important;
}

/* === Hero: 中央寄せ → 左寄せ(他セクションと統一) === */
.front-hero {
  text-align: left !important;
  padding: 7rem 2rem 5rem !important;
  max-width: calc(720px + 4rem);
  margin: 0 auto !important;
}
.front-hero h1 {
  margin: 0 !important;
}
.hero-divider {
  margin: 2.5rem 0 !important;
}
.hero-lead {
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}

/* === Footer: 真っ黒 → warm soft dark === */
.site-footer {
  background: #3d3935 !important;
  color: #c8c4bb !important;
}
.footer-nav a {
  color: #c8c4bb !important;
}
.footer-nav li:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.12) !important;
}
.copyright {
  color: #948f87 !important;
}

/* === Hero: h1 + divider + lead を確実に左寄せ === */
section.front-hero {
  text-align: left !important;
}
section.front-hero h1 {
  text-align: left !important;
  margin: 0 !important;
}
section.front-hero .hero-divider {
  margin-top: 2.5rem !important;
  margin-right: auto !important;
  margin-bottom: 2.5rem !important;
  margin-left: 0 !important;
  width: 30px !important;
}
section.front-hero .hero-lead {
  text-align: left !important;
  margin: 0 !important;
  max-width: 660px !important;
}

/* === Hero: タイトル/divider は中央、lead テキストのみ左寄せ === */
section.front-hero {
  text-align: center !important;
  padding: 7rem 2rem 5rem !important;
}
section.front-hero h1 {
  text-align: center !important;
  margin: 0 !important;
}
section.front-hero .hero-divider {
  margin: 2.5rem auto !important;
  width: 30px !important;
}
section.front-hero .hero-lead {
  text-align: left !important;
  max-width: 660px !important;
  margin: 2rem auto 0 !important;
}

/* === Hero wrapper: h1 と lead の visual alignment === */
section.front-hero .hero-content {
  display: inline-block;
  text-align: center;
  max-width: 100%;
}
section.front-hero h1 {
  white-space: nowrap;
  text-align: center !important;
  margin: 0 !important;
}
section.front-hero .hero-divider {
  margin: 2.5rem auto !important;
  width: 30px !important;
}
section.front-hero .hero-lead {
  text-align: left !important;
  margin: 2rem 0 0 !important;
  max-width: 100% !important;
  word-break: auto-phrase;
}

/* Mobile: h1 折り返し可能に */
@media (max-width: 768px) {
  section.front-hero h1 {
    white-space: normal !important;
    font-size: 1.35rem !important;
  }
  section.front-hero .hero-content {
    display: block;
  }
}

/* === Hero lead: wrapper を h1 文字幅に確実に固定 === */
section.front-hero .hero-lead {
  width: 0 !important;
  min-width: 100% !important;
  text-align: left !important;
  margin: 2rem 0 0 !important;
}

/* === Contact Form 7: refined corporate style === */
.wpcf7-form {
  margin: 2rem 0;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 1.8rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.6rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  border-radius: 0;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  line-height: 1.6;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.wpcf7-form textarea {
  min-height: 180px;
  resize: vertical;
  font-family: var(--sans);
}

.wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8965f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* required marker */
.wpcf7-form .required,
.wpcf7-form .wpcf7-not-valid-tip {
  color: var(--accent);
  font-weight: 500;
  margin-left: 0.3rem;
}

/* Acceptance checkbox */
.wpcf7-form .wpcf7-acceptance {
  display: block;
  margin: 2rem 0 2.5rem;
}

.wpcf7-form .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .wpcf7-list-item-label {
  font-size: 0.88rem;
  color: var(--text);
  margin-left: 0.4rem;
}

.wpcf7-form .wpcf7-list-item-label a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  font-weight: 500;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.wpcf7-form input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Validation/feedback messages */
.wpcf7-response-output {
  border: 1px solid var(--border) !important;
  padding: 1rem 1.2rem !important;
  font-size: 0.85rem !important;
  margin-top: 1.5rem !important;
  font-family: var(--sans) !important;
  border-radius: 0 !important;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
  border-color: #c44 !important;
  color: #c44 !important;
}

.wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--accent) !important;
  color: var(--text) !important;
}

/* === Footer: 高さアップ(余白を広く) === */
.site-footer {
  padding: 5.5rem 2rem 4rem !important;
}
.footer-nav ul {
  margin-bottom: 2.5rem !important;
}
.copyright {
  padding-top: 1.5rem !important;
}
