/*
Theme Name: EKOTO
Theme URI: https://ekoto-inc.com
Author: EKOTO, INC.
Description: マーケティングイベント × AIシステム開発のベンチャー「EKOTO, INC.（株式会社エコト）」向けコーポレートテーマ。低ポリゴンのファセットサークルをモチーフにした、明るくオーガニックなワンページデザイン。テキスト・会社情報・配色・ロゴは「外観 → カスタマイズ」から編集できます。
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ekoto
*/

:root {
  --bg: #f6faf8;
  --bg-card: #ffffff;
  --text: #14302a;
  --text-sub: #51706a;
  --teal-deep: #0a8f9e;
  --teal: #14a394;
  --emerald: #1fc29c;
  --mint: #57d9ad;
  --mint-soft: #a8e6c9;
  --mint-pale: #e8f5ef;
  --line: rgba(22, 48, 42, 0.1);
  --radius: 24px;
  --shadow: 0 30px 70px -38px rgba(20, 90, 80, 0.34);
  --font-head: 'Poppins', 'Noto Sans JP', sans-serif;
  --font-logo: 'Quicksand', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

::selection { background: var(--mint-soft); color: var(--teal-deep); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* ---------- Logo ---------- */
.mark { display: inline-block; line-height: 0; }
.mark img { width: 100%; height: 100%; display: block; object-fit: contain; }

.logo { display: inline-flex; align-items: center; gap: 13px; }
.logo .logo-lockup { height: 36px; width: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 250, 248, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 86px; }

.main-nav ul { display: flex; gap: 44px; list-style: none; align-items: center; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--teal); }
.nav-cta {
  color: #fff !important;
  background: linear-gradient(120deg, var(--teal), var(--emerald));
  padding: 12px 26px;
  border-radius: 99px;
  box-shadow: 0 10px 22px -10px rgba(20, 163, 148, 0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(20, 163, 148, 0.75); }

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 110px;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
}
.blob-1 { width: 420px; height: 420px; background: radial-gradient(circle, var(--mint-soft), transparent 70%); top: -6%; right: 2%; animation: float1 18s ease-in-out infinite alternate; }
.blob-2 { width: 340px; height: 340px; background: radial-gradient(circle, #c8efe2, transparent 70%); bottom: -8%; left: -6%; animation: float1 14s ease-in-out infinite alternate-reverse; }
@keyframes float1 { from { transform: translate(0,0); } to { transform: translate(26px, -30px); } }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--mint-pale);
  padding: 8px 17px;
  border-radius: 99px;
  margin-bottom: 36px;
}
.hero-eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }

.hero h1 {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.7vw, 2.85rem);
  line-height: 1.5;
  letter-spacing: 0.015em;
}
.hero h1 .grad {
  font-weight: 700;
  background: linear-gradient(110deg, var(--teal), var(--emerald) 60%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: 32px; max-width: 450px; font-size: 0.97rem; font-weight: 400; color: var(--text-sub); }

.hero-actions { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  padding: 15px 32px;
  border-radius: 99px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--teal), var(--emerald));
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost { color: var(--teal); border: 1.5px solid var(--mint-soft); }
.btn-ghost:hover { background: var(--mint-pale); border-color: var(--mint); transform: translateY(-3px); }

.hero-gem-wrap { display: flex; justify-content: center; }
.hero-gem {
  width: min(340px, 82%);
  aspect-ratio: 1;
  filter: drop-shadow(0 30px 54px rgba(20, 120, 100, 0.25));
  animation: gemFloat 7.5s ease-in-out infinite;
}
@keyframes gemFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-card);
}
.marquee-track { display: inline-flex; align-items: center; gap: 64px; animation: marquee 60s linear infinite; }
.marquee-track span {
  font-family: var(--font-head);
  font-size: clamp(0.92rem, 1.5vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.marquee-track .star { color: var(--emerald); font-size: 0.7em; opacity: 0.75; transform: translateY(-0.1em); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.block { padding: 180px 0; }
.sec-head { margin-bottom: 84px; }
.sec-tag {
  font-family: var(--font-head);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--emerald);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
}
.sec-tag::before { content: ''; width: 30px; height: 2px; border-radius: 2px; background: var(--emerald); }
.block h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.sec-desc { margin-top: 26px; max-width: 540px; font-size: 0.97rem; color: var(--text-sub); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.svc-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 54px 46px 46px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-gem {
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  opacity: 0.9;
  transition: transform 0.6s var(--ease);
}
.svc-card:hover .svc-gem { transform: rotate(24deg) scale(1.06); }
.svc-num {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--emerald);
}
.svc-card h3 {
  margin: 18px 0 6px;
  font-family: var(--font-head);
  font-size: 1.42rem; font-weight: 700; line-height: 1.4;
}
.svc-en {
  font-family: var(--font-head);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-sub);
}
.svc-card p { margin-top: 26px; font-size: 0.93rem; color: var(--text-sub); position: relative; }
.svc-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-size: 12px; font-weight: 500;
  color: var(--teal);
  background: var(--mint-pale);
  padding: 7px 15px; border-radius: 99px;
}
.svc-equation {
  margin: 52px auto 0;
  max-width: 820px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text);
}
.svc-equation .x { color: var(--emerald); margin: 0 0.16em; }

/* ---------- Strengths ---------- */
.strengths { background: var(--mint-pale); }
.str-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.str-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 46px 38px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.str-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.str-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px;
  box-shadow: 0 12px 24px -12px rgba(20, 163, 148, 0.8);
}
.str-card h3 { margin: 26px 0 14px; font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; }
.str-card p { font-size: 0.9rem; color: var(--text-sub); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 84px; align-items: start; }
dl.company { border-top: 1px solid var(--line); margin: 0; }
dl.company > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 26px 2px; border-bottom: 1px solid var(--line);
}
dl.company dt {
  font-family: var(--font-head);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-sub); padding-top: 4px;
}
dl.company dd { font-size: 0.96rem; font-weight: 400; margin: 0; }
dl.company a { color: var(--teal); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-box {
  position: relative;
  background: linear-gradient(125deg, var(--teal-deep), var(--teal) 45%, var(--emerald) 100%);
  border-radius: 32px;
  padding: 104px 40px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-gem { position: absolute; opacity: 0.16; }
.contact-gem.g1 { width: 220px; height: 220px; top: -68px; left: -50px; }
.contact-gem.g2 { width: 160px; height: 160px; bottom: -48px; right: -30px; }
.contact-box .sec-tag { justify-content: center; color: rgba(255,255,255,0.85); position: relative; }
.contact-box .sec-tag::before { background: rgba(255,255,255,0.85); }
.contact-box h2 { color: #fff; position: relative; font-weight: 600; }
.contact-box p { position: relative; margin: 22px auto 44px; max-width: 460px; color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.btn-white { position: relative; background: #fff; color: var(--teal); box-shadow: 0 16px 32px -14px rgba(0,0,0,0.3); }
.btn-white:hover { transform: translateY(-3px); }

/* 問い合わせフォーム（Contact Form 7 等のショートコード出力をブランドに合わせて装飾） */
.contact-form { position: relative; max-width: 540px; margin: 0 auto; text-align: left; }
.contact-form p { margin: 0 0 16px; }
.contact-form label { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 7px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.7;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9bb0aa; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: 3px solid rgba(255, 255, 255, 0.55); outline-offset: 1px; }
.contact-form .wpcf7-submit {
  margin-top: 8px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 15px 38px;
  border: none;
  border-radius: 99px;
  background: #fff;
  color: var(--teal);
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease);
}
.contact-form .wpcf7-submit:hover { transform: translateY(-3px); }
.contact-form .wpcf7-spinner { margin: 8px auto 0; }
.contact-form .wpcf7-response-output {
  margin: 14px 0 0 !important;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #fff;
  font-size: 13px;
}

/* ---------- Fixed Page (page.php) ---------- */
.page-content { min-height: 60vh; padding-top: 140px; }
.page-article { max-width: 760px; margin: 0 auto; }
.page-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--mint-pale);
}
.page-body {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}
.page-body h2 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin: 40px 0 12px; }
.page-body h3 { font-family: var(--font-head); font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.page-body p { margin: 0 0 16px; }
.page-body ul, .page-body ol { padding-left: 1.6em; margin: 0 0 16px; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--teal); text-decoration: underline; }
.page-body a:hover { color: var(--teal-deep); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.foot-links a { font-family: var(--font-head); font-size: 13px; font-weight: 500; color: var(--text-sub); transition: color 0.3s; }
.foot-links a:hover { color: var(--teal); }
.copyright { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.04em; color: var(--text-sub); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .container { padding: 0 26px; }
  .main-nav ul li:not(.cta-li) { display: none; }
  .hero { padding: 130px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-gem-wrap { order: -1; margin-bottom: 20px; }
  .hero-gem { width: 210px; }
  .block { padding: 110px 0; }
  .svc-card { padding: 44px 34px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .sec-head { margin-bottom: 60px; }
  .contact-box { padding: 72px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
