/*
Theme Name: Blue S (Cocoon Child)
Theme URI: https://unite5.org/
Author: Blue S Co., Ltd.
Template: cocoon-master
Description: Blue S コーポレートサイト用 WordPress テーマ（Cocoon子テーマ）
Version: 1.0.0
*/

/* ======================================
   Blue S Corporate Site – style.css
   補助スタイル（Tailwind補完）
====================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
#header {
  box-shadow: 0 1px 4px rgba(0,91,172,0.06);
  transition: box-shadow 0.3s;
}
#header.scrolled {
  box-shadow: 0 2px 12px rgba(0,91,172,0.12);
}
.logo-fallback { display: flex; }
.logo-icon-svg {
  width: 28px; height: 28px;
  background: radial-gradient(circle at 40% 40%, #7ecef4 0%, #005bac 60%, #015192 100%);
  border-radius: 50%;
  display: inline-block;
}
.header-cta-btn {
  background-color: #015192;
  transition: background-color 0.2s;
}
.header-cta-btn:hover { background-color: #005bac; }

/* ---------- Hero ---------- */
.hero-section {
  height: 800px;
}
.hero-bg {
  background: linear-gradient(110deg, #d9edf9 0%, #b8dcf0 40%, #a8cce6 100%);
}
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.82) 0%,
    rgba(255,255,255,0.75) 25%,
    rgba(255,255,255,0.5)  45%,
    rgba(255,255,255,0.1)  65%,
    rgba(255,255,255,0.0)  75%
  );
}
.hero-img-pos {
  object-position: right 5%;
}
.hero-inner {
  height: 100%;
}
.hero-text-block {
  max-width: 480px;
}
.hero-headline {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.hero-sub {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #374151;
}
.hero-btn-primary {
  background-color: #005bac;
  border: 2px solid transparent;
}
.hero-btn-primary:hover { background-color: #015192; }
.hero-btn-secondary {
  border-color: #005bac;
  color: #005bac;
  background: rgba(255,255,255,0.85);
}
.hero-btn-secondary:hover {
  background: #005bac;
  color: #fff;
}

/* ---------- Section common ---------- */
.section-en {
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.18em;
  font-weight: 400;
}

/* ---------- Business ---------- */
.business-section {
  background: linear-gradient(180deg, #e8f5fd 0%, #f0f8fe 100%);
}
.business-card {
  box-shadow: 0 4px 20px rgba(0,91,172,0.09);
}
.business-card .p-6 {
  padding: 0.5rem 1.5rem 1.5rem;
}
.card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #b8dcf0 0%, #7ecef4 100%);
}
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-beauty   { background: linear-gradient(135deg, #c8e8f8 0%, #9dd4ef 100%); }
.card-img-health   { background: linear-gradient(135deg, #b8e0f5 0%, #7ec8ee 100%); }
.card-img-consulting { background: linear-gradient(135deg, #a8d4f0 0%, #5abaeb 100%); }
.card-icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.card-arrow-link {
  color: #005bac;
  font-size: 1rem;
  transition: gap 0.2s;
}
.card-arrow-link:hover { gap: 10px; }

/* ---------- Vision ---------- */
.vision-section {
  background-color: #f0f8fe;
  background-image: url('img/logo-symbol.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.vision-text-block {
  max-width: 480px;
}
.vision-headline {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.vision-divider {
  width: 36px;
  height: 3px;
  background: #005bac;
  margin: 16px 0 20px;
}

/* ---------- Company ---------- */
.company-section {
  background: #fff;
}
.company-office-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #c8e2f2 0%, #a0cceb 100%);
}
.office-placeholder {
  width: 100%;
  height: 220px;
}
.company-table {
  border-collapse: collapse;
}
.company-th {
  font-weight: 500;
  color: #005bac;
  font-size: 0.82rem;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid #dbe7f0;
  white-space: nowrap;
  vertical-align: top;
  width: 130px;
  text-align: left;
}
.company-td {
  font-size: 0.88rem;
  color: #374151;
  padding: 16px 0 16px 0;
  border-bottom: 1px solid #dbe7f0;
  line-height: 1.7;
  vertical-align: top;
}
.company-table tbody tr:last-child .company-th,
.company-table tbody tr:last-child .company-td {
  border-bottom: none;
}

/* ---------- Contact ---------- */
.contact-section {
  background: linear-gradient(180deg, #e8f5fd 0%, #f8fcfe 60%, #ffffff 100%);
}
.contact-form-wrap {
  box-shadow: 0 4px 32px rgba(0,91,172,0.08);
}
.form-label {
  display: block;
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 6px;
  font-weight: 500;
}
.required-mark {
  color: #dc2626;
  margin-left: 2px;
}
.form-input {
  display: block;
  width: 100%;
  border: 1px solid #dbe7f0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: #005bac;
  box-shadow: 0 0 0 3px rgba(0,91,172,0.1);
}
.form-input.error-field {
  border-color: #dc2626;
}
.form-error {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #dc2626;
}
.contact-submit-btn {
  background-color: #005bac;
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  min-width: 200px;
  transition: background-color 0.2s;
}
.contact-submit-btn:hover { background-color: #015192; }
.contact-submit-btn:active { background-color: #013d6e; }

/* ---------- Footer ---------- */
.footer-section {
  background: linear-gradient(180deg, #015192 0%, #013a70 100%);
}
.footer-logo-img { filter: brightness(0) invert(1); }
.footer-logo-fallback { display: flex; }
.footer-logo-icon {
  width: 26px; height: 26px;
  background: radial-gradient(circle at 40% 40%, #7ecef4 0%, #fff 60%);
  border-radius: 50%;
  display: inline-block;
}
.footer-tel {
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  font-family: 'Noto Sans JP', sans-serif;
  display: block;
}

/* ---------- Mobile Drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100dvh;
  background: #fff;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.mobile-drawer.open {
  transform: translateX(0);
}
.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 28px 40px;
}
.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
  padding: 4px;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.drawer-close:hover { color: #015192; }
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.drawer-nav-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #1a2a3a;
  padding: 16px 0;
  border-bottom: 1px solid #e8eef5;
  text-decoration: none;
  transition: color 0.2s;
}
.drawer-nav-link:hover { color: #015192; }
.drawer-inner .header-cta-btn {
  margin-top: 32px;
}

/* ---------- Hamburger active ---------- */
#hamburger.active .ham-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#hamburger.active .ham-bar:nth-child(2) {
  opacity: 0;
}
#hamburger.active .ham-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  /* 会社概要セクション タブレット調整 */
  .company-left-col {
    width: 100%;
    max-width: 560px;
    text-align: center;
    margin: 0 auto;
  }
  .company-left-col .company-office-img {
    height: 260px;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-section { height: 500px; }
  .hero-text-block { max-width: 100%; }
  .hero-overlay {
    background: rgba(255,255,255,0.72);
  }
  .vision-section {
    background-image: none;
    min-height: auto;
    padding-bottom: 0;
  }
  .company-office-img { height: 180px; }
  .footer-tel { font-size: 1.4rem; }
  .contact-form-wrap { padding: 28px 18px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 1.6rem; }
  .hero-section { height: 460px; }
}

/* ---------- Back to Top ---------- */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #015192;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,91,172,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover {
  background: #013a70;
  transform: translateY(-3px);
}
