* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #222;
  line-height: 1.8;
  background: #f4f6f8;
}

header {
  background: #dbeefd;
  color: #123b6d;
  padding: 32px 20px 28px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-title {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0;
  font-weight: bold;
  color: #123b6d;
}

.group-logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
  text-decoration: none;
}

.group-logo {
  display: block;
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  position: relative;
  top: 1em;
}

nav {
  background: #ffffff;
  border-bottom: 1px solid #d7dee7;
}

nav ul {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav a {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: #123b6d;
  font-weight: bold;
}

nav a:hover {
  background: #eef3f8;
}

.page-header {
  background-color: #eaf1f8;
  height: 80px;
  border-bottom: 1px solid #d7dee7;
}

.page-header-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 80px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header h1 {
  color: #123b6d;
  font-size: 1.8rem;
  margin: 0;
  line-height: 80px;
}

.page-header-link {
  position: absolute;
  right: calc(20px + 2em);
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #1f5f95;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  z-index: 10;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-header-link:hover {
  background-color: #A5BFD5;
  border-color: #9fb7d1;
  box-shadow: 0 8px 20px rgba(18, 59, 109, 0.14);
  transform: translateY(calc(-50% - 3px));
  color: #fff;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

main.container.greeting-container {
  max-width: 1200px;
}

section.message {
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.message p {
  font-size: 1.1rem;
  line-height: 2;
}

.content-box {
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-box p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.9;
}

h2 {
  font-size: 1.4rem;
  color: #123b6d;
  margin-bottom: 16px;
  border-left: 5px solid #123b6d;
  padding-left: 10px;
}

p {
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.4rem;
  color: #123b6d;
  margin: 32px 0 16px;
  border-left: 5px solid #123b6d;
  padding-left: 10px;
}

.section-title:first-child {
  margin-top: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08) translate3d(-3%, 0, 0);
  animation: heroMotion 32s infinite ease-in-out;
  z-index: 1;
}

.slide1 {
  background-image: url("../images/toppagephoto.jpg");
  animation-delay: 0s;
}

.slide2 {
  background-image: url("../images/toppagephoto1.jpg");
  animation-delay: 8s;
}

.slide3 {
  background-image: url("../images/toppagephoto2.jpg");
  animation-delay: 16s;
}

.slide4 {
  background-image: url("../images/toppagephoto3.jpg");
  animation-delay: 24s;
}

.hero-text h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.4;
}

.hero-text p {
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
}

.hero-caption {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  opacity: 0;
  z-index: 2;
  animation: textFade 32s infinite;
}

.text1 {
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-self: stretch;
  flex: 0 0 66.666%;
  max-width: 66.666%;
  animation-delay: 0s;
}

.text2 {
  animation-delay: 8s;
}

.text3 {
  animation-delay: 16s;
}

.text4 {
  animation-delay: 24s;
}

.text1 h1 {
  margin: 0;
  text-align: left;
  line-height: 1.6;
  text-indent: 1em;
}

.hero-caption h1 {
  margin: 0;
  color: #fff;
  font-size: 3rem;
  text-align: center;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.3);
}

.small-text h1 {
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 1.5rem;
}

@keyframes heroMotion {
  0% {
    opacity: 0;
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  8% {
    opacity: 1;
    transform: scale(1.05) translate3d(0.5%, 0, 0);
  }
  25% {
    opacity: 1;
    transform: scale(1.08) translate3d(1.5%, 0, 0);
  }
  33% {
    opacity: 0;
    transform: scale(1.10) translate3d(2%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.10) translate3d(2%, 0, 0);
  }
}

@keyframes textFade {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.link-box {
  display: block;
  text-decoration: none;
  color: #123b6d;
  background: #f7fafc;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 20px;
  font-weight: bold;
  text-align: center;
}

.link-box:hover {
  background: #eef4fb;
}

.business-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d7dee7;
  text-decoration: none;
  color: inherit;
}

.business-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.business-image {
  width: 42%;
  max-width: 420px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.business-text {
  flex: 1;
}

.business-title {
  font-size: 1.4rem;
  color: #123b6d;
  margin-bottom: 12px;
  border-left: 5px solid #123b6d;
  padding-left: 10px;
}

.business-item-system {
  position: relative;
}

.business-main-link {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #ffffff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.business-main-link:hover {
  background-color: #f7fafc;
  border-color: #9fb7d1;
  box-shadow: 0 8px 20px rgba(18, 59, 109, 0.14);
  transform: translateY(-3px);
}
.business-item-system .business-text {
  flex: 1;
  padding-bottom: 56px;
}

.system-link-button {
  display: inline-block;
  position: absolute;
  right: 1em;
  bottom: 1em;
  padding: 10px 16px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #1f5f95;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.system-link-button:hover {
  background-color: #A5BFD5;
  border-color: #9fb7d1;
  box-shadow: 0 8px 20px rgba(18, 59, 109, 0.14);
  transform: translateY(-3px);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

th,
td {
  border: 1px solid #d7dee7;
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

th {
  width: 28%;
  background: #f7fafc;
  color: #123b6d;
  font-weight: bold;
}

td {
  background: #ffffff;
  color: #333333;
}

.policy p,
.vision p,
.business p,
.officers p {
  margin-bottom: 10px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.detail-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-image {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.detail-text {
  flex: 1;
}

.detail-text h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.detail-text p {
  margin: 0;
  line-height: 1.9;
  font-size: 1.05rem;
}

.detail-link {
  margin-top: 20px;
  text-align: right;
}

.detail-link a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #1f5f95;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.detail-link a:hover {
  background-color: #A5BFD5;
  border-color: #9fb7d1;
  box-shadow: 0 8px 20px rgba(18, 59, 109, 0.14);
  transform: translateY(-3px);
  color: #fff;
}

.bottom-nav {
  background: #dbeefd;
  border-top: 1px solid #c7dff3;
  border-bottom: 1px solid #c7dff3;
}

.bottom-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bottom-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.bottom-nav li {
  margin: 0;
}

.bottom-nav a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #123b6d;
  font-weight: bold;
}

.bottom-nav a:hover {
  background: #cfe5f8;
}

footer {
  background: #1d2733;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.info-intro {
  background: #f4f8fc;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.info-intro p {
  margin: 0;
  line-height: 1.8;
  font-size: 1.3rem;
}

.info-box {
  background: #fff;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
}

.info-box:last-child {
  margin-bottom: 0;
}

.section-text {
  margin-bottom: 20px;
  line-height: 1.8;
}

.org-chart-box {
  text-align: center;
}

.org-chart-image {
  width: 66%;
  height: auto;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #fff;
}

.office-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.office-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 66.66%;
  margin: 0 auto;
  background: #f9fbfd;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 13px 20px;
}

.office-item-left {
  width: 220px;
  flex-shrink: 0;
}

.office-item-right {
  flex: 1;
}

.office-name {
  font-size: 1.1rem;
  color: #123b6d;
  margin: 0;
}

.office-item-right p {
  margin: 0 0 4px;
  line-height: 1.5;
}

.office-item-right p:last-child {
  margin-bottom: 0;
}

.office-item-right .map-row {
  margin: 0;
  line-height: 1;
  text-align: right;
}

.map-link {
  display: inline-block;
  color: #123b6d;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.map-link:hover {
  background-color: #eaf1f8;
  text-decoration: none;
}

.about-detail-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.about-detail-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #f9fbfd;
}

.about-detail-left {
  width: 200px;
  flex-shrink: 0;
}

.about-detail-right {
  flex: 1;
  color: #333333;
}

.about-detail-title {
  margin: 0;
}

.about-detail-right p {
  margin: 0 0 8px;
  line-height: 1.4;
}

.about-detail-right p:last-child {
  margin-bottom: 0;
}


table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-frame {
  margin-top: 24px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.table-frame table {
  width: 100%;
  margin-top: 0;
  border: none;
}

.table-frame th,
.table-frame td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  border-right: 1px solid #d7dee7;
  border-bottom: 1px solid #d7dee7;
}

.table-frame th {
  width: 220px;
  background: #f7fafc;
  color: #123b6d;
  font-weight: bold;
}

.table-frame td {
  background: #fff;
}

.table-frame tr th:last-child,
.table-frame tr td:last-child {
  border-right: none;
}

.table-frame tr:last-child th,
.table-frame tr:last-child td {
  border-bottom: none;
}

.table-frame tr th:first-child,
.table-frame tr td:first-child {
  border-left: none;
}

.table-frame tr th:last-child,
.table-frame tr td:last-child {
  border-right: none;
}

.logo-links {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.logo-links li {
  text-align: center;
}

.logo-link {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #ffffff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}



.logo-link:hover {
  background-color: #f7fafc;
  box-shadow: 0 4px 12px rgba(18, 59, 109, 0.12);
  transform: translateY(-2px);
}

.logo-link img {
  display: block;
  height: 48px;
  width: auto;
  margin: 0 auto;
  max-width: 100%;
}

.logo-link img.logo-link-small {
  height: 48px !important;
  width: auto !important;
  max-width: none !important;
}

@media screen and (max-width: 768px) {
  .brand-row {
    gap: 12px;
    align-items: center;
  }

  .group-logo {
    height: 16px;
    position: relative;
    top: 1em;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .page-header {
    height: auto;
  }

  .page-header-inner {
    height: auto;
    padding: 16px 20px;
  }

  .page-header h1 {
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .page-header-link {
    position: static;
    transform: none;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-text {
    padding: 0 24px;
    width: calc(100% - 32px);
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .business-item,
  .business-main-link,
  .detail-box,
  .about-detail-item,
  .office-item {
    flex-direction: column;
  }

  .business-image,
  .detail-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

    .about-detail-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .about-detail-left,
  .office-item-left {
    width: 100%;
  }

  .office-item {
    width: 100%;
  }

  .org-chart-image {
    width: 100%;
  }

