@charset "utf-8";

/* ==================================
   Base Styles
================================== */
body {
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    background: linear-gradient(45deg, #dce9ad,#eff9fe,#a2daf7,#7fc8b8);
    background-size: 200% 200%;
    animation: GradientBackground 15s ease infinite;
}

@keyframes GradientBackground {
    0% {
        background-position: 0% 100%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

/* ==================================
   Header
================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    height: 80px;
}

.head-img img {
    max-width: 250px;
    min-width: 150px;
    height: auto;
}

/* --- Navigation Styles --- */
.head-nav ul {
    position: relative;
    /* Base for the sliding element */
    display: flex;
    align-items: center;
    /* Vertically align items */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Sliding ellipse background */
.head-nav ul::before {
    content: '';
    position: absolute;
    top: 50%;
    /* Position and size are set by JavaScript via CSS variables */
    left: var(--slider-left, 0);
    width: var(--slider-width, 0);
    height: var(--slider-height, 0);
    background-color: rgba(135, 167, 204, 0.4);
    border-radius: 9999px;
    /* To make it an ellipse */
    transform: translateY(-50%);
    transition: left 0.3s ease-out, width 0.3s ease-out;
    z-index: 0;
}

.head-nav li {
    position: relative;
    /* To ensure text is above the background */
    z-index: 1;
}

.head-nav a {
    display: block;
    padding: 10px 20px;
    /* Adjust padding for ellipse size */
    color: #154360;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Text color for current and hovered items (excluding contact link) */
.head-nav li.current a,
.head-nav ul:hover li:not(.contact-link):hover a {
    color: rgb(50, 50, 63);
    ;
}

/* --- Contact Link Styles --- */
.head-nav li.contact-link a {
    background-color: rgb(255, 136, 0);
    /* Teal color for emphasis */
    color: #fff;
    border: 2px;
    border-radius: 5px;
    margin-left: 15px;
    /* Add some space */
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.head-nav li.contact-link a:hover {
    background-color: rgb(223, 130, 23);
    /* Darker teal on hover */
    transform: translateY(-2px);
    /* Slight lift effect */
    color: #fff;
    /* Ensure color stays white on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --- ハンバーガーメニュー --- */
.nav-button {
    display: none;
    /* PCでは非表示 */
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-button-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 8px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-wrapper {
    display: block;
}

/* ==================================
   Hero Section
================================== */
.hero {
    text-align: center;
    background: url('img/dep_img_05.jpg') no-repeat center/cover;
    color: white;
    padding: 120px 20px;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero h1 {
    font-size: 38px;
    text-shadow: 5px 4px 4px rgba(44, 44, 59, 0.8);
    /* background-color: rgba(135, 167, 204, 0.4);
    backdrop-filter: blur(3px); */
    border-radius: 10px;
    padding: 20px 30px;
    width: fit-content;
    margin: 0 auto;
}

/* ==================================
   Content Section
================================== */
.comment {
    width: 80%;
    max-width: 900px;
    margin: 80px auto;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.con2 {
    margin: 50px auto;
}

.con2 .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 80%;
    max-width: 800px;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
}

.box4 {
    flex: 0 0 calc(50% - 10px);
    height: auto;
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
}

.box4 h2 {
    font-size: 20px;
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 20px;
}

.con-object {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    min-height: 0;
    flex-direction: column-reverse;
    /* Display image above text */
    align-items: center;
}

.con-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex-grow: 1;
}

.con-text p {
    text-align: left;
    line-height: 1.3;
}

.con-img {
    width: 100%;
    height: 150px;
    flex-shrink: 0;
}

.con-img img {
    /* width: 100%; */
    height: 100%;
    margin: 0 auto;
    display: block;
    object-fit: cover;
}

/* ==================================
   汎用コンポーネント
================================== */
.read-button {
    display: inline-block;
    background-color: #154360;
    color: #fff;
    padding: 10px 20px;
    margin: 20px auto;
    border-radius: 3px;
    text-decoration: none;
    font-size: 1em;
    outline: 0.5px solid #10354d;
    outline-offset: 0px;
    transition: outline-offset 0.3s, outline-color 0.3s;
}

.read-button:hover {
    animation: light .8s infinite;
}

/* ボタンホバー時のアウトラインアニメーション */
@keyframes light {
    100% {
        outline-color: transparent;
        outline-offset: 10px;
    }
}


/* ==================================
   Footer
================================== */
footer {
    color: #666666;
    background: #fff;
    padding: 40px 0;
}

footer .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.footA {
    margin-bottom: 30px;
}

.foot-img img {
    width: 250px;
    min-width: 150px;
    height: auto;
}

.footB p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.footC h3 {
    margin: 0 0 10px;
    border-bottom: solid 1px currentColor;
    font-size: 14px;
}

.footC ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footC a {
    display: block;
    padding: 5px;
    color: inherit;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.footC a:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.copyright {
    font-size: 12px;
    text-align: center;
}


/* ==================================
   Media Queries
================================== */

/* For PC & Tablet (768px and up) */
@media (min-width: 768px) {
    .nav-button {
        display: none;
    }

    .footer-main {
        display: flex;
        align-items: stretch;
    }

    .footB {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .footC {
        flex: 2;
        display: flex;
    }

    .footC>div {
        flex: 1;
    }

    .footC>div:not(:first-child) {
        margin-left: 40px;
    }

    .copyright {
        margin-top: 30px;
    }

    .con2 .container {
        justify-content: flex-start;
    }
}

/* For Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {

    .head-img img,
    .foot-img img {
        width: 250px;
    }

    .head-nav a {
        padding: 15px 10px;
        font-size: 15px;
    }
}

/* For Smartphone & Tablet (767px and below) */
@media (max-width: 767px) {

    /* Header */
    header .container {
        height: 70px;
        padding: 0 15px;
    }

    .nav-button {
        display: block;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
    }

    .nav-button-bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        margin: 8px 0;
        transition: transform 0.3s, opacity 0.3s;
    }

    body.nav-open .nav-button-bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    body.nav-open .nav-button-bar:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-button-bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .nav-wrapper {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 100;
        padding-top: 80px;
    }

    body.nav-open .nav-wrapper {
        display: block;
    }

    .head-nav {
        width: 100%;
        text-align: center;
    }

    .head-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .head-nav li {
        margin-bottom: 10px;
    }

    .head-nav a {
        padding: 20px;
        font-size: 18px;
        color: #154360 !important;
        /* Reset color */
    }

    .head-nav ul::before {
        display: none;
        /* Hide slider on mobile */
    }

    .head-nav li.contact-link a {
        margin-left: 0;
        padding: 10px 30px;
    }


    /* nav-openクラスがbodyに付与された時のスタイル */
    .nav-open .nav-wrapper {
        display: block;
    }

    /* ハンバーガーアイコンのアニメーション */
    .nav-open .nav-button-bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .nav-open .nav-button-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-open .nav-button-bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }


    /* Hero */
    .hero h1 {
        font-size: 24px;
    }

    /* Contents */
    .con2 {
        width: 90%;
    }

    .box4 {
        flex: 1 1 100%;
        /* Make it single column */
        height: auto;
        min-height: 300px;
    }

    .con-object {
        height: auto;
        padding-bottom: 15px;
    }

    .con-text {
        align-items: center;
        text-align: center;
    }

    .con-img {
        margin-top: 15px;
    }

    /* Footer */
    footer .container,
    .footC {
        flex-direction: column;
        text-align: center;
    }

    .footB {
        margin-bottom: 30px;
    }

    .footC>div {
        margin-bottom: 20px;
    }

    .footC>div:not(:first-child) {
        margin-left: 0;
    }
}

/* For smaller smartphones (375px and below) */
@media (max-width: 375px) {
    .head-nav a {
        padding: 15px;
        font-size: 16px;
    }

    .head-img img,
    .foot-img img {
        width: 150px;
    }
}