/* ==========================================================================
   合同会社COSA Corporate Site
   Domain: co-sa.co
   Design ref: uniam.jp — warm beige, organic, approachable
   ========================================================================== */

/* ----- Design Tokens ----- */
:root {
  /* Warm gradient base */
  --bg:             #fdf6ec;
  --bg-white:       #ffffff;
  --white:          #ffffff;
  --border:         rgba(232, 170, 60, 0.15);

  /* Text */
  --text:           #1a1a1a;
  --text-sub:       #4a4a4a;
  --text-muted:     #8a8a8a;

  /* Accent — yellow/orange */
  --accent:         #e8922d;
  --accent-hover:   #d47e1a;
  --accent-light:   #fff3e0;
  --tag-purple:     #b59fd4;
  --tag-green:      #7ebba5;

  /* Gradient */
  --grad-start:     #f7c948;
  --grad-mid:       #f0a030;
  --grad-end:       #e87830;

  /* Sizing */
  --radius:         16px;
  --radius-sm:      8px;
  --radius-pill:    40px;
  --shadow:         0 4px 20px rgba(232, 146, 45, 0.12);
  --transition:     0.2s ease;
  --font:           'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  --max-w:          960px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(135deg, #fef9e7 0%, #fdf0d5 30%, #fce4bb 60%, #fbd8a0 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.site-name {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  text-transform: lowercase;
  -webkit-text-stroke: 0.8px var(--text);
}

.co-gap {
  display: inline-block;
  width: 0.4px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color var(--transition);
}
.nav a:hover { color: var(--text); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: url("images/Background_HERO.png") center center / cover no-repeat;
}


.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.hero-line1,
.hero-line2 {
  display: inline-block;
}

.hero-line1 {
  letter-spacing: 0.18em;
  margin-right: -0.18em;
}

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 2;
}

/* ==========================================================================
   Section
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section--white {
  background: var(--bg-white);
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 48px;
}

/* ==========================================================================
   Info Table
   ========================================================================== */
.info-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.75;
}

.info-table th {
  width: 140px;
  font-weight: 600;
  color: var(--text);
  padding-right: 20px;
}

.info-table td {
  color: var(--text-sub);
}

/* (Group Structure section removed) */

/* ==========================================================================
   Message (代表メッセージ)
   ========================================================================== */
.message-block {
  max-width: 640px;
  margin: 0 auto;
}

.message-text {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

.message-text p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-author {
  text-align: right;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.message-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.message-author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Card Grid
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.card-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.85;
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 720px;
  margin: 0 auto;
}

.member {
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
}

/* Photo */
.member-photo {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: var(--accent-light);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.member-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
}

.member-photo:not(.no-photo) .member-initial { display: none; }
.member-photo.no-photo .member-initial { display: flex; }

.member-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0;
}

.member-name-en {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.member-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.member-bio {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.85;
}

/* ==========================================================================
   Service
   ========================================================================== */
.service-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 3px solid var(--border);
}

.service-card--with-image {
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.service-body {
  flex: 1;
  min-width: 0;
}

.service-image {
  flex-shrink: 0;
  width: 220px;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  mix-blend-mode: multiply;
}

.service-header {
  margin-bottom: 20px;
}

.service-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
}

.service-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

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

.service-list {
  list-style: none;
  margin-bottom: 28px;
}

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

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  letter-spacing: 1px;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.contact-box > p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.contact-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: lowercase;
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.6);
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 246, 236, 0.95);
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav-toggle  { display: flex; }

  .hero { padding: 112px 0 56px; }
  .hero-title { font-size: 24px; }
  .hero-desc  { font-size: 13px; }
  .pc-only { display: none; }

  .section { padding: 56px 0; }
  .section-subtitle { font-size: 19px; margin-bottom: 36px; }

  .info-table th,
  .info-table td { display: block; padding: 0; border: none; }
  .info-table th { padding-top: 14px; padding-bottom: 2px; }
  .info-table td { padding-bottom: 14px; border-bottom: 1px solid var(--border); }

  .card-grid  { grid-template-columns: 1fr; gap: 16px; }
  .team-grid  { grid-template-columns: 1fr; gap: 20px; }

  .service-card { padding: 28px 20px; }
  .service-card--with-image { flex-direction: column; gap: 24px; }
  .service-image { width: 180px; margin: 0 auto; }

  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}
