/* ========================================
   Add Eight / Retro Strengths Page
======================================== */

.ae-strengths[hidden] {
    display: none;
}

.ae-strengths {
    min-height: 100svh;
    padding: 14px 0 40px;
    background: #d7d7d7;
    color: #111;
    font-family: Arial, "MS PGothic", "Meiryo", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.ae-strengths *,
.ae-strengths *::before,
.ae-strengths *::after {
    box-sizing: border-box;
}

.ae-retro {
    width: calc(100vw - 24px);
    max-width: none;
    margin: 0 auto;
    border: 1px solid #777;
    background: #f4f4f4;
}

.ae-retro a {
    color: #0000cc;
    text-decoration: underline;
}

.ae-retro a:hover {
    color: #ff0000;
}


/* =========================
   HEADER
========================= */

.ae-retro__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 75px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #555;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #eeeeee 65%,
        #ffffff 100%
    );
}

.ae-retro__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ae-retro__brand-image {
    display: block;
    width: 180px;
    height: auto;
    image-rendering: pixelated;
}

.ae-retro__logo-mark {
    color: #001b92;
    font-family: Arial Black, Arial, sans-serif;
    font-size: 48px;
    font-weight: 900;
    line-height: .8;
    letter-spacing: -8px;
    transform: scaleX(1.15);
    transform-origin: left center;
    text-shadow:
        1px 1px 0 #8ca2ff,
        2px 2px 0 #00004c;
}

.ae-retro__brand h2 {
    margin: 0;
    color: #11172d;
    font-size: 30px;
    line-height: 1;
}

.ae-retro__brand p {
    margin: 7px 0 0;
    font-family: "Courier New", monospace;
    font-size: 11px;
    font-weight: bold;
}

.ae-retro__header-right {
    text-align: right;
}

.ae-retro__top-links {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.ae-retro__header-right p {
    margin: 0;
    font-family: "Courier New", monospace;
    font-size: 11px;
}


/* =========================
   3 COLUMN LAYOUT
========================= */

.ae-retro__layout {
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr) 182px;
    align-items: stretch;
}


/* =========================
   LEFT
========================= */

.ae-retro__left {
    border-right: 1px solid #999;
    background: #ededed;
}

.ae-retro__nav a {
    display: block;
    min-height: 34px;
    padding: 8px 10px;
    border-bottom: 1px solid #aaa;
    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #e1e1e1 100%
        );
    font-weight: bold;
}

.ae-retro__left-message {
    padding: 40px 14px 15px;
    font-family: "Courier New", monospace;
}

.ae-retro__welcome-title {
    margin: 0 0 6px;
    font-size: 16px;
}

.ae-retro__counter {
    display: inline-block;
    padding: 2px 5px;
    border: 2px inset #aaa;
    background: #001600;
    color: #7cff85;
    font-family: "Courier New", monospace;
    font-size: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 3px #00ff26;
}

.ae-retro__computer {
    margin-top: 35px;
    color: #002899;
    text-align: center;
    font-size: 55px;
}

.ae-retro__left-copy {
    padding: 4px 14px 30px;
    font-family: "Courier New", monospace;
    font-size: 12px;
}


/* =========================
   MAIN
========================= */

.ae-retro__main {
    min-width: 0;
    padding: 10px 12px 14px;
    background: #fafafa;
}

.ae-retro__banner {
    padding: 0;
    border: 1px solid #6d85ac;
    background: #f4f4f4;
    overflow: hidden;
}

.ae-retro__banner-image {
    display: block;
    width: 100%;
    height: 230px;
    margin: 0;
    object-fit: cover;
    object-position: center 65%;
    filter: saturate(1.18) contrast(1.05);
}


/* =========================
   BLUE HEADINGS
========================= */

.ae-retro__blue-heading {
    margin: 0 0 8px;
    padding: 3px 8px;
    background: #0000ba;
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
}

.ae-retro__heading-icon {
    display: inline-block;
    margin-right: 6px;
    color: #d7ffde;
}


/* =========================
   WHAT'S NEW
========================= */

.ae-retro__news {
    padding-bottom: 10px;
    border-bottom: 1px solid #777;
}

.ae-retro__news-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 3px 8px;
    border-bottom: 1px dotted #bbb;
}

.ae-retro__news-row span {
    font-family: "Courier New", monospace;
}


/* =========================
   COMMON SECTION
========================= */

.ae-retro__section {
    padding: 10px 4px 12px;
    border-bottom: 2px dotted #777;
}

.ae-retro__section-title {
    margin: 0 0 8px;
    color: #001dab;
    font-size: 19px;
}

.ae-retro__section p {
    margin: 6px 0;
}


/* =========================
   DEVELOPMENT
========================= */

.ae-retro__development-layout {
    display: grid;
    grid-template-columns: 285px 1fr;
    gap: 15px;
    align-items: start;
}

.ae-retro__development-image {
    display: block;
    width: 280px;
    height: 170px;
    object-fit: cover;
}

.ae-retro__service-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 12px;
}

.ae-retro__service-buttons a {
    padding: 7px 4px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    background: #e5e5e5;
    text-align: center;
}

.ae-retro__more-link {
    margin: 10px 0 0 !important;
}


/* =========================
   THREE SERVICES
========================= */

.ae-retro__services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 0px;
    padding-bottom: 12px;
    border-bottom: 2px dotted #777;
}

.ae-retro__services article {
    min-width: 0;
    padding: 0 10px 4px;
    border-right: 1px solid #aaa;
}

.ae-retro__services article:first-child {
    padding-left: 0;
}

.ae-retro__services article:last-child {
    padding-right: 0;
    border-right: 0;
}

.ae-retro__services h3 {
    margin: 0 0 4px;
    color: #001dab;
    font-size: 20px;
    line-height: 1.25;
}

.ae-retro__service-icon {
    display: block;
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin: 2px 12px 4px 0;
    float: left;
}

.ae-retro__services article > p:first-of-type {
    min-height: 64px;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.ae-retro__services p,
.ae-retro__services li,
.ae-retro__services dd,
.ae-retro__services dt {
    font-size: 14px;
}

.ae-retro__services ul {
    clear: both;
    margin: 10px 0;
    padding-left: 18px;
}

.ae-retro__services dl {
    display: grid;
    grid-template-columns: 42px 1fr;
    margin: 12px 0 0;
    padding-top: 8px;
    border-top: 1px dotted #aaa;
}

.ae-retro__services dt {
    font-weight: bold;
}

.ae-retro__services dd {
    margin: 0;
}

.ae-retro__how {
    text-align: right;
}


/* =========================
   SUPPORT
========================= */

.ae-retro section {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.ae-retro section.ae-retro__support {
    padding-top: 5px;
    padding-bottom: 8px;
}

.ae-retro__support-lead {
    margin: 8px 6px 10px;
}

.ae-retro__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
}

.ae-retro__cards article {
    min-width: 0;
    width: auto;
    border: 1px solid #999;
    background: #fff;
}

.ae-retro__cards article {
    border: 1px solid #999;
    background: #fff;
}

.ae-retro__cards h4 {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
    min-height: 58px;

    margin: 0;
    padding: 6px 8px;

    border-bottom: 1px solid #aaa;
    background: linear-gradient(#fff, #ddd);

    color: #001dab;
    font-size: 14px;
    line-height: 1.25;
}

.ae-retro__cards h4 span {
    min-width: 0;
    writing-mode: horizontal-tb;
    word-break: normal;
    overflow-wrap: normal;
}

.ae-retro__support-icon {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    object-fit: contain;
    image-rendering: pixelated;
}

.ae-retro__support-icon {
    display: block;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    object-fit: contain;
    image-rendering: pixelated;
}

.ae-retro__cards p {
    margin: 0;
    padding: 7px;
    font-size: 12px;
}


/* =========================
   RIGHT
========================= */

.ae-retro__right {
    padding: 10px 0 0;
    background: #ededed;
}

.ae-retro__box {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    border: 1px solid #aaa;
    background: #f7f7f7;
}

.ae-retro__box h3 {
    margin: 0;
    padding: 4px 7px;
    border-bottom: 1px solid #aaa;
    background: #ccd6e4;
    color: #111;
    font-size: 16px;
}

.ae-retro__box p {
    margin: 7px 8px;
    font-size: 12px;
}

.ae-retro__box > a {
    display: block;
    margin: 7px 8px 10px;
    font-size: 12px;
}

.ae-retro__aside-image {
    display: block;
    width: 150px;
    max-width: calc(100% - 10px);
    height: auto;
    margin: 6px auto 4px;
}

.ae-retro__contact-image {
    display: block;
    width: 58px;
    height: auto;
    margin: 12px auto 8px;
}

.ae-retro__link-list {
    margin: 0;
    padding: 5px 8px 8px 22px;
}

.ae-retro__link-list li {
    padding: 5px 0;
    border-bottom: 1px dotted #bbb;
    font-size: 12px;
}


/* =========================
   FOOTER
========================= */

.ae-retro__footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 10px;
    border-top: 1px solid #555;
    background: #eee;
    font-size: 11px;
}

.ae-retro__footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 820px) {

    .ae-retro__layout {
        grid-template-columns: 145px minmax(0, 1fr);
    }

    .ae-retro__right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ae-retro__development-layout {
        grid-template-columns: 1fr;
    }

    .ae-retro__development-image {
        width: min(100%, 280px);
    }

    .ae-retro__services {
        grid-template-columns: 1fr;
    }

    .ae-retro__services article {
        padding: 10px 0;
        border-right: 0;
        border-bottom: 1px dotted #aaa;
    }

    .ae-retro__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 560px) {

    .ae-retro {
        width: calc(100vw - 12px);
    }

    .ae-retro__header {
        flex-direction: column;
        gap: 12px;
    }

    .ae-retro__header-right {
        text-align: left;
    }

    .ae-retro__top-links {
        justify-content: flex-start;
    }

    .ae-retro__layout {
        display: block;
    }

    .ae-retro__left {
        border-right: 0;
    }

    .ae-retro__left-message,
    .ae-retro__computer,
    .ae-retro__left-copy {
        display: none;
    }

    .ae-retro__main {
        padding: 8px;
    }

    .ae-retro__banner-image {
        width: 100%;
        height: 155px;
    }

    .ae-retro__service-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .ae-retro__cards,
    .ae-retro__right {
        grid-template-columns: 1fr;
    }

    .ae-retro__footer {
        flex-direction: column;
    }
}
/* ========================================
   STRENGTHS｜選択後はブログ画面内だけスクロール
======================================== */

.ae-strengths.is-screen-locked {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;

	z-index: 1000;

	height: auto;
	min-height: 0;

	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* WordPress管理バー表示中 */
body.admin-bar .ae-strengths.is-screen-locked {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .ae-strengths.is-screen-locked {
		top: 46px;
	}
}
/* =========================
   NEXT PAGE
========================= */

.ae-retro__next {
	padding: 12px 0 0;
}

.ae-retro__next-inner {
	position: relative;

	display: grid;
	grid-template-columns:
		150px
		minmax(320px, 1.45fr)
		minmax(230px, 0.9fr)
		270px;

	align-items: center;
	gap: 24px;

	min-height: 205px;
	padding: 18px 26px;

	overflow: hidden;

	border: 2px dashed #0044cc;
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: -7px;

	background:
		url("../images/strengths/strengths-next-background.png")
		center / cover no-repeat;
}

.ae-retro__next-visual {
	display: flex;
	align-items: flex-end;
	justify-content: center;

	height: 100%;
}

.ae-retro__next-people {
	display: block;

	width: 145px;
	max-height: 190px;
	height: auto;

	object-fit: contain;
	image-rendering: pixelated;
}

.ae-retro__next-copy {
	min-width: 0;
}

.ae-retro__next-label {
	margin: 0 0 8px;

	color: #ffffff;

	font-family: "Courier New", monospace;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.3;
	letter-spacing: 0.08em;

	text-shadow:
		1px 1px 0 #2478d7,
		-1px -1px 0 #2478d7;
}

.ae-retro__next-text {
	margin: 0;

	color: #003bc7;

	font-size: clamp(30px, 2.4vw, 42px);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.04em;

	text-shadow:
		3px 0 0 #ffffff,
		-3px 0 0 #ffffff,
		0 3px 0 #ffffff,
		0 -3px 0 #ffffff,
		3px 3px 0 #ffffff,
		-3px -3px 0 #ffffff,
		3px -3px 0 #ffffff,
		-3px 3px 0 #ffffff;
}

.ae-retro__next-list {
	margin: 0;
	padding: 0;

	list-style: none;

	color: #003bc7;

	font-size: 17px;
	font-weight: bold;
	line-height: 1.55;
}

.ae-retro__next-list li::before {
	content: "◆";
	margin-right: 7px;
	font-size: 10px;
}

.ae-retro__next-button {
	appearance: none;

	display: grid;
	place-items: center;

	width: 320px;
	min-height: 132px;

	padding: 0;
	margin: 0;
    margin-left: -40px;

	border: 0;
	background: transparent;

	cursor: pointer;

	font-size: 0;

	transition:
		transform 180ms ease,
		filter 180ms ease;
}

.ae-retro__next-button::before {
	content: "";

	display: block;

	width: 320px;
	height: 132px;

	background:
		url("../images/strengths/strengths-next-button.png")
		center / contain no-repeat;
}

.ae-retro__next-button:hover {
	transform: translateY(-3px) scale(1.04);
	filter: brightness(1.08);
}

@media (max-width: 820px) {
	.ae-retro__next-inner {
		grid-template-columns:
			90px
			minmax(0, 1fr)
			minmax(160px, 0.8fr)
			160px;

		gap: 12px;
		padding: 14px;
	}

	.ae-retro__next-people {
		width: 76px;
	}

	.ae-retro__next-text {
		font-size: 20px;
	}

	.ae-retro__next-list {
		font-size: 12px;
	}

	.ae-retro__next-button {
		width: 160px;
		min-height: 70px;
	}

	.ae-retro__next-button::before {
		width: 160px;
		height: 70px;
	}
}

@media (max-width: 560px) {
	.ae-retro__next-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ae-retro__next-visual {
		justify-content: center;
	}

	.ae-retro__next-button {
		width: min(220px, 100%);
		margin: 0 auto;
	}
}
/* Tablet: place the former right sidebar immediately below the left sidebar. */
@media (min-width: 651px) and (max-width: 1100px) {
  .ae-retro__layout {
    --retro-sidebar-width: clamp(145px, 16vw, 164px);
    display: grid;
    grid-template-columns: var(--retro-sidebar-width) minmax(0, 1fr);
    grid-template-rows: min-content 1fr;
    align-items: stretch;
    background: linear-gradient(to right,
      #ededed 0 var(--retro-sidebar-width),
      transparent var(--retro-sidebar-width) 100%);
  }
  .ae-retro__left {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: start;
  }
  .ae-retro__main {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
  }
  .ae-retro__right {
    grid-column: 1;
    grid-row: 2;
    display: block;
    align-self: stretch;
    min-width: 0;
    padding: 8px 6px 12px;
    border-right: 1px solid #999;
  }
  .ae-retro__box h3 { font-size: 14px; }
  .ae-retro__aside-image { width: 125px; max-width: calc(100% - 12px); }
  .ae-retro__box p,
  .ae-retro__box > a,
  .ae-retro__link-list li { font-size: 11px; line-height: 1.65; }
}
/* Tablet: aligned sidebar/content rows and a full-width next-page banner. */
@media (min-width: 651px) and (max-width: 1100px) {
  .ae-retro { font-size: 12px; line-height: 1.7; }
  .ae-retro__layout {
    display: grid;
    grid-template-columns: clamp(138px, 15vw, 160px) minmax(0, 1fr);
    grid-template-rows: repeat(8, auto);
    gap: 10px;
    padding: 10px;
    background: #fafafa;
    align-items: stretch;
  }
  .ae-retro__left {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: stretch;
    border: 1px solid #aaa;
  }
  .ae-retro__main,
  .ae-retro__right { display: contents; }
  .ae-retro__main > * { grid-column: 2; min-width: 0; }
  .ae-retro__banner { grid-row: 1; }
  .ae-retro__news { grid-row: 2; }
  #ae-retro-about { grid-row: 3; }
  #ae-retro-experience { grid-row: 4; }
  #ae-retro-service { grid-row: 5; }
  #ae-retro-style { grid-row: 6 / span 2; }
  .ae-retro__right > .ae-retro__box {
    grid-column: 1;
    margin: 0;
    min-width: 0;
    padding-bottom: 10px;
    align-self: stretch;
  }
  .ae-retro__right > .ae-retro__box:nth-child(1) { grid-row: 4; }
  .ae-retro__right > .ae-retro__box:nth-child(2) { grid-row: 5; }
  .ae-retro__right > .ae-retro__box:nth-child(3) { grid-row: 6; }
  .ae-retro__right > .ae-retro__box:nth-child(4) { grid-row: 7; }
  .ae-retro__nav a { font-size: 12px; padding: 7px 8px; line-height: 1.5; }
  .ae-retro__left-message { padding: 14px 8px; }
  .ae-retro__left-copy { font-size: 10px; line-height: 1.65; }
  .ae-retro__counter { max-width: 100%; font-size: 16px; letter-spacing: .08em; }
  .ae-retro__computer { margin: 16px auto; }
  .ae-retro__banner-image { height: clamp(140px, 19vw, 190px); }
  .ae-retro__blue-heading { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
  .ae-retro__section-title,
  .ae-retro__services h3 { font-size: 15px; line-height: 1.55; margin-bottom: 8px; }
  .ae-retro__main p,
  .ae-retro__main li,
  .ae-retro__main dt,
  .ae-retro__main dd {
    font-size: 12px;
    line-height: 1.75;
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
    text-wrap: pretty;
  }
  .ae-retro__section { padding: 0 4px 12px; }
  .ae-retro__section p { margin: 0 0 8px; }
  .ae-retro__news-row { grid-template-columns: 86px minmax(0, 1fr); gap: 8px; font-size: 11px; padding: 5px 4px; }
  .ae-retro__development-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
  .ae-retro__development-image { width: 100%; height: 110px; object-fit: cover; }
  .ae-retro__service-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .ae-retro__service-buttons a { font-size: 11px; padding: 6px 4px; }
  .ae-retro__services { grid-template-columns: 1fr; gap: 12px; }
  .ae-retro__services article,
  .ae-retro__services article:first-child,
  .ae-retro__services article:last-child { padding: 0 4px 10px; border-right: 0; border-bottom: 1px dotted #aaa; }
  .ae-retro__services article:last-child { border-bottom: 0; }
  .ae-retro__service-icon { width: 44px; height: 44px; margin: 0 10px 4px 0; }
  .ae-retro__services article > p:first-of-type { min-height: 44px; margin: 0 0 6px; }
  .ae-retro__services ul { margin: 6px 0; }
  .ae-retro__services dl { margin-top: 8px; padding-top: 6px; }
  .ae-retro__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ae-retro__cards h4 { font-size: 12px; min-height: 54px; padding: 7px; gap: 6px; }
  .ae-retro__support-icon { width: 30px; height: 30px; }
  .ae-retro__cards p { font-size: 11px; padding: 8px; }
  .ae-retro__support-lead { margin: 8px 4px 12px; }
  .ae-retro__box h3 { font-size: 13px; padding: 5px 7px; line-height: 1.5; }
  .ae-retro__box p,
  .ae-retro__box > a,
  .ae-retro__link-list li { font-size: 11px; line-height: 1.65; text-wrap: pretty; }
  .ae-retro__aside-image { width: 110px; margin-top: 12px; }
  .ae-retro__main > .ae-retro__next {
    grid-column: 1 / -1;
    grid-row: 8;
    padding: 4px 0 0;
    margin: 0;
  }
  .ae-retro__next-inner {
    grid-template-columns: 70px minmax(0, 1fr) 170px;
    gap: 10px 14px;
    padding: 18px;
    min-height: 180px;
  }
  .ae-retro__next-visual { grid-column: 1; grid-row: 1 / span 2; }
  .ae-retro__next-people { width: 66px; max-height: 130px; }
  .ae-retro__next-copy { grid-column: 2; grid-row: 1; }
  .ae-retro__next-copy .ae-retro__next-label { font-size: 11px; margin-bottom: 8px; line-height: 1.5; }
  .ae-retro__next-copy .ae-retro__next-text { font-size: clamp(22px, 3vw, 30px); line-height: 1.3; text-wrap: balance; }
  .ae-retro__next-list { grid-column: 2; grid-row: 2; }
  .ae-retro__next-list li { font-size: 11px; line-height: 1.65; }
  .ae-retro__next-button { grid-column: 3; grid-row: 1 / span 2; width: 170px; min-height: 76px; margin: 0; }
  .ae-retro__next-button::before { width: 170px; height: 76px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .ae-retro__services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ae-retro__services article { border-bottom: 0; }
}

/* スマホ：ブログ画面のメニューと読みやすさ */
@media (max-width: 650px) {
  .ae-retro {
    width: calc(100% - 16px);
    font-size: 14px;
    line-height: 1.7;
  }

  .ae-retro__header {
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px;
  }

  .ae-retro__brand-image {
    width: 160px;
    max-width: 100%;
  }

  .ae-retro__header-right { text-align: left; }

  .ae-retro__top-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
  }

  .ae-retro__layout { display: block; }
  .ae-retro__left { border-right: 0; }

  .ae-retro__left-message,
  .ae-retro__computer,
  .ae-retro__left-copy {
    display: none;
  }

  .ae-retro__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ae-retro__nav a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  .ae-retro__nav a:nth-child(odd) {
    border-right: 1px solid #aaa;
  }

  .ae-retro__nav a:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .ae-retro__main { padding: 12px; }
  .ae-retro__banner-image { height: 145px; }

  .ae-retro__news-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 8px 4px;
  }

  .ae-retro__news-row > span {
    font-size: 11px;
    color: #555;
  }

  .ae-retro__news-row > a {
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: break-word;
  }

  .ae-retro__section {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .ae-retro__section-title,
  .ae-retro__services h3 {
    font-size: 17px;
    line-height: 1.5;
  }

  .ae-retro__main p,
  .ae-retro__main li,
  .ae-retro__main dt,
  .ae-retro__main dd {
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: break-word;
  }

  .ae-retro__development-layout,
  .ae-retro__services,
  .ae-retro__cards,
  .ae-retro__right {
    grid-template-columns: minmax(0, 1fr);
  }

  .ae-retro__service-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ae-retro__right { padding: 12px; }

  .ae-retro__next-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 12px;
    text-align: center;
  }

  .ae-retro__next-button {
    width: min(220px, 100%);
    min-height: 92px;
    margin: 0 auto;
  }

  .ae-retro__next-button::before {
    width: 100%;
    height: 92px;
  }

  .ae-retro__footer {
    flex-direction: column;
    gap: 10px;
  }
}
/* スマホ：案内・補足枠・上部のバランス調整 */
@media (max-width: 650px) {
  /* NEXT PAGE上の文字と箇条書き */
  .ae-retro__next-copy {
    min-width: 0;
    text-align: left;
  }

  .ae-retro__next-copy .ae-retro__next-label {
    font-size: 11px;
    line-height: 1.5;
  }

  .ae-retro__next-copy .ae-retro__next-text {
    font-size: 18px;
    line-height: 1.5;
    text-wrap: wrap;
  }

  .ae-retro__next-list {
    width: 100%;
    text-align: left;
  }

  .ae-retro__next-list li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 6px;
    font-size: 12px;
    line-height: 1.7;
  }

  .ae-retro__next-list li::before {
    margin: 0;
  }

  /* Pick Up・Our Worksの画像と説明を横並びに */
  .ae-retro__right {
    gap: 8px;
    padding: 8px;
  }

  .ae-retro__right > .ae-retro__box {
    margin-bottom: 0;
  }

  .ae-retro__right > .ae-retro__box:nth-child(-n+2) {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .ae-retro__right > .ae-retro__box:nth-child(-n+2) h3 {
    grid-column: 1 / -1;
    padding: 4px 8px;
    font-size: 14px;
  }

  .ae-retro__right > .ae-retro__box:nth-child(-n+2)
  .ae-retro__aside-image {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: center;
    width: 72px;
    max-width: 100%;
    height: 64px;
    object-fit: contain;
    margin: 8px auto;
  }

  .ae-retro__right > .ae-retro__box:nth-child(-n+2) p {
    grid-column: 2;
    margin: 8px 8px 2px 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .ae-retro__right > .ae-retro__box:nth-child(-n+2) p br {
    display: none;
  }

  .ae-retro__right > .ae-retro__box:nth-child(-n+2) > a {
    grid-column: 2;
    margin: 2px 8px 8px 0;
    font-size: 12px;
  }

  /* Link枠の余白 */
  .ae-retro__link-list {
    padding: 4px 8px 4px 22px;
  }

  .ae-retro__link-list li {
    padding: 3px 0;
    line-height: 1.5;
  }

  /* ロゴと目次を上部へコンパクトにまとめる */
  .ae-retro__header {
    min-height: 0;
    gap: 6px;
    padding: 10px 12px;
  }

  .ae-retro__brand-image { width: 140px; }

  .ae-retro__top-links {
    gap: 6px;
    margin-bottom: 4px;
    font-size: 11px;
  }

  .ae-retro__header-right p { font-size: 9px; }

  .ae-retro__nav a {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* スマホ：Contactの配置と支援タイトル */
@media (max-width: 650px) {
  /* Contact：画像を左、文章を右揃え */
  .ae-retro__right > .ae-retro__box:nth-child(4) {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .ae-retro__right > .ae-retro__box:nth-child(4) h3 {
    grid-column: 1 / -1;
    padding: 4px 8px;
    font-size: 14px;
  }

  .ae-retro__right > .ae-retro__box:nth-child(4)
  .ae-retro__contact-image {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: center;
    width: 52px;
    height: auto;
    margin: 8px auto;
  }

  .ae-retro__right > .ae-retro__box:nth-child(4) p {
    grid-column: 2;
    margin: 8px 8px 2px 0;
    font-size: 12px;
    line-height: 1.6;
    text-align: right;
  }

  .ae-retro__right > .ae-retro__box:nth-child(4) > a {
    grid-column: 2;
    margin: 2px 8px 8px 0;
    font-size: 12px;
    text-align: right;
  }

  /* 支援スタイル：４つのタイトルを一行に */
  .ae-retro__cards h4 {
    min-height: 44px;
    gap: 6px;
    padding: 8px 6px;
    font-size: clamp(11px, 3vw, 14px);
    line-height: 1.4;
  }

  .ae-retro__cards h4 .ae-retro__support-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }

  .ae-retro__cards h4 span {
    white-space: nowrap;
    letter-spacing: -.03em;
  }

  .ae-retro__cards h4 br {
    display: none;
  }
}

/* スマホ：支援カードの配置を変更 */
@media (max-width: 650px) {
  .ae-retro__cards {
    gap: 12px;
  }

  .ae-retro__cards article {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
  }

  .ae-retro__cards h4 {
    display: contents;
  }

  .ae-retro__cards h4 span {
    grid-column: 1 / -1;
    grid-row: 1;
    box-sizing: border-box;
    padding: 12px 8px;
    border-bottom: 1px solid #aaa;
    background: linear-gradient(#fff, #ddd);
    color: #001dab;
    font-size: clamp(12px, 3.8vw, 16px);
    line-height: 1.5;
    letter-spacing: -.03em;
    white-space: nowrap;
  }

  .ae-retro__cards h4 .ae-retro__support-icon {
    grid-column: 1;
    grid-row: 2;
    width: 64px;
    height: 64px;
    margin: 14px auto;
    object-fit: contain;
  }

  .ae-retro__cards article > p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 12px 10px 14px 0;
    font-size: 13px;
    line-height: 1.75;
  }

  /* NEXT PAGEの空背景と画像ボタン */
  .ae-retro__next-inner {
    background: url("/wp-content/themes/add-eight-2026/assets/images/strengths/strengths-next-background.png")
      center / cover no-repeat;
  }

  .ae-retro__next-button::before {
    content: "";
    display: block;
    background: url("/wp-content/themes/add-eight-2026/assets/images/strengths/strengths-next-button.png")
      center / contain no-repeat;
  }
}