@import url("button-press.css?v=20261021-theme");
@font-face {
  font-family: "Josefin Sans";
  src: url("../assets/fonts/JosefinSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
}

body {
  background: #fff;
  color: #373a38;
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", sans-serif;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

:root {
  --blue: #00367b;
  --orange: #ff7f00;
}

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

.circle-chevron {
  display: block;
  flex: none;
  width: 70%;
  height: 70%;
  overflow: visible;
}

button, select {
  font-family: inherit;
}

.works-page {
  width: 100%;
  margin: 0;
  container-type: inline-size;
}

.works-title {
  position: relative;
  height: 447px;
  background: #f9f9f4;
  color: var(--blue);
  border-top: 1px solid #e0e7e2;
  border-bottom: 1px solid #e0e7e2;
  text-align: center;
}

.works-title h1 {
  position: absolute;
  top: 162px;
  left: 0;
  width: 100%;
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
  font-size: 60px;
  line-height: 72px;
  font-weight: 700;
}

.works-title > p {
  position: absolute;
  top: 236px;
  left: 0;
  width: 100%;
  margin: 0;
  font-size: 24px;
  line-height: 34px;
  font-weight: 900;
}

.works-sprout {
  position: absolute;
  left: 890.5px;
  bottom: 0;
  width: 139px;
  height: 89px;
}

.works-breadcrumb {
  position: absolute;
  left: 193px;
  top: 388.5px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.works-list {
  position: relative;
  height: 1924.79px;
  padding-top: 282px;
}

.works-filter {
  position: absolute;
  top: 127px;
  right: 410px;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 54px;
  color: var(--blue);
}

.works-filter label {
  font-size: 20px;
  font-weight: 700;
}

.works-select {
  position: relative;
  width: 342px;
  height: 54px;
}

.works-select::after {
  content: "";
  position: absolute;
  right: 27px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
  pointer-events: none;
}

.works-select select {
  appearance: none;
  width: 100%;
  height: 100%;
  padding: 0 60px 0 22px;
  border: 2px solid var(--blue);
  border-radius: 100px;
  background: #fff;
  color: #373a38;
  font-size: 17px;
  box-shadow: 5px 5px 0 #1b4a8029;
}

.works-list-grid {
  width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 535px);
  column-gap: 30px;
  row-gap: 0;
}

.works-list-card {
  position: relative;
  height: 533px;
}

.works-list-card:nth-child(n+3) {
  height: 527px;
}

.works-list-card__image {
  position: relative;
  width: 535px;
  height: 299px;
}

.works-list-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.works-list-card__image span {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 42px;
  border-radius: 0 15px 0 15px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.works-list-card h2 {
  margin: 35.79px 0 0;
  font-size: 20px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: 1px;
}

.works-list-card > p {
  position: absolute;
  top: 427px;
  left: 0;
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
}

.works-list-card--long > p {
  top: 454.79px;
}

.works-pagination {
  height: 163px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  background: #f7f9f9;
  border-radius: 60px;
}

.works-pagination button {
  display: grid;
  place-items: center;
  flex: none;
  appearance: none;
  text-align: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
}

.works-pagination .works-page-number {
  display: block;
  margin: 0;
  padding: 0;
  font-family: Arial,sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.works-pagination .works-page-arrow .circle-chevron {
  display: block;
  width: 70%;
  height: 70%;
  margin: 0;
  padding: 0;
}

.works-pagination .works-page-current {
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 5px 5px 0 #1b4a8029;
  --press-shadow-x: 5px;
  --press-shadow-y: 5px;
  --press-shadow-color: #1b4a8029;
}

.works-pagination .works-page-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 38px;
}

.works-pagination > span {
  width: 50px;
  color: #adb8bb;
  font-size: 26px;
  text-align: center;
}

.eco-footer {
  position: relative;
  overflow: hidden;
}

.eco-footer__inner {
  position: relative;
  width: 100%;
  height: 397.14px;
  margin: 0 auto;
}

.eco-footer__company {
  position: absolute;
  left: 193px;
  top: 103px;
}

.eco-footer__logo {
  display: block;
  width: 448px;
  height: 80px;
}

.eco-footer__name {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
}

.eco-footer__address {
  margin: 15px 0 0;
  font-size: 18px;
  line-height: 30px;
  font-weight: 500;
}

.eco-footer__area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0 16px;
  height: 30px;
  margin: 17px 0 0;
  border: 1px solid #a8bfdd;
  border-radius: 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.eco-footer__actions {
  position: absolute;
  left: 934.97px;
  top: 85.09px;
  display: flex;
  gap: 32.59px;
}

.eco-footer__actions button, .eco-footer__actions > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 380.218px;
  height: 108.634px;
  border: 0;
  border-radius: 100px;
  color: #fff;
  font-family: inherit;
  font-size: 19px;
  font-weight: 900;
  text-align: left;
}

.eco-footer__actions small {
  display: block;
  font-size: 11px;
  line-height: 24px;
  font-weight: 700;
}

.eco-footer__contact {
  background: var(--blue);
  outline: 10px solid #d4e1f1;
}

.eco-footer__estimate {
  background: var(--orange);
  outline: 10px solid #ffe5c6;
}

.eco-footer__contact img {
  width: 24.518px;
  height: auto;
}

.eco-footer__estimate img {
  width: 34px;
  height: auto;
}

.eco-footer__nav {
  position: absolute;
  left: 961px;
  top: 265px;
  display: grid;
  grid-template-columns: 199px 219px 140px 209px;
  font-size: 20px;
  line-height: 42px;
  font-weight: 700;
}

.eco-footer__nav a, .eco-footer__nav span {
  display: block;
  white-space: nowrap;
}

.eco-footer__copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin: 0;
  background: #f8f8f8;
  color: #b7b7b7;
  font-size: 12px;
  font-weight: 500;
}

/* Shared reading components. content-flow.css also enables them on desktop. */
.adaptive-reading {
  display: none;
}

@media (max-width: 1199px) {
  body {
    font-size: 16px;
    line-height: 1.8;
  }
  .works-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: auto;
    min-height: 270px;
    padding: 42px 24px 65px;
    border-width: 1px;
  }
  .works-title h1 {
    position: static;
    font-size: clamp(26px,4vw,42px);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .works-title > p {
    position: static;
    font-size: 18px;
    line-height: 1.5;
  }
  .works-sprout {
    left: calc(50% - 38px);
    width: 76px;
    height: auto;
  }
  .works-breadcrumb {
    position: static;
    align-self: flex-start;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.8;
    text-align: left;
  }
  .information-character {
    left: calc(50% - 32px);
    width: 64px;
    height: auto;
  }
  .eco-footer__inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 36px;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    padding: 50px 24px;
  }
  .eco-footer__company, .eco-footer__actions, .eco-footer__nav {
    position: static;
    min-width: 0;
  }
  .eco-footer__company {
    grid-row: span 2;
  }
  .eco-footer__logo {
    width: min(100%,340px);
    height: auto;
  }
  .eco-footer__name {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
  }
  .eco-footer__address {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.8;
  }
  .eco-footer__area {
    width: fit-content;
    max-width: 100%;
    height: auto;
    padding: 4px 8px;
    margin: 14px 0 0;
    border-width: 1px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
  }
  .eco-footer__actions {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
  }
  .eco-footer__actions button, .eco-footer__actions > a {
    width: 100%;
    height: auto;
    min-height: 76px;
    padding: 16px 18px;
    gap: 14px;
    border-radius: 60px;
    outline-width: 5px;
    font-size: 16px;
    line-height: 1.5;
  }
  .eco-footer__actions small {
    font-size: 11px;
    line-height: 1.5;
  }
  .eco-footer__contact img {
    width: 25px;
  }
  .eco-footer__estimate img {
    width: 30px;
  }
  .eco-footer__nav {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.5fr);
    gap: 8px 6px;
    font-size: clamp(9px,2.3vw,14px);
    line-height: 1.7;
  }
  .eco-footer__nav a, .eco-footer__nav span {
    display: block;
    white-space: normal;
    padding: 5px 0;
  }
  .eco-footer__copyright {
    height: auto;
    min-height: 60px;
    padding: 18px 20px;
    font-size: 11px;
    text-align: center;
  }
  main > .adaptive-source {
    display: none;
  }
  .adaptive-reading {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(100% - 48px,960px);
    margin: 0 auto;
    padding: 48px 0 64px;
  }
  .adaptive-reading h2 {
    margin: 16px 0 0;
    color: var(--blue);
    font-size: clamp(22px,3vw,30px);
    line-height: 1.6;
  }
  .adaptive-reading h3 {
    margin: 12px 0 0;
    color: var(--blue);
    font-size: 20px;
    line-height: 1.6;
  }
  .reading-copy {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
  }
  .reading-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
  .reading-small-image {
    max-width: 180px;
    align-self: flex-start;
    margin: 0;
  }
  .reading-mark {
    width: 65px;
  }
  .reading-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e0e7e2;
  }
  .reading-placeholder {
    width: 100%;
    border-radius: 15px;
    background: #b5b5b5;
  }
  .reading-voice {
    padding: 24px;
    border-radius: 16px;
    background: #f9f9f4;
  }
  .reading-staff-grid, .reading-choice-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
  }
  .reading-staff {
    min-width: 0;
    padding: 24px;
    border-radius: 20px;
    background: #f7f9f9;
  }
  .reading-staff > .reading-image {
    width: 180px;
    margin-bottom: 20px;
  }
  .reading-staff p + p {
    margin-top: 12px;
  }
  .reading-speech {
    position: relative;
    margin: 24px 0;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
  }
  .reading-speech::before {
    content: '';
    position: absolute;
    left: 28px;
    top: -12px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 14px solid #fff;
  }
  .reading-choice {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    gap: 12px 20px;
    padding: 20px;
    border-radius: 16px;
    background: #f9f9f4;
  }
  .reading-choice-image {
    grid-row: span 3;
    background: #b5b5b5;
    min-height: 140px;
    border-radius: 10px;
  }
  .reading-choice p {
    font-size: 15px;
  }
  .reading-result {
    margin: 0;
  }
  .reading-result > div {
    display: grid;
    grid-template-columns: 130px minmax(0,1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #dce5e8;
  }
  .reading-result dt {
    font-weight: 700;
  }
  .reading-result dd {
    margin: 0;
    overflow-wrap: anywhere;
  }
  .reading-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%,360px);
    min-height: 56px;
    margin: 20px auto 0;
    padding: 14px 24px;
    border: 2px solid var(--blue);
    border-radius: 60px;
    color: var(--blue);
    background: #fff;
    font-weight: 700;
    box-shadow: 5px 5px 0 #1b4a8029;
    --press-shadow-x: 5px;
    --press-shadow-y: 5px;
    --press-shadow-color: #1b4a8029;
  }
  .privacy-reading {
    padding: 32px;
    margin-top: 40px;
    margin-bottom: 40px;
    background: #f8fafa;
    border-radius: 24px;
  }
}

@media (max-width: 767px) {
  .works-title {
    min-height: 250px;
    padding: 32px 16px 60px;
  }
  .works-title h1 {
    font-size: 26px;
  }
  .works-title > p {
    font-size: 16px;
  }
  .eco-footer__inner {
    grid-template-columns: minmax(0,1fr);
    padding: 40px 24px;
    gap: 30px;
  }
  .eco-footer__company {
    grid-row: auto;
  }
  .adaptive-reading {
    width: calc(100% - 32px);
    gap: 20px;
    padding-top: 32px;
  }
  .reading-staff-grid, .reading-choice-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .reading-staff {
    padding: 20px;
  }
  .reading-result > div {
    grid-template-columns: minmax(0,1fr);
    gap: 6px;
  }
  .privacy-reading {
    padding: 24px 18px;
  }
}

@media (max-width: 1199px) {
  .works-list {
    height: auto;
    padding: 40px 24px 56px;
  }
  .works-filter {
    position: static;
    justify-content: flex-end;
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
    margin-bottom: 32px;
  }
  .works-filter label {
    font-size: 16px;
  }
  .works-select {
    width: min(100%,300px);
    height: 48px;
  }
  .works-select select {
    padding: 0 44px 0 16px;
    border-width: 2px;
    border-radius: 40px;
    font-size: 16px;
    box-shadow: 3px 3px 0 #1b4a8029;
  }
  .works-select::after {
    right: 20px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-width: 2px;
  }
  .works-list-grid {
    width: 100%;
    max-width: 960px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 32px;
  }
  .works-list-card, .works-list-card:nth-child(n+3) {
    height: auto;
    min-width: 0;
  }
  .works-list-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 535/299;
  }
  .works-list-card__image img {
    border-radius: 14px;
    object-fit: cover;
  }
  .works-list-card__image span {
    width: auto;
    height: auto;
    padding: 6px 16px;
    border-radius: 0 12px;
    font-size: 13px;
  }
  .works-list-card h2 {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0;
  }
  .works-list-card p {
    position: static;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.7;
  }
  .works-pagination {
    height: auto;
    min-height: 64px;
    padding: 16px 12px;
    gap: 10px;
    border-radius: 20px;
  }
  .works-pagination button, .works-pagination > span {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .works-pagination .works-page-arrow {
    width: 22px;
    height: 22px;
    font-size: 18px;
  }
  .works-pagination .works-page-current {
    border-width: 1px;
    box-shadow: 3px 3px 0 #1b4a8029;
    --press-shadow-x: 3px;
    --press-shadow-y: 3px;
    --press-shadow-color: #1b4a8029;
  }
}

@media (max-width: 767px) {
  .works-list {
    padding: 32px 16px 40px;
  }
  .works-list-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .works-filter {
    justify-content: flex-start;
  }
  .works-pagination {
    min-height: 76px;
    padding: 16px 8px;
    gap: clamp(2px, 1vw, 6px);
  }
  .works-pagination button {
    width: clamp(36px, 11vw, 44px);
    height: clamp(36px, 11vw, 44px);
    font-size: 18px;
  }
  .works-pagination > span {
    flex: none;
    width: 8px;
    height: auto;
    font-size: 16px;
  }
  .works-pagination .works-page-arrow {
    width: clamp(36px, 11vw, 44px);
    height: clamp(36px, 11vw, 44px);
    font-size: 24px;
  }
}

@media (max-width:1199px) {
  .adaptive-reading .reading-band {
    position: relative;
    margin: 12px 0 16px;
    padding: 14px 18px;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-size: clamp(15px,2vw,20px);
    font-weight: 900;
    line-height: 1.6;
    text-align: center;
  }
  .adaptive-reading .reading-band::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid var(--blue);
  }
}

.works-pagination button:disabled {
  opacity: .45;
  cursor: default;
}

/* Navigation hover: visible on all desktop pages; no layout changes. */
@media (hover: hover) and (pointer: fine) {
  .works-header-main .compact-navigation > a,
  .eco-footer .eco-footer__nav a {
    position: relative;
    transition: color 0.3s ease;
  }
  .eco-footer .eco-footer__nav a {
    width: fit-content;
    max-width: 100%;
  }
  .works-header-main .compact-navigation > a::after,
  .eco-footer .eco-footer__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #329b7d;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    pointer-events: none;
  }
  .works-header-main .compact-navigation > a:hover,
  .works-header-main .compact-navigation > a:focus-visible,
  .eco-footer .eco-footer__nav a:hover,
  .eco-footer .eco-footer__nav a:focus-visible {
    color: #329b7d;
  }
  .works-header-main .compact-navigation > a:hover::after,
  .works-header-main .compact-navigation > a:focus-visible::after,
  .eco-footer .eco-footer__nav a:hover::after,
  .eco-footer .eco-footer__nav a:focus-visible::after {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .works-header-main .compact-navigation > a,
  .eco-footer .eco-footer__nav a,
  .works-header-main .compact-navigation > a::after,
  .eco-footer .eco-footer__nav a::after {
    transition-duration: 0.01ms;
  }
}
