/*
Theme Name: Aikan Renewal
Theme URI: https://aikan-net.jp/
Author: APPTUNE TRADE
Description: 愛知県議会議員 須﨑かん公式サイト向けのリニューアルWordPressテーマ。
Version: 1.0.4				
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: aikan-renewal
*/

:root {
  --blue: #0b4f94;
  --blue-dark: #093c72;
  --red: #c81e2f;
  --ink: #172033;
  --muted: #657188;
  --line: #dce4ef;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --gold: #b98b31;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(18, 47, 82, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: var(--paper);
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(11, 79, 148, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-title small {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0;
}

.brand-title span {
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav a {
  color: #24324c;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--blue);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
  background: var(--red);
  box-shadow: 0 10px 20px rgba(200, 30, 47, 0.2);
  cursor: pointer;
}

.button.secondary {
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(11, 79, 148, 0.18);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--blue);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  box-shadow: 0 7px 0 #fff, 0 -7px 0 #fff;
}

.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 820px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #092944;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--hero-image) center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 23, 45, 0.82), rgba(5, 23, 45, 0.35) 48%, rgba(5, 23, 45, 0.12)),
    linear-gradient(0deg, rgba(5, 23, 45, 0.7), transparent 45%);
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 72px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 6vw, 74px);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
}

.section-title span {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.report-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 47, 82, 0.08);
}

.report-card a {
  display: grid;
  height: 100%;
}

.report-card img,
.report-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), #dce9f7);
}

.report-body {
  padding: 18px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.report-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.instagram-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 48%, var(--soft) 48%, var(--soft) 100%);
}

.instagram-panel {
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.instagram-placeholder {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  align-items: center;
  padding: clamp(26px, 5vw, 46px);
}

.instagram-mark {
  display: inline-flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #515bd4);
}

.instagram-placeholder h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
}

.instagram-placeholder p {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
}

.profile-panel,
.profile-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 28px;
}

.profile-panel h3,
.profile-list h3 {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: 22px;
}

.profile-panel p {
  margin: 0;
}

.profile-list {
  display: grid;
}

.profile-list .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.profile-list .row:last-child {
  border-bottom: 0;
}

.profile-list strong {
  color: var(--blue);
}

.profile-list p {
  margin: 0;
}

.office-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: stretch;
}

.office-card {
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue-dark);
}

.office-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.office-card p {
  margin: 0 0 14px;
}

.map-frame {
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e8eef5;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  min-height: 430px;
  overflow: hidden;
  color: #fff;
  background: var(--blue-dark);
}

.contact-band .content {
  display: grid;
  align-content: center;
  padding: clamp(34px, 6vw, 70px);
}

.contact-band h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.contact-band p {
  max-width: 560px;
  margin: 0 0 26px;
}

.contact-band img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.banner-grid a,
.wide-banner {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.wide-banner {
  margin-top: 18px;
}

.page-header {
  padding: 78px 0 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.page-header h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
}

.content-area {
  padding: 58px 0 86px;
}

.entry-content {
  max-width: 860px;
}

.entry-content a {
  color: var(--blue);
  text-decoration: underline;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.35;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--line);
}

.post-list {
  display: grid;
  gap: 22px;
}

.post-list .report-card a {
  grid-template-columns: 280px 1fr;
}

.pagination {
  margin-top: 34px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.pagination .current {
  color: #fff;
  background: var(--blue);
}

.site-footer {
  padding: 46px 0 22px;
  color: #dce7f4;
  background: #081c34;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img {
  width: 184px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.copyright {
  margin-top: 34px;
  color: #9db1ca;
  font-size: 13px;
}

.contact-form {
  width: min(760px, 100%);
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.contact-form textarea {
  min-height: 180px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 20px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
  }

  .reports-grid,
  .profile-layout,
  .office-layout,
  .contact-band,
  .instagram-placeholder,
  .banner-grid {
    grid-template-columns: 1fr;
  }

  .profile-list .row,
  .post-list .report-card a {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-title small {
    font-size: 11px;
  }

  .brand-title span {
    font-size: 16px;
  }

  .hero {
    min-height: 680px;
  }

  .hero::before {
    background-image: var(--hero-mobile-image);
    background-position: center top;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(5, 23, 45, 0.86), rgba(5, 23, 45, 0.18) 70%),
      linear-gradient(90deg, rgba(5, 23, 45, 0.4), rgba(5, 23, 45, 0.1));
  }

  .hero-content {
    padding-bottom: 42px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: grid;
    gap: 16px;
  }

  .reports-grid {
    gap: 16px;
  }

  .footer-inner {
    display: grid;
  }
}


/* Reference-inspired visual refinement: kuzuharayuki.jp */
:root {
  --blue: #123d78;
  --blue-dark: #082a5e;
  --red: #d0272f;
  --soft: #f1f4f9;
  --radius: 4px;
}

.site-header {
  border-top: 5px solid var(--red);
  border-bottom-color: rgba(8, 42, 94, 0.18);
  box-shadow: 0 4px 18px rgba(8, 42, 94, 0.08);
}

.main-nav a {
  position: relative;
  padding: 28px 0 24px;
  color: var(--blue-dark);
  letter-spacing: .02em;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 17px;
  height: 3px;
  content: "";
  background: var(--red);
  transition: right .22s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
  right: 0;
}

.hero {
  min-height: clamp(600px, 86vh, 860px);
  border-bottom: 14px solid var(--red);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(4, 23, 52, .9), rgba(4, 23, 52, .46) 50%, rgba(4, 23, 52, .04) 76%),
    linear-gradient(0deg, rgba(4, 23, 52, .76), transparent 48%);
}

.hero-content {
  padding-bottom: 82px;
}

.hero-kicker {
  border-radius: 2px;
  border-left: 5px solid var(--red);
  background: rgba(8, 42, 94, .66);
  letter-spacing: .1em;
}

.hero h1 {
  max-width: 780px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .32);
}

.section-title {
  position: relative;
  padding-left: 22px;
  color: var(--blue-dark);
}

.section-title::before {
  position: absolute;
  top: .08em;
  bottom: .08em;
  left: 0;
  width: 7px;
  content: "";
  background: linear-gradient(var(--red) 0 42%, var(--blue) 42%);
}

.report-card {
  border-top: 5px solid var(--blue);
  transition: transform .22s ease, box-shadow .22s ease;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(8, 42, 94, .16);
}

.office-card,
.contact-band {
  background: linear-gradient(135deg, #061f48, var(--blue-dark));
}

.button {
  border-bottom: 3px solid rgba(92, 0, 9, .35);
  border-radius: 3px;
}

.button.secondary {
  border-bottom-color: rgba(0, 17, 48, .4);
}

@media (max-width: 900px) {
  .main-nav a {
    padding: 13px 0;
  }

  .main-nav a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    border-top-width: 4px;
  }

  .hero {
    min-height: 700px;
    border-bottom-width: 9px;
  }

  .hero-content {
    padding-bottom: 48px;
  }
}
	

/* Motion design for the renewed home page */
@keyframes aikan-hero-zoom {
  from { transform: scale(1.01); }
  to { transform: scale(1.08); }
}

@keyframes aikan-rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aikan-slide-left {
  from { opacity: 0; transform: translateX(-42px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes aikan-fade-scale {
  from { opacity: 0; transform: translateY(44px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.home .hero::before {
  animation: aikan-hero-zoom 14s ease-out both;
  transform-origin: 70% 45%;
}

.home .hero-kicker {
  opacity: 0;
  animation: aikan-slide-left .75s .2s cubic-bezier(.22, 1, .36, 1) forwards;
}

.home .hero h1 {
  opacity: 0;
  animation: aikan-rise .9s .42s cubic-bezier(.22, 1, .36, 1) forwards;
}

.home .hero p {
  opacity: 0;
  animation: aikan-rise .9s .66s cubic-bezier(.22, 1, .36, 1) forwards;
}

.home .hero-actions {
  opacity: 0;
  animation: aikan-rise .9s .88s cubic-bezier(.22, 1, .36, 1) forwards;
}

.home .hero-actions .button {
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.home .hero-actions .button:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px rgba(8, 42, 94, .28);
}

.home .section-heading,
.home .instagram-panel,
.home .profile-layout,
.home .office-layout,
.home .contact-band,
.home .banner-grid,
.home .wide-banner {
  animation: aikan-fade-scale .85s cubic-bezier(.22, 1, .36, 1) both;
  animation-timeline: view();
  animation-range: entry 12% cover 34%;
}

.home .report-card {
  animation: aikan-rise .7s cubic-bezier(.22, 1, .36, 1) both;
  animation-timeline: view();
  animation-range: entry 8% cover 27%;
}

.home .report-card:nth-child(3n + 2) {
  animation-range: entry 13% cover 32%;
}

.home .report-card:nth-child(3n + 3) {
  animation-range: entry 18% cover 37%;
}

.home .section-title::before {
  transform-origin: top;
  animation: aikan-accent-grow .65s ease-out both;
  animation-timeline: view();
  animation-range: entry 20% cover 38%;
}

@keyframes aikan-accent-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.home .brand img,
.home .main-nav a {
  transition: transform .25s ease, color .25s ease;
}

.home .brand:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.home .main-nav a:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .home .hero::before,
  .home .hero-kicker,
  .home .hero h1,
  .home .hero p,
  .home .hero-actions,
  .home .section-heading,
  .home .instagram-panel,
  .home .profile-layout,
  .home .office-layout,
  .home .contact-band,
  .home .banner-grid,
  .home .wide-banner,
  .home .report-card,
  .home .section-title::before {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .home .hero-actions .button,
  .home .brand img,
  .home .main-nav a {
    transition: none;
  }
}
	

/* Hero mosaic assembly */
@keyframes aikan-tile-assemble {
  0% {
    opacity: 0;
    transform: translate3d(var(--tile-x), var(--tile-y), 0) rotate(var(--tile-r)) scale(.82);
  }
  65% { opacity: 1; }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes aikan-mosaic-release {
  0%, 65% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.home .hero::before {
  z-index: -3;
  animation: none;
}

.hero-mosaic {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
  animation: aikan-mosaic-release .55s 1.75s ease forwards;
}

.hero-tile {
  opacity: 0;
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-size: 400% 300%;
  animation: aikan-tile-assemble .95s cubic-bezier(.2, .82, .24, 1) forwards;
  animation-delay: var(--tile-delay);
  will-change: transform, opacity;
}

.hero-tile-1  { background-position: 0% 0%;   --tile-x: -42vw; --tile-y: -30vh; --tile-r: -7deg; --tile-delay: .05s; }
.hero-tile-2  { background-position: 33.333% 0%; --tile-x: -12vw; --tile-y: -48vh; --tile-r: 5deg;  --tile-delay: .18s; }
.hero-tile-3  { background-position: 66.666% 0%; --tile-x: 14vw;  --tile-y: -45vh; --tile-r: -4deg; --tile-delay: .11s; }
.hero-tile-4  { background-position: 100% 0%;  --tile-x: 46vw;  --tile-y: -22vh; --tile-r: 7deg;  --tile-delay: .25s; }
.hero-tile-5  { background-position: 0% 50%;  --tile-x: -50vw; --tile-y: -4vh;  --tile-r: 5deg;  --tile-delay: .24s; }
.hero-tile-6  { background-position: 33.333% 50%; --tile-x: -25vw; --tile-y: 20vh;  --tile-r: -6deg; --tile-delay: .08s; }
.hero-tile-7  { background-position: 66.666% 50%; --tile-x: 28vw;  --tile-y: -12vh; --tile-r: 4deg;  --tile-delay: .3s; }
.hero-tile-8  { background-position: 100% 50%; --tile-x: 48vw;  --tile-y: 8vh;   --tile-r: -5deg; --tile-delay: .14s; }
.hero-tile-9  { background-position: 0% 100%; --tile-x: -44vw; --tile-y: 36vh;  --tile-r: -6deg; --tile-delay: .15s; }
.hero-tile-10 { background-position: 33.333% 100%; --tile-x: -10vw; --tile-y: 48vh;  --tile-r: 5deg;  --tile-delay: .32s; }
.hero-tile-11 { background-position: 66.666% 100%; --tile-x: 16vw;  --tile-y: 45vh;  --tile-r: -4deg; --tile-delay: .2s; }
.hero-tile-12 { background-position: 100% 100%; --tile-x: 45vw;  --tile-y: 32vh;  --tile-r: 7deg;  --tile-delay: .06s; }

.home .hero-kicker { animation-delay: 1.72s; }
.home .hero h1 { animation-delay: 1.88s; }
.home .hero p { animation-delay: 2.05s; }
.home .hero-actions { animation-delay: 2.2s; }

@media (max-width: 640px) {
  .hero-tile {
    background-image: var(--hero-mobile-image);
    animation-duration: .72s;
  }

  .hero-mosaic {
    animation-delay: 1.3s;
    animation-duration: .4s;
  }

  .hero-tile-1, .hero-tile-5, .hero-tile-9 { --tile-x: -28vw; }
  .hero-tile-4, .hero-tile-8, .hero-tile-12 { --tile-x: 28vw; }
  .hero-tile-2, .hero-tile-3 { --tile-y: -26vh; }
  .hero-tile-10, .hero-tile-11 { --tile-y: 26vh; }

  .home .hero-kicker { animation-delay: 1.25s; }
  .home .hero h1 { animation-delay: 1.38s; }
  .home .hero p { animation-delay: 1.52s; }
  .home .hero-actions { animation-delay: 1.66s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mosaic { display: none; }
  .home .hero::before { z-index: -2; }
}
	

/* Cutout portrait hero with vertical name */
.home .hero {
  align-items: stretch;
  min-height: clamp(650px, 86vh, 880px);
  background:
    radial-gradient(circle at 76% 34%, rgba(81, 135, 198, .38), transparent 32%),
    linear-gradient(120deg, #061f48 0%, #0b3975 48%, #eef3f8 48.2%, #ffffff 100%);
}

.home .hero::before {
  display: none;
}

.home .hero-mosaic {
  display: none;
}

.hero-portrait-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-portrait {
  position: absolute;
  right: 3.5%;
  bottom: 0;
  width: min(53vw, 720px);
  max-width: none;
  max-height: 92%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-22px 18px 28px rgba(4, 24, 55, .22));
  opacity: 0;
  transform: translateX(90px);
  animation: aikan-portrait-in 1.05s .15s cubic-bezier(.2, .82, .24, 1) forwards;
}

.hero-vertical-name {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: clamp(10px, 1.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: .16em;
  color: var(--blue-dark);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(48px, 6.2vw, 92px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.08em;
  text-shadow:
    3px 3px 0 #fff,
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff;
  opacity: 0;
  transform: translateY(-50px);
  animation: aikan-name-in .85s .85s cubic-bezier(.2, .82, .24, 1) forwards;
}

.hero-vertical-name span {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

@keyframes aikan-portrait-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes aikan-name-in {
  to { opacity: 1; transform: translateY(0); }
}

.home .hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: end;
  width: min(1120px, calc(100% - 40px));
  padding: 0 0 76px;
}

.home .hero-content > * {
  max-width: 54%;
}

.home .hero-kicker { animation-delay: .25s; }
.home .hero h1 { animation-delay: .45s; }
.home .hero p { animation-delay: .65s; }
.home .hero-actions { animation-delay: .82s; }

@media (max-width: 900px) {
  .home .hero {
    min-height: 760px;
    background:
      linear-gradient(180deg, #eef3f8 0%, #fff 58%, #082a5e 58.2%, #061f48 100%);
  }

  .hero-portrait {
    right: 0;
    top: 70px;
    bottom: auto;
    width: min(84vw, 600px);
    max-height: 68%;
  }

  .hero-vertical-name {
    top: 12%;
    right: 8px;
    font-size: clamp(46px, 11vw, 70px);
  }

  .home .hero-content {
    align-content: end;
    padding-bottom: 42px;
  }

  .home .hero-content > * {
    max-width: 100%;
  }

  .home .hero h1 {
    font-size: clamp(34px, 9vw, 52px);
  }
}

@media (max-width: 640px) {
  .home .hero {
    min-height: 760px;
  }

  .hero-portrait {
    top: 74px;
    right: -10%;
    width: 102vw;
    max-height: 63%;
  }

  .hero-vertical-name {
    top: 10%;
    right: 5px;
    font-size: 48px;
  }

  .home .hero-content {
    padding-bottom: 34px;
  }

  .home .hero p {
    margin-top: 14px;
    font-size: 15px;
  }

  .home .hero-actions {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait,
  .hero-vertical-name {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
	

/* Cutout portrait mosaic motion + larger vertical name */
.home .hero-mosaic {
  display: block;
  z-index: 1;
  animation: aikan-mosaic-release .48s 1.68s ease forwards;
}

.home .hero-tile {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url('https://aikan-net.jp/cms-948230/wp-content/uploads/2026/08/susaki-kan-cutout-v2.png');
  background-repeat: no-repeat;
  background-position: right 3.5% bottom;
  background-size: min(53vw, 720px) auto;
  animation: aikan-tile-assemble .9s cubic-bezier(.2, .82, .24, 1) forwards;
  animation-delay: var(--tile-delay);
}

.home .hero-tile-1  { clip-path: inset(0 75% 66.666% 0); }
.home .hero-tile-2  { clip-path: inset(0 50% 66.666% 25%); }
.home .hero-tile-3  { clip-path: inset(0 25% 66.666% 50%); }
.home .hero-tile-4  { clip-path: inset(0 0 66.666% 75%); }
.home .hero-tile-5  { clip-path: inset(33.333% 75% 33.333% 0); }
.home .hero-tile-6  { clip-path: inset(33.333% 50% 33.333% 25%); }
.home .hero-tile-7  { clip-path: inset(33.333% 25% 33.333% 50%); }
.home .hero-tile-8  { clip-path: inset(33.333% 0 33.333% 75%); }
.home .hero-tile-9  { clip-path: inset(66.666% 75% 0 0); }
.home .hero-tile-10 { clip-path: inset(66.666% 50% 0 25%); }
.home .hero-tile-11 { clip-path: inset(66.666% 25% 0 50%); }
.home .hero-tile-12 { clip-path: inset(66.666% 0 0 75%); }

.home .hero-portrait {
  animation: aikan-portrait-in .45s 1.7s ease forwards;
}

.home .hero-vertical-name {
  right: clamp(4px, .8vw, 14px);
  font-size: clamp(68px, 8vw, 126px);
  line-height: .82;
  animation-delay: 1.86s;
}

.home .hero-kicker { animation-delay: 1.74s; }
.home .hero h1 { animation-delay: 1.9s; }
.home .hero p { animation-delay: 2.08s; }
.home .hero-actions { animation-delay: 2.24s; }

@media (max-width: 900px) {
  .home .hero-tile {
    background-position: right -10% top 74px;
    background-size: 102vw auto;
    animation-duration: .7s;
  }

  .home .hero-mosaic {
    animation-delay: 1.28s;
    animation-duration: .38s;
  }

  .home .hero-portrait {
    animation-delay: 1.3s;
  }

  .home .hero-vertical-name {
    right: 1px;
    font-size: clamp(58px, 14vw, 82px);
    animation-delay: 1.42s;
  }

  .home .hero-kicker { animation-delay: 1.35s; }
  .home .hero h1 { animation-delay: 1.48s; }
  .home .hero p { animation-delay: 1.62s; }
  .home .hero-actions { animation-delay: 1.76s; }
}

@media (prefers-reduced-motion: reduce) {
  .home .hero-mosaic { display: none; }
}
	

/* Finer 24-piece portrait assembly and reference-scale name */
.home .hero-mosaic { animation-delay: 2.02s; animation-duration: .5s; }
.home .hero-tile { animation-duration: 1.08s; }
.home .hero-tile-1 { clip-path: inset(0% 83.333% 75% 0.000%); --tile-x: -22vw; --tile-y: -18vh; --tile-r: -4deg; --tile-delay: 0.205s; }
.home .hero-tile-2 { clip-path: inset(0% 66.667% 75% 16.667%); --tile-x: -29vw; --tile-y: -18vh; --tile-r: 5deg; --tile-delay: 0.055s; }
.home .hero-tile-3 { clip-path: inset(0% 50.000% 75% 33.333%); --tile-x: -36vw; --tile-y: -18vh; --tile-r: -6deg; --tile-delay: 0.230s; }
.home .hero-tile-4 { clip-path: inset(0% 33.333% 75% 50.000%); --tile-x: 36vw; --tile-y: -18vh; --tile-r: 7deg; --tile-delay: 0.080s; }
.home .hero-tile-5 { clip-path: inset(0% 16.667% 75% 66.667%); --tile-x: 29vw; --tile-y: -18vh; --tile-r: -3deg; --tile-delay: 0.255s; }
.home .hero-tile-6 { clip-path: inset(0% 0.000% 75% 83.333%); --tile-x: 22vw; --tile-y: -18vh; --tile-r: 4deg; --tile-delay: 0.105s; }
.home .hero-tile-7 { clip-path: inset(25% 83.333% 50% 0.000%); --tile-x: -22vw; --tile-y: -29vh; --tile-r: -5deg; --tile-delay: 0.280s; }
.home .hero-tile-8 { clip-path: inset(25% 66.667% 50% 16.667%); --tile-x: -29vw; --tile-y: -29vh; --tile-r: 6deg; --tile-delay: 0.130s; }
.home .hero-tile-9 { clip-path: inset(25% 50.000% 50% 33.333%); --tile-x: -36vw; --tile-y: -29vh; --tile-r: -7deg; --tile-delay: 0.305s; }
.home .hero-tile-10 { clip-path: inset(25% 33.333% 50% 50.000%); --tile-x: 36vw; --tile-y: -29vh; --tile-r: 3deg; --tile-delay: 0.155s; }
.home .hero-tile-11 { clip-path: inset(25% 16.667% 50% 66.667%); --tile-x: 29vw; --tile-y: -29vh; --tile-r: -4deg; --tile-delay: 0.330s; }
.home .hero-tile-12 { clip-path: inset(25% 0.000% 50% 83.333%); --tile-x: 22vw; --tile-y: -29vh; --tile-r: 5deg; --tile-delay: 0.180s; }
.home .hero-tile-13 { clip-path: inset(50% 83.333% 25% 0.000%); --tile-x: -22vw; --tile-y: 29vh; --tile-r: -6deg; --tile-delay: 0.030s; }
.home .hero-tile-14 { clip-path: inset(50% 66.667% 25% 16.667%); --tile-x: -29vw; --tile-y: 29vh; --tile-r: 7deg; --tile-delay: 0.205s; }
.home .hero-tile-15 { clip-path: inset(50% 50.000% 25% 33.333%); --tile-x: -36vw; --tile-y: 29vh; --tile-r: -3deg; --tile-delay: 0.055s; }
.home .hero-tile-16 { clip-path: inset(50% 33.333% 25% 50.000%); --tile-x: 36vw; --tile-y: 29vh; --tile-r: 4deg; --tile-delay: 0.230s; }
.home .hero-tile-17 { clip-path: inset(50% 16.667% 25% 66.667%); --tile-x: 29vw; --tile-y: 29vh; --tile-r: -5deg; --tile-delay: 0.080s; }
.home .hero-tile-18 { clip-path: inset(50% 0.000% 25% 83.333%); --tile-x: 22vw; --tile-y: 29vh; --tile-r: 6deg; --tile-delay: 0.255s; }
.home .hero-tile-19 { clip-path: inset(75% 83.333% 0% 0.000%); --tile-x: -22vw; --tile-y: 18vh; --tile-r: -7deg; --tile-delay: 0.105s; }
.home .hero-tile-20 { clip-path: inset(75% 66.667% 0% 16.667%); --tile-x: -29vw; --tile-y: 18vh; --tile-r: 3deg; --tile-delay: 0.280s; }
.home .hero-tile-21 { clip-path: inset(75% 50.000% 0% 33.333%); --tile-x: -36vw; --tile-y: 18vh; --tile-r: -4deg; --tile-delay: 0.130s; }
.home .hero-tile-22 { clip-path: inset(75% 33.333% 0% 50.000%); --tile-x: 36vw; --tile-y: 18vh; --tile-r: 5deg; --tile-delay: 0.305s; }
.home .hero-tile-23 { clip-path: inset(75% 16.667% 0% 66.667%); --tile-x: 29vw; --tile-y: 18vh; --tile-r: -6deg; --tile-delay: 0.155s; }
.home .hero-tile-24 { clip-path: inset(75% 0.000% 0% 83.333%); --tile-x: 22vw; --tile-y: 18vh; --tile-r: 7deg; --tile-delay: 0.330s; }
.home .hero-portrait { animation-delay: 2.04s; }
.home .hero-vertical-name { top: 4%; right: clamp(-10px, -.35vw, -2px); font-size: clamp(104px, 11.6vw, 184px); line-height: .7; letter-spacing: -.12em; animation-delay: 2.18s; }
.home .hero-kicker { animation-delay: 2.08s; }
.home .hero h1 { animation-delay: 2.24s; }
.home .hero p { animation-delay: 2.42s; }
.home .hero-actions { animation-delay: 2.58s; }
@media (max-width: 900px) {
 .home .hero-mosaic { animation-delay: 1.58s; animation-duration: .4s; }
 .home .hero-tile { animation-duration: .8s; }
 .home .hero-portrait { animation-delay: 1.6s; }
 .home .hero-vertical-name { top: 8%; right: -3px; font-size: clamp(68px, 17vw, 94px); line-height: .72; animation-delay: 1.72s; }
 .home .hero-kicker { animation-delay: 1.65s; }
 .home .hero h1 { animation-delay: 1.8s; }
 .home .hero p { animation-delay: 1.95s; }
 .home .hero-actions { animation-delay: 2.1s; }
}
	
/* Final reference-scale name fit */
.home .hero-vertical-name { right: 2px; font-size: clamp(100px, 10.3vw, 164px); }
@media (max-width: 900px) { .home .hero-vertical-name { right: 0; font-size: clamp(66px, 16vw, 90px); } }
	

/* Ultra-fine 48-piece assembly and overlapping name */
.home .hero-mosaic { animation-delay: 2.12s; animation-duration: .48s; }
.home .hero-tile { animation-duration: 1.12s; }
.home .hero-tile-1 { clip-path: inset(0.000% 87.500% 83.333% 0.000%); --tile-x: -18vw; --tile-y: -14vh; --tile-r: -3deg; --tile-delay: 0.218s; }
.home .hero-tile-2 { clip-path: inset(0.000% 75.000% 83.333% 12.500%); --tile-x: -23vw; --tile-y: -14vh; --tile-r: 4deg; --tile-delay: 0.110s; }
.home .hero-tile-3 { clip-path: inset(0.000% 62.500% 83.333% 25.000%); --tile-x: -28vw; --tile-y: -14vh; --tile-r: -5deg; --tile-delay: 0.308s; }
.home .hero-tile-4 { clip-path: inset(0.000% 50.000% 83.333% 37.500%); --tile-x: -33vw; --tile-y: -14vh; --tile-r: 2deg; --tile-delay: 0.200s; }
.home .hero-tile-5 { clip-path: inset(0.000% 37.500% 83.333% 50.000%); --tile-x: 33vw; --tile-y: -14vh; --tile-r: -3deg; --tile-delay: 0.092s; }
.home .hero-tile-6 { clip-path: inset(0.000% 25.000% 83.333% 62.500%); --tile-x: 28vw; --tile-y: -14vh; --tile-r: 4deg; --tile-delay: 0.290s; }
.home .hero-tile-7 { clip-path: inset(0.000% 12.500% 83.333% 75.000%); --tile-x: 23vw; --tile-y: -14vh; --tile-r: -5deg; --tile-delay: 0.182s; }
.home .hero-tile-8 { clip-path: inset(0.000% 0.000% 83.333% 87.500%); --tile-x: 18vw; --tile-y: -14vh; --tile-r: 2deg; --tile-delay: 0.074s; }
.home .hero-tile-9 { clip-path: inset(16.667% 87.500% 66.667% 0.000%); --tile-x: -18vw; --tile-y: -20vh; --tile-r: -3deg; --tile-delay: 0.272s; }
.home .hero-tile-10 { clip-path: inset(16.667% 75.000% 66.667% 12.500%); --tile-x: -23vw; --tile-y: -20vh; --tile-r: 4deg; --tile-delay: 0.164s; }
.home .hero-tile-11 { clip-path: inset(16.667% 62.500% 66.667% 25.000%); --tile-x: -28vw; --tile-y: -20vh; --tile-r: -5deg; --tile-delay: 0.056s; }
.home .hero-tile-12 { clip-path: inset(16.667% 50.000% 66.667% 37.500%); --tile-x: -33vw; --tile-y: -20vh; --tile-r: 2deg; --tile-delay: 0.254s; }
.home .hero-tile-13 { clip-path: inset(16.667% 37.500% 66.667% 50.000%); --tile-x: 33vw; --tile-y: -20vh; --tile-r: -3deg; --tile-delay: 0.146s; }
.home .hero-tile-14 { clip-path: inset(16.667% 25.000% 66.667% 62.500%); --tile-x: 28vw; --tile-y: -20vh; --tile-r: 4deg; --tile-delay: 0.038s; }
.home .hero-tile-15 { clip-path: inset(16.667% 12.500% 66.667% 75.000%); --tile-x: 23vw; --tile-y: -20vh; --tile-r: -5deg; --tile-delay: 0.236s; }
.home .hero-tile-16 { clip-path: inset(16.667% 0.000% 66.667% 87.500%); --tile-x: 18vw; --tile-y: -20vh; --tile-r: 2deg; --tile-delay: 0.128s; }
.home .hero-tile-17 { clip-path: inset(33.333% 87.500% 50.000% 0.000%); --tile-x: -18vw; --tile-y: -26vh; --tile-r: -3deg; --tile-delay: 0.020s; }
.home .hero-tile-18 { clip-path: inset(33.333% 75.000% 50.000% 12.500%); --tile-x: -23vw; --tile-y: -26vh; --tile-r: 4deg; --tile-delay: 0.218s; }
.home .hero-tile-19 { clip-path: inset(33.333% 62.500% 50.000% 25.000%); --tile-x: -28vw; --tile-y: -26vh; --tile-r: -5deg; --tile-delay: 0.110s; }
.home .hero-tile-20 { clip-path: inset(33.333% 50.000% 50.000% 37.500%); --tile-x: -33vw; --tile-y: -26vh; --tile-r: 2deg; --tile-delay: 0.308s; }
.home .hero-tile-21 { clip-path: inset(33.333% 37.500% 50.000% 50.000%); --tile-x: 33vw; --tile-y: -26vh; --tile-r: -3deg; --tile-delay: 0.200s; }
.home .hero-tile-22 { clip-path: inset(33.333% 25.000% 50.000% 62.500%); --tile-x: 28vw; --tile-y: -26vh; --tile-r: 4deg; --tile-delay: 0.092s; }
.home .hero-tile-23 { clip-path: inset(33.333% 12.500% 50.000% 75.000%); --tile-x: 23vw; --tile-y: -26vh; --tile-r: -5deg; --tile-delay: 0.290s; }
.home .hero-tile-24 { clip-path: inset(33.333% 0.000% 50.000% 87.500%); --tile-x: 18vw; --tile-y: -26vh; --tile-r: 2deg; --tile-delay: 0.182s; }
.home .hero-tile-25 { clip-path: inset(50.000% 87.500% 33.333% 0.000%); --tile-x: -18vw; --tile-y: 26vh; --tile-r: -3deg; --tile-delay: 0.074s; }
.home .hero-tile-26 { clip-path: inset(50.000% 75.000% 33.333% 12.500%); --tile-x: -23vw; --tile-y: 26vh; --tile-r: 4deg; --tile-delay: 0.272s; }
.home .hero-tile-27 { clip-path: inset(50.000% 62.500% 33.333% 25.000%); --tile-x: -28vw; --tile-y: 26vh; --tile-r: -5deg; --tile-delay: 0.164s; }
.home .hero-tile-28 { clip-path: inset(50.000% 50.000% 33.333% 37.500%); --tile-x: -33vw; --tile-y: 26vh; --tile-r: 2deg; --tile-delay: 0.056s; }
.home .hero-tile-29 { clip-path: inset(50.000% 37.500% 33.333% 50.000%); --tile-x: 33vw; --tile-y: 26vh; --tile-r: -3deg; --tile-delay: 0.254s; }
.home .hero-tile-30 { clip-path: inset(50.000% 25.000% 33.333% 62.500%); --tile-x: 28vw; --tile-y: 26vh; --tile-r: 4deg; --tile-delay: 0.146s; }
.home .hero-tile-31 { clip-path: inset(50.000% 12.500% 33.333% 75.000%); --tile-x: 23vw; --tile-y: 26vh; --tile-r: -5deg; --tile-delay: 0.038s; }
.home .hero-tile-32 { clip-path: inset(50.000% 0.000% 33.333% 87.500%); --tile-x: 18vw; --tile-y: 26vh; --tile-r: 2deg; --tile-delay: 0.236s; }
.home .hero-tile-33 { clip-path: inset(66.667% 87.500% 16.667% 0.000%); --tile-x: -18vw; --tile-y: 20vh; --tile-r: -3deg; --tile-delay: 0.128s; }
.home .hero-tile-34 { clip-path: inset(66.667% 75.000% 16.667% 12.500%); --tile-x: -23vw; --tile-y: 20vh; --tile-r: 4deg; --tile-delay: 0.020s; }
.home .hero-tile-35 { clip-path: inset(66.667% 62.500% 16.667% 25.000%); --tile-x: -28vw; --tile-y: 20vh; --tile-r: -5deg; --tile-delay: 0.218s; }
.home .hero-tile-36 { clip-path: inset(66.667% 50.000% 16.667% 37.500%); --tile-x: -33vw; --tile-y: 20vh; --tile-r: 2deg; --tile-delay: 0.110s; }
.home .hero-tile-37 { clip-path: inset(66.667% 37.500% 16.667% 50.000%); --tile-x: 33vw; --tile-y: 20vh; --tile-r: -3deg; --tile-delay: 0.308s; }
.home .hero-tile-38 { clip-path: inset(66.667% 25.000% 16.667% 62.500%); --tile-x: 28vw; --tile-y: 20vh; --tile-r: 4deg; --tile-delay: 0.200s; }
.home .hero-tile-39 { clip-path: inset(66.667% 12.500% 16.667% 75.000%); --tile-x: 23vw; --tile-y: 20vh; --tile-r: -5deg; --tile-delay: 0.092s; }
.home .hero-tile-40 { clip-path: inset(66.667% 0.000% 16.667% 87.500%); --tile-x: 18vw; --tile-y: 20vh; --tile-r: 2deg; --tile-delay: 0.290s; }
.home .hero-tile-41 { clip-path: inset(83.333% 87.500% 0.000% 0.000%); --tile-x: -18vw; --tile-y: 14vh; --tile-r: -3deg; --tile-delay: 0.182s; }
.home .hero-tile-42 { clip-path: inset(83.333% 75.000% 0.000% 12.500%); --tile-x: -23vw; --tile-y: 14vh; --tile-r: 4deg; --tile-delay: 0.074s; }
.home .hero-tile-43 { clip-path: inset(83.333% 62.500% 0.000% 25.000%); --tile-x: -28vw; --tile-y: 14vh; --tile-r: -5deg; --tile-delay: 0.272s; }
.home .hero-tile-44 { clip-path: inset(83.333% 50.000% 0.000% 37.500%); --tile-x: -33vw; --tile-y: 14vh; --tile-r: 2deg; --tile-delay: 0.164s; }
.home .hero-tile-45 { clip-path: inset(83.333% 37.500% 0.000% 50.000%); --tile-x: 33vw; --tile-y: 14vh; --tile-r: -3deg; --tile-delay: 0.056s; }
.home .hero-tile-46 { clip-path: inset(83.333% 25.000% 0.000% 62.500%); --tile-x: 28vw; --tile-y: 14vh; --tile-r: 4deg; --tile-delay: 0.254s; }
.home .hero-tile-47 { clip-path: inset(83.333% 12.500% 0.000% 75.000%); --tile-x: 23vw; --tile-y: 14vh; --tile-r: -5deg; --tile-delay: 0.146s; }
.home .hero-tile-48 { clip-path: inset(83.333% 0.000% 0.000% 87.500%); --tile-x: 18vw; --tile-y: 14vh; --tile-r: 2deg; --tile-delay: 0.038s; }
.home .hero-portrait { animation-delay: 2.14s; }
.home .hero-vertical-name { top: 2%; right: 9vw; z-index: 4; font-size: clamp(122px, 12.8vw, 190px); line-height: .66; letter-spacing: -.14em; animation-delay: 2.28s; }
.home .hero-kicker { animation-delay: 2.18s; }
.home .hero h1 { animation-delay: 2.34s; }
.home .hero p { animation-delay: 2.52s; }
.home .hero-actions { animation-delay: 2.68s; }
@media (max-width: 900px) {
 .home .hero-mosaic { animation-delay: 1.68s; animation-duration: .38s; }
 .home .hero-tile { animation-duration: .84s; }
 .home .hero-portrait { animation-delay: 1.7s; }
 .home .hero-vertical-name { top: 6%; right: 5%; font-size: clamp(76px, 20vw, 106px); line-height: .68; animation-delay: 1.82s; }
 .home .hero-kicker { animation-delay: 1.76s; }
 .home .hero h1 { animation-delay: 1.9s; }
 .home .hero p { animation-delay: 2.04s; }
 .home .hero-actions { animation-delay: 2.18s; }
}
	
/* Vertical name position adjustment */
.home .hero-vertical-name { right: 4vw; }
@media (max-width: 900px) { .home .hero-vertical-name { right: 2%; } }
	
/* Keep the full vertical name inside the hero */
.home .hero-vertical-name { top: 0; right: 4vw; font-size: clamp(118px, 11.8vw, 178px); line-height: .64; gap: .08em; }
@media (max-width: 900px) { .home .hero-vertical-name { top: 4%; right: 2%; font-size: clamp(72px, 18.5vw, 98px); line-height: .66; gap: .04em; } }
	

/* Top-left social icons */
.hero-socials {
  position: absolute;
  z-index: 8;
  top: 28px;
  left: max(28px, calc((100% - 1120px) / 2));
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(-18px);
  animation: aikan-socials-in .7s .45s cubic-bezier(.2, .82, .24, 1) forwards;
}

.hero-social {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(4, 24, 55, .24);
  transition: transform .22s ease, box-shadow .22s ease;
}

.hero-social:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 14px 28px rgba(4, 24, 55, .3);
}

.hero-social.youtube { padding-left: 3px; background: #e62117; }
.hero-social.instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7); }
.hero-social.note { color: #111; background: #fff; font-family: Arial, sans-serif; font-size: 30px; }

@keyframes aikan-socials-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Prevent the lower stroke of the vertical name from clipping */
.home .hero-vertical-name {
  line-height: 1;
}

@media (max-width: 900px) {
  .hero-socials {
    top: 14px;
    left: 14px;
    gap: 8px;
  }

  .hero-social {
    width: 42px;
    height: 42px;
    border-width: 2px;
    font-size: 19px;
  }

  .hero-social.note {
    font-size: 25px;
  }

  .home .hero-vertical-name {
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-socials {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
	
/* Hide unavailable channels and preserve full vertical glyph shapes */
.hero-social.youtube, .hero-social.note { display: none; }
.hero-vertical-name { overflow: visible; }
.hero-vertical-name span { overflow: visible; padding-inline-end: .22em; padding-block: .14em; margin-block: -.14em; }
	

/* Official-style Instagram camera glyph */
.hero-social.instagram {
  background:
    radial-gradient(circle at 30% 105%, #fdf497 0 5%, #fdf497 5%, #fd5949 38%, #d6249f 62%, #285aeb 100%);
}

.instagram-camera {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  border: 3px solid #fff;
  border-radius: 8px;
}

.instagram-camera::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 3px solid #fff;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.instagram-camera::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: #fff;
}

@media (max-width: 900px) {
  .instagram-camera {
    width: 23px;
    height: 23px;
    border-width: 2.5px;
    border-radius: 7px;
  }

  .instagram-camera::before {
    width: 8px;
    height: 8px;
    border-width: 2.5px;
  }

  .instagram-camera::after {
    top: 3px;
    right: 3px;
    width: 3px;
    height: 3px;
  }
}
	

/* Show unopened YouTube and note channels as non-clickable icons */
.hero-social.youtube.is-pending,
.hero-social.note.is-pending {
  display: inline-flex;
  cursor: default;
  pointer-events: none;
}

.hero-social.youtube.is-pending {
  color: #fff;
  background: #ff0000;
}

.hero-social.note.is-pending {
  color: #fff;
  background: #000;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.hero-social.is-pending:hover {
  transform: none;
  box-shadow: 0 8px 22px rgba(4, 24, 55, .24);
}
	
/* Social icon order */
.hero-social.instagram { order: 1; }
.hero-social.youtube { order: 2; }
.hero-social.note { order: 3; }
	

/* Render the vertical name as four independent horizontal glyphs */
.home .hero-vertical-name {
  gap: 0;
}

.home .hero-vertical-name span {
  display: block;
  overflow: visible;
  margin: 0;
  padding: 0 .14em .05em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  line-height: .82;
}
	
/* Keep first and last independent glyphs fully visible */
@media (min-width: 901px) { .home .hero-vertical-name { top: 2%; } }
	

/* Social spacing and fitted office-title badge */
.hero-socials {
  gap: 20px;
}

.home .hero-kicker {
  justify-self: start;
  width: fit-content;
  max-width: none;
  min-height: 42px;
  padding: 7px 18px;
  font-size: 17px;
  letter-spacing: .04em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-socials {
    gap: 12px;
  }

  .home .hero-kicker {
    min-height: 36px;
    padding: 6px 13px;
    font-size: 14px;
  }
}
	

/* Fixed two-line hero title */
.home .hero h1 {
  max-width: 62%;
  font-size: clamp(38px, 5.15vw, 66px);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .home .hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.4vw, 48px);
  }
}

/* Mobile portrait layering and linked YouTube icon */
.hero-social.youtube {
  display: inline-flex;
}

@media (max-width: 900px) {
  .home .hero::after {
    z-index: -2;
  }

  .home .hero-portrait-wrap {
    z-index: -1;
  }
}

/* Mobile hero kicker at the upper-right */
@media (max-width: 900px) {
  .home .hero-kicker {
    position: absolute;
    top: 14px;
    right: 0;
    z-index: 5;
    width: max-content;
    max-width: calc(100% - 20px);
    margin: 0;
  }
}

/* Mobile hero kicker below social icons */
@media (max-width: 900px) {
  .home .hero-kicker {
    top: 66px;
    right: auto;
    left: -6px;
  }
}

/* Designed PDF report download card */
.report-download-wrap {
  max-width: 680px;
  margin: 30px 0 10px;
}

.report-download-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(8, 42, 94, .14);
  border-left: 7px solid var(--red);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #082a5e 0%, #124b8d 100%);
  box-shadow: 0 14px 32px rgba(8, 42, 94, .2);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.report-download-card:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(8, 42, 94, .28);
}

.report-download-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
}

.report-download-copy {
  display: grid;
  gap: 5px;
}

.report-download-copy strong {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.3;
}

.report-download-copy small {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.report-download-arrow {
  font-size: 34px;
  line-height: 1;
}

@media (max-width: 600px) {
  .report-download-card {
    grid-template-columns: 54px 1fr auto;
    gap: 13px;
    padding: 18px 16px;
  }

  .report-download-badge {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }

  .report-download-copy strong { font-size: 19px; }
  .report-download-copy small { font-size: 11px; }
  .report-download-arrow { font-size: 26px; }
}

/* Keep report-card text readable over the blue background */
.report-download-card .report-download-copy strong,
.report-download-card .report-download-arrow {
  color: #fff;
}

.report-download-card .report-download-copy small {
  color: rgba(255, 255, 255, .88);
}

/* Responsive YouTube video in NEWS posts */
.video-news-embed {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 34px auto 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #061f48;
  box-shadow: 0 18px 42px rgba(4, 24, 55, .22);
}

.video-news-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-news-link {
  text-align: center;
}

.video-news-link a {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 4px;
  color: #fff;
  background: #e62117;
  font-weight: 800;
  text-decoration: none;
}

/* NEWS feature photograph */
.news-feature-photo {
  max-width: 1100px;
  margin: 34px auto;
}

.news-feature-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(4, 24, 55, .18);
}

.news-feature-photo figcaption {
  margin-top: 9px;
  color: #667085;
  font-size: 13px;
  text-align: right;
}

/* Additional campaign banners */
.campaign-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.campaign-banner-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(4, 24, 55, .12);
}

@media (max-width: 720px) {
  .campaign-banner-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Show the full contact map image on mobile */
@media (max-width: 900px) {
  .contact-band img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }
}

/* Editorial profile showcase */
.profile-showcase-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(226, 36, 46, .04), transparent 30%),
    #fff;
}

.profile-heading {
  justify-content: center;
  text-align: center;
}

.profile-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: stretch;
}

.profile-details {
  display: grid;
  gap: 20px;
}

.profile-intro-card {
  position: relative;
  padding: 28px 30px;
  border-left: 7px solid var(--red);
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #061f48, #0b3f7f);
  box-shadow: 0 16px 34px rgba(4, 24, 55, .16);
}

.profile-eyebrow {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.profile-intro-card h3 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.profile-intro-card p:last-child {
  margin: 0;
  line-height: 1.9;
}

.profile-info-group {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(4, 24, 55, .08);
}

.profile-info-group h3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 22px 20px;
  color: #fff;
  background: #082a5e;
  font-size: 17px;
  line-height: 1.45;
}

.profile-info-group h3 span {
  color: #79b4e4;
  font-size: 13px;
  letter-spacing: .12em;
}

.profile-info-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0;
  padding: 24px 26px;
  list-style: none;
}

.profile-info-group li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}

.profile-info-group li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--red);
}

.profile-party-group h3 { background: #123d78; }

.profile-portrait-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 720px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(160deg, #f5f8fb 0%, #dce9f5 54%, #082a5e 54.2%, #061f48 100%);
  box-shadow: 0 20px 48px rgba(4, 24, 55, .16);
}

.profile-portrait-frame {
  position: absolute;
  inset: 20px 0 92px;
}

.profile-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(-12px 16px 22px rgba(4, 24, 55, .2));
}

.profile-portrait-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 24px 26px;
  border-left: 6px solid var(--red);
  font-size: 17px;
  font-weight: 800;
}

.profile-portrait-card > p span {
  display: block;
  margin-bottom: 4px;
  color: #79b4e4;
  font-size: 12px;
  letter-spacing: .16em;
}

@media (max-width: 1000px) {
  .profile-showcase {
    grid-template-columns: 1fr;
  }

  .profile-portrait-card {
    order: -1;
    min-height: 540px;
  }

  .profile-portrait-frame {
    inset: 12px 8% 84px;
  }
}

@media (max-width: 700px) {
  .profile-intro-card { padding: 22px 20px; }

  .profile-info-group {
    grid-template-columns: 1fr;
  }

  .profile-info-group h3 {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 18px;
  }

  .profile-info-group ul {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .profile-portrait-card { min-height: 450px; }
}

/* Mobile readability for activity/news cards */
@media (max-width: 640px) {
  .home .reports-grid,
  .post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home .report-card,
  .post-list .report-card {
    overflow: hidden;
    width: 100%;
    border: 1px solid #d7e0ec;
    border-top: 5px solid var(--blue);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(8, 42, 94, .12);
    opacity: 1;
    transform: none;
    animation: none;
  }

  .home .report-card a,
  .post-list .report-card a {
    display: block;
    color: var(--blue-dark);
  }

  .home .report-card img,
  .home .report-thumb,
  .post-list .report-card img,
  .post-list .report-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .home .report-body,
  .post-list .report-body {
    padding: 16px 16px 18px;
  }

  .home .report-meta,
  .post-list .report-meta {
    gap: 7px;
    margin-bottom: 9px;
    color: #52647a;
    font-size: 12px;
    line-height: 1.5;
  }

  .home .report-meta span,
  .post-list .report-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
  }

  .home .report-card h3,
  .post-list .report-card h3 {
    margin: 0;
    color: #102847;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
  }

  .home .section-heading .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Responsive activity video page */
.page-id-642 .content-area { background: #f3f6fa; }
.page-id-642 .entry-content > p:has(iframe) {
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  margin: 0 0 24px; padding: 16px; border: 1px solid #d7e0ec;
  border-top: 5px solid var(--blue); border-radius: 8px; color: #102847;
  background: #fff; box-shadow: 0 10px 28px rgba(8, 42, 94, .1);
  font-size: 17px; font-weight: 800; line-height: 1.65;
}
.page-id-642 .entry-content iframe {
  display: block; width: 100% !important; max-width: 100%;
  height: auto !important; margin: 0; border: 0; border-radius: 6px;
  aspect-ratio: 16 / 9;
}
.page-id-642 .entry-content hr { display: none; }

@media (max-width: 640px) {
  .page-id-642 .page-header { padding: 38px 0 30px; }
  .page-id-642 .page-header h1 { font-size: clamp(29px, 9vw, 40px); line-height: 1.25; }
  .page-id-642 .content-area { padding: 34px 0 56px; }
  .page-id-642 .entry-content > p:first-child {
    margin: 0 0 22px; font-size: 16px; line-height: 1.8;
  }
  .page-id-642 .entry-content > p:has(iframe) {
    gap: 10px; margin-bottom: 18px; padding: 10px 10px 14px;
    font-size: 15px; line-height: 1.6;
  }
}

/* Reliable TOP assembly animation on smartphones */
@media (max-width: 900px) {
  .home .hero-mosaic {
    display: block !important; opacity: 1; visibility: visible;
    animation: aikan-mosaic-release .42s 1.28s ease forwards !important;
  }
  .home .hero-tile {
    opacity: 0;
    animation: aikan-tile-assemble .78s cubic-bezier(.2, .82, .24, 1) forwards !important;
    animation-delay: calc(.18s + var(--tile-delay)) !important;
  }
  .home .hero-portrait {
    opacity: 0; transform: translateX(64px);
    animation: aikan-portrait-in .8s 1.24s cubic-bezier(.2, .82, .24, 1) forwards !important;
  }
  .home .hero-vertical-name {
    opacity: 0; transform: translateY(-34px);
    animation: aikan-name-in .68s 1.38s cubic-bezier(.2, .82, .24, 1) forwards !important;
  }
  .home .hero-kicker {
    opacity: 0;
    animation: aikan-slide-left .58s 1.42s cubic-bezier(.22, 1, .36, 1) forwards !important;
  }
  .home .hero h1 {
    opacity: 0;
    animation: aikan-rise .62s 1.54s cubic-bezier(.22, 1, .36, 1) forwards !important;
  }
  .home .hero p {
    opacity: 0;
    animation: aikan-rise .62s 1.66s cubic-bezier(.22, 1, .36, 1) forwards !important;
  }
  .home .hero-actions {
    opacity: 0;
    animation: aikan-rise .62s 1.78s cubic-bezier(.22, 1, .36, 1) forwards !important;
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .home .hero-mosaic {
    display: block !important;
    animation: aikan-mosaic-release .3s 1.05s ease forwards !important;
  }
  .home .hero-tile {
    animation: aikan-tile-assemble .55s ease-out forwards !important;
    animation-delay: calc(.12s + var(--tile-delay)) !important;
  }
  .home .hero-portrait {
    animation: aikan-portrait-in .55s 1s ease-out forwards !important;
  }
  .home .hero-vertical-name {
    animation: aikan-name-in .45s 1.12s ease-out forwards !important;
  }
  .home .hero-kicker, .home .hero h1, .home .hero p, .home .hero-actions {
    opacity: 1; transform: none; animation: none !important;
  }
}

/* Narrow smartphone hero text safety */
@media (max-width: 480px) {
  html, body {
    max-width: 100%;
    overflow-x: clip;
  }

  .home .hero,
  .home .hero-content {
    max-width: 100%;
    overflow-x: clip;
  }

  .home .hero-content {
    box-sizing: border-box;
    width: calc(100% - 28px);
    min-width: 0;
    padding-right: 2px;
    padding-left: 2px;
  }

  .home .hero-content > * {
    min-width: 0;
    max-width: 100%;
  }

  .home .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(26px, 7.7vw, 35px);
    line-height: 1.22;
    letter-spacing: -.035em;
  }

  .home .hero-title-line {
    max-width: 100%;
    white-space: nowrap;
  }

  .home .hero p {
    width: 100%;
    max-width: 100%;
    padding-right: 6px;
    font-size: clamp(13px, 3.75vw, 15px);
    line-height: 1.85;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
  }

  .home .hero-actions {
    max-width: 100%;
    gap: 10px;
  }

  .home .hero-actions .button {
    min-width: 0;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  .home .hero h1 {
    font-size: 25px;
    letter-spacing: -.05em;
  }

  .home .hero p {
    font-size: 13px;
    line-height: 1.8;
  }

  .home .hero-actions {
    grid-template-columns: 1fr;
  }

  .home .hero-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Keep the mobile office-title badge clear of the portrait */
@media (max-width: 480px) {
  .home .hero-kicker {
    top: 68px;
    left: 0;
    right: auto;
    min-height: 32px;
    max-width: calc(100% - 118px);
    padding: 5px 10px;
    font-size: 12.5px;
    line-height: 1.35;
    letter-spacing: .015em;
  }
}

@media (max-width: 360px) {
  .home .hero-kicker {
    max-width: calc(100% - 108px);
    padding: 5px 8px;
    font-size: 11.5px;
  }
}

/* Fade the lower edge of the mobile hero portrait into the navy background */
@media (max-width: 900px) {
  .home .hero-portrait {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0, 0, 0, .88) 84%, rgba(0, 0, 0, .42) 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0, 0, 0, .88) 84%, rgba(0, 0, 0, .42) 93%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

/* Continuous navy blend beneath the mobile portrait */
@media (max-width: 900px) {
  .home .hero-portrait {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .home .hero-portrait-wrap::after {
    position: absolute;
    z-index: 3;
    top: 40%;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(6, 31, 72, 0) 0%,
      rgba(6, 31, 72, .08) 10%,
      rgba(6, 31, 72, .32) 22%,
      rgba(6, 31, 72, .72) 36%,
      #082a5e 50%,
      #061f48 100%
    );
  }
}

@media (max-width: 480px) {
  .home .hero-portrait-wrap::after {
    top: 37%;
    background: linear-gradient(
      to bottom,
      rgba(6, 31, 72, 0) 0%,
      rgba(6, 31, 72, .12) 9%,
      rgba(6, 31, 72, .4) 20%,
      rgba(6, 31, 72, .78) 34%,
      #082a5e 47%,
      #061f48 100%
    );
  }
}

/* Firefox-safe mobile hero layering */
@media (max-width: 900px) {
  .home .hero {
    isolation: isolate;
    overflow-x: hidden;
  }

  .home .hero::after {
    z-index: 0 !important;
  }

  .home .hero-mosaic {
    z-index: 1 !important;
  }

  .home .hero-portrait-wrap {
    z-index: 2 !important;
    overflow: hidden;
  }

  .home .hero-portrait {
    z-index: 1;
  }

  .home .hero-portrait-wrap::after {
    z-index: 2;
    display: block;
    opacity: 1;
  }

  .home .hero-vertical-name {
    z-index: 3;
  }

  .home .hero-content {
    z-index: 5;
  }

  .home .hero-socials {
    z-index: 8;
  }
}

@supports not (overflow: clip) {
  @media (max-width: 480px) {
    html,
    body,
    .home .hero,
    .home .hero-content {
      overflow-x: hidden;
    }
  }
}

/* Brighter mobile portrait background while retaining text contrast */
@media (max-width: 900px) {
  .home .hero {
    background:
      linear-gradient(
        180deg,
        #eef3f8 0%,
        #f8fafc 39%,
        #d7e2ef 47%,
        #2d5684 58%,
        #123f73 70%,
        #082f63 100%
      );
  }

  .home .hero-portrait-wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(30, 75, 122, 0) 0%,
      rgba(30, 75, 122, .06) 10%,
      rgba(30, 75, 122, .2) 22%,
      rgba(27, 69, 113, .52) 36%,
      #1b4a7c 50%,
      #0c3568 72%,
      #082f63 100%
    );
  }
}

@media (max-width: 480px) {
  .home .hero-portrait-wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(30, 75, 122, 0) 0%,
      rgba(30, 75, 122, .08) 9%,
      rgba(30, 75, 122, .25) 20%,
      rgba(27, 69, 113, .58) 34%,
      #1d4c7e 47%,
      #0d376b 70%,
      #082f63 100%
    );
  }
}

/* Softer, longer mobile portrait-to-navy transition */
@media (max-width: 900px) {
  .home .hero {
    background: linear-gradient(
      180deg,
      #eef3f8 0%,
      #f8fafc 36%,
      #e1e8f1 47%,
      #a7b9ce 58%,
      #6482a4 69%,
      #315d8d 79%,
      #174779 89%,
      #082f63 100%
    );
  }

  .home .hero-portrait-wrap::after {
    top: 34%;
    background: linear-gradient(
      to bottom,
      rgba(30, 75, 122, 0) 0%,
      rgba(30, 75, 122, .025) 14%,
      rgba(30, 75, 122, .08) 28%,
      rgba(30, 75, 122, .18) 42%,
      rgba(28, 72, 117, .34) 56%,
      rgba(27, 69, 113, .56) 69%,
      rgba(25, 63, 105, .78) 81%,
      #123f73 91%,
      #082f63 100%
    );
  }
}

@media (max-width: 480px) {
  .home .hero-portrait-wrap::after {
    top: 32%;
    background: linear-gradient(
      to bottom,
      rgba(30, 75, 122, 0) 0%,
      rgba(30, 75, 122, .03) 14%,
      rgba(30, 75, 122, .09) 28%,
      rgba(30, 75, 122, .2) 42%,
      rgba(28, 72, 117, .37) 56%,
      rgba(27, 69, 113, .58) 69%,
      rgba(25, 63, 105, .8) 81%,
      #123f73 91%,
      #082f63 100%
    );
  }
}

/* Firefox Android: extend portrait into the navy blend to avoid excess space */
@supports (-moz-appearance: none) {
  @media (max-width: 900px) {
    .home .hero-portrait {
      top: 58px;
      right: -9%;
      width: 110vw;
      max-height: 72% !important;
      object-position: right bottom;
    }

    .home .hero-portrait-wrap::after {
      top: 29%;
    }
  }

  @media (max-width: 480px) {
    .home .hero-portrait {
      top: 56px;
      right: -12%;
      width: 116vw;
      max-height: 74% !important;
    }

    .home .hero-portrait-wrap::after {
      top: 27%;
    }
  }
}

/* Two-line Japanese typewriter animation for the hero message */
@keyframes aikan-typewriter-reveal {
  0% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes aikan-typewriter-caret {
  0%, 45% { border-right-color: rgba(255, 255, 255, .95); }
  46%, 100% { border-right-color: transparent; }
}

.home .hero-title-line {
  width: max-content;
  max-width: 100%;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  border-right: 3px solid transparent;
}

.home .hero-title-line:first-child {
  animation:
    aikan-typewriter-reveal .78s 2.48s steps(9, end) forwards,
    aikan-typewriter-caret .48s 2.48s step-end 3;
}

.home .hero-title-line:nth-child(2) {
  animation:
    aikan-typewriter-reveal .68s 3.34s steps(7, end) forwards,
    aikan-typewriter-caret .52s 3.34s step-end 4;
}

@media (max-width: 900px) {
  .home .hero-title-line:first-child {
    animation:
      aikan-typewriter-reveal .68s 1.58s steps(9, end) forwards,
      aikan-typewriter-caret .42s 1.58s step-end 3;
  }

  .home .hero-title-line:nth-child(2) {
    animation:
      aikan-typewriter-reveal .58s 2.32s steps(7, end) forwards,
      aikan-typewriter-caret .46s 2.32s step-end 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .hero-title-line {
    opacity: 1;
    clip-path: none;
    border-right-color: transparent;
    animation: none !important;
  }
}

/* Always play the requested hero typewriter on smartphones */
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .home .hero-title-line {
    width: max-content;
    max-width: 100%;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    border-right: 3px solid transparent;
  }

  .home .hero-title-line:first-child {
    animation:
      aikan-typewriter-reveal .62s 1.42s steps(9, end) forwards,
      aikan-typewriter-caret .4s 1.42s step-end 3 !important;
  }

  .home .hero-title-line:nth-child(2) {
    animation:
      aikan-typewriter-reveal .54s 2.1s steps(7, end) forwards,
      aikan-typewriter-caret .44s 2.1s step-end 4 !important;
  }
}

