/*
Theme Name: Tsumugi Associates
Theme URI: https://tsumugi-associates.co.jp
Description: 株式会社つむぎ共創会計社 コーポレートサイト
Version: 3.63
Author: Tsumugi Associates
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #2c4783;       /* 藍色 */
  --navy-light: #2c4783; /* 藍色・明 */
  --navy-dark: #2c4783;  /* 藍色・暗 */
  --sakura: #F38181;     /* 桜色 */
  --sakura-light: #F38181; /* 桜色・明 */
  --white: #ffffff;
  --gray-light: #f7f5f6;
  --gray: #6b7280;
  --text: #1f2937;
  --border: #e5e0e3;
}

html { scroll-behavior: smooth; }

body {
  font-family: Roboto, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

body.home {
  background: #e8f0fb url('https://tsumugi-associates.co.jp/wp-content/uploads/2026/07/ChatGPT-Image-2026年7月11日-14_46_37.png') no-repeat center top fixed;
  background-size: cover;
}

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

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--aligned {
  margin: 0;
  padding-left: clamp(24px, 6vw, 120px);
  padding-right: clamp(24px, 6vw, 120px);
}

.section {
  padding: 96px 0;
  background: rgba(255, 255, 255, 0.9);
}

.section--gray {
  background: rgba(247, 245, 246, 0.9);
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--sakura);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.4;
  margin-bottom: 48px;
}

.section-title--center { text-align: center; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
}

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

.site-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 34px; }

.site-nav a {
  font-size: 18px;
  color: var(--navy-dark);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--navy); }

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 16px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}

.nav-dropdown-inner {
  background: var(--white);
  box-shadow: 0 12px 32px rgba(30, 50, 96, 0.12);
  border-radius: 10px;
  padding: 10px 0;
}

.nav-dropdown a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown a:hover { background: var(--gray-light); }

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-contact {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 18px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s !important;
}

.btn-contact-arrow {
  transition: transform 0.2s;
}

.btn-contact:hover { background: var(--navy-light) !important; }
.btn-contact:hover .btn-contact-arrow { transform: translateX(3px); }

.btn-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy-dark);
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.btn-contact-cta:hover { opacity: 0.85; }
.btn-contact-cta:hover .btn-contact-arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  max-width: 1600px;
  margin: 0;
  padding-left: clamp(24px, 6vw, 120px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 640px;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--sakura);
  text-transform: none;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.35;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: normal;
  color: var(--sakura);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gray);
  max-width: 620px;
  line-height: 1.9;
  margin-bottom: 48px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 14px 38px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

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

/* ===== Overview strip ===== */
.overview-strip {
  background: var(--navy-dark);
  padding: 48px 0;
}

.overview-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
}

.overview-item {
  background: var(--navy-dark);
  padding: 32px 40px;
  text-align: center;
}

.overview-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--sakura);
  line-height: 1;
  margin-bottom: 8px;
}

.overview-num span { font-size: 18px; }

.overview-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 36px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg { width: 28px; height: 28px; fill: var(--white); }

.service-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 13px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sakura);

}

.services-grid--stack {
  grid-template-columns: 1fr;
  gap: 24px;
}

.services-grid--stack .service-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.services-grid--stack .service-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.services-grid--stack .service-card-body { flex: 1; }

/* ===== M&A Timeline ===== */
.section-subtitle {
  font-size: 17px;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 800px;
}

.ma-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ma-phase {
  display: grid;
  grid-template-columns: 44px 24px 1fr;
  column-gap: 20px;
}

.ma-phase-label {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ma-phase-label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.ma-line-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.ma-line-col::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 2px;
  background: var(--navy);
}

.ma-line-col::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.ma-arrow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 9px solid var(--navy);
}

.ma-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 32px;
}

.ma-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.ma-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 330px;
  min-height: 56px;
  background: #ccd7ee;
  color: #2c4783;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  padding: 12px 16px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ma-desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.85;
  flex: 1;
  min-width: 260px;
}

/* ===== Management Consulting Honeycomb ===== */
.mc-diagram {
  position: relative;
  width: 100%;
  max-width: 1320px;
  aspect-ratio: 1200 / 640;
  margin: 60px auto 0;
}

.mc-hex {
  position: absolute;
  width: 15%;
  aspect-ratio: 190 / 219;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 38px);
}

.mc-hex--blue { background: #c7d4f0; color: var(--navy-dark); }
.mc-hex--pink { background: #F9C6C6; color: #b5455a; }
.mc-hex--gray { background: #d9d9d9; color: #6b7280; }

.mc-hex--center {
  background: var(--white);
  padding: 0;
  z-index: 1;
}

.mc-hex-inner {
  width: 100%;
  height: 100%;
  background: var(--white);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.6;
  text-align: center;
  font-weight: 700;
}

.mc-text {
  position: absolute;
  width: 26%;
  box-sizing: border-box;
  transform: translateY(-50%);
  word-break: normal;
  overflow-wrap: break-word;
}

.mc-text--left { left: 0; text-align: left; padding-right: 12px; }
.mc-text--right { right: 0; text-align: right; padding-left: 12px; }

.mc-text h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mc-text p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 6px;
}

.mc-mobile-list {
  display: none;
}

.mc-mobile-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.mc-mobile-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.mc-mobile-num--blue { background: #c7d4f0; color: var(--navy-dark); }
.mc-mobile-num--pink { background: #F9C6C6; color: #b5455a; }
.mc-mobile-num--gray { background: #d9d9d9; color: #6b7280; }

.mc-mobile-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.mc-mobile-item p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== Philosophy / Split Layout ===== */
.split-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.split-side {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 140px;
}

.split-side .section-title {
  margin-bottom: 0;
}

.split-content {
  flex: 1;
  position: relative;
  border-left: 2px solid var(--navy);
  padding-left: 48px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.split-content--plain {
  border-left: none;
  padding-left: 0;
  padding-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  transition: opacity 0.2s;
}

.text-link:hover { opacity: 0.7; }

.split-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  transform: translate(-50%, -50%);
}

.split-arrow {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 9px solid var(--navy);
}

.split-content--table {
  padding-top: 4px;
}

.philosophy-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: none;
  font-weight: 500;
  margin-bottom: 14px;
}

.philosophy-label::after {
  content: '';
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--navy), transparent);
}

.philosophy-title {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.5;
}

.philosophy-desc {
  font-size: 17px;
  color: var(--gray);
  line-height: 2;
}

.strength-title {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 20px;
  line-height: 1.5;
}

.strength-desc {
  font-size: 17px;
  color: var(--gray);
  line-height: 2;
}

.professional-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.professional-name-ja {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--navy-dark);
}

.professional-name-en {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.professional-subhead {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 18px 0 8px;
}

.professional-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.professional-list li {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.professional-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gray);
}

.value-list {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.value-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.value-name {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--navy-dark);
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 180px;
}

.value-name em {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  color: var(--gray);
  margin-left: 10px;
}

.value-text {
  font-size: 17px;
  color: var(--gray);
  line-height: 2;
  flex: 1;
  min-width: 240px;
}

/* ===== About / Company ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-body {
  font-size: 15px;
  color: var(--gray);
  line-height: 2;
}

.about-body p + p { margin-top: 20px; }

/* ===== Legal Pages (Privacy Policy / M&A Guideline) ===== */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 32px; }
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}
.legal-content p { margin: 0 0 16px; }
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
}
.legal-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}
.legal-content a { color: var(--navy); text-decoration: underline; }
.legal-content .legal-date {
  margin-top: 48px;
  text-align: right;
  font-size: 13px;
  color: var(--gray);
}

.about-accent {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-accent-text {
  color: rgba(255,255,255,0.12);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== Company Table ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--border);
}

.company-table th {
  width: 160px;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-dark);
  background: transparent;
  vertical-align: top;
}

.company-table td {
  padding: 20px 24px;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
}

/* ===== CEO Message ===== */
.ceo-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.ceo-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 13px;
}

.ceo-message {
  font-size: 15px;
  color: var(--gray);
  line-height: 2.1;
}

.ceo-message p + p { margin-top: 20px; }

.ceo-name {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text);
}

.ceo-name strong {
  display: block;
  font-size: 20px;
  color: var(--navy-dark);
  font-weight: 700;
  margin-top: 4px;
}

/* ===== Contact ===== */
.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 48px;
  line-height: 1.9;
}

/* Contact Form 7 styling */
.wpcf7 .form-row {
  margin-bottom: 24px;
}

.wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wpcf7 .req {
  color: var(--sakura);
  margin-left: 4px;
  font-size: 12px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

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

.wpcf7 textarea { min-height: 160px; resize: vertical; }

.wpcf7 input[type="submit"],
.wpcf7 input.contact-confirm-btn {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input.contact-confirm-btn:hover { background: var(--navy-light); }

.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 8px;
}

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

.wpcf7-radio .wpcf7-list-item-label {
  font-size: 15px;
  color: var(--text);
  margin-left: 6px;
}

.wpcf7-radio .wpcf7-list-item label,
.wpcf7 .form-row label:has(input[type="radio"]) {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s;
}

.wpcf7-radio .wpcf7-list-item label:hover,
.wpcf7 .form-row label:has(input[type="radio"]):hover {
  background: rgba(44, 71, 131, 0.08);
}

.wpcf7 input[readonly],
.wpcf7 textarea[readonly] {
  background: var(--gray-light);
  color: var(--gray);
  cursor: default;
}

.wpcf7-form.is-review-mode .wpcf7-radio,
.wpcf7-form.is-review-mode .wpcf7-radio label {
  pointer-events: none;
}

.wpcf7-form.is-review-mode .wpcf7-radio {
  opacity: 0.75;
}

.contact-review-actions {
  display: flex;
  gap: 16px;
}

.contact-review-actions input[type="submit"] {
  flex: 1;
  width: auto;
}

.contact-review-back {
  flex: 1;
  padding: 16px;
  background: var(--gray);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.contact-review-back:hover {
  background: #575f6c;
}

.wpcf7-response-output {
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  color: var(--navy-dark);
  background: var(--gray-light);
  border: none;
  border-radius: 8px;
  padding: 32px;
  margin: 0 0 32px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  padding: 40px 0 24px;
  color: rgba(255,255,255,0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-address {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.9;
}

.footer-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.footer-nav-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.footer-nav-row > li > a {
  display: block;
}

.footer-nav-row a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-nav-row a:hover { color: var(--white); }

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-subnav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-subnav a {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-subnav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ===== Page Header ===== */
.page-header {
  background: #ffffff;
  min-height: 90vh;
  padding: 160px 0 120px;
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.page-header .container {
  max-width: 1600px;
  margin: 0;
  padding-left: clamp(24px, 6vw, 120px);
}

.page-header-threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-header--about,
.page-header--services,
.page-header--credentials,
.page-header--news,
.page-header--column {
  background: transparent;
}

body.post-name-about-us {
  background: #e8f0fb url('https://tsumugi-associates.co.jp/wp-content/uploads/2026/07/ChatGPT-Image-2026年7月11日-14_43_41.png') no-repeat center top fixed;
  background-size: cover;
}

body.page-template-page-services {
  background: #e8f0fb url('https://tsumugi-associates.co.jp/wp-content/uploads/2026/07/ChatGPT-Image-2026年7月11日-14_46_04.png') no-repeat center top fixed;
  background-size: cover;
}

body.post-name-credentials {
  background: #e8f0fb url('https://tsumugi-associates.co.jp/wp-content/uploads/2026/07/ChatGPT-Image-2026年7月11日-14_46_19.png') no-repeat center top fixed;
  background-size: cover;
}

body.category-news {
  background: #e8f0fb url('https://tsumugi-associates.co.jp/wp-content/uploads/2026/07/ChatGPT-Image-2026年7月11日-20_49_29.png') no-repeat center top fixed;
  background-size: cover;
}

body.category-column {
  background: #e8f0fb url('https://tsumugi-associates.co.jp/wp-content/uploads/2026/07/ChatGPT-Image-2026年7月11日-20_58_12.png') no-repeat center top fixed;
  background-size: cover;
}

body.post-name-contact {
  background: #e8f0fb url('https://tsumugi-associates.co.jp/wp-content/uploads/2026/07/ChatGPT-Image-2026年7月11日-14_46_37.png') no-repeat center top fixed;
  background-size: cover;
}

.page-header--contact {
  background: transparent;
}

.page-header--about::after,
.page-header--services::after,
.page-header--credentials::after,
.page-header--news::after,
.page-header--column::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 0;
}

.page-header-label {
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--sakura);
  text-transform: none;
  font-weight: 600;
  display: block;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.page-header-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--navy-dark);
  position: relative;
  z-index: 1;
}

/* ===== Post List (News / Column) ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.post-card {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.post-card:hover { opacity: 0.7; }

.post-date {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 8px;
}

.post-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.post-excerpt {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

.post-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.post-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.post-pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== Post Grid (News / Column archive) ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 96px;
  row-gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.post-grid-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-grid-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.post-grid-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-grid-thumb-label {
  color: rgba(255,255,255,0.35);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.post-grid-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.post-grid-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(16px * 1.6 * 2);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.6;
  margin: 8px 0 12px;
}

.post-grid-excerpt {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.8;
  flex: 1;
}

.post-grid-more {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

.post-grid-card:hover .post-grid-more { text-decoration: underline; }

/* ===== Credentials Grid ===== */
.credentials-container {
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: clamp(24px, 6vw, 96px);
}

.credential-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 32px;
}

.credential-toolbar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}

.credential-toolbar select {
  font-size: 14px;
  font-family: inherit;
  color: var(--navy-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
}

.credential-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.credential-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--sakura-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credential-thumb span {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
}

.credential-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 4px 4px;
}

.credential-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 10px;
}

.credential-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px;
}

.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.credential-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
}

/* ===== Home News & Column ===== */
.home-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.home-news-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy-dark);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.home-news-col-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
}

.home-news-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.home-news-more:hover { opacity: 0.7; }

.post-list--compact {
  max-width: none;
  margin: 0;
}

.post-list--compact .post-card {
  padding: 20px 0;
}

.post-list--compact .post-title {
  font-size: 15px;
  margin-bottom: 0;
}

/* ===== Hamburger (mobile) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .credential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .hamburger { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 18px; }
  .nav-dropdown { display: none !important; }

  .overview-strip .container { grid-template-columns: 1fr; gap: 0; }

  .about-grid,
  .ceo-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .value-text { margin-left: 0; }

  .split-layout { flex-direction: column; gap: 24px; }
  .split-side { width: 100%; position: static; }
  .split-content { padding-left: 24px; }

  .home-news-grid { grid-template-columns: 1fr; gap: 40px; }

  .post-grid { grid-template-columns: 1fr; gap: 24px; }

  .credential-grid { grid-template-columns: 1fr; gap: 32px; }

  .ma-row { gap: 16px; }
  .ma-pill { min-width: 0; width: auto; white-space: normal; font-size: 14px; padding: 12px 18px; }

  .mc-diagram { display: none; }
  .mc-mobile-list { display: block; }

  .services-grid--stack .service-card { flex-direction: column; }

  .company-table th { width: 120px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav-wrap { align-items: flex-start; }
  .footer-nav-row { justify-content: flex-start; gap: 20px; }
  .hero .container { padding-left: 24px; }
  .page-header .container { padding-left: 24px; }
}
