/*
Theme Name: Medoa
Theme URI: https://medoa.co.jp
Author: 株式会社メドア
Author URI: https://medoa.co.jp
Description: 株式会社メドア コーポレートサイト専用テーマ
Version: 1.0.1
License: Private
Text Domain: medoa
*/

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

:root {
  --blue:        #1a6fcc;
  --blue-dark:   #0e4fa8;
  --blue-deeper: #0a3580;
  --blue-light:  #e8f0fe;
  --blue-mid:    #4a90d9;
  --navy:        #0d1f3c;
  --gray-50:     #f8fafd;
  --gray-100:    #f0f4fa;
  --gray-200:    #dde6f5;
  --gray-400:    #8fa8c8;
  --gray-600:    #4a6080;
  --gray-800:    #1e3050;
  --text:        #1a2840;
  --radius-m:    12px;
  --radius-l:    20px;
  --shadow-s:    0 2px 12px rgba(26,111,204,0.10);
  --shadow-m:    0 6px 30px rgba(26,111,204,0.14);
  --shadow-l:    0 16px 60px rgba(13,31,60,0.16);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
  color: var(--text); background: #fff;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200); transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-s); }
.header__inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deeper));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(26,111,204,0.35); flex-shrink: 0;
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text { line-height: 1.2; }
.logo__name { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; }
.logo__tagline { font-size: 10px; color: var(--gray-400); letter-spacing: 0.05em; font-weight: 500; }

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a, .site-nav > li > a {
  font-size: 14px; font-weight: 500; color: var(--gray-600); transition: color 0.2s;
}
.site-nav a:hover, .site-nav > li > a:hover { color: var(--blue); }

/* WordPress menu list reset */
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 32px; }
.site-nav li { position: static; }

.nav__cta {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: var(--blue) !important; color: #fff !important;
  font-size: 13.5px !important; font-weight: 600 !important; padding: 10px 22px !important;
  border-radius: 8px; transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(26,111,204,0.30);
}
.nav__cta:hover {
  background: var(--blue-dark) !important;
  box-shadow: 0 6px 20px rgba(26,111,204,0.40); transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--gray-200);
  flex-direction: column; z-index: 99;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block; padding: 16px 24px; font-size: 15px; font-weight: 500;
  color: var(--gray-800); border-bottom: 1px solid var(--gray-100); transition: background 0.15s;
}
.nav-mobile a:hover { background: var(--gray-50); }
.nav-mobile .nav-mobile__cta {
  margin: 16px 24px; padding: 14px; text-align: center;
  background: var(--blue); color: #fff; border-radius: 8px;
  font-size: 15px; font-weight: 600; border-bottom: none;
}
.nav-mobile .nav-mobile__cta:hover { background: var(--blue-dark); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--navy) 0%, #0d2d5e 40%, #0e4085 70%, #1a6fcc 100%);
  display: flex; align-items: center;
  padding-top: 68px; position: relative; overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,111,204,0.22) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero::after {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,217,0.15) 0%, transparent 70%);
  bottom: -100px; left: 5%;
}
.hero__container {
  display: grid; grid-template-columns: 1fr 0.85fr;
  align-items: center; gap: 64px;
  position: relative; z-index: 1; width: 100%;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.90); font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 24px; backdrop-filter: blur(6px);
}
.hero__badge span { color: #7dd3f8; }
.hero__title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: #fff;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #7dd3f8, #93c5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__desc { font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 36px; }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--blue-dark); font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 10px; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.20);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.40); color: rgba(255,255,255,0.90);
  font-size: 15px; font-weight: 600; padding: 14px 28px;
  border-radius: 10px; transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.70); }

.hero__card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(20px); border-radius: 20px; padding: 28px;
}
.hero__card-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 18px;
}
.hero__service-list { display: flex; flex-direction: column; gap: 10px; }
.hero__service-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px; padding: 11px 14px; transition: background 0.2s;
}
.hero__service-item:hover { background: rgba(255,255,255,0.14); }
.hero__service-icon { font-size: 18px; flex-shrink: 0; }
.hero__service-name { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.90); flex: 1; }
.hero__service-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(125,211,248,0.18); color: #7dd3f8;
}

/* ─── Section Commons ─────────────────────────────────── */
section { padding: 100px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: var(--navy);
  line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--gray-600); line-height: 1.85; }

/* ─── Services ─────────────────────────────────────────── */
.services { background: var(--gray-50); }
.services__header { text-align: center; margin-bottom: 56px; }
.services__header .section-label { justify-content: center; }
.services__header .section-label::before { display: none; }
.services__header .section-desc { margin: 0 auto; max-width: 560px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border-radius: var(--radius-l); padding: 36px 28px;
  box-shadow: var(--shadow-s); border: 1px solid var(--gray-200);
  transition: transform 0.25s, box-shadow 0.25s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.service-card__icon {
  width: 52px; height: 52px; background: var(--blue-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 24px;
}
.service-card__title { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.service-card__desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.8; }

/* ─── Features ─────────────────────────────────────────── */
.features { background: #fff; }
.features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.features__visual { position: relative; }
.features__visual-main {
  background: linear-gradient(135deg, var(--navy), #1a5a9a);
  border-radius: var(--radius-l); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-l);
}
.features__visual-inner { text-align: center; color: #fff; padding: 40px; }
.features__visual-icon { font-size: 60px; margin-bottom: 16px; }
.features__visual-text { font-size: 18px; font-weight: 700; opacity: 0.9; }
.features__badge {
  position: absolute; bottom: -20px; right: -20px;
  background: #fff; border-radius: var(--radius-m); padding: 14px 18px;
  box-shadow: var(--shadow-m); display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--gray-200);
}
.features__badge-icon { font-size: 26px; }
.features__badge-label { font-size: 11px; color: var(--gray-600); font-weight: 500; }
.features__badge-value { font-size: 18px; font-weight: 800; color: var(--blue); }
.features__list { display: flex; flex-direction: column; gap: 24px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-item__icon {
  flex-shrink: 0; width: 48px; height: 48px; background: var(--blue-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.feature-item__title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-item__desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.75; }

/* ─── Process ──────────────────────────────────────────── */
.process { background: var(--navy); color: #fff; }
.process__header { text-align: center; margin-bottom: 64px; }
.process__header .section-label { color: #7dd3f8; justify-content: center; }
.process__header .section-label::before { background: #7dd3f8; }
.process__header .section-title { color: #fff; }
.process__header .section-desc { color: rgba(255,255,255,0.65); margin: 0 auto; }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process__steps::before {
  content: ''; position: absolute; top: 32px; left: 80px; right: 80px; height: 2px;
  background: linear-gradient(90deg, rgba(26,111,204,0.40), rgba(74,144,217,0.40));
}
.process-step { text-align: center; }
.process-step__num {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 auto 20px; box-shadow: 0 6px 20px rgba(26,111,204,0.40);
  position: relative; z-index: 1;
}
.process-step__title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.process-step__desc { font-size: 13px; color: rgba(255,255,255,0.60); line-height: 1.7; }

/* ─── Company ──────────────────────────────────────────── */
.company { background: #fff; }
.company__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.company__table { border-collapse: collapse; width: 100%; margin-top: 8px; }
.company__table tr { border-bottom: 1px solid var(--gray-100); }
.company__table tr:last-child { border-bottom: none; }
.company__table th {
  padding: 15px 0; text-align: left; font-size: 12px; font-weight: 700;
  color: var(--gray-600); letter-spacing: 0.06em; text-transform: uppercase;
  width: 110px; vertical-align: top; padding-top: 17px;
}
.company__table td { padding: 15px 0; font-size: 14.5px; color: var(--text); line-height: 1.75; }
.company__table td a { color: var(--blue); }
.company__map-wrap { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); }
.company__map-wrap iframe { display: block; width: 100%; min-height: 360px; border: 0; }

/* ─── News ─────────────────────────────────────────────── */
.news { background: var(--gray-50); }
.news__header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.news__more {
  display: inline-flex; align-items: center; gap: 8px; color: var(--blue);
  font-size: 14px; font-weight: 600; border-bottom: 1.5px solid var(--blue);
  padding-bottom: 2px; transition: gap 0.2s;
}
.news__more:hover { gap: 12px; }
.news__list {
  background: #fff; border-radius: var(--radius-l);
  overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-s);
}
.news-item {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 32px; border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--gray-50); }
.news-item__date { flex-shrink: 0; font-size: 13px; color: var(--gray-400); font-weight: 500; min-width: 90px; }
.news-item__tag { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.news-item__tag--info    { background: var(--blue-light); color: var(--blue); }
.news-item__tag--company { background: #e8f5e9; color: #2e7d32; }
.news-item__title { font-size: 15px; color: var(--text); font-weight: 500; flex: 1; }
.news-item__arrow { color: var(--gray-400); transition: transform 0.2s, color 0.2s; }
.news-item:hover .news-item__arrow { transform: translateX(4px); color: var(--blue); }

/* ─── Contact ──────────────────────────────────────────── */
.contact { background: var(--gray-50); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.contact__info { padding-top: 8px; }
.contact__desc { font-size: 15px; color: var(--gray-600); line-height: 1.85; margin-bottom: 36px; }
.contact__item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact__item-icon {
  width: 44px; height: 44px; background: var(--blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact__item-label { font-size: 11px; color: var(--gray-400); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.contact__item-value { font-size: 15px; color: var(--text); font-weight: 500; line-height: 1.6; }
.contact-form {
  background: #fff; border-radius: var(--radius-l); padding: 44px;
  box-shadow: var(--shadow-m); border: 1px solid var(--gray-200);
}
.contact-form__title { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 28px; }
.contact-form__row { margin-bottom: 18px; }
.contact-form__row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
.contact-form__label span { color: #e85555; margin-left: 4px; font-size: 11px; font-weight: 400; }
.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,204,0.10);
}
.contact-form__textarea { resize: vertical; min-height: 120px; }
.contact-form__privacy { font-size: 13px; color: var(--gray-600); margin-bottom: 22px; line-height: 1.6; }
.contact-form__privacy a { color: var(--blue); text-decoration: underline; }
.contact-form__btn {
  width: 100%; padding: 15px; background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 700; border: none; border-radius: 10px;
  cursor: pointer; font-family: inherit; letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(26,111,204,0.30);
}
.contact-form__btn:hover  { background: var(--blue-dark); box-shadow: 0 8px 24px rgba(26,111,204,0.40); transform: translateY(-1px); }
.contact-form__btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.contact-form__error { color: #e85555; font-size: 13px; margin-top: 12px; }
.contact-form__success {
  display: none; text-align: center; padding: 40px 20px;
  color: #2e7d32; font-size: 16px; font-weight: 600; line-height: 1.8;
}

/* ─── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer__brand .logo__name  { color: #fff; }
.footer__brand .logo__tagline { color: rgba(255,255,255,0.40); }
.footer__brand-desc { font-size: 13px; line-height: 1.85; margin-top: 16px; max-width: 240px; }
.footer__col-title { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: 13.5px; transition: color 0.2s; }
.footer__links a:hover { color: #7dd3f8; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.10);
}
.footer__copy { font-size: 13px; }
.footer__info { font-size: 13px; text-align: right; line-height: 1.7; }
.footer__info a { color: rgba(255,255,255,0.40); font-size: 12px; }

/* ─── Fade animation ──────────────────────────────────── */
/* デフォルト（JS未検出）: 全て表示 */
.fade-up { transition: opacity 0.6s ease, transform 0.6s ease; }
/* JS検出済み: 未表示状態から開始してスクロールで表示 */
html.js .fade-up:not(.visible) { opacity: 0; transform: translateY(30px); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__container   { grid-template-columns: 1fr; }
  .hero__right       { display: none; }
  .services__grid    { grid-template-columns: repeat(2, 1fr); }
  .features__grid    { grid-template-columns: 1fr; }
  .company__inner    { grid-template-columns: 1fr; }
  .contact__inner    { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container         { padding: 0 20px; }
  section            { padding: 72px 0; }
  .site-nav          { display: none; }
  .hamburger         { display: flex; }
  .services__grid    { grid-template-columns: 1fr; }
  .process__steps    { grid-template-columns: repeat(2, 1fr); }
  .process__steps::before { display: none; }
  .footer__grid      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .news__header      { flex-direction: column; align-items: flex-start; gap: 16px; }
  .news-item         { flex-wrap: wrap; gap: 10px; }
  .contact-form      { padding: 28px 20px; }
  .contact-form__row--2col { grid-template-columns: 1fr; }
}
