/*
Theme Name: Atinas Original
Theme URI: https://atinas.net/
Author: Atinas
Description: Atinas(アティナス)専用オリジナルテーマ。1ページ完結型LP+ブログ対応。
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: atinas-theme
*/

* { box-sizing: border-box; }

:root {
  --navy: #0B2942;
  --navy-light: #133754;
  --teal: #2FBFBF;
  --teal-dark: #04302E;
  --teal-text: #7fd9d9;
  --bg-light: #F5F7F8;
  --bg-teal-tint: #EFF6F6;
  --text-body: #4B5563;
  --text-muted: #666;
  --border-color: #e2e2e2;
}

html { width: 100%; scroll-behavior: smooth; font-size: 17px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (min-width: 1024px) { html { font-size: 19px; } }
@media (min-width: 1440px) { html { font-size: 20px; } }

body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.8;
  color: #1a1a1a;
  background: #fff;
}

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

.section { padding: 64px 24px; }
.section-narrow { max-width: 720px; margin: 0 auto; }
.section-mid { max-width: 860px; margin: 0 auto; }
.section-wide { max-width: 1120px; margin: 0 auto; }

@media (min-width: 1280px) {
  .section { padding: 88px 40px; }
  .section-narrow { max-width: 820px; }
  .section-mid { max-width: 1000px; }
  .section-wide { max-width: 1320px; }
}

.section-heading {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 32px;
}
.section-heading.on-dark { color: #fff; }

.btn {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--teal-dark); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-link {
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--teal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: #fff; }

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 20px;
  background: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.grid-auto.case-stats {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
  .grid-2.grid-4-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

/* header */
.site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  background: var(--navy);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 999;
}
.site-header .brand { display: flex; align-items: center; gap: 10px; }
.brand-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
}
.site-header .brand img { height: 26px; width: 26px; }
.site-header .brand .brand-name { color: #fff; font-size: 19px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #cfe0ea; font-size: 13px; text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav a.nav-cta {
	background: var(--teal);
	color: var(--teal-dark);
	font-weight: 500;
	padding: 8px 18px;
	border-radius: 20px;
}
.site-nav a.nav-cta:hover { background: #48d1d1; color: var(--teal-dark); }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	width: 28px;
	height: 22px;
	padding: 0;
	position: relative;
	cursor: pointer;
	flex-shrink: 0;
}
.nav-toggle span {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 780px) {
	.nav-toggle { display: block; }
	#site-nav {
		display: none;
		width: 100%;
		order: 3;
	}
	#site-nav.is-open { display: block; }
	.site-nav {
		flex-direction: column;
		gap: 0;
		padding: 8px 0 4px;
	}
	.site-nav li { border-top: 1px solid rgba(255,255,255,0.1); }
	.site-nav a { display: block; padding: 12px 4px; font-size: 14px; }
	.site-nav li:has(a.nav-cta) { border-top: none; margin-top: 8px; }
	.site-nav a.nav-cta { display: block; text-align: center; padding: 12px 4px; border-radius: 6px; }
}

/* hero */
.hero {
  background: var(--navy);
  padding: 80px 24px 90px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
@media (min-width: 1280px) {
  .hero-inner { max-width: 900px; }
  .hero h1 { font-size: 2.5rem; }
  .hero .sub { font-size: 1.2rem; }
  .hero .copy { font-size: 1rem; }
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(47,191,191,0.15);
  color: var(--teal-text);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero h1 { color: #fff; font-size: 2rem; font-weight: 700; line-height: 1.6; margin: 0 0 20px; }
.hero .sub { color: var(--teal-text); font-size: 1.05rem; font-weight: 500; margin: 0 0 26px; }
.hero .copy { color: #a9bdcb; font-size: 0.9rem; margin: 0 0 32px; }

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero .sub { font-size: 0.95rem; }
  .hero .copy { font-size: 0.85rem; }
  .section-heading { font-size: 1.15rem; }
  .hero-break { display: none; }
  .post-article { padding: 40px 20px; }
  .post-article h1 { font-size: 1.25rem; line-height: 1.5; }
  .post-article .entry-content h2 { font-size: 1.1rem; }
  .post-article .entry-content h3 { font-size: 1rem; }
}

/* problem list */
.problem-item {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.problem-item:last-child { margin-bottom: 0; }

/* agitation */
.agitation { background: var(--bg-teal-tint); text-align: center; }
.agitation-inner { max-width: 720px; margin: 0 auto; font-size: 1rem; color: #2c4a4a; }

/* why (dark) */
.why-section { background: var(--navy); }
.why-item h3 { color: #fff; font-size: 0.95rem; font-weight: 500; margin: 0 0 8px; }
.why-item p { color: #a9bdcb; font-size: 0.85rem; margin: 0; }

/* cards */
.card h3 { font-size: 1.05rem; font-weight: 500; color: var(--navy); margin: 0 0 10px; }
.card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* stat card */
.stat-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat-card .label { font-size: 0.8rem; color: #777; margin: 0 0 4px; }
.stat-card .value { font-size: 1rem; font-weight: 500; color: var(--navy); margin: 0 0 6px; }
.stat-card .desc { font-size: 0.72rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* pricing */
.pricing-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 26px 22px; }
.pricing-card.featured { border: 2px solid var(--teal); }
.pricing-badge {
  display: inline-block;
  background: #e6f9f9;
  color: #0a6b6b;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.pricing-card h3 { font-size: 1rem; font-weight: 500; color: var(--navy); margin: 0 0 10px; }
.pricing-card .desc { font-size: 0.8rem; color: #777; margin: 0 0 14px; }
.pricing-card .price { font-size: 0.9rem; color: var(--navy); font-weight: 500; margin: 0; }

/* faq */
.faq-item { border: 1px solid var(--border-color); border-radius: 8px; padding: 18px; }
.faq-item h3 { font-size: 0.95rem; font-weight: 500; color: var(--navy); margin: 0 0 8px; }
.faq-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* flow */
.flow-step { text-align: center; }
.flow-step .step-label { font-size: 0.8rem; color: var(--teal); font-weight: 500; margin: 0 0 6px; }
.flow-step h3 { font-size: 0.95rem; font-weight: 500; color: var(--navy); margin: 0 0 6px; }
.flow-step p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* partnership */
.partnership-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 28px; }
.partnership-card h3 { font-size: 1.05rem; font-weight: 500; color: var(--navy); margin: 0 0 10px; }
.partnership-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* final cta */
.final-cta { background: var(--navy); text-align: center; }
.final-cta h2 { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 22px; }

/* contact form section */
.contact-section { background: #fff; }
.contact-section .wpcf7-form-control-wrap { display: block; margin-bottom: 14px; }
.contact-section input[type=text], .contact-section input[type=email], .contact-section input[type=tel], .contact-section textarea, .contact-section select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
}
.contact-section input[type=submit] {
  background: var(--teal);
  color: var(--teal-dark);
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
}

/* footer */
.site-footer { background: #071b2d; padding: 24px; text-align: center; }
.site-footer p { color: #7a8fa0; font-size: 11.5px; margin: 0; }
.site-footer .footer-meta { font-size: 12.5px; margin: 0 0 10px; }
.site-footer .footer-meta a { color: #9fd3d3; text-decoration: underline; }

/* back to top */
#back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 900;
}
#back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
#back-to-top:hover { background: var(--teal); color: var(--teal-dark); }

/* blog */
.blog-list { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.blog-list article { border-bottom: 1px solid var(--border-color); padding: 24px 0; }
.blog-list article h2 { font-size: 1.1rem; color: var(--navy); margin: 0 0 8px; }
.blog-list article .meta { font-size: 0.75rem; color: #999; margin: 0 0 8px; }
.post-article { max-width: 860px; margin: 0 auto; padding: 64px 24px; }
.post-article .breadcrumb { font-size: 0.75rem; color: #999; margin: 0 0 18px; }
.post-article .breadcrumb a { color: #999; text-decoration: none; }
.post-article .breadcrumb a:hover { color: var(--teal-dark); }
.post-article h1 { font-size: 1.6rem; color: var(--navy); line-height: 1.5; margin: 0 0 14px; }
.post-article .meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: #999; margin: 0 0 32px; }
.post-article .meta-badge {
  display: inline-block;
  background: var(--bg-teal-tint);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.post-article .entry-content { font-size: 0.95rem; color: #333; }
.post-article .entry-content img { border-radius: 8px; margin: 24px 0; }
.post-article .entry-content h2 { font-size: 1.25rem; color: var(--navy); font-weight: 700; margin: 40px 0 14px; padding-top: 8px; border-top: 1px solid var(--border-color); }
.post-article .entry-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.post-article .entry-content h3 { font-size: 1.05rem; color: var(--navy); font-weight: 500; margin: 28px 0 10px; }
.post-article .entry-content p { margin: 0 0 20px; }
.post-article .entry-content ul, .post-article .entry-content ol { margin: 0 0 20px; padding-left: 1.4em; }
.post-article .entry-content li { margin: 0 0 8px; }
.post-article .post-cta {
  background: var(--bg-teal-tint);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin: 56px 0 0;
}
.post-article .post-cta h2 { font-size: 1.05rem; color: var(--navy); font-weight: 700; margin: 0 0 18px; }
.post-article .back-to-list { margin-top: 32px; font-size: 0.85rem; }
.post-article .back-to-list a { color: var(--text-muted); text-decoration: none; }
.post-article .back-to-list a:hover { color: var(--teal-dark); }

@media (min-width: 1280px) {
  .blog-list { max-width: 900px; padding: 88px 40px; }
  .post-article { max-width: 1000px; padding: 88px 40px; }
  .post-article h1 { font-size: 2rem; }
  .post-article .entry-content { font-size: 1.05rem; }
}
