/*
Theme Name: SinText
Theme URI: https://sin-text.com
Author: SinText
Author URI: https://sin-text.com
Description: 合同会社SinTextのコーポレートサイト用オリジナルテーマ。モノトーンのタイポグラフィ重視デザイン。
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sintext
*/


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
  /* Color */
  --black:     #0a0a0a;
  --charcoal:  #1a1a1a;
  --dark:      #333;
  --mid:       #555;
  --gray:      #888;
  --silver:    #aaa;
  --light:     #ccc;
  --pale:      #e2e2e0;
  --off-white: #f4f4f2;
  --white:     #fafaf8;

  /* Typography */
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", sans-serif;
  --font-en: 'Cormorant Garamond', serif;
  --font-ui: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.8;
}

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

::selection {
  background: var(--black);
  color: var(--white);
}


/* ============================================================
   3. NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 100px;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  gap: 3rem; 
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
  margin-top: 10px;
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
  filter: grayscale(0);
}

/* Menu list */
.nav-menu {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--mid);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--black);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--black);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }


/* ============================================================
   4. HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 4rem;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-headline {
  font-family: var(--font-ja);
  font-size: clamp(2.0rem, 4.0vw, 3.5rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-sub {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 2.4;
  color: var(--mid);
  max-width: 520px;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-en);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--light);
  opacity: 0;
  animation: fadeIn 0.8s 1.8s forwards;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--black);
  animation: slideLine 2.5s infinite;
}


/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 14px 40px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.btn:hover {
  background: var(--black);
  color: var(--white);
}

.btn-filled {
  background: var(--black);
  color: var(--white);
}

.btn-filled:hover {
  background: var(--charcoal);
}


/* ============================================================
   6. SECTION COMMON
   ============================================================ */

.section-wrap {
  padding: 9rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-ja);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  margin-left: 5%; 
}


/* ============================================================
   7. SERVICES
   ============================================================ */

.services-section {
  border-top: 1px solid var(--pale);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.s-card {
  padding: 3.5rem 2.8rem 3.5rem 2.5rem;
  border-bottom: 1px solid var(--pale);
  position: relative;
  cursor: pointer;
  transition: padding-left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.s-card:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: var(--pale);
}

.s-card:hover {
  padding-left: 1.2rem;
}

.s-num {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--light);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

.s-name {
  font-family: var(--font-ja);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.s-name-en {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gray);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}

.s-desc {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 2.1;
  margin-bottom: 2.5rem;
}

.s-link {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s, gap 0.3s;
}

.s-card:hover .s-link {
  color: var(--black);
  gap: 1rem;
}

.s-arrow {
  width: 20px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s;
}

.s-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.s-card:hover .s-arrow {
  width: 28px;
}


/* ============================================================
   8. PHILOSOPHY
   ============================================================ */

.philosophy-section {
  padding: 10rem 4rem;
  text-align: center;
  border-top: 1px solid var(--pale);
}

.philosophy-text {
  font-family: var(--font-ja);
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.1em;
  max-width: 640px;
  margin: 0 auto;
  color: var(--charcoal);
}

.philosophy-dash {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--light);
  margin: 3rem auto 0;
}


/* ============================================================
   9. ABOUT
   ============================================================ */

.about-section {
  border-top: 1px solid var(--pale);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.about-text {
  font-family: var(--font-ja);
  font-size: 0.9rem;
  line-height: 2.0;
  color: var(--mid);
}

.about-rows {
  padding-top: 0.5rem;
}

.about-row {
  display: flex;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--pale);
}

.about-row:first-child {
  border-top: 1px solid var(--pale);
}

.about-label {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--silver);
  text-transform: uppercase;
  min-width: 120px;
  padding-top: 3px;
}

.about-val {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--dark);
}


/* ============================================================
   10. CONTACT (TOP PAGE CTA)
   ============================================================ */

.contact-section {
  padding: 10rem 4rem;
  text-align: left;
  border-top: 1px solid var(--pale);
}

.contact-sub {
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--mid);
  line-height: 2.2;
  margin: 0 0 3.5rem;
  letter-spacing: 0.06em;
}


/* ============================================================
   11. CONTACT PAGE
   ============================================================ */

.contact-page {
  padding-top: 64px;
}

.contact-header {
  padding: 8rem 4rem 4rem;
  max-width: 640px;
  margin: 0 auto;
}

.contact-heading {
  font-family: var(--font-ja);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.contact-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 4rem 6rem;
}

/* Contact info rows */
.contact-info {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 4rem 8rem;
}

.ci-row {
  display: flex;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--pale);
}

.ci-row:first-child {
  border-top: 1px solid var(--pale);
}

.ci-label {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--silver);
  text-transform: uppercase;
  min-width: 120px;
  padding-top: 3px;
}

.ci-val {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--dark);
}


/* ============================================================
   12. CONTACT FORM (st-form / original)
   ============================================================ */

.st-form .st-field {
  margin-bottom: 2.2rem;
}

.st-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
  margin-bottom: 0.7rem;
}

.st-form .req {
  color: var(--black);
  margin-left: 1px;
}

.st-form input[type="text"],
.st-form input[type="email"],
.st-form input[type="tel"],
.st-form select,
.st-form textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--pale);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--black);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-form input:focus,
.st-form select:focus,
.st-form textarea:focus {
  border-bottom-color: var(--black);
}

.st-form input::placeholder,
.st-form textarea::placeholder {
  color: var(--light);
  font-weight: 300;
}

.st-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23aaa' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
  cursor: pointer;
  color: var(--light);
}

.st-form select:valid {
  color: var(--black);
}

.st-form textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.9;
  border: 1px solid var(--pale);
  padding: 14px 16px;
  margin-top: 2px;
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-form textarea:focus {
  border-color: var(--black);
}

.st-submit {
  margin-top: 3.5rem;
  text-align: center;
}

.st-submit button {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 16px 56px;
  border: none;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s;
}

.st-submit button:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
}

.st-thanks {
  margin-top: 3rem;
  padding: 4rem 2rem;
  border-top: 1px solid var(--pale);
  border-bottom: 1px solid var(--pale);
  text-align: center;
}


/* ============================================================
   13. CONTACT FORM 7
   ============================================================ */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pale);
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--black);
}

.wpcf7 input[type="submit"] {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 14px 40px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: all 0.45s;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--charcoal);
}

.wpcf7 label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.wpcf7 p {
  margin-bottom: 1.5rem;
}


/* ============================================================
   14. PAGE CONTENT (固定ページ等)
   ============================================================ */

.page-content {
  padding: calc(100px + 4rem) 4rem 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-family: var(--font-ja);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.page-content h2 {
  font-family: var(--font-ja);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
}

.page-content p {
  font-size: 0.9rem;
  line-height: 2.4;
  color: var(--mid);
  margin-bottom: 0.3rem;
}


/* ============================================================
   15. FOOTER
   ============================================================ */

.site-footer {
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--pale);
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 20px;
  width: auto;
  opacity: 0.5;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: var(--silver);
}


/* ============================================================
   16. ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideLine {
  0%   { left: -100%; }
  50%  { left:  100%; }
  100% { left:  100%; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   17. RESPONSIVE — max-width: 860px
   ============================================================ */

@media (max-width: 860px) {

  /* Nav */
  .site-nav {
    padding: 0 1.5rem;
  }

  .site-nav::after {
    left: 1.5rem;
    right: 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--pale);
  }

  .nav-menu.open {
    display: flex;
  }

  /* Hero */
  .hero        { padding: 0 1.5rem; }
  .hero-scroll { left: 1.5rem; }

  /* Sections */
  .section-wrap        { padding: 6rem 1.5rem; }
  .philosophy-section  { padding: 6rem 1.5rem; }
  .contact-section     { padding: 6rem 1.5rem; }
  .page-content        { padding: 6rem 1.5rem 4rem; }

  /* Services */
  .services-grid  { grid-template-columns: 1fr; }
  .s-card::after  { display: none; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Contact page */
  .contact-header { padding: 6rem 1.5rem 3rem; }
  .contact-body   { padding: 0 1.5rem 4rem; }
  .contact-info   { padding: 0 1.5rem 5rem; }

  /* Footer */
  .site-footer {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}
