/*
Theme Name: IKOAN WORKS
Theme URI: https://example.com/
Author: IKOAN WORKS
Description: IKOAN WORKS 公式サイト用オリジナルテーマ。白基調×ミニマルで、明朝体の見出しと瑠璃色のアクセント、細い円のモチーフが特徴です。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: ikoan-works
*/

/* ==========================================================
   0. Tokens
   ========================================================== */
:root {
  --paper: #fcfcfa;
  --ink: #17181c;
  --ink-soft: #55575e;
  --mist: #f3f3ef;
  --line: #e6e6e1;
  --blue: #2547a8;
  --blue-soft: #eef1f9;

  --font-en: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-min: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --w-content: 1120px;
  --pad-x: clamp(20px, 5vw, 48px);
  --sec-y: clamp(80px, 12vw, 150px);
}

/* ==========================================================
   1. Reset / base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; transition: opacity 0.25s ease; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.iw-container {
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ==========================================================
   2. Header
   ========================================================== */
.iw-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(252, 252, 250, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.iw-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.iw-logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.iw-logo__mark {
  width: 14px; height: 14px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  display: inline-block;
}
.iw-nav ul { display: flex; gap: 36px; }
.iw-nav a {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.iw-nav a:hover { color: var(--ink); opacity: 1; }
.iw-header__cta {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.iw-header__cta:hover { background: var(--ink); color: var(--paper); opacity: 1; }

/* Mobile nav */
.iw-menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.iw-menu-toggle span {
  display: block; height: 1.5px; background: var(--ink);
  margin: 6px 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 860px) {
  .iw-menu-toggle { display: block; }
  .iw-header__cta { display: none; }
  .iw-nav {
    position: fixed; inset: 72px 0 auto; background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 28px var(--pad-x) 36px;
    transform: translateY(-115%);
    transition: transform 0.35s ease;
  }
  .iw-nav.is-open { transform: translateY(0); }
  .iw-nav ul { flex-direction: column; gap: 20px; }
  .iw-nav a { font-size: 13px; }
  body.nav-open .iw-menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .iw-menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .iw-menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ==========================================================
   3. Hero
   ========================================================== */
.iw-hero {
  position: relative;
  padding: calc(72px + clamp(70px, 12vw, 140px)) 0 var(--sec-y);
  overflow: hidden;
}
.iw-hero__eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.iw-hero__eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--blue);
}
.iw-hero__title {
  font-family: var(--font-min);
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: 1.55;
  letter-spacing: 0.06em;
  font-weight: 600;
  max-width: 20em;
}
.iw-hero__lead {
  margin-top: 34px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 15px;
}
.iw-hero__actions { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.iw-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; letter-spacing: 0.08em;
  padding: 16px 34px; border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.iw-btn:hover { background: var(--paper); color: var(--ink); opacity: 1; }
.iw-btn--ghost { background: transparent; color: var(--ink); }
.iw-btn--ghost:hover { background: var(--ink); color: var(--paper); }
/* Signature: hairline circle */
.iw-hero__circle {
  position: absolute;
  top: 50%; right: -8vw;
  width: clamp(320px, 42vw, 620px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.iw-hero__circle::after {
  content: "";
  position: absolute; inset: 11%;
  border: 1px solid var(--blue);
  border-radius: 50%;
  opacity: 0.25;
}

/* ==========================================================
   4. Sections
   ========================================================== */
.iw-section { padding-block: var(--sec-y); }
.iw-section--mist { background: var(--mist); }
.iw-sechead { margin-bottom: clamp(44px, 6vw, 72px); }
.iw-sechead__en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.iw-sechead__en::before {
  content: ""; width: 9px; height: 9px;
  border: 1.5px solid var(--blue); border-radius: 50%;
}
.iw-sechead__ja {
  font-family: var(--font-min);
  font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.iw-sechead__lead { margin-top: 20px; color: var(--ink-soft); max-width: 38em; font-size: 14.5px; }

/* Reveal on scroll */
.iw-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.iw-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .iw-reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   5. Services
   ========================================================== */
.iw-services { border-top: 1px solid var(--line); }
.iw-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px 48px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.iw-service__head { display: flex; flex-direction: column; gap: 6px; }
.iw-service__en {
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
}
.iw-service__ja {
  font-family: var(--font-min);
  font-size: 21px; letter-spacing: 0.06em; font-weight: 600;
}
.iw-service__desc { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
a.iw-service--link { transition: background 0.25s ease; }
a.iw-service--link:hover { background: var(--mist); opacity: 1; }
.iw-service__more {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--blue);
}
@media (max-width: 720px) {
  .iw-service { grid-template-columns: 1fr; gap: 12px; }
}

/* Service detail page */
.iw-service-others { margin-top: 90px; max-width: 760px; }
.iw-service-others__list { border-top: 1px solid var(--line); }
.iw-service-others__list li { border-bottom: 1px solid var(--line); }
.iw-service-others__list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 4px;
  font-family: var(--font-min); font-weight: 600; font-size: 16px; letter-spacing: 0.05em;
}
.iw-service-others__list span { font-family: var(--font-en); color: var(--ink-soft); }
.iw-service-cta {
  margin-top: 70px;
  border: 1px solid var(--line);
  padding: clamp(36px, 6vw, 56px);
  text-align: center;
  max-width: 760px;
}
.iw-service-cta__text {
  font-family: var(--font-min); font-weight: 600;
  font-size: 19px; letter-spacing: 0.06em;
  margin-bottom: 24px;
}

/* ==========================================================
   6. Works
   ========================================================== */
.iw-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 32px;
}
.iw-work-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--mist);
  overflow: hidden;
  border: 1px solid var(--line);
}
.iw-work-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.iw-work-card:hover .iw-work-card__thumb img { transform: scale(1.04); }
.iw-work-card__meta {
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue);
}
.iw-work-card__title {
  margin-top: 8px;
  font-family: var(--font-min);
  font-size: 18px; font-weight: 600; letter-spacing: 0.04em;
  line-height: 1.7;
}
.iw-work-card__excerpt { margin-top: 8px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.9; }
.iw-more { margin-top: 56px; text-align: center; }

/* ==========================================================
   7. Pricing
   ========================================================== */
.iw-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.iw-plan {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 42px 34px 38px;
  display: flex; flex-direction: column;
}
.iw-plan--featured { border-color: var(--blue); }
.iw-plan__name {
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blue);
}
.iw-plan__ja {
  font-family: var(--font-min);
  font-size: 20px; font-weight: 600; margin-top: 8px; letter-spacing: 0.06em;
}
.iw-plan__price {
  margin-top: 22px;
  font-family: var(--font-en);
  font-size: 32px; font-weight: 500; letter-spacing: 0.02em;
}
.iw-plan__price small { font-size: 13px; color: var(--ink-soft); font-family: var(--font-body); letter-spacing: 0.04em; }
.iw-plan__list { margin-top: 26px; border-top: 1px solid var(--line); flex: 1; }
.iw-plan__list li {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft);
  display: flex; gap: 10px; align-items: baseline;
}
.iw-plan__list li::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border: 1.2px solid var(--blue); border-radius: 50%;
  transform: translateY(-1px);
}
.iw-plan__note { margin-top: 20px; font-size: 12px; color: var(--ink-soft); }
.iw-pricing-foot { margin-top: 34px; font-size: 13px; color: var(--ink-soft); }

/* ==========================================================
   8. Flow (ご依頼の流れ)
   ========================================================== */
.iw-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.iw-step {
  border-left: 1px solid var(--line);
  padding: 6px 24px 10px;
}
.iw-step__num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--blue);
}
.iw-step__ja {
  font-family: var(--font-min);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 14px;
  line-height: 1.7;
}
.iw-step__desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}
@media (max-width: 920px) {
  .iw-flow { grid-template-columns: 1fr; gap: 30px; }
  .iw-step { padding: 2px 0 2px 24px; }
}

/* ==========================================================
   8b. FAQ
   ========================================================== */
.iw-faq { max-width: 780px; border-top: 1px solid var(--line); }
.iw-faq details { border-bottom: 1px solid var(--line); }
.iw-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.9;
}
.iw-faq summary::-webkit-details-marker { display: none; }
.iw-faq summary::before {
  content: "Q";
  font-family: var(--font-en);
  color: var(--blue);
  font-weight: 600;
  flex: none;
}
.iw-faq summary::after {
  content: "+";
  font-family: var(--font-en);
  color: var(--ink-soft);
  margin-left: auto;
  font-size: 18px;
  transition: transform 0.25s ease;
  flex: none;
}
.iw-faq details[open] summary::after { transform: rotate(45deg); }
.iw-faq__a {
  display: flex;
  gap: 16px;
  padding: 0 4px 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}
.iw-faq__a::before {
  content: "A";
  font-family: var(--font-en);
  color: var(--ink);
  font-weight: 600;
  flex: none;
}

/* ==========================================================
   9. Blog / News
   ========================================================== */
.iw-post-list { border-top: 1px solid var(--line); }
.iw-post-row {
  display: grid;
  grid-template-columns: 110px 130px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.iw-post-row__date {
  font-family: var(--font-en);
  font-size: 12.5px; letter-spacing: 0.1em; color: var(--ink-soft);
}
.iw-post-row__cat {
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
}
.iw-post-row__title { font-size: 15px; font-weight: 500; line-height: 1.8; }
.iw-post-row__arrow { font-family: var(--font-en); color: var(--ink-soft); }
@media (max-width: 720px) {
  .iw-post-row { grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 6px 16px; }
  .iw-post-row__title { grid-column: 1 / -1; }
  .iw-post-row__arrow { display: none; }
}

/* ==========================================================
   9. Contact
   ========================================================== */
.iw-contact { text-align: center; }
.iw-contact .iw-sechead__en { justify-content: center; }
.iw-contact__lead { color: var(--ink-soft); max-width: 34em; margin: 0 auto 44px; font-size: 14.5px; }
.iw-contact__form {
  max-width: 640px; margin-inline: auto; text-align: left;
}
/* Contact Form 7 styling */
.iw-contact__form .wpcf7 label { font-size: 13px; letter-spacing: 0.06em; color: var(--ink); display: block; margin-bottom: 22px; }
.iw-contact__form .wpcf7 input[type="text"],
.iw-contact__form .wpcf7 input[type="email"],
.iw-contact__form .wpcf7 input[type="tel"],
.iw-contact__form .wpcf7 textarea,
.iw-contact__form .wpcf7 select {
  width: 100%;
  margin-top: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.iw-contact__form .wpcf7 input:focus,
.iw-contact__form .wpcf7 textarea:focus { border-color: var(--blue); outline: none; }
.iw-contact__form .wpcf7 input[type="submit"] {
  display: inline-flex;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font: inherit; font-size: 14px; letter-spacing: 0.1em;
  padding: 15px 48px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.iw-contact__form .wpcf7 input[type="submit"]:hover { background: transparent; color: var(--ink); }
.iw-contact__fallback {
  border: 1px dashed var(--line);
  padding: 34px; text-align: center; color: var(--ink-soft); font-size: 13.5px;
}

/* ==========================================================
   10. Footer
   ========================================================== */
.iw-footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 90px) 0 40px;
}
.iw-footer__mark {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.14em;
  display: flex; align-items: center; gap: 16px;
}
.iw-footer__mark .iw-logo__mark { width: 18px; height: 18px; }
.iw-footer__row {
  margin-top: 44px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.iw-footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.iw-footer__nav a {
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.iw-footer__copy { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-soft); }

/* ==========================================================
   11. Inner pages (blog, single, page)
   ========================================================== */
.iw-page {
  padding: calc(72px + clamp(56px, 8vw, 90px)) 0 var(--sec-y);
}
.iw-page__title {
  font-family: var(--font-min);
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: 0.08em; font-weight: 600;
  margin-bottom: 14px;
}
.iw-page__meta {
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.14em; color: var(--ink-soft);
  margin-bottom: clamp(36px, 5vw, 56px);
  display: flex; gap: 18px;
}
.iw-entry { max-width: 760px; }
.iw-entry h2 {
  font-family: var(--font-min); font-size: 24px; font-weight: 600;
  margin: 2.2em 0 0.8em; letter-spacing: 0.06em;
  padding-left: 18px; border-left: 2px solid var(--blue);
}
.iw-entry h3 { font-size: 18px; font-weight: 700; margin: 2em 0 0.7em; }
.iw-entry a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.iw-entry img { margin: 1.6em 0; border: 1px solid var(--line); }
.iw-entry ul { list-style: none; margin: 1em 0; }
.iw-entry ul li { padding-left: 20px; position: relative; margin-bottom: 0.4em; }
.iw-entry ul li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 7px; height: 7px; border: 1.2px solid var(--blue); border-radius: 50%;
}
.iw-entry ol { list-style: decimal; padding-left: 1.4em; margin: 1em 0; }
.iw-entry blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 1px solid var(--line); color: var(--ink-soft);
}
.iw-pagination { margin-top: 60px; display: flex; gap: 10px; font-family: var(--font-en); }
.iw-pagination .page-numbers {
  border: 1px solid var(--line); border-radius: 50%;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.iw-pagination .page-numbers.current { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* WP alignment basics */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
