/* IEEC Top v2 — zero-base-v2 を WordPress 子テーマ用に移植。
   セレクタは body.ieec-v2 配下に限定。functions.php / style.css は変更しない。 */

/* IEEC トップ ゼロベース v2
   色・アクセシビリティは v6（デジタル庁）。構成と作り込みは study-abroad.jp を参照。
   SWELL の見出し装飾・枠付きカード・テーマボタンは使わない。 */

body.ieec-v2 {
  --blue: #0017C1;
  --link: #00118F;
  --text: #333333;
  --muted: #4D4D4D;
  --white: #ffffff;
  --band: #E8F1FE;
  --soft: #F0F9FF;
  --line: #767676;
  --hair: #c5c5c5;
  --focus-yellow: #FFD43D;
  --max: 1200px;
  --gutter: 32px;
  --pad: 24px;
  --header-h: 80px;
  --radius: 8px;
  --font: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

body.ieec-v2, body.ieec-v2 *,
body.ieec-v2 *::before,
body.ieec-v2 *::after { box-sizing: border-box; }

html.ieec-v2 {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 80px) + 8px);
}
html.ieec-v2:has(body.admin-bar) {
  scroll-padding-top: calc(var(--header-h, 80px) + 32px + 8px);
}
@media screen and (max-width: 782px) {
  html.ieec-v2:has(body.admin-bar) {
    scroll-padding-top: calc(var(--header-h, 64px) + 46px + 8px);
  }
}
@media screen and (max-width: 600px) {
  html.ieec-v2:has(body.admin-bar) {
    scroll-padding-top: calc(var(--header-h, 64px) + 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ieec-v2 { scroll-behavior: auto; }
  body.ieec-v2, body.ieec-v2 *,
body.ieec-v2 *::before,
body.ieec-v2 *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.ieec-v2 {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ieec-v2 img { max-width: 100%; height: auto; display: block; }
body.ieec-v2 .nowrap { white-space: nowrap; }
body.ieec-v2 a { color: var(--link); }
body.ieec-v2 p { margin: 0 0 1em; }
body.ieec-v2 p:last-child { margin-bottom: 0; }
body.ieec-v2 ul,
body.ieec-v2 dl { margin: 0; padding: 0; }
body.ieec-v2 h1,
body.ieec-v2 h2,
body.ieec-v2 h3 { margin: 0; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }

body.ieec-v2 .skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--text);
  text-decoration: underline;
}
body.ieec-v2 .skip:focus { top: 16px; }

body.ieec-v2 :focus-visible {
  outline: 4px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-yellow);
}

body.ieec-v2 .wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

/* ----- Header ----- */
body.ieec-v2 .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--white);
  border-bottom: 1px solid var(--hair);
}
/* ログイン中のみ。管理バーは 782px 超で 32px、以下で 46px。
   600px 以下では管理バーが absolute になりスクロールで消えるため top: 0。 */
body.admin-bar.ieec-v2 .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar.ieec-v2 .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar.ieec-v2 .site-header { top: 0; }
}

body.ieec-v2 .site-header__inner {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

body.ieec-v2 .logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
body.ieec-v2 .logo img {
  height: 26px;
  width: auto;
}
body.ieec-v2 .logo-tag {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

body.ieec-v2 .header-tools { margin-left: auto; }
body.ieec-v2 .nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.ieec-v2 .nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
body.ieec-v2 .nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 0;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
body.ieec-v2 .nav a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 3px; }
body.ieec-v2 .nav .btn,
body.ieec-v2 .nav .btn:link,
body.ieec-v2 .nav .btn:visited {
  text-decoration: none;
  padding: 10px 18px;
}
body.ieec-v2 .nav a.btn--solid,
body.ieec-v2 .nav a.btn--solid:link,
body.ieec-v2 .nav a.btn--solid:visited,
body.ieec-v2 .nav a.btn--solid:hover,
body.ieec-v2 .nav a.btn--solid:focus,
body.ieec-v2 .nav a.btn--solid:focus-visible,
body.ieec-v2 .nav a.btn--solid:active {
  color: var(--white);
  text-decoration: none;
}

/* ----- Buttons ----- */
body.ieec-v2 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
body.ieec-v2 .btn--solid,
body.ieec-v2 a.btn--solid:link,
body.ieec-v2 a.btn--solid:visited {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
body.ieec-v2 .btn--solid:hover,
body.ieec-v2 a.btn--solid:hover,
body.ieec-v2 a.btn--solid:focus,
body.ieec-v2 a.btn--solid:focus-visible,
body.ieec-v2 a.btn--solid:active {
  background: var(--link);
  border-color: var(--link);
  color: var(--white);
}
body.ieec-v2 .btn--outline {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}
body.ieec-v2 .btn--outline:hover { background: var(--band); }
body.ieec-v2 .btn--compact { min-height: 44px; padding: 8px 16px; font-size: 15px; }
body.ieec-v2 .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
body.ieec-v2 .arrow {
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 0.2s ease;
}
body.ieec-v2 .btn:hover .arrow,
body.ieec-v2 .text-link:hover .arrow,
body.ieec-v2 .explore a:hover .arrow,
body.ieec-v2 .countries a:hover .arrow { transform: translateX(3px); display: inline-block; }
body.ieec-v2 .arrow { display: inline-block; }

body.ieec-v2 .text-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}
body.ieec-v2 .text-link:hover { text-decoration-thickness: 3px; }

/* ----- Hero ----- */
body.ieec-v2 .hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--band);
}
body.ieec-v2 .hero__copy {
  display: flex;
  align-items: center;
}
body.ieec-v2 .hero__copy-inner {
  padding: 72px 48px 72px clamp(24px, calc((100vw - var(--max)) / 2 + 24px), calc((100vw - var(--max)) / 2 + 24px));
  max-width: none;
  width: 100%;
}
/* Align hero copy with the 1200 container's left edge */
@media (min-width: 1248px) {
  body.ieec-v2 .hero__copy-inner {
    padding-left: calc((100vw - var(--max)) / 2);
    padding-right: 56px;
  }
}
body.ieec-v2 .eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--link);
  line-height: 1.4;
}
body.ieec-v2 .hero h1 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.3;
  margin: 0 0 20px;
}
body.ieec-v2 .hero__sub {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--muted);
}
body.ieec-v2 .hero__media {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background-color: #d7e4f5;
  /* picture が 0x0 でも写真が出るよう、背景としても置く（パスは CSS からの相対） */
  background-image: url("../img/hero-window-notes.jpg");
  background-size: cover;
  background-position: center;
}
body.ieec-v2 .hero__media picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.ieec-v2 .hero__media img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: no-preference) {
  body.ieec-v2 .hero__media img {
    transform: scale(1);
    transition: transform 10s ease;
  }
  body.ieec-v2 .hero:hover .hero__media img { transform: scale(1.04); }
  body.ieec-v2 .btn { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
  body.ieec-v2 .btn:hover { transform: translateY(-1px); }
  body.ieec-v2 .text-link,
body.ieec-v2 .nav a,
body.ieec-v2 .explore a,
body.ieec-v2 .countries a,
body.ieec-v2 .news-list a {
    transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
  }
}

/* ----- Explore band ----- */
body.ieec-v2 .explore {
  background: var(--soft);
  border-bottom: 1px solid var(--hair);
}
body.ieec-v2 .explore__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 72px;
}
body.ieec-v2 .explore a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 20px 24px 20px 0;
  color: var(--link);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-right: 1px solid var(--hair);
}
body.ieec-v2 .explore a:last-child { border-right: 0; padding-right: 0; }
body.ieec-v2 .explore a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 3px; }

/* ----- Sections ----- */
body.ieec-v2 .section { padding: 96px 0; }
body.ieec-v2 .section--tight { padding: 64px 0; }
body.ieec-v2 .section--soft { background: var(--soft); }
body.ieec-v2 .section--band { background: var(--band); }

body.ieec-v2 .kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--link);
  line-height: 1.4;
}
body.ieec-v2 .section h2 {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.35;
  margin: 0 0 32px;
}
body.ieec-v2 .lead {
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 40px;
  max-width: 42em;
}
body.ieec-v2 .more { margin: 36px 0 0; }

/* ----- Stats (unboxed, ruled) ----- */
body.ieec-v2 .stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
body.ieec-v2 .stat {
  padding: 28px 20px 28px 0;
  margin-right: 20px;
  border-right: 1px solid var(--hair);
}
body.ieec-v2 .stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
body.ieec-v2 .stat dt {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin: 0 0 8px;
}
body.ieec-v2 .stat dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ----- Business ----- */
body.ieec-v2 .business {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
body.ieec-v2 .media-frame {
  margin: 0;
  overflow: hidden;
  background: #e8eef5;
  aspect-ratio: 4 / 3;
}
body.ieec-v2 .media-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
body.ieec-v2 .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.ieec-v2 .media-frame--study img { object-position: 50% 70%; }
body.ieec-v2 .media-frame--reading img { object-position: 50% 43%; }
body.ieec-v2 .media-frame--city img { object-position: 50% 50%; }
body.ieec-v2 .media-frame--online img { object-position: 50% 50%; }

@media (prefers-reduced-motion: no-preference) {
  body.ieec-v2 .media-frame img { transition: transform 0.7s ease; }
  body.ieec-v2 .media-frame:hover img { transform: scale(1.05); }
}

body.ieec-v2 .streams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
body.ieec-v2 .streams > div {
  padding: 0 0 8px;
}
body.ieec-v2 .streams > div:first-child {
  padding-right: 40px;
  border-right: 1px solid var(--hair);
}
body.ieec-v2 .streams h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
}
body.ieec-v2 .streams p { margin: 0 0 16px; }
body.ieec-v2 .streams ul {
  list-style: none;
  margin: 0 0 20px;
}
body.ieec-v2 .streams li {
  padding: 8px 0;
  border-top: 1px solid var(--hair);
  font-size: 16px;
}
body.ieec-v2 .streams li:last-child { border-bottom: 1px solid var(--hair); }

body.ieec-v2 .fineprint {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ----- Reasons ----- */
body.ieec-v2 .reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
body.ieec-v2 .reason { margin: 0; }
body.ieec-v2 .reason .media-frame { aspect-ratio: 16 / 10; margin-bottom: 20px; }
body.ieec-v2 .reason__index {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
body.ieec-v2 .reason h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 10px;
}
body.ieec-v2 .reason p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

/* ----- Countries ----- */
body.ieec-v2 .countries {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
body.ieec-v2 .countries a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 14px 16px 14px 0;
  margin-right: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--hair);
}
body.ieec-v2 .countries a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}
body.ieec-v2 .reviews-note {
  margin: 28px 0 0;
  font-size: 16px;
}

/* ----- CTA ----- */
/* .cta は .wrap の内側。同じ要素に両方を付けると、max-width:800px と margin:0 が
   .wrap の幅・中央寄せを上書きし、見出しが画面左端に付く。 */
body.ieec-v2 .cta {
  text-align: left;
  max-width: 800px;
  margin: 0;
}
body.ieec-v2 .wrap.cta {
  width: min(100% - (var(--pad) * 2), var(--max));
  max-width: none;
  margin-inline: auto;
}
body.ieec-v2 .wrap.cta > * {
  max-width: 800px;
}
body.ieec-v2 .cta h2 { margin-bottom: 16px; }
body.ieec-v2 .cta .lead { margin-bottom: 32px; }
body.ieec-v2 .section--band .btn--outline { background: var(--white); }

/* ----- News / FAQ reading width ----- */
/* 他セクションの .wrap（最大 1200px）と同じ幅にする。.reading の 860px 制限を外す。 */
body.ieec-v2 .reading { max-width: none; width: 100%; }
body.ieec-v2 .news-list { list-style: none; border-top: 1px solid var(--line); }
body.ieec-v2 .news-list a {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}
body.ieec-v2 .news-list__thumb {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--band);
  margin-top: 2px;
}
body.ieec-v2 .news-list__img,
body.ieec-v2 .news-list__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
body.ieec-v2 .news-list__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
body.ieec-v2 .news-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}
body.ieec-v2 .news-list time {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.ieec-v2 .news-list__cat {
  font-size: 13px;
  font-weight: 500;
  color: var(--link);
  letter-spacing: 0.04em;
}
body.ieec-v2 .news-list__title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}
body.ieec-v2 .news-list__empty {
  padding: 20px 0;
  color: var(--muted);
  list-style: none;
}
body.ieec-v2 .news-list a:hover { color: var(--link); }
body.ieec-v2 .news-list a:hover .news-list__title {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 3px;
}

/* ----- FAQ ----- */
body.ieec-v2 .faq { border-top: 1px solid var(--line); }
body.ieec-v2 .faq details { border-bottom: 1px solid var(--hair); }
body.ieec-v2 .faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  padding: 20px 44px 20px 0;
  min-height: 44px;
  position: relative;
}
body.ieec-v2 .faq summary::-webkit-details-marker { display: none; }
body.ieec-v2 .faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
body.ieec-v2 .faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
body.ieec-v2 .faq .answer {
  margin: 0;
  padding: 0 0 22px;
  color: var(--text);
}
body.ieec-v2 .faq details:hover summary { color: var(--link); }

/* ----- Orgs ----- */
body.ieec-v2 .orgs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
body.ieec-v2 .orgs li {
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 16px;
}
body.ieec-v2 .orgs li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-bottom: 0;
}
body.ieec-v2 .orgs { border-bottom: 1px solid var(--line); }

/* ----- Footer ----- */
body.ieec-v2 .site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
body.ieec-v2 .footer-top { margin-bottom: 40px; }
body.ieec-v2 .footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
body.ieec-v2 .footer-brand .logo img { height: 24px; }
body.ieec-v2 .footer-brand p { margin: 0 0 8px; }
body.ieec-v2 .footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--hair);
}
body.ieec-v2 .footer-legal li {
  display: flex;
  align-items: center;
}
body.ieec-v2 .footer-legal li:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 12px;
  background: var(--line);
  margin: 0 14px;
}
body.ieec-v2 .footer-legal a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body.ieec-v2 .footer-legal a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 3px;
}
body.ieec-v2 .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
body.ieec-v2 .footer-bottom p { margin: 0; }
body.ieec-v2 .credit { color: var(--muted); }

/* ----- SP ----- */
@media (max-width: 767px) {
  body.ieec-v2 { --pad: 20px; --header-h: 64px; --gutter: 20px; }

  body.ieec-v2 .logo-tag { display: none; }
  body.ieec-v2 .logo img { height: 22px; }

  body.ieec-v2 .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  body.ieec-v2 .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    margin: 0;
  }
  body.ieec-v2 .site-header.is-open .nav { display: flex; }
  body.ieec-v2 .nav a {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--hair);
    font-size: 16px;
  }
  body.ieec-v2 .nav .btn {
    margin-top: 16px;
    border-bottom: 0;
    justify-content: center;
  }

  body.ieec-v2 .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.ieec-v2 .hero__media {
    order: -1;
    height: 38vh;
    min-height: 200px;
    max-height: 300px;
  }
  body.ieec-v2 .hero__media img { position: absolute; }
  body.ieec-v2 .hero__copy-inner { padding: 36px 20px 40px; }
  body.ieec-v2 .hero h1 { font-size: 32px; }

  body.ieec-v2 .explore__inner {
    grid-template-columns: 1fr 1fr;
  }
  body.ieec-v2 .explore a {
    justify-content: space-between;
    padding: 16px 16px 16px 0;
    border-bottom: 1px solid var(--hair);
  }
  body.ieec-v2 .explore a:nth-child(odd) { border-right: 1px solid var(--hair); padding-right: 16px; }
  body.ieec-v2 .explore a:nth-child(even) { border-right: 0; padding-left: 16px; padding-right: 0; }
  body.ieec-v2 .explore a:nth-last-child(-n+2) { border-bottom: 0; }

  body.ieec-v2 .section { padding: 64px 0; }
  body.ieec-v2 .section--tight { padding: 48px 0; }

  body.ieec-v2 .stats { grid-template-columns: 1fr 1fr; }
  body.ieec-v2 .stat {
    margin-right: 0;
    padding: 20px 16px 20px 0;
  }
  body.ieec-v2 .stat:nth-child(odd) { padding-right: 16px; }
  body.ieec-v2 .stat:nth-child(even) { border-right: 0; padding-left: 16px; padding-right: 0; }
  body.ieec-v2 .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  body.ieec-v2 .stat:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    padding-left: 0;
  }
  body.ieec-v2 .stat dt { font-size: 28px; }

  body.ieec-v2 .business { grid-template-columns: 1fr; gap: 28px; }
  body.ieec-v2 .streams { grid-template-columns: 1fr; gap: 32px; }
  body.ieec-v2 .streams > div:first-child {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hair);
  }

  body.ieec-v2 .reasons { grid-template-columns: 1fr; gap: 36px; }

  body.ieec-v2 .countries { grid-template-columns: 1fr; }
  body.ieec-v2 .countries a { margin-right: 0; padding-right: 0; }

  body.ieec-v2 .news-list a {
    gap: 16px;
    padding: 14px 0;
  }
  body.ieec-v2 .news-list__thumb {
    flex-basis: 112px;
    width: 112px;
  }

  body.ieec-v2 .orgs { grid-template-columns: 1fr; }

  body.ieec-v2 .footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  body.ieec-v2 .footer-legal li:not(:last-child)::after { display: none; }
  body.ieec-v2 .footer-legal a { border-bottom: 0; width: 100%; }
  body.ieec-v2 .site-footer { padding: 48px 0 32px; }
}

@media (min-width: 768px) and (max-width: 999px) {
  body.ieec-v2 .hero { grid-template-columns: 1fr 1fr; min-height: 480px; }
  body.ieec-v2 .hero__media { min-height: 480px; }
  body.ieec-v2 .hero__copy-inner { padding: 48px 32px; }
  body.ieec-v2 .stats { grid-template-columns: repeat(3, 1fr); }
  body.ieec-v2 .stat:nth-child(3) { border-right: 0; }
  body.ieec-v2 .stat:nth-child(n+4) { border-top: 1px solid var(--hair); }
  body.ieec-v2 .business { grid-template-columns: 1fr; gap: 36px; }
  body.ieec-v2 .countries { grid-template-columns: repeat(3, 1fr); }
  body.ieec-v2 .reasons { gap: 28px 24px; }
}

body.ieec-v2 .break-sp { display: none; }
@media (max-width: 767px) {
  body.ieec-v2 .break-sp { display: inline; }
}


/* -------------------------------------------------------------------------
   SWELL 由来の装飾が wp_head() 経由で残っても、このテンプレート内では無効化する。
   functions.php は変更しない。
   ------------------------------------------------------------------------- */
body.ieec-v2 h1::before,
body.ieec-v2 h1::after,
body.ieec-v2 h2::before,
body.ieec-v2 h2::after,
body.ieec-v2 h3::before,
body.ieec-v2 h3::after,
body.ieec-v2 h4::before,
body.ieec-v2 h4::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
  box-shadow: none !important;
}
body.ieec-v2 .l-header,
body.ieec-v2 .l-footer,
body.ieec-v2 .w-fix-btns,
body.ieec-v2 .c-fixbtn,
body.ieec-v2 .p-fixBtn,
body.ieec-v2 #page-top {
  display: none !important;
}
