/*
Theme Name: YOWAN Custom Theme
Theme URI: https://yowan.co.jp
Author: YOWAN Inc.
Description: Custom WordPress theme for YOWAN Corporate site
Version: 1.0.0
Text Domain: yowan
*/

:root {
  --color-bg: #ffffff;
  --color-main: #93d4d6; /* Light pastel aqua */
  --color-dark: #11181c;
  --color-sub: #f0a8a8;
  --font-base: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --grid-border: 1px solid rgba(147, 212, 214, 0.3);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Base elements */
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  border-bottom: var(--grid-border);
}
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu a {
  font-size: 0.75rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-dark);
  transition: opacity 0.3s;
}
.nav-menu a:hover {
  opacity: 0.6;
}
.nav-contact-btn {
  border: 1px solid var(--color-main);
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  color: var(--color-main) !important;
  transition: all 0.3s ease !important;
}
.nav-contact-btn:hover {
  background: var(--color-main);
  color: #fff !important;
  opacity: 1 !important;
}

/* --- HERO --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6vw;
  max-width: 1200px;
  width: 90%;
  margin-top: -3rem;
}
.hero-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo-img {
  width: clamp(180px, 22vw, 320px);
  margin-bottom: 1.2rem;
}
.hero-text-box {
  display: flex;
  flex-direction: column;
}
.hero-title-new {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  margin: 0 0 1rem 0;
  color: var(--color-dark);
}
.hero-sub-new {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  letter-spacing: 0.1em;
  color: #333;
  margin: 0;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-text {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-dark);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--color-dark);
}

/* --- CENTER LAYOUT SECTIONS --- */
.section.center-layout {
  padding: 8rem 5%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-subtitle {
  font-family: 'Jost', sans-serif;
  color: var(--color-main);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin: 0 0 1rem 0;
}
.section-title-main {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0 0 4rem 0;
  color: var(--color-dark);
  text-align: center;
}

/* --- VALUES GRID --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}
.value-card {
  border: var(--grid-border);
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
  transition: transform 0.3s;
}
.value-card:hover {
  transform: translateY(-5px);
}
.value-card.bottom-row {
  grid-column: span 1;
}
@media (min-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .value-card {
    grid-column: span 2;
  }
  .value-card.bottom-row:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .value-card.bottom-row:nth-child(5) {
    grid-column: 4 / span 2;
  }
}
@media (max-width: 899px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .value-card {
    grid-column: span 1 !important;
  }
}

.value-letter {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--color-main);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.value-en {
  font-size: 0.85rem;
  font-family: 'Jost', sans-serif;
  color: #888;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}
.value-ja {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.value-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
  text-align: left;
}

/* --- SERVICES GRID --- */
.services-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
}
@media (max-width: 800px) {
  .services-grid-new {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: #fff;
  border: var(--grid-border);
  display: flex;
  flex-direction: column;
}
.service-img-wrapper-new {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-img-new {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .service-img-new {
  transform: scale(1.05);
}
.service-content-new {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 1rem 0;
  color: var(--color-dark);
}
.service-title-new {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.05em;
}
.service-desc-new {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}
.service-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 1rem 2rem;
  border: 1px solid var(--color-main);
  color: var(--color-dark);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}
.service-btn:hover {
  background: var(--color-main);
  color: #fff;
}

/* --- COMPANY --- */
.company-wrapper {
  width: 100%;
  max-width: 800px;
}
.company-table-new {
  width: 100%;
  border-collapse: collapse;
}
.company-table-new th, .company-table-new td {
  padding: 1.5rem 1rem;
  border-bottom: var(--grid-border);
  text-align: left;
}
.company-table-new tr:first-child th, .company-table-new tr:first-child td {
  border-top: var(--grid-border);
}
.company-table-new th {
  width: 30%;
  font-weight: 500;
  color: var(--color-dark);
  letter-spacing: 0.1em;
}
.company-table-new td {
  width: 70%;
  color: #444;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .company-table-new th, .company-table-new td {
    display: block;
    width: 100%;
    padding: 1rem 0;
  }
  .company-table-new th {
    border-bottom: none;
    padding-bottom: 0;
  }
  .company-table-new tr:first-child th, .company-table-new tr:first-child td {
    border-top: none;
  }
  .company-table-new {
    border-top: var(--grid-border);
  }
}

/* --- CONTACT --- */
.contact-form-new {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.form-group-new {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group-new label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
}
.form-group-new label .required {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  font-weight: normal;
}
.contact-form-new input[type="text"],
.contact-form-new input[type="email"],
.contact-form-new select,
.contact-form-new textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.contact-form-new input:focus,
.contact-form-new select:focus,
.contact-form-new textarea:focus {
  outline: none;
  border-color: var(--color-main);
}
.radio-group-new,
.checkbox-group-new {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
@media (min-width: 600px) {
  .radio-group-new,
  .checkbox-group-new {
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
  }
}
.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem !important;
  font-weight: normal !important;
  cursor: pointer;
}
.radio-label input,
.checkbox-label input {
  margin: 0;
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}
.select-wrapper-new {
  position: relative;
}
.select-wrapper-new::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #999;
  pointer-events: none;
}
.contact-form-new select {
  appearance: none;
  -webkit-appearance: none;
}
.privacy-notice {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin: 1rem 0;
}
.privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.privacy-check label {
  font-size: 0.9rem;
}
.privacy-check a {
  color: var(--color-main);
  text-decoration: underline;
}
.submit-btn-new {
  align-self: center;
  padding: 1.2rem 4rem;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s;
}
.submit-btn-new:hover {
  background: #333;
}

/* --- FOOTER --- */
.footer-new {
  padding: 4rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-top: var(--grid-border);
}
.footer-privacy-link {
  font-size: 0.85rem;
  color: var(--color-main);
  text-decoration: underline;
}
.copyright-new {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}

/* Bubbles */
.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -150px;
  background-color: rgba(147, 212, 214, 0.15);
  border-radius: 50%;
  animation: rise infinite ease-in;
  backdrop-filter: blur(2px);
}
@keyframes rise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-120vh) scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .nav-menu ul {
    gap: 1rem;
  }
  .nav-menu a {
    font-size: 0.65rem;
  }
  .nav-contact-btn {
    padding: 0.4rem 0.8rem;
  }
}
