/*共通*/

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #C8E2F5, #ffffff);
    color: #333;
}
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
}
.container {
    margin: auto;
    padding: 0;
    max-width: 1200px;
    background-color: #fff;
}
section {
  padding: 5px;
    margin: 30px 10px;
}
@media (max-width: 768px) {
  section {
    margin: 10px;
  }
}
h2 {
    color: #fff;
    font-size: 2em;
    text-align: left;
    text-shadow: 3px 3px 9px rgba(29, 126, 209, 1);
    margin: 5px 0;
}
@media (max-width: 480px) {
  h2 {
    font-size: 1.7em;
  }
}
h3 {
    position: relative;
    padding: 5px 45px;
    background: #91c1e9;
    font-size: 1.5em;
    color: #fff;
    line-height: 1.3;
    border-bottom: solid 3px #1d7ed1;
    margin: 5px 0 20px 0;
    z-index:1;
}
@media (max-width: 480px) {
  h3 {
    font-size: 1.3em;
    padding: 5px 10px;
  }
}
h3:before {
    position: absolute;
    content: '';
    left: -1px;
    top: -1px;
    width: 0;
    height: 0;
    border: none;
    border-left: solid 40px white;
    border-bottom: solid 50px transparent;
    z-index: 2;
}
@media (max-width: 480px) {
  h3:before {
    all: unset;
  }
}
h3:after {
    position: absolute;
    content: '';
    right: -1px;
    top: -1px;
    width: 0;
    height: 0;
    border: none;
    border-left: solid 40px transparent;
    border-bottom: solid 50px white;
    z-index: 2;
}
@media (max-width: 480px) {
  h3:after {
    all: unset;
  }
}
h4 {
    color: #000;
    font-size: 1.5em;
    text-align: left;
    margin: 5px ;
}
@media (max-width: 480px) {
  h4 {
    font-size: 1.3em;
  }
}
p {
    font-size: 1em;
    margin: 5px 0;
}


/*0_タイトル*/

.title-area {
    position: relative;
    text-align: center;
    margin: 0;
}
.title-image {
    width: 100%;
    height: auto;
    display: block;
}
.title-text {
    position: absolute;
    top: 40%;
    left: 2%;
    transform: translateY(-50%);
    color: white;
    font-size: 3.5em;
    font-weight: bold;
    text-align: left;
    text-shadow: 3px 3px 9px rgba(0, 0, 0, 0.9);
    max-width: 90%;
    padding: 20px;
}
@media (min-width: 481px) and (max-width: 769px) {
  .title-text {
    font-size: 2em;
  }
}
@media (max-width: 480px) {
  .title-text {
    font-size: 1.6em;
  }
}
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ccc;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2); 
}
.nav-menu {
    height: 50px;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #ccc;
    transition: background-color 0.3s;
}
.nav-item:last-child {
    border-right: none;
}
.nav-item a,
.noto-office a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    height: 100%;
    transition: color 0.3s;
    position: relative;
    z-index: 1000;
}
.nav-item:hover {
    background-color: #1d7ed1;
}
.nav-item:hover a {
    color: #fff;
}
.noto-office {
    position: relative;
    overflow: hidden;
}
.nav-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    opacity: 0.5;
    z-index: -1;
}


/*1_新着情報*/

.view {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.clickable-image {
    width: 240px;
    cursor: pointer;
    margin: 5px;
    cursor: pointer;
    user-select:none;
}

.move-button {
    width: 50px;
    cursor: pointer;
    user-select:none;
}
@media (min-width: 510px) and (max-width: 768px) {
  .move-button  {
    width: 35px;
  }
}
@media (max-width: 509px) {
  .move-button  {
    width: 25px;
  }
}

.clickable-image,.move-button {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.clickable-image:hover {
  transform: scale(1.03);
}
.move-button:hover {
  transform: scale(1.1);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 800px;
    min-width: 300px;
}
.popup-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.popup-button {
    width: 220px;
    height: 25px;
    background-color: #1d7ed1;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}
.popup-button:hover {
    background-color: #155fa3;
}
.box-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}
.box {
    background-color: transparent;
}
.box1, .box3 {
    width: 50px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box2 {
    width: 1100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
@media (max-width: 1149px) {
  .box2 {
    max-width: 600px;
  }
}
@media (max-width: 1199px) {
.box2 .clickable-image {
    width: calc(50% - 10px);
    max-width: 240px;
  }
}


/*2-1_概要*/

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 40px;
    justify-content: center;
}
.left-box{
    flex: 1;
    min-width: 550px;
    max-width: 600px;
}
@media (max-width: 768px) {
  .left-box {
    min-width: 300px;
  }
}
.right-box2-1 {
    flex: 1;
    min-width: 550px;
    max-width: 600px;
}
@media (max-width: 550px) {
  .right-box2-1 {
    min-width: 300px;
  }
}
.right-box2-1 img {
    width: 90%;
    height: auto;
    margin: auto;
    display: block;
    border-radius: 50px; 
}
@media (max-width: 768px) {
  .right-box2-1 img {
    border-radius: 30px; 
  }
}


/*2-2_4本柱*/

.right-box2-2 {
    flex: 1;
    min-width: 550px;
    max-width: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}
@media (max-width: 550px) {
  .right-box2-2 {
    min-width: 300px;
  }
}
.right-box2-2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
}
@media (max-width: 768px) {
  .right-box2-2 img {
    border-radius: 15px;
  }
}
.pentagon {
    position: relative;
    width: 550px;
    min-height: 150px;
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 12% 100%, 0% 50%);
    padding: 5px 10px 5px 70px;
    box-sizing: border-box;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
  .pentagon {
    width: auto;
    clip-path: polygon(7% 0%, 100% 0%, 100% 100%, 7% 100%, 0% 50%);
    padding: 5px 10px 5px 30px;
  }
}


/*2-3_検討会*/

.right-box2-3 {
    flex: 1;
    min-width: 550px;
    max-width: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}
@media (max-width: 550px) {
  .right-box2-3 {
    min-width: 300px;
  }
}
.right-box2-3 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
}
@media (max-width: 768px) {
  .right-box2-3 img {
    border-radius: 15px;
  }
}
.accordion {
    margin: 10px 20px;
    margin-bottom: 7px;
    border-bottom: 1px solid #d0d0d0;
}
.accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 5px;
    cursor: pointer;
    font-size: 1.4em;
}
.accordion summary::-webkit-details-marker {
    display: none;
}
.accordion summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-bottom: 3px solid #333333b3;
    border-right: 3px solid #333333b3;
    content: '';
    transition: transform .3s;
}
.accordion[open] summary::after {
    transform: rotate(225deg);
}
.accordion p {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 2em 1.5em;
    color: #333333;
    transition: transform .5s, opacity .5s;
}
.accordion[open] p {
    transform: none;
    opacity: 1;
}
ul{
    padding-left:0.5em;
}
li{
    list-style:none;
}


/*3_外部リンク*/

.link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 100px;
}
.link-text {
    max-width: 600px;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    margin-left: 50px;
}
.link p {
    font-size: 1em;
    margin: 0 0 0 20px;
}
.link-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 0;
}
.link-icon img {
    max-height: 150px;
    max-width: 350px;
    width: auto;
}
.link hr {
    margin-top: 10px;
    border: none;
    border-top: 1px solid #aaa;
}
@media (max-width: 768px) {
  .link1 {
    position: relative;
    overflow: hidden;
  }
  .link1::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url("fixed-image/3_icon1.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    max-width: 350px;
    max-height: 150px;
  }
  .link1 > * {
    position: relative;
    z-index: 1;
  }
  .link2 {
    position: relative;
    overflow: hidden;
  }
  .link2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url("fixed-image/3_icon2.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    max-width: 350px;
    max-height: 150px;
  }
  .link2 > * {
    position: relative;
    z-index: 1;
  }
  .link1 .link-icon,
  .link2 .link-icon {
    display: none;
  }
}


/*フッター*/

footer {
    background-color: #4584B8;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
}
footer p {
    margin: 0;
    line-height: 1.75;
}
footer a {
    color: inherit;
}
footer .copyright {
    font-size: 0.8em;
}
