/*
Theme Name: iwatanigakuen
Theme URI: https://devandnet.com/gakuen/
Author: andnet
Version: 1.0.0
Text Domain: iwatanigakuen
*/

/* ------------------------------------------------------------
  Base
------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* 英字は Plus Jakarta Sans、日本語は Noto Sans JP */
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", Arial, sans-serif;
  font-weight: 400;
  color: #383838;
  line-height: 1.7;
}

h2,
h3 {
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ------------------------------------------------------------
  Layout
------------------------------------------------------------ */
.iwa-container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Wide container（TOPやグリッド用） */
.iwa-container--wide {
  width: min(1280px, 92%);
  margin-inline: auto;
}

/* Narrow container (specific pages) */
.iwa-container--narrow {
  width: min(800px, 92%);
  margin-inline: auto;
}

/* single-news：コンテンツ幅を約800pxに */
.iwa-container.iwa-single {
  width: min(800px, 92%);
  margin-inline: auto;
}

/* ------------------------------------------------------------
  Header / Nav
------------------------------------------------------------ */
.iwa-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);

  transform: translate3d(0, -110%, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}

/* 高さは inner の min-height で管理 */
.iwa-header {
  height: auto !important;
}

html.is-header-shown .iwa-header {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .iwa-header {
    transition: none !important;
  }
}

/* admin bar offset */
body.admin-bar .iwa-header {
  top: 32px;
}

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

/* fixedヘッダー分の余白（例：72px）
   - トップ（home）はヒーロー優先で 0 */
body {
  padding-top: 72px;
}

body.home {
  padding-top: 0;
}

/* 上部ヘッダー（ターゲット層向けリンク） */
.iwa-header__top {
  display: none;
  /* UtilityはOverlayへ移動 */
}

.iwa-header__top-inner {
  padding: 10px 0;
}

.iwa-header__utility {
  display: block;
  width: 100%;
}

.iwa-header__utility-menu {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.iwa-header__utility-menu li {
  position: relative;
  padding: 0;
  flex: 1;
  text-align: center;
}

.iwa-header__utility-menu li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: #ddd;
}

.iwa-header__utility-menu li:last-child::after {
  display: none;
}

.iwa-header__utility-menu a {
  display: inline-block;
  padding: 4px 0;
  font-size: 12px;
  color: #333;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.iwa-header__utility-menu a:hover {
  color: #000;
  text-decoration: underline;
}

/* メインヘッダー */


.iwa-header__inner {
  max-width: none !important;
  width: 100%;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 24px;
}

.iwa-header__brand {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  min-width: 220px;
  flex-direction: column;
  gap: 6px;
}

.iwa-header__logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.iwa-header__logo-link:hover {
  text-decoration: none;
}

.iwa-header__logo-img {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

.iwa-header__org-name {
  font-size: 13px;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.iwa-nav {
  flex: 1;
  display: block;
}

.iwa-nav--primary {
  margin-left: auto;
}

.iwa-nav__menu {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
}

.iwa-nav__menu a {
  display: inline-block;
  padding: 8px 4px;
  font-size: 14px;
  color: #00A9F8;
  letter-spacing: 0.02em;
  font-weight: 400;
  white-space: nowrap;
}

.iwa-nav__menu a:hover {
  text-decoration: underline;
}

/* ヘッダー内の underline（下線/下線アニメ）を完全に無し */
.iwa-header a {
  text-decoration: none !important;
}

.iwa-nav--primary a::after,
.iwa-nav--primary a::before {
  content: none !important;
  display: none !important;
}

.iwa-nav--primary .iwa-menu>li>a {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* 既存の hover underline を上書き */
.iwa-header .iwa-nav__menu a:hover {
  text-decoration: none !important;
}

/* サブメニューはグローバルでは一切出さない（念のため） */
.iwa-nav--primary .sub-menu {
  display: none !important;
}

/* Header: primary + burger */
.iwa-nav--primary .iwa-menu {
  display: flex;
  gap: 26px;
  align-items: center;
}

.iwa-nav--primary .iwa-menu>li>a {
  padding: 10px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .16s ease, opacity .16s ease;
}

.iwa-nav--primary .iwa-menu>li>a:hover {
  text-decoration: none;
  background: transparent !important;
  opacity: .75;
  /* さりげなく */
}

.iwa-nav--primary .iwa-menu>li.current-menu-item>a,
.iwa-nav--primary .iwa-menu>li.current-menu-ancestor>a {
  background: transparent !important;
  /* グレー丸背景を消す */
  font-weight: 700;
  /* 現在地は太字だけ */
  color: #383838 !important;
}

/* Burger button */
.iwa-burger {
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .16s ease;
  flex-shrink: 0;
}

.iwa-burger:hover {
  background: rgba(0, 0, 0, .05);
}

.iwa-burger__bars {
  width: 18px;
  height: 2px;
  position: relative;
  display: block;
  border-radius: 2px;
  background: rgba(0, 0, 0, .75);
}

.iwa-burger__bars::before,
.iwa-burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .75);
}

.iwa-burger__bars::before {
  top: -5px;
}

.iwa-burger__bars::after {
  top: 5px;
}

/* Overlay */
.iwa-overlaynav {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.iwa-overlaynav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .18s ease;
}

.iwa-overlaynav__panel {
  position: absolute;
  inset: 16px;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;

  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .18s ease, transform .18s ease;
  /* panel自体はスクロールさせない（bodyのみスクロール） */
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  outline: none;
}

.iwa-overlaynav__top {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

.iwa-overlaynav__brand img {
  display: block;
  max-width: 180px;
  height: auto;
}

.iwa-overlaynav__body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

.iwa-overlaynav__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.iwa-overlaynav__logo {
  width: 180px;
  height: auto;
  display: block;
}

.iwa-overlaynav__close {
  position: static !important;
  margin: 0 !important;
  display: block;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, .04);
}

.iwa-overlaynav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 0;
}

@media (max-width: 900px) {
  .iwa-overlaynav__panel {
    inset: 12px;
  }

  .iwa-overlaynav__grid {
    grid-template-columns: 1fr;
  }

  .iwa-nav--primary {
    display: none;
  }

  /* SPはバーガーのみ */
}

.iwa-overlaynav__ttl {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .06em;
  opacity: .7;
}

.iwa-ovmenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* PC: Overlay内を実質3カラムに（Primary=左1カラム / Utility=右2カラム） */
@media (min-width: 901px) {
  .iwa-overlaynav__grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }

  .iwa-overlaynav__sec--primary {
    grid-column: 1;
  }

  .iwa-overlaynav__sec--utility {
    grid-column: 2 / span 2;
  }

  /* Utility menu: 順番で2カラムに流す */
  .iwa-ovmenu.iwa-ovmenu--utility {
    column-count: 2;
    column-gap: 24px;
  }

  .iwa-ovmenu.iwa-ovmenu--utility>li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
  }
}

.iwa-ovmenu a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  transition: background .16s ease;
  line-height: 1;
}

.iwa-ovmenu a:hover {
  background: rgba(0, 0, 0, .05);
}

/* open state */
html.is-ov-open {
  overflow: hidden;
}

html.is-ov-open body {
  overflow: hidden;
}

html.is-ov-open .iwa-overlaynav__backdrop {
  opacity: 1;
}

html.is-ov-open .iwa-overlaynav__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {

  .iwa-overlaynav__backdrop,
  .iwa-overlaynav__panel {
    transition: none !important;
  }
}

/* モバイルメニューボタン */
.iwa-header__menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #00A9F8;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  gap: 4px;
}

.iwa-header__menu-dots {
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
}

.iwa-header__menu-dots span {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.iwa-header__menu-text {
  font-size: 10px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* ヘッダー下の黄色の帯 */
.iwa-header__accent {
  height: 8px;
  background: #FFFF99;
  width: 100%;
}

/* モバイル対応 */
@media (max-width: 900px) {
  .iwa-header__top {
    display: none;
  }

  /* ヘッダーは共通で fixed（上の .iwa-header を踏襲） */
  body {
    padding-top: 80px;
    /* ヘッダー分の余白（被り防止） */
  }

  body.home {
    padding-top: 80px;
    /* モバイルはトップでもヘッダー表示のため余白を確保 */
  }

  .iwa-header__inner {
    padding-left: 16px;
    padding-right: 16px;
    min-height: 68px;
    padding-top: 6px;
    padding-bottom: 6px;
    align-items: center;
  }

  .iwa-header__brand {
    min-width: auto;
  }

  .iwa-header__logo-img {
    width: 260px;
    height: auto;
    margin-bottom: 0;
  }

  .iwa-header__org-name {
    font-size: 12px;
  }

  .iwa-nav {
    display: none;
  }

  .iwa-header__menu-toggle {
    display: none;
  }

  /* 旧ボタンは未使用 */

  .iwa-header__logo-link {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .iwa-header__org-name {
    margin-top: 0;
  }
}

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

@media (max-width: 768px) {
  .iwa-header__logo {
    font-size: 28px;
  }

  .iwa-header__org-name {
    font-size: 11px;
  }
}

/* ------------------------------------------------------------
  Sections / Headings
------------------------------------------------------------ */
.iwa-section {
  padding: 64px 0;
}

.iwa-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.iwa-section__title {
  margin: 0;
}

.iwa-section__en {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 70px;
  color: #00A9F8;
  line-height: 1.1;
}

.iwa-section__ja {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-top: 6px;
}

/* Mobile: section heading size */
@media (max-width: 600px) {
  .iwa-section__en {
    font-size: 52px;
  }
}

.iwa-link {
  font-weight: 700;
  font-size: 14px;
}

.iwa-page-hero {
  padding: 60px 0 32px;
  text-align: center;
}

.iwa-page-hero__en {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  color: #00A9F8;
}

.iwa-page-hero__ja {
  margin: 10px 0 0;
  font-weight: 700;
  color: #111;
}

.iwa-page-hero__lead {
  margin: 14px 0 0;
  color: #444;
}

/* Mobile: lead text left-align + side padding */
@media (max-width: 900px) {
  .iwa-page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .iwa-page-hero__lead {
    text-align: left;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ------------------------------------------------------------
  Grid
------------------------------------------------------------ */
.iwa-grid {
  display: grid;
  gap: 30px;
}

.iwa-section--school-archive .iwa-grid,
.iwa-section--group-archive .iwa-grid {
  gap: 70px;
}

/* Front page: School section row-gap only */
body.front-page .iwa-section--school .iwa-grid,
body.home .iwa-section--school .iwa-grid {
  row-gap: 40px;
}

.iwa-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.iwa-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.iwa-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {

  .iwa-grid--2,
  .iwa-grid--3,
  .iwa-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {

  .iwa-grid--2,
  .iwa-grid--3,
  .iwa-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
  Card common
------------------------------------------------------------ */
.iwa-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.iwa-card.is-noimage .iwa-card__noimage {
  background: #eee;
}

/* Newsセクションのカード：角丸・ボーダーなし */
.iwa-section--news .iwa-card {
  border: none;
  border-radius: 0;
}

/* ------------------------------------------------------------
  Buttons
------------------------------------------------------------ */
.iwa-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #111;
}

.iwa-btn--primary {
  background: #111;
  color: #fff;
}

.iwa-btn--outline {
  background: transparent;
}

.iwa-btn--pill {
  border-radius: 999px;
  padding-inline: 22px;
}

/* 役割別ボタン（カード内 / 一覧ボタン） */
.iwa-btn--card {
  border-color: #111;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}

/* =========================
  Button hover motion (READ MORE)
========================= */
/* 矢印を擬似要素で追加（既存の「READ MORE」を崩さない） */
.iwa-btn--card::after {
  content: "→";
  display: inline-block;
  transform: translateX(0);
  transition: transform .25s ease;
}

@media (any-hover: hover) {

  .iwa-btn--card:hover,
  .iwa-btn--card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
  }

  .iwa-btn--card:hover::after,
  .iwa-btn--card:focus-visible::after {
    transform: translateX(4px);
  }
}

/* 動きを減らす設定の人向け */
@media (prefers-reduced-motion: reduce) {

  .iwa-btn--card,
  .iwa-btn--card::after {
    transition: none !important;
  }
}

.iwa-btn--section {
  border-color: #00A9F8;
  color: #00A9F8;
  font-weight: 700;
  padding: 18px 42px;
  min-width: min(520px, 100%);
  text-align: center;
}

.iwa-more {
  margin-top: 50px;
  text-align: center;
}

/* ------------------------------------------------------------
  Front Hero (仮)
------------------------------------------------------------ */
/* ------------------------------------------------------------
  Front Page Hero
------------------------------------------------------------ */
.iwa-hero {
  position: relative;
  /* first view: occupy full viewport */
  height: 100svh;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO背景（世界地図） */
.iwa-hero::before {
  display: none;
}

/* 旧背景（無効化） */
.iwa-hero::after {
  display: none;
}

.iwa-hero__bg {
  position: absolute;
  inset: 0;
  background: url("images/herobackmap.webp") right center / 200% auto no-repeat;
  z-index: 0;
  will-change: background-position;
  animation: heroMapPan 120s linear infinite alternate;
}

@keyframes heroMapPan {
  0% {
    background-position: left center;
  }

  100% {
    background-position: right center;
  }
}

@media (prefers-reduced-motion: reduce) {

  .iwa-hero__bg,
  .iwa-hero__thumbs,
  .iwa-hero__thumb,
  .iwa-hero__marquee-track {
    animation: none !important;
  }

  .iwa-hero__thumb.js-bubble,
  .iwa-hero__thumb.js-bubble--lg,
  .iwa-hero__thumb[data-bubble="1"],
  .iwa-hero__thumb.js-bubble img,
  .iwa-hero__thumb.js-bubble--lg img,
  .iwa-hero__thumb[data-bubble="1"] img {
    transition: none !important;
  }
}


.iwa-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  width: 100%;
  align-items: center;
}

/* copy（タイトル＋数字） */
.iwa-hero__copy {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* タイトルを中央に安定配置 */
}

.iwa-hero__logo {
  display: none;
  margin: 0 auto 18px;
}

.iwa-hero__logo img {
  display: block;
  width: 200px;
  height: auto;
}

@media (min-width: 1025px) {
  .iwa-hero__logo {
    display: block;
  }
}

/* ノートPC対策（heroだけ段階的に縮める） */
@media (max-width: 1200px) {
  .iwa-hero__inner {
    padding: 0;
  }

  .iwa-hero__title-en {
    font-size: 64px;
  }

  .iwa-hero__title-ja {
    font-size: 44px;
    line-height: 1.35;
  }

  /* 旧slider枠（現行DOMでは未使用） */
}

/* テキストエリア */
.iwa-hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
  align-items: center;
}

.iwa-hero__title {
  margin: 0;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.iwa-hero__title-en {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 83px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #00A9F8;
}

.iwa-hero__title-en-line {
  display: inline;
}

.iwa-hero__title-en-line+.iwa-hero__title-en-line {
  margin-left: 0.2em;
}

.iwa-hero__title-ja {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 81px;
  letter-spacing: 0.02em;
}

.iwa-hero__small {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #383838;
  max-width: 720px;
}

/* 統計カード（HERO下部） */
.iwa-hero__stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 0;
  padding: 0 0 56px;
  flex-wrap: nowrap;
  width: fit-content;
  margin-inline: auto;
}

.iwa-hero__stat-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  width: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  display: grid;
  justify-items: center;
  flex: 0 0 auto;
}

.iwa-hero__stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  flex-grow: 0;
}

.iwa-hero__stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #00A9F8;
  line-height: 1;
  flex-shrink: 0;
}

.iwa-hero__stat-unit {
  font-size: 24px;
  margin-left: 6px;
  color: #00A9F8;
  font-weight: 700;
  flex-shrink: 0;
}

.iwa-hero__stat-caption {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* （statsをHERO外に出していた頃のスタイルは撤去） */

/* スライダーエリア */
.iwa-hero__slider {
  position: relative;
  width: 500px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}

/* thumbs container */
.iwa-hero__thumbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ------------------------------------------------------------
  Hero bubbles (PC only, JS-driven)
------------------------------------------------------------ */
:root {
  --bubble-scale: 1;
}

/* ------------------------------------------------------------
  UI custom cursor (site-wide, PC only)
------------------------------------------------------------ */
@media (hover:hover) and (pointer:fine) {

  html.has-ui-cursor,
  html.has-ui-cursor body {
    cursor: none;
  }
}

.ui-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  pointer-events: none;
  z-index: 99999;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, width, height, background, filter, box-shadow, opacity;
  /* ✅ ほんのり“ぼかし” */
  filter: blur(0.6px);
  opacity: .92;
  transition:
    width .18s ease,
    height .18s ease,
    background .18s ease,
    filter .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.ui-cursor.is-hover {
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, .10);
  filter: blur(0px);
  /* ホバー時は輪郭を少しシャープに */
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  opacity: 1;
}

.ui-cursor.is-down {
  width: 28px;
  height: 28px;
  opacity: .85;
}

@media (prefers-reduced-motion: reduce),
(pointer:coarse) {
  .ui-cursor {
    display: none !important;
  }

  html.has-ui-cursor,
  html.has-ui-cursor body {
    cursor: auto !important;
  }
}

/* ------------------------------------------------------------
  Back to top button (mobile)
------------------------------------------------------------ */
.iwa-backtotop {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(255, 255, 255, .90);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  display: grid;
  place-items: center;
  z-index: 9998;
  /* overlayより下 */
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.iwa-backtotop__icon {
  font-size: 16px;
  line-height: 1;
  color: #383838;
  font-weight: 700;
}

.iwa-backtotop.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

@media (min-width: 901px) {
  .iwa-backtotop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iwa-backtotop {
    transition: none !important;
  }
}

@media (hover:hover) and (pointer:fine) {

  input,
  textarea {
    cursor: text;
  }
}

.iwa-hero__thumb.js-bubble,
.iwa-hero__thumb.js-bubble--lg,
.iwa-hero__thumb.js-bubble--md,
.iwa-hero__thumb.js-bubble--sm,
.iwa-hero__thumb[data-bubble="1"] {
  --bubble-scale: 1;
  will-change: transform, filter, box-shadow;
  transition: filter .28s ease-out, box-shadow .28s ease-out;
  backface-visibility: hidden;
}

.iwa-hero__thumb.js-bubble img,
.iwa-hero__thumb.js-bubble--lg img,
.iwa-hero__thumb.js-bubble--md img,
.iwa-hero__thumb.js-bubble--sm img,
.iwa-hero__thumb[data-bubble="1"] img {
  transform: scale(var(--bubble-scale, 1));
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform .42s ease-out;
}

@media (hover:hover) and (pointer:fine) {

  .iwa-hero__thumb.js-bubble:hover,
  .iwa-hero__thumb.js-bubble--lg:hover,
  .iwa-hero__thumb.js-bubble--md:hover,
  .iwa-hero__thumb.js-bubble--sm:hover,
  .iwa-hero__thumb[data-bubble="1"]:hover {
    --bubble-scale: 1.05;
    filter: saturate(1.06) contrast(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  }
}

@media (prefers-reduced-motion: reduce) {

  .iwa-hero__thumb.js-bubble,
  .iwa-hero__thumb.js-bubble--lg,
  .iwa-hero__thumb.js-bubble--md,
  .iwa-hero__thumb.js-bubble--sm,
  .iwa-hero__thumb[data-bubble="1"] {
    transition: none !important;
  }

  .iwa-hero__thumb.js-bubble img,
  .iwa-hero__thumb.js-bubble--lg img,
  .iwa-hero__thumb.js-bubble--md img,
  .iwa-hero__thumb.js-bubble--sm img,
  .iwa-hero__thumb[data-bubble="1"] img {
    transition: none !important;
  }
}

@media (pointer: fine) and (hover: hover) {
  .iwa-hero {
    position: relative;
    overflow: hidden;
  }

  /* .iwa-hero__inner が全面を覆って hover を吸ってしまうため、
     PCではコンテナは透過し、必要な要素だけ pointer を戻す */
  .iwa-hero__inner {
    pointer-events: none;
  }

  .iwa-hero__copy,
  .iwa-hero__stats {
    pointer-events: auto;
  }

  .iwa-hero__thumbs {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    /* hover反応用（PCのみ） */
  }

  /* JS制御対象だけ transform で位置更新（レイアウト負荷なし）
     - nth-child で left/right が付いていても無視できるよう強制上書き */
  .iwa-hero__thumbs .iwa-hero__thumb.js-bubble,
  .iwa-hero__thumbs .iwa-hero__thumb.js-bubble--lg,
  .iwa-hero__thumbs .iwa-hero__thumb[data-bubble="1"] {
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    transition: transform 280ms ease-out, box-shadow 280ms ease-out, filter 280ms ease-out;
  }

  .iwa-hero__thumb.js-bubble img,
  .iwa-hero__thumb.js-bubble--lg img,
  .iwa-hero__thumb.js-bubble--md img,
  .iwa-hero__thumb.js-bubble--sm img,
  .iwa-hero__thumb[data-bubble="1"] img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    /* scaleは上の共通ルール（imgのtransform transition）で制御 */
  }

  /* JSが動いている時は、CSS側のthumbアニメ（heroRiseなど）があれば止める（競合防止） */
  .is-bubbles-on .iwa-hero__thumb.js-bubble,
  .is-bubbles-on .iwa-hero__thumb[data-bubble="1"],
  .is-bubbles-on .iwa-hero__thumb.is-float {
    animation: none !important;
    opacity: 1;
  }

  /* サイズ（大2 / 中2 / 小8） */
  .iwa-hero__thumb.js-bubble--lg {
    width: 220px;
    height: 220px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
    --bubble-scale-hover: 1.04;
  }

  .iwa-hero__thumb.js-bubble--md {
    width: 150px;
    height: 150px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
    --bubble-scale-hover: 1.05;
  }

  .iwa-hero__thumb.js-bubble--sm {
    width: 92px;
    height: 92px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .12);
    --bubble-scale-hover: 1.06;
  }

  /* hoverは上の共通ルール（--bubble-scale / filter / shadow）で制御 */
}

/* Mobile marquee (hidden by default; enabled on small screens) */
.iwa-hero__marquee {
  display: none;
}

.iwa-hero__marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.iwa-hero__marquee-group {
  display: flex;
  align-items: center;
}

.iwa-hero__marquee-item {
  flex: 0 0 auto;
}

.iwa-hero__marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* base */
.iwa-hero__thumb {
  position: absolute;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  /* start below the viewport; move upward */
  top: 110%;
  will-change: transform, opacity;
  animation-name: heroRise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* speed control (slower): duration/delay */
  animation-duration: calc(60s + (var(--i) * 6s));
  animation-delay: calc(var(--i) * -10s);
}

@keyframes heroRise {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    transform: translate3d(0, -220vh, 0);
    opacity: 0;
  }
}

.iwa-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* sizes */
.iwa-hero__thumb.is-big {
  width: 264px;
  /* 220 * 1.2 */
  height: 264px;
  /* 220 * 1.2 */
  /* big thumbs move slower */
  animation-duration: calc(120s + (var(--i) * 10s));
  animation-delay: calc(var(--i) * -20s);
}

/* 1〜3枚目（big）はサイズは揃える（動きはJS側で微小ドリフト） */
.iwa-hero__thumb.is-big {
  opacity: 1;
}

.iwa-hero__thumb.is-small {
  width: 120px;
  height: 120px;
}

/* PC positions (1〜12枚目) */
.iwa-hero__thumbs .iwa-hero__thumb:nth-child(1) {
  left: 64px;
  top: 18%;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(2) {
  right: 380px;
  width: 168px;
  /* 140 * 1.2 */
  height: 168px;
  /* 140 * 1.2 */
  top: 10%;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(3) {
  right: 64px;
  width: 312px;
  /* 260 * 1.2 */
  height: 312px;
  /* 260 * 1.2 */
  top: 22%;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(1),
.iwa-hero__thumbs .iwa-hero__thumb:nth-child(2),
.iwa-hero__thumbs .iwa-hero__thumb:nth-child(3) {
  width: 264px;
  height: 264px;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(4) {
  left: 64px;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(5) {
  left: 240px;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(6) {
  right: 420px;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(7) {
  right: 80px;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(8) {
  left: 18vw;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(9) {
  right: 24vw;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(10) {
  left: 38vw;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(11) {
  right: 48vw;
}

.iwa-hero__thumbs .iwa-hero__thumb:nth-child(12) {
  left: 56vw;
}

@media (max-width: 820px) {
  .iwa-hero__slider {
    width: 280px;
    aspect-ratio: 1 / 1;
  }
}

/* Slides (fade) */
.iwa-hero__slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.iwa-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.iwa-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.iwa-hero__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iwa-hero__slide-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  border-radius: 50%;
}

/* モバイル対応 */
/* タブレット：PCと同じ見え方のまま、高さだけ抑える */
@media (max-width: 1024px) and (min-width: 601px) {
  .iwa-hero {
    /* 100%だと余白が目立つため、タブレットは高さを抑える（必要なら 70svh/80svh に調整可） */
    height: clamp(560px, 80svh, 860px);
    height: clamp(560px, 80vh, 860px);
  }
}

/* スマホ：縦積み + 丸画像は右→左に流す */
@media (max-width: 600px) {
  .iwa-hero {
    height: auto;
    padding: 30px 0;
    display: block;
  }

  /* PC用サムネは非表示、代わりにmarqueeを表示 */
  .iwa-hero__thumbs {
    display: none;
  }

  .iwa-hero__inner {
    display: block;
    height: auto;
  }

  .iwa-hero__marquee {
    display: block;
    margin: 30px auto 0;
    width: 100%;
    overflow: hidden;
    padding: 0 0 8px;
  }

  .iwa-hero__marquee-track {
    animation: iwaHeroMarquee 60s linear infinite;
  }

  .iwa-hero__marquee-group {
    gap: 14px;
    padding-right: 14px;
  }

  .iwa-hero__marquee-item {
    width: 160px;
    height: 160px;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    border: 6px solid #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
  }

  @keyframes iwaHeroMarquee {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  .iwa-hero__bg {
    background-position: center;
    /* モバイル：幅合わせ（contain）ではなく、高さ基準で大きく見せる */
    background-size: auto 120vh;
    background-size: auto 120svh;
  }

  .iwa-hero__title-en {
    font-size: 58px;
  }

  .iwa-hero__title-en-line {
    display: block;
  }

  .iwa-hero__title-en-line+.iwa-hero__title-en-line {
    margin-left: 0;
  }

  .iwa-hero__title-ja {
    font-size: 28px;
    line-height: 1.45;
  }

  .iwa-hero__stats {
    width: 100%;
    padding: 36px 0 0;
    flex-direction: column;
    align-items: center;
    gap: 44px;
  }

  .iwa-hero__stat-card {
    width: 100%;
    max-width: none;
    max-height: none;
  }

  .iwa-hero__stat-number {
    font-size: 70px;
    line-height: 1;
  }

  .iwa-hero__stat-unit {
    margin-left: 0;
    font-size: 18px;
    line-height: 1.1;
  }

  .iwa-hero__stat-value {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .iwa-hero__stat-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #111;
  }

  .iwa-hero__copy {
    flex: 0;
  }
}

/* NOTE: 600px以下のHeroは上のブロックに統合（重複上書きを防止） */

/* ------------------------------------------------------------
  Top Main Right: Image slider (slide + zoom) - scoped
------------------------------------------------------------ */
.s-top_main-right.is-topmain-image-slider-ready .s-top_main-right-change-image {
  position: relative;
  overflow: hidden;
}

.s-top_main-right.is-topmain-image-slider-ready .s-top_main-right-change-image-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.s-top_main-right.is-topmain-image-slider-ready .s-top_main-right-change-image-inner.is-active,
.s-top_main-right.is-topmain-image-slider-ready .s-top_main-right-change-image-inner.is-next {
  opacity: 1;
}

.s-top_main-right.is-topmain-image-slider-ready .s-top_main-right-change-image-inner.is-active {
  pointer-events: auto;
}

.s-top_main-right.is-topmain-image-slider-ready .s-top_main-right-change-image-inner img.js-imagetype {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------
  School / Group Cards (image ratio + title clamp)
------------------------------------------------------------ */
.iwa-school-card__media,
.iwa-group-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.iwa-school-card__media img,
.iwa-group-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iwa-school-card__title,
.iwa-group-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Schoolセクション：角丸なし・ボーダーなし */
.iwa-card.iwa-school-card {
  border: none;
  border-radius: 0;
}

/* Groupセクション：角丸なし・ボーダーなし */
.iwa-card.iwa-group-card {
  border: none;
  border-radius: 0;
}

/* ------------------------------------------------------------
  Access
------------------------------------------------------------ */
.iwa-access-list {
  display: grid;
  gap: 48px;
  padding: 32px 0 64px;
}

.iwa-access-item__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 800px) {
  .iwa-access-item__grid {
    grid-template-columns: 1fr;
  }
}

.iwa-embed--map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 10px;
  border: 1px solid #e9e9e9;
}

.iwa-embed--map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.iwa-access-item__title {
  margin: 0 0 12px;
}

.iwa-access-item__address,
.iwa-access-item__tel,
.iwa-access-item__route {
  margin: 0 0 10px;
}

/* ------------------------------------------------------------
  History
------------------------------------------------------------ */
/* 見本クラスに合わせたタイムライン */
.iwa-history__lead {
  margin: 18px 0 50px;
  font-size: 16px;
  line-height: 1.8;
  color: #383838;
}

.iwa-history__lead p {
  margin: 0;
}

.iwa-history__lead p+p {
  margin-top: 8px;
}

.company-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* 縦ライン */
.company-history__list::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(0, 169, 248, 0.22);
}

.company-history__list__item {
  position: relative;
  padding-left: 100px;
  /* ← 添付CSSに合わせる */
  padding-bottom: 34px;
}

/* ドット */
.company-history__list__item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #6dccf8;
}

/* 横の点線（ドット→年へ） */
.company-history__list__item::after {
  content: '';
  position: absolute;
  left: 46px;
  top: 13px;
  width: 46px;
  border-top: 2px dotted rgba(0, 169, 248, 0.26);
}

.company-history__list__year {
  font-size: 16px;
  font-weight: 500;
  color: #00A9F8;
  line-height: 1.3;
  margin: 0;
}

.company-history__list__body {
  margin-top: 10px;
}

.company-history__list__body p {
  margin: 0;
  font-size: 16px;
  /* ご要望：文字サイズは16px */
  font-weight: 500;
  color: #111;
  line-height: 1.6;
}

.company-history__list__body p+p {
  margin-top: 10px;
}

/* スクロール表示アニメ（見本に寄せつつ、JSが無くても表示されるように） */
[data-scroll-trigger="top"] {
  opacity: 0;
  transform: translateY(4%);
  transition-duration: 1s;
  transition-property: opacity, transform, -webkit-transform;
  transition-timing-function: cubic-bezier(.165, .84, .44, 1);
  will-change: transform, opacity;
}

.company-history__list__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .company-history__list::before {
    left: 26px;
  }

  .company-history__list__item {
    padding-left: 80px;
  }

  .company-history__list__item::before {
    left: 18px;
  }

  .company-history__list__item::after {
    left: 40px;
    width: 32px;
  }
}

/* ------------------------------------------------------------
  About
------------------------------------------------------------ */
.iwa-page-layout {
  display: grid;
  /* 左：サイドメニュー / 右：本文（添付の右カラム） */
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.iwa-page-layout__main {
  min-width: 0;
  grid-column: 2;
}

.iwa-sidemenu {
  position: relative;
  grid-column: 1;
}

.iwa-sidemenu__nav {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 14px;
}

.iwa-sidemenu__group,
.iwa-sidemenu__single {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  padding: 16px 16px;
}

.iwa-sidemenu__group-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.iwa-sidemenu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.iwa-sidemenu__link,
.iwa-sidemenu__single-link {
  display: block;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  line-height: 1.4;
}

.iwa-sidemenu__single-link {
  font-weight: 700;
}

.iwa-sidemenu__item.is-current .iwa-sidemenu__link,
.iwa-sidemenu__single.is-current .iwa-sidemenu__single-link,
.iwa-sidemenu__link:hover,
.iwa-sidemenu__single-link:hover,
.iwa-sidemenu__link:focus-visible,
.iwa-sidemenu__single-link:focus-visible {
  background: rgba(0, 169, 248, 0.08);
  color: #00A9F8;
  text-decoration: none;
}

@media (max-width: 960px) {
  .iwa-page-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Tablet/SP: サイドメニューは非表示（必要なら後でアコーディオン化） */
  .iwa-sidemenu {
    display: none;
  }
}

.iwa-about {
  padding: 8px 0 64px;
}

.iwa-about__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 60px;
}

/* PCではサイドメニューがあるので、上部タブは控えめに（必要なら完全非表示にも可） */
@media (min-width: 961px) {
  .iwa-about__tabs {
    margin-top: 0;
  }
}

.iwa-about__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 7px 18px;
  border-radius: 6px;
  border: 1px solid #00A9F8;
  background: #FFF;
  color: #00A9F8;
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
  line-height: 1;
}

.iwa-about__tab:hover,
.iwa-about__tab:focus-visible {
  text-decoration: none;
  background: rgba(0, 169, 248, 0.08);
}

.iwa-about__section {
  padding: 0 0 100px;
}

.iwa-about__title {
  margin: 0 0 50px;
  text-align: center;
  font-size: 25px;
  font-weight: 600;
  color: #111;
}

.iwa-about__subtitle {
  margin: 18px 0 18px;
  text-align: center;
  font-size: 23px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.1em;
}

.iwa-about-greeting__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  margin: 0 auto 26px;
  max-width: 980px;
}

.iwa-about-greeting__photo {
  margin: 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
}

.iwa-about-greeting__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.iwa-about-greeting__org {
  margin: 0;
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.iwa-about-greeting__name {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.iwa-about-greeting__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  color: #333;
  font-size: 13px;
}

.iwa-about-greeting__lead {
  margin: 18px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.iwa-about__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.iwa-about__columns.is-onecol {
  grid-template-columns: 1fr;
}

.iwa-about__col p {
  margin: 0 0 14px;
  color: #333;
  font-size: 16px;
  line-height: 1.9;
}

.iwa-about-philosophy__figure {
  margin: 0 auto 22px;
  width: min(720px, 100%);
}

.iwa-about-philosophy__figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.iwa-about-philosophy__quote {
  margin: 0 auto;
  width: min(820px, 100%);
  text-align: center;
  font-size: 22px;
  line-height: 2.5;
  color: #111;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-family: serif;
}

@media (max-width: 800px) {
  .iwa-about__columns {
    grid-template-columns: 1fr;
  }

  .iwa-about-greeting__grid {
    grid-template-columns: 1fr;
  }

  .iwa-about-philosophy__quote {
    font-size: 18px;
  }
}

/* About: read more */
.iwa-readmore {
  margin: 0 0 14px;
}

.iwa-readmore__btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #f7f7f7;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.iwa-readmore__btn:hover,
.iwa-readmore__btn:focus-visible {
  background: rgba(0, 169, 248, 0.08);
  border-color: rgba(0, 169, 248, 0.35);
  color: #00A9F8;
  outline: none;
}

.iwa-readmore__btn::-webkit-details-marker {
  display: none;
}

.iwa-readmore[open] .iwa-readmore__btn {
  color: #00A9F8;
}

.iwa-readmore__body {
  margin-top: 12px;
}

.iwa-readmore__body p {
  margin: 0 0 14px;
}

/* ------------------------------------------------------------
  System
------------------------------------------------------------ */
.iwa-system {
  padding: 8px 0 64px;
}

.iwa-system__section+.iwa-system__section {
  margin-top: 38px;
}

.iwa-system__hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}

/* 画像が1枚だけの場合は、テキスト幅いっぱいに広げる */
.iwa-system__hero-grid>.iwa-system__hero-figure:only-child {
  grid-column: 1 / -1;
}

.iwa-system__hero-figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
}

.iwa-system__hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.iwa-system__text p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
  color: #383838;
  font-weight: 400;
}

/* System: steps (番号.小見出し + 内容) */
.iwa-system-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.iwa-system-steps__item {
  padding: 0;
}

.iwa-system-steps__head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.iwa-system-steps__num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.iwa-system-steps__ttl {
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.iwa-system-steps__body p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.9;
  color: #383838;
  font-weight: 400;
}

.iwa-system-steps__body p:last-child {
  margin-bottom: 0;
}

.iwa-system__diagram-figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
}

.iwa-system__diagram-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.iwa-system__two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

.iwa-system__media-stack {
  display: grid;
  gap: 10px;
}

.iwa-system__media {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 4 / 3;
}

.iwa-system__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iwa-system__portfolio {
  margin-top: 28px;
}

@media (max-width: 800px) {
  .iwa-system__hero-grid {
    grid-template-columns: 1fr;
  }

  .iwa-system__two-col {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
  Teachers（教職員の方）
------------------------------------------------------------ */
.iwa-teachers__block+.iwa-teachers__block {
  margin-top: 40px;
}

.iwa-teachers__bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.iwa-teachers__bullets li {
  position: relative;
  padding-left: 1.6em;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
  color: #383838;
  font-weight: 400;
}

.iwa-teachers__bullets li:last-child {
  margin-bottom: 0;
}

.iwa-teachers__bullets li::before {
  content: '◯';
  position: absolute;
  left: 0;
  color: #111;
}

/* ------------------------------------------------------------
  Guardians
------------------------------------------------------------ */
.iwa-guardians {
  padding: 8px 0 64px;
}

.iwa-guardians__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  color: #111;
}

.iwa-guardians__text p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
  color: #383838;
  font-weight: 400;
}

.iwa-guardians__intro,
.iwa-guardians__block {
  padding: 0 0 34px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 34px;
}

.iwa-guardians__thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 12px;
}

.iwa-guardians__thumb {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
}

.iwa-guardians__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.iwa-guardians__cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 30px auto 10px;
}

.iwa-guardians__cta-stack .iwa-guardians__cta {
  margin: 0;
}

.iwa-guardians__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 30px auto 10px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f7f7f7;
  color: #333;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.iwa-guardians__cta:hover,
.iwa-guardians__cta:focus-visible {
  text-decoration: none;
  background: rgba(0, 169, 248, 0.08);
  border-color: rgba(0, 169, 248, 0.35);
  color: #00A9F8;
}

.iwa-guardians__cta-arrow {
  font-weight: 700;
}

@media (max-width: 800px) {

  .iwa-guardians__cta,
  .iwa-guardians__cta-stack {
    max-width: 100%;
  }
}

/* ------------------------------------------------------------
  Information pages (companies / foreign students / graduates)
------------------------------------------------------------ */
.iwa-info {
  padding: 8px 0 64px;
}

.iwa-info__section {
  padding: 0 0 34px;
}

.iwa-info__divider {
  height: 12px;
  margin: 8px 0 18px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, .10) 0 8px,
      transparent 8px 16px);
}

.iwa-info__hero {
  margin: 0 0 18px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
}

.iwa-info__hero img {
  width: 100%;
  height: auto;
  display: block;
}

.iwa-info__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  color: #111;
}

.iwa-info__text p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
  color: #383838;
  font-weight: 400;
}

.iwa-contact__intro {
  margin-bottom: 28px;
}

.iwa-contact__form {
  margin-top: 8px;
}

.iwa-thanks__back {
  margin: 28px 0 0;
}

.iwa-thanks__back-link {
  font-weight: 600;
  color: #00A9F8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.iwa-thanks__back-link:hover,
.iwa-thanks__back-link:focus-visible {
  color: #0090d4;
}

.iwa-info__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 40px 0 14px;
}

.iwa-info__images--single {
  grid-template-columns: 1fr;
  margin: 24px 0 14px;
}

.iwa-info__images--single .iwa-info__img {
  aspect-ratio: auto;
}

.iwa-info__images--single .iwa-info__img::before,
.iwa-info__images--single .iwa-info__img::after {
  display: none;
  content: none;
}

.iwa-info__images--single .iwa-info__img img {
  width: 100%;
  height: auto;
  object-fit: initial;
}

.iwa-info__img {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 4 / 3;
  position: relative;
}

.iwa-info__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iwa-info__img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: rgba(0, 169, 248, 0.85);
  border-bottom-right-radius: 10px;
  z-index: 2;
}

.iwa-info__img::after {
  content: "+";
  position: absolute;
  top: 2px;
  left: 8px;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  z-index: 3;
  font-weight: 700;
}

.iwa-info__img.is-yellow::before {
  background: rgba(255, 193, 7, 0.9);
}

.iwa-info__img.is-red::before {
  background: rgba(248, 92, 92, 0.9);
}

.iwa-linkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f2f2f2;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 50px;
}

.iwa-linkbar:hover,
.iwa-linkbar:focus-visible {
  text-decoration: none;
  background: rgba(0, 169, 248, 0.08);
}

.iwa-linkbar__cta {
  font-size: 12px;
  letter-spacing: .06em;
  opacity: .75;
  white-space: nowrap;
}

/* Companies: diagram */
.iwa-companies__diagram {
  margin: 18px 0 16px;
  padding: 14px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
}

.iwa-companies__diagram-title {
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .75;
  margin: 0 0 10px;
}

.iwa-companies__diagram-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.iwa-companies__diagram-node {
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .14);
  background: #fafafa;
  font-weight: 500;
}

.iwa-companies__diagram-mid {
  width: 120px;
  height: 2px;
  background: rgba(0, 0, 0, .12);
  position: relative;
}

.iwa-companies__diagram-mid::before,
.iwa-companies__diagram-mid::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(0, 0, 0, .12);
  border-right: 2px solid rgba(0, 0, 0, .12);
  transform: translateY(-50%) rotate(45deg);
}

.iwa-companies__diagram-mid::before {
  left: -2px;
  transform: translateY(-50%) rotate(225deg);
}

.iwa-companies__diagram-mid::after {
  right: -2px;
}

.iwa-companies__diagram-midlabel {
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  opacity: .75;
  white-space: nowrap;
}

.iwa-companies__diagram-foot {
  text-align: center;
  font-size: 11px;
  opacity: .7;
  margin-top: 10px;
}

/* Companies: points */
/* Companies: 求人票等ダウンロード */
.iwa-companies-dl__title {
  margin-top: 40px;
}

.iwa-companies-dl {
  margin: 0 0 8px;
}

.iwa-companies-dl__sub {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.iwa-companies-dl__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.iwa-companies-dl__item {
  margin: 0 0 28px;
}

.iwa-companies-dl__item:last-child {
  margin-bottom: 0;
}

.iwa-companies-dl__cat {
  position: relative;
  margin: 0 0 12px;
  padding-left: 1.1em;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.iwa-companies-dl__cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: #111;
}

.iwa-companies-dl__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

a.iwa-companies-dl__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, .14);
  background: #f7f7f7;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color .2s, border-color .2s, color .2s;
}

a.iwa-companies-dl__btn:hover,
a.iwa-companies-dl__btn:focus-visible {
  background: rgba(0, 169, 248, 0.08);
  border-color: rgba(0, 169, 248, 0.35);
  color: #00A9F8;
  text-decoration: none;
  outline: none;
}

.iwa-companies__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
  margin: 18px 0 26px;
}

.iwa-point {
  padding: 0;
}

.iwa-point__tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.iwa-point__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: #111;
}

.iwa-point__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #383838;
}

/* Graduates */
.iwa-graduates__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 18px;
}

.iwa-graduates__list li {
  position: relative;
  padding-left: 1.1em;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.9;
  color: #383838;
}

.iwa-graduates__list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
}

.iwa-graduates__linkwrap {
  margin: 0;
}

.iwa-graduates__link {
  color: #00A9F8;
  text-decoration: none;
  font-weight: 500;
}

.iwa-graduates__link:hover,
.iwa-graduates__link:focus-visible {
  text-decoration: underline;
}

/* Simple docs (copyright / privacy policy) */
.iwa-doc__text {
  margin-bottom: 22px;
}

.iwa-doc__circle-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.iwa-doc__circle-list li {
  position: relative;
  padding-left: 1.4em;
  font-size: 16px;
  line-height: 1.9;
  color: #383838;
}

.iwa-doc__circle-list li::before {
  content: "○";
  position: absolute;
  left: 0;
  top: 0;
}

/* Evaluation list */
.iwa-eval__list {
  display: grid;
}

.iwa-eval__item {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}

.iwa-eval__head {
  display: grid;
  gap: 6px;
}

.iwa-eval__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #111;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.iwa-eval__mark {
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 2px;
  margin-top: 7px;
  flex: 0 0 auto;
}

.iwa-eval__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, .55);
}

.iwa-eval__actions {
  display: flex;
}

.iwa-eval__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  border-radius: 4px;
  background: #9a9a9a;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.iwa-eval__btn:hover,
.iwa-eval__btn:focus-visible {
  text-decoration: none;
  background: #7f7f7f;
}

@media (max-width: 800px) {
  .iwa-info__images {
    grid-template-columns: 1fr;
  }

  .iwa-companies__points {
    grid-template-columns: 1fr;
  }

  .iwa-companies-dl__grid {
    grid-template-columns: 1fr;
  }

  .iwa-companies__diagram-mid {
    width: 90px;
  }
}

/* ------------------------------------------------------------
  Footer
------------------------------------------------------------ */
.iwa-footer {
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #f7f7f7;
  padding: 0;
}

/* 上部：ロゴ・連絡先 ＋ ナビ */
.iwa-footer__top {
  padding: 48px 0 36px;
}

.iwa-footer__top-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .iwa-footer__top-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.iwa-footer__brand {
  max-width: 360px;
}

.iwa-footer__logo-link {
  display: block;
  text-decoration: none;
}

.iwa-footer__logo-link:hover {
  text-decoration: none;
}

.iwa-footer__logo-img {
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 73px;
  object-fit: contain;
  display: block;
}

.iwa-footer__org-name {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

.iwa-footer__meta {
  margin: 12px 0 0;
}

.iwa-footer__branch,
.iwa-footer__address,
.iwa-footer__tel {
  margin: 0 0 4px;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.iwa-footer__nav-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(56, 56, 56, .65);
}

.iwa-footer__navs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: start;
}

.iwa-footer__nav {
  min-width: 0;
}

/* 2カラム：Footer menu / Utility menu */
@media (min-width: 901px) {
  .iwa-footer__nav--utility .iwa-footer__menu {
    column-count: 2;
    column-gap: 22px;
  }

  .iwa-footer__nav--utility .iwa-footer__menu>li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }
}

@media (max-width: 800px) {
  .iwa-footer__navs {
    grid-template-columns: 1fr 1fr;
    /* mobile: footer / utility を2カラム */
    gap: 14px 16px;
  }

  .iwa-footer__nav-title {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .iwa-footer__menu a {
    font-size: 12px;
  }
}

.iwa-footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.iwa-footer__menu a {
  font-size: 13px;
  color: #383838;
  text-decoration: none;
  line-height: 1.6;
  letter-spacing: .02em;
  opacity: .92;
}

.iwa-footer__menu a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #111;
}

/* very small screens: 1カラムに戻す（375pxは2カラム維持） */
@media (max-width: 360px) {
  .iwa-footer__navs {
    grid-template-columns: 1fr;
  }
}

/* セパレーター */
.iwa-footer__separator {
  height: 1px;
  background: #ddd;
  width: 100%;
}

/* グループ一覧 */
.iwa-footer__groups {
  padding: 28px 0 32px;
}

.iwa-footer__groups-title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.iwa-footer__groups-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 700px) {
  .iwa-footer__groups-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .iwa-footer__groups-list {
    grid-template-columns: 1fr;
  }
}

.iwa-footer__groups-link {
  display: block;
  padding: 12px 16px;
  background: #e5e5e5;
  color: #333;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.4;
}

.iwa-footer__groups-link:hover {
  text-decoration: none;
  background: #d8d8d8;
  color: #111;
}

/* 著作権 */
.iwa-footer__bottom {
  padding: 20px 0;
}

.iwa-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.iwa-footer__copy small {
  font-size: inherit;
}

/* ------------------------------------------------------------
  Contact CTA
------------------------------------------------------------ */
.iwa-cta {
  background: #FFFF99;
  padding: 54px 0;
}

.iwa-cta__inner {
  width: min(900px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
}

/* 英字：Plus Jakarta Sans semibold・青 #00A9F8 */
.iwa-cta__en {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: #00A9F8;
}

.iwa-cta__ja {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: #111;
}

.iwa-cta__tel-heading {
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.iwa-cta__inquiry-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.iwa-cta__inquiry-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #111;
}

.iwa-cta__inquiry-sep {
  font-size: 10px;
  color: #111;
}

.iwa-cta__tel {
  margin: 16px 0 0;
  font-size: 28px;
  font-weight: 900;
  color: #111;
}

.iwa-cta__btn {
  margin: 24px 0 0;
}

/* WEBからお問い合せボタン：白背景・青枠 #00A9F8 */
.iwa-btn--cta {
  display: inline-block;
  background: #fff;
  border: 1px solid #00A9F8;
  color: #00A9F8;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}

.iwa-btn--cta:hover {
  text-decoration: none;
  background: rgba(0, 169, 248, 0.08);
}

/* ------------------------------------------------------------
  Utilities
------------------------------------------------------------ */
.iwa-empty {
  padding: 16px 0;
  color: #555;
}

/* ------------------------------------------------------------
  single-news（カテゴリ・タグ → タイトル → アイキャッチの順）
------------------------------------------------------------ */
/* カテゴリ・タグ（news_cat）ピル */
.iwa-article__terms {
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iwa-article__term {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 169, 248, 0.15);
  color: #383838;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
}

.iwa-article__term:hover {
  text-decoration: none;
  background: rgba(0, 169, 248, 0.25);
  color: #383838;
}

/* single: News(post/category-news) & Agreement 本文タイポ */
body.single-post.category-news .iwa-article__content,
body.single-agreement .iwa-article__content {
  letter-spacing: 0.04em;
  font-weight: 100;
  color: #383838;
  text-align: justify;
  text-justify: inter-character;
}

/* タイトル等（見出し）は細くしない */
body.single-post.category-news .iwa-article__content h1,
body.single-post.category-news .iwa-article__content h2,
body.single-post.category-news .iwa-article__content h3,
body.single-post.category-news .iwa-article__content h4,
body.single-post.category-news .iwa-article__content h5,
body.single-post.category-news .iwa-article__content h6,
body.single-agreement .iwa-article__content h1,
body.single-agreement .iwa-article__content h2,
body.single-agreement .iwa-article__content h3,
body.single-agreement .iwa-article__content h4,
body.single-agreement .iwa-article__content h5,
body.single-agreement .iwa-article__content h6 {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: left;
}

/* タイトルと記事更新日（タイトル下・右寄せ） */
.iwa-article__head {
  margin: 0 0 24px;
}

.iwa-article__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}

.iwa-article__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.4;
}

.iwa-article__modified {
  margin: 10px 0 0;
  text-align: right;
  font-size: 13px;
  color: #777;
  white-space: nowrap;
}

.iwa-article__modified time {
  font-weight: 400;
}

/* アイキャッチ（タイトルの下） */
.iwa-article__thumb {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.iwa-article__thumbImg,
.iwa-article__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.iwa-article.has-thumb .iwa-article__content {
  margin-top: 24px;
}

@media (max-width: 820.98px) {
  .iwa-article__thumb {
    border-radius: 10px;
  }

  .iwa-article.has-thumb .iwa-article__content {
    margin-top: 16px;
  }
}

/* TOP section tint */
.iwa-section--tint {
  background: #FFFF99;
  padding: 54px 0;
}

/* Figmaに合わせて後で調整 */

/* ------------------------------------------------------------
  Agreement feature（TOP固定ブロック）
------------------------------------------------------------ */
.iwa-section--agreement {
  padding: 84px 0;
  position: relative;
  /* モバイル/タブレットでの横はみ出し（横スクロール）を抑止 */
  overflow-x: hidden;
}

@supports (overflow: clip) {
  .iwa-section--agreement {
    overflow-x: clip;
  }
}

/* Agreement: scrolling country name text (image marquee) */
.iwa-section--agreement::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 53px;
  height: 50px;
  background-image: url("images/countryname.png");
  background-repeat: repeat-x;
  background-position: 0 50%;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 3;
  animation: iwaAgreementMarquee 36s linear infinite;
}

@keyframes iwaAgreementMarquee {
  0% {
    background-position: 0 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iwa-section--agreement::before {
    animation: none !important;
  }
}

.iwa-agreement-feature {
  background: #FFFF99;
  border-radius: 10px;
  padding: clamp(34px, 5vw, 84px);
  position: relative;
  z-index: 1;
}

.iwa-agreement-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "media head"
    "media body";
  gap: clamp(18px, 3.5vw, 54px);
  align-items: start;
}

/* Grid内の要素が内容幅で押し広げてはみ出すのを防ぐ */
.iwa-agreement-feature__grid>* {
  min-width: 0;
}

.iwa-agreement-feature__head {
  grid-area: head;
}

.iwa-agreement-feature__media {
  grid-area: media;
  display: grid;
  place-items: center;
  width: 100%;
}

.iwa-agreement-feature__media img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.iwa-agreement-feature__media .iwa-card__noimage {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  background: #e9e9e9;
  border-radius: 10px;
}

.iwa-agreement-feature__noimage {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  background: #e9e9e9;
}

.iwa-agreement-feature__body {
  grid-area: body;
}

.iwa-agreement-feature__lead {
  margin: 18px 0 0;
  font-size: 14px;
  color: #111;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.iwa-section--agreement .iwa-more {
  margin-top: 50px;
  text-align: center;
}

@media (max-width: 960px) {
  .iwa-agreement-feature__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "body";
  }

  .iwa-agreement-feature__lead {
    margin-top: 16px;
    -webkit-line-clamp: 7;
    line-clamp: 7;
  }

  .iwa-agreement-feature__media img,
  .iwa-agreement-feature__noimage {
    max-width: 100%;
  }
}

/* News card */
.iwa-news-card__link,
.iwa-agree-card__link,
.iwa-movie-card__link {
  display: block;
  height: 100%;
}

/* Front page: News cards tweaks */
body.front-page .iwa-section--news .iwa-news-card__link,
body.front-page .iwa-section--news .iwa-news-card__link:hover,
body.front-page .iwa-section--news .iwa-news-card__link:focus,
body.front-page .iwa-section--news .iwa-news-card__link:focus-visible,
body.home .iwa-section--news .iwa-news-card__link,
body.home .iwa-section--news .iwa-news-card__link:hover,
body.home .iwa-section--news .iwa-news-card__link:focus,
body.home .iwa-section--news .iwa-news-card__link:focus-visible {
  text-decoration: none;
}

body.front-page .iwa-section--news .iwa-news-card__media,
body.home .iwa-section--news .iwa-news-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

body.front-page .iwa-section--news .iwa-news-card__media img,
body.home .iwa-section--news .iwa-news-card__media img {
  transform: scale(1);
  transform-origin: center;
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

body.front-page .iwa-section--news .iwa-news-card__link:hover .iwa-news-card__media img,
body.home .iwa-section--news .iwa-news-card__link:hover .iwa-news-card__media img {
  transform: scale(1.06);
}

body.front-page .iwa-section--news .iwa-news-card__title,
body.home .iwa-section--news .iwa-news-card__title {
  font-weight: 500;
}

body.front-page .iwa-section--news .iwa-news-card__noimage,
body.home .iwa-section--news .iwa-news-card__noimage {
  aspect-ratio: 3 / 2;
}

/* =========================
   News section tuning
   ========================= */
/* 1) Newsカードのタイトル：font-size 16px */
.iwa-section--news .iwa-news-card__title {
  font-size: 16px;
  line-height: 1.45;
}

/* 2) タイトルとREAD MOREの間隔を広げる（タイトル側で調整） */
.iwa-section--news .iwa-news-card__title {
  margin: 0 0 14px;
}

/* 3) News内のREAD MORE（.iwa-btn--card）のhover影を無効化 */
.iwa-section--news .iwa-btn--card,
.iwa-section--news .iwa-btn--card:hover,
.iwa-section--news .iwa-btn--card:focus-visible,
.iwa-section--news .iwa-btn--card::before,
.iwa-section--news .iwa-btn--card::after,
.iwa-section--news .iwa-btn--card:hover::before,
.iwa-section--news .iwa-btn--card:hover::after {
  box-shadow: none !important;
  filter: none !important;
}

/* Front page: News cards (white + subtle shadow) */
body.front-page .iwa-section--news .iwa-card.iwa-news-card,
body.home .iwa-section--news .iwa-card.iwa-news-card {
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .09);
  overflow: hidden;
}

body.front-page .iwa-section--news .iwa-news-card__link,
body.home .iwa-section--news .iwa-news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  text-decoration: none;
}

body.front-page .iwa-section--news .iwa-news-card__media,
body.home .iwa-section--news .iwa-news-card__media {
  border-radius: 10px;
  overflow: hidden;
}

body.front-page .iwa-section--news .iwa-news-card__body,
body.home .iwa-section--news .iwa-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0 0;
  flex: 1;
}

/* タイトル：2行まで */
body.front-page .iwa-section--news .iwa-news-card__title,
body.home .iwa-section--news .iwa-news-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  /* モバイル：1行タイトルでもカード高が揃うよう2行分の高さを確保 */
  min-height: calc(1.45em * 2);
}

/* READ MORE を下部に固定 */
body.front-page .iwa-section--news .iwa-btn--card,
body.home .iwa-section--news .iwa-btn--card {
  margin-top: auto;
  align-self: center;
}

/* SP：横スライド（scroll-snap） */
@media (max-width: 820.98px) {

  body.front-page .iwa-section--news .iwa-grid,
  body.home .iwa-section--news .iwa-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  body.front-page .iwa-section--news .iwa-grid>*,
  body.home .iwa-section--news .iwa-grid>* {
    flex: 0 0 min(82%, 360px);
    scroll-snap-align: start;
  }

  body.front-page .iwa-section--news .iwa-grid::-webkit-scrollbar,
  body.home .iwa-section--news .iwa-grid::-webkit-scrollbar {
    height: 6px;
  }

  body.front-page .iwa-section--news .iwa-grid::-webkit-scrollbar-thumb,
  body.home .iwa-section--news .iwa-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .12);
    border-radius: 999px;
  }
}

/* Same hover motion as front-page News (no underline + image zoom) */
/* - front-page: School / Group sections */
/* - archives: School / Group / News(category-news) */

body.front-page .iwa-section--school .iwa-school-card__link,
body.front-page .iwa-section--school .iwa-school-card__link:hover,
body.front-page .iwa-section--school .iwa-school-card__link:focus,
body.front-page .iwa-section--school .iwa-school-card__link:focus-visible,
body.home .iwa-section--school .iwa-school-card__link,
body.home .iwa-section--school .iwa-school-card__link:hover,
body.home .iwa-section--school .iwa-school-card__link:focus,
body.home .iwa-section--school .iwa-school-card__link:focus-visible,
body.front-page .iwa-section--group .iwa-group-card__link,
body.front-page .iwa-section--group .iwa-group-card__link:hover,
body.front-page .iwa-section--group .iwa-group-card__link:focus,
body.front-page .iwa-section--group .iwa-group-card__link:focus-visible,
body.home .iwa-section--group .iwa-group-card__link,
body.home .iwa-section--group .iwa-group-card__link:hover,
body.home .iwa-section--group .iwa-group-card__link:focus,
body.home .iwa-section--group .iwa-group-card__link:focus-visible,
body.post-type-archive-school .iwa-school-card__link,
body.post-type-archive-school .iwa-school-card__link:hover,
body.post-type-archive-school .iwa-school-card__link:focus,
body.post-type-archive-school .iwa-school-card__link:focus-visible,
body.post-type-archive-group .iwa-group-card__link,
body.post-type-archive-group .iwa-group-card__link:hover,
body.post-type-archive-group .iwa-group-card__link:focus,
body.post-type-archive-group .iwa-group-card__link:focus-visible,
body.post-type-archive-agreement .iwa-agree-card__link,
body.post-type-archive-agreement .iwa-agree-card__link:hover,
body.post-type-archive-agreement .iwa-agree-card__link:focus,
body.post-type-archive-agreement .iwa-agree-card__link:focus-visible,
body.category-news .iwa-news-card__link,
body.category-news .iwa-news-card__link:hover,
body.category-news .iwa-news-card__link:focus,
body.category-news .iwa-news-card__link:focus-visible {
  text-decoration: none;
}

body.front-page .iwa-section--school .iwa-school-card__media img,
body.home .iwa-section--school .iwa-school-card__media img,
body.front-page .iwa-section--group .iwa-group-card__media img,
body.home .iwa-section--group .iwa-group-card__media img,
body.post-type-archive-school .iwa-school-card__media img,
body.post-type-archive-group .iwa-group-card__media img,
body.category-news .iwa-news-card__media img {
  transform: scale(1);
  transform-origin: center;
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

/* Agreement: hover should match News (smooth zoom) */
body.post-type-archive-agreement .iwa-agree-card__media img {
  transform: scale(1);
  transform-origin: center;
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

body.front-page .iwa-section--school .iwa-school-card__link:hover .iwa-school-card__media img,
body.home .iwa-section--school .iwa-school-card__link:hover .iwa-school-card__media img,
body.front-page .iwa-section--group .iwa-group-card__link:hover .iwa-group-card__media img,
body.home .iwa-section--group .iwa-group-card__link:hover .iwa-group-card__media img,
body.post-type-archive-school .iwa-school-card__link:hover .iwa-school-card__media img,
body.post-type-archive-group .iwa-group-card__link:hover .iwa-group-card__media img,
body.category-news .iwa-news-card__link:hover .iwa-news-card__media img {
  transform: scale(1.06);
}

/* Agreement: hover should match News (image zoom) */
body.post-type-archive-agreement .iwa-agree-card__link:hover .iwa-agree-card__media img {
  transform: scale(1.06);
}

/* category/news: overlay link版は article:hover でズーム */
body.category-news .iwa-news-card--overlaylink:hover .iwa-news-card__media img {
  transform: scale(1.06);
}

/* front-page: text/button align to media edges */
body.front-page .iwa-section--news .iwa-news-card__body,
body.home .iwa-section--news .iwa-news-card__body {
  padding-inline: 0;
}

/* front-page: smaller READ MORE button */
body.front-page .iwa-section--news .iwa-btn--card,
body.home .iwa-section--news .iwa-btn--card {
  font-size: 10px;
  padding: 6px 14px;
  width: fit-content;
  justify-self: start;
  /* gridの自動stretchで横に伸びるのを防ぐ */
}

.iwa-news-card__media,
.iwa-agree-card__media,
.iwa-movie-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.iwa-news-card__media img,
.iwa-agree-card__media img,
.iwa-movie-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iwa-news-card__body,
.iwa-movie-card__body {
  padding: 0 16px 16px;
  display: grid;
}

/* Agreement: keep breathing room (avoid News tweaks spillover) */
.iwa-agree-card__body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

/* News list page: tighten space between image and date */
body.category-news .iwa-news-card__body {
  padding-top: 8px;
  gap: 6px;
}

.iwa-news-card__meta,
.iwa-agree-card__meta {
  font-size: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  /* pタグのデフォルト余白を消す（画像直下のズレ防止） */
}

.iwa-news-card__meta {
  color: #00A9F8;
}

.iwa-agree-card__meta {
  color: #00A9F8;
  /* Newsと同じ青 */
}

.iwa-news-card__title,
.iwa-agree-card__title,
.iwa-movie-card__title {
  margin: 0;
  font-weight: 800;
  line-height: 1.35;
}

.iwa-news-card__lead,
.iwa-movie-card__cap {
  margin: 0;
  color: #444;
  font-size: 14px;
}

.iwa-news-card__summary {
  margin: 0;
  color: #444;
  font-size: 14px;
}

/* News list: category badge (between thumb and date) */
.iwa-news__badge {
  margin: 10px 0 4px;
  position: relative;
  z-index: 4;
  /* overlay link より上（バッジクリック優先） */
}

/* Lists: hide category badge. Keep visible on single. */
body.archive .iwa-news__badge,
body.category .iwa-news__badge,
body.search .iwa-news__badge {
  display: none !important;
}

.iwa-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #383838;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.iwa-badge:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(0, 0, 0, .18);
}

/* News card: fix layout shift from nested/duplicate links */
.iwa-news-card--overlaylink {
  position: relative;
}

.iwa-news-card--overlaylink>.iwa-news-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
}

/* 保険：body直下に余計な a があってもレイアウトを崩さない */
.iwa-news-card__body>.iwa-news-card__link {
  display: none !important;
}

/* hoverは overlay link に吸われやすいので、カードhoverでも同等に表現 */
.iwa-news-card--overlaylink:hover .iwa-news__badge a {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(0, 0, 0, .18);
}

/* News filter chips (category/news + children) */
.iwa-news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 28px;
}

.iwa-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: #383838;
  font-size: 13px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.iwa-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(0, 0, 0, .18);
}

.iwa-chip.is-active {
  background: rgba(0, 0, 0, .06);
  border-color: rgba(0, 0, 0, .22);
}

/* News抜粋：2行で省略（40文字程度を目安にPHP側でもトリム） */
.iwa-news-card__lead,
.iwa-news-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.iwa-pill {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 12px;
}

/* ニュースカード：カテゴリータグ（角丸・枠線） */
.iwa-news-card__tags {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.iwa-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 12px;
  color: #333;
  background: #fff;
}

/* ニュースカード：画像なし時 */
.iwa-news-card__noimage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e9e9e9;
  display: block;
}

/* もっと見るボタン（青背景・白文字） */
.iwa-btn--more {
  display: inline-block;
  background: #00A9F8;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}

.iwa-btn--more:hover {
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
}

/* Agreement flag badge */
.iwa-agree-card__media {
  position: relative;
}

.iwa-agree-card__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 24px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e9e9e9;
  background: #fff;
}

.iwa-agree-card__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* アーカイブ用：国旗を円形に */
.iwa-grid--agreement .iwa-agree-card__flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e9e9e9;
}

.iwa-agree-card__noimage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e9e9e9;
  display: block;
}

/* 日付（英字・薄いグレー） */
.iwa-agree-card__meta {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  color: #00A9F8;
  margin: 0 0 6px;
}

/* READ MORE ▶ */
.iwa-agree-card__more {
  margin: 12px 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.iwa-section--agreement-archive {
  padding: 32px 0 64px;
}

/* Agreement archive: by country */
.iwa-agree-country {
  margin: 0 0 60px;
}

.iwa-agree-country__title {
  margin: 0 0 36px;
  font-size: 28px;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.iwa-agree-country__title::before {
  content: none;
}

.iwa-agree-country__title[data-country]::before {
  content: "";
  width: 40px;
  height: 28px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18));
}

/* 国旗画像（style.css から見て images/ 配下） */
.iwa-agree-country__title[data-country="japan"]::before {
  background-image: url("images/japan-flag.png");
}

.iwa-agree-country__title[data-country="thai"]::before {
  background-image: url("images/thai-flag.png");
}

.iwa-agree-country__title[data-country="kyrgisu"]::before {
  background-image: url("images/kyrgisu-flag.png");
}

.iwa-agree-country__title[data-country="mongol"]::before {
  background-image: url("images/mongol-flag.png");
}

.iwa-agree-country__title[data-country="myanmar"]::before {
  background-image: url("images/myanmar-flag.png");
}

.iwa-tiktok-card__embed {
  padding: 14px;
}

.iwa-tiktok-card__body {
  padding: 0 16px 16px;
}

.iwa-tiktok-card__cap {
  margin: 0;
  font-size: 14px;
  color: #444;
}

.iwa-tiktok-card__embed blockquote.tiktok-embed {
  max-width: 100% !important;
  min-width: 0 !important;
}

.iwa-tiktok-card__embed iframe {
  max-width: 100% !important;
}

/* 共通：サムネを上、テキストを下 */
.iwa-school-card__media,
.iwa-group-card__media {
  overflow: hidden;
  border-radius: 16px;
}

/* School：角丸無し */
.iwa-school-card__media,
.iwa-school-card__thumb {
  border-radius: 0;
}

/* Group：角丸無し */
.iwa-group-card__media,
.iwa-group-card__thumb {
  border-radius: 0;
}

/* 画像の見え方（添付は写真がトリミングされている） */
.iwa-school-card__thumb,
.iwa-group-card__thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* 下段 */
.iwa-school-card__body,
.iwa-group-card__body {
  padding: 14px 2px 0;
}

/* School：ロゴは小さく“上に添える” */
.school-logo {
  height: 44px;
  display: flex;
  align-items: center;
  margin: 0 0 8px;
}

.school-logo svg,
.school-logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .school-logo {
    height: 36px;
  }
}

.iwa-school-card__title,
.iwa-group-card__title {
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

/* School：タイトル文字サイズ */
.iwa-school-card__title {
  font-size: 14px;
}

/* Schoolアーカイブ：科・コース */
.iwa-school-card__departments {
  margin: 8px 0 0;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

/* School：メタ情報（複数行・トップ／アーカイブ共通） */
.iwa-school-card__meta {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #333;
}

.iwa-school-card__meta li+li {
  margin-top: 6px;
}

.iwa-school-card__meta-label {
  display: block;
  font-weight: 500;
  color: #111;
}

.iwa-school-card__meta-value {
  display: block;
  margin-top: 2px;
}

/* School：ホームページラベル（沿革タブ .iwa-about__tab と同仕様） */
.iwa-school-card__btn-wrap {
  margin: 12px 0 0;
}

.iwa-school-card__body .iwa-school-card__hp-tab {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.iwa-school-card__link:hover .iwa-school-card__hp-tab,
.iwa-school-card__link:focus-visible .iwa-school-card__hp-tab {
  text-decoration: none;
  background: rgba(0, 169, 248, 0.08);
}

/* Iビリーブ（#f5aa2c 基調） */
.iwa-btn--school-archive.iwa-school-card__ibelieve {
  display: inline-block;
  background: #fff;
  border: 1px solid #f5aa2c;
  color: #f5aa2c;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}

.iwa-btn--school-archive.iwa-school-card__ibelieve:hover,
.iwa-btn--school-archive.iwa-school-card__ibelieve:focus-visible {
  background: rgba(245, 170, 44, 0.12);
  color: #f5aa2c;
  border-color: #f5aa2c;
}

/* 高等専修学校のみ：メインカード直下の Iビリーブ案内 */
.iwa-school-card__extra {
  margin-top: 10px;
  padding: 0 2px;
}

a.iwa-school-card__ibelieve {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

a.iwa-school-card__ibelieve:hover,
a.iwa-school-card__ibelieve:focus-visible {
  text-decoration: none;
}

/* Schoolアーカイブ：画像なし時 */
.iwa-grid--school .iwa-school-card__noimage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e9e9e9;
  display: block;
}

.iwa-section--school-archive {
  padding: 32px 0 64px;
}

/* Group：タイトル文字サイズ */
.iwa-group-card__title {
  font-size: 14px;
}

.iwa-group-card__thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.iwa-group-card__body {
  padding: 14px 2px 0;
}

.iwa-group-card__summary {
  font-size: 13px;
  margin: 8px 0 0;
  opacity: .75;
  line-height: 1.6;
}

/* Groupアーカイブ：任意テキスト（複数行） */
.iwa-grid--group .iwa-group-card__summary {
  font-size: 13px;
  color: #333;
  opacity: 1;
  line-height: 1.7;
}

/* Group：ホームページラベル（沿革タブ .iwa-about__tab と学校カード hp-tab と同仕様） */
.iwa-group-card__btn-wrap {
  margin: 14px 0 0;
}

.iwa-group-card__body .iwa-group-card__hp-tab {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.iwa-group-card__link:hover .iwa-group-card__hp-tab,
.iwa-group-card__link:focus-visible .iwa-group-card__hp-tab {
  text-decoration: none;
  background: rgba(0, 169, 248, 0.08);
}

/* Groupアーカイブ：画像なし時 */
.iwa-grid--group .iwa-group-card__noimage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e9e9e9;
  display: block;
}

.iwa-section--group-archive {
  padding: 32px 0 64px;
}

.iwa-group-card__logo img {
  height: 34px;
  width: auto;
  display: block;
  margin: 0 0 8px;
}

/* ------------------------------------------------------------
  Photo & Links（2カラム画像 + ボタン）
------------------------------------------------------------ */
.iwa-section--photo-links {
  padding: 54px 0 64px;
}

.iwa-photo-links__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 800px) {
  .iwa-photo-links__grid {
    grid-template-columns: 1fr;
  }
}

.iwa-photo-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  color: inherit;
}

.iwa-photo-link:hover {
  text-decoration: none;
}

.iwa-photo-link__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.iwa-photo-link__bg.iwa-card__noimage {
  background: #e9e9e9;
}

/* .iwa-photo-link__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
} */

.iwa-photo-link--1 .iwa-photo-link__overlay {
  justify-content: flex-end;
}

.iwa-photo-link__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.iwa-photo-link__logo {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #111;
  font-style: italic;
  letter-spacing: 0.02em;
}

.iwa-photo-link--2 .iwa-photo-link__overlay {
  justify-content: space-between;
}

.iwa-photo-link__label {
  display: block;
  font-size: 12px;
  color: #111;
  margin-bottom: 2px;
}

.iwa-photo-link__en {
  display: block;
  font-size: 11px;
  color: #333;
  margin-bottom: 8px;
}

.iwa-photo-link__recruiting {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #FFFF99;
  letter-spacing: 0.02em;
  margin: auto 0 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.iwa-photo-link__desc {
  margin: 0;
  font-size: 13px;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ボタン行：4つ / 2つ */
.iwa-photo-links__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.iwa-photo-links__buttons--4 {
  margin-top: 20px;
}

.iwa-photo-links__buttons--4 .iwa-btn {
  flex: 1;
  min-width: min(200px, 100%);
}

.iwa-photo-links__buttons--2 .iwa-btn {
  flex: 1;
  min-width: min(320px, 100%);
}

.iwa-btn--photo-links {
  background: #fff;
  border: 1px solid #00A9F8;
  color: #00A9F8;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 6px;
  text-align: center;
  min-width: 0;
}

.iwa-btn--photo-links:hover {
  text-decoration: none;
  background: rgba(0, 169, 248, 0.08);
}

/* =========================
   Post Nav (prev/back/next) - single-news
   ========================= */
.iwa-postnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
}

.iwa-postnav__prev,
.iwa-postnav__next {
  display: grid;
  gap: 6px;
  padding: 14px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  text-decoration: none;
}

.iwa-postnav__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #555;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.iwa-postnav__label {
  font-size: 12px;
  color: #777;
  line-height: 1.2;
}

.iwa-postnav__title {
  font-size: 14px;
  color: inherit;
  line-height: 1.4;
}

.iwa-postnav a.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 820.98px) {
  .iwa-postnav {
    grid-template-columns: 1fr;
  }

  .iwa-postnav__back {
    width: 100%;
    min-height: 44px;
  }
}

/* =========================
   Related Posts - single-news（4カラム・画像上・日付・タイトル縦並び・borderなし）
   ========================= */
.iwa-related {
  margin-top: 28px;
  margin-bottom: 50px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
}

.iwa-related__title {
  font-size: 18px;
  margin: 0 0 20px;
  font-style: italic;
  color: #00A9F8;
}

.iwa-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.iwa-related__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.iwa-related__link:hover {
  text-decoration: none;
}

/* 画像（上）・フル幅 */
.iwa-related__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f3f3;
}

.iwa-related__thumb--noimg {
  min-height: 120px;
}

.iwa-related__thumbImg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 日付（青） */
.iwa-related__meta {
  font-size: 12px;
  color: #00A9F8;
  line-height: 1.2;
}

/* タイトル */
.iwa-related__text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

@media (max-width: 960px) {
  .iwa-related__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .iwa-related__list {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
  Certificate（証明書の発行 / page-certificate.php）
------------------------------------------------------------ */
.iwa-certificate {
  padding: 8px 0 80px;
  color: #111;
  font-size: 15px;
  line-height: 1.75;
}

.iwa-certificate__empty-msg {
  margin: 0;
  padding: 24px 0 48px;
}

.iwa-certificate__empty-msg code {
  font-size: 0.92em;
  word-break: break-all;
}

.iwa-certificate__section {
  margin-top: 48px;
}

.iwa-certificate__section:first-of-type {
  margin-top: 0;
}

.iwa-certificate__h2,
.iwa-certificate__table-heading {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.iwa-certificate__h2::before,
.iwa-certificate__table-heading::before {
  content: "■";
  margin-right: 8px;
  font-size: 0.85em;
  vertical-align: 0.05em;
}

.iwa-certificate__lead {
  margin: 0 0 28px;
  padding: 0;
  line-height: 1.8;
}

.iwa-certificate__lead::before {
  content: "○";
  margin-right: 6px;
}

.iwa-certificate__block {
  margin-top: 28px;
}

.iwa-certificate__block:first-of-type {
  margin-top: 0;
}

.iwa-certificate__h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.iwa-certificate__p {
  margin: 0 0 12px;
}

.iwa-certificate__note {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #f5f9fc;
  border-left: 3px solid #00A9F8;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.iwa-certificate__note-mark {
  font-weight: 700;
  color: #00A9F8;
}

.iwa-certificate__table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.iwa-certificate__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid #ddd;
}

.iwa-certificate__table thead th {
  padding: 12px 10px;
  background: #00A9F8;
  color: #fff;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.iwa-certificate__table thead th:first-child {
  text-align: left;
}

.iwa-certificate__table tbody th {
  padding: 12px 10px;
  border: 1px solid #ddd;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  background: #fafafa;
}

.iwa-certificate__table tbody td {
  padding: 12px 10px;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
}

.iwa-certificate__table-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
}

.iwa-certificate__table-merged {
  text-align: left;
  line-height: 1.6;
}

.iwa-certificate__table-merged--wide {
  text-align: center;
  vertical-align: middle;
}

.iwa-certificate__ol {
  margin: 16px 0 0;
  padding-left: 1.4em;
}

.iwa-certificate__ol li {
  margin: 0.35em 0;
}

.iwa-certificate__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.iwa-certificate__downloads {
  margin-top: 8px;
}

.iwa-certificate__dl-label {
  margin: 28px 0 12px;
  font-weight: 600;
  color: #111;
}

.iwa-certificate__dl-label:first-child {
  margin-top: 0;
}

.iwa-certificate__dl-label::before {
  content: "○";
  margin-right: 6px;
}

.iwa-certificate__dl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.iwa-certificate__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #00A9F8;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.iwa-certificate__btn:hover,
.iwa-certificate__btn:focus-visible {
  background: #0090d4;
  color: #fff !important;
  text-decoration: none;
}

.iwa-certificate__address {
  margin: 0;
  font-style: normal;
  line-height: 1.9;
}

.iwa-certificate__tel a,
.iwa-certificate__mail a {
  color: #00A9F8;
  font-weight: 600;
  text-decoration: none;
}

.iwa-certificate__tel a:hover,
.iwa-certificate__mail a:focus-visible,
.iwa-certificate__mail a:hover,
.iwa-certificate__mail a:focus-visible {
  text-decoration: underline;
}

.iwa-certificate__section--map {
  margin-top: 40px;
}

.iwa-certificate__map {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #eee;
}

.iwa-certificate__map-frame {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.iwa-certificate__wp-content {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

@media (max-width: 600px) {
  .iwa-certificate__dl-row {
    grid-template-columns: 1fr;
  }

  .iwa-certificate__map-frame {
    height: 260px;
  }

  .iwa-certificate__table {
    font-size: 13px;
  }

  .iwa-certificate__table thead th,
  .iwa-certificate__table tbody th,
  .iwa-certificate__table tbody td {
    padding: 10px 8px;
  }
}