/* 基本設定 */
:root {
    /* --primary-color: #009249; */
    --primary-color: #005792;
    --secondary-color: #00A8E8;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white-color: #ffffff;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    /* font-family: 'Poppins', sans-serif; */
    font-family:'Noto serif';
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

/* ヘッダー */
.header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--white-color);
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav a:hover::after, .nav a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ヒーローセクション */
.hero {
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    /* text-align: center; */
    height: 100vh;
    min-height: 400px;
    padding-top: var(--header-height);
    background-color: var(--primary-color);
    /* background-image: linear-gradient(rgba(0, 87, 146, 0.8), rgba(0, 87, 146, 0.8)), url('https://via.placeholder.com/1920x1080/005792/FFFFFF?text=Abstract+Background'); */
    background-image: url(jpg/sea_fullmoon.JPG);
    background-size: cover;
    /* background-position: center; */
    background-position: top;
    /* background-position: right; */
    /* color: var(--white-color); */
    color: var(--primary-color);
}
.hero .container {
    position: relative;
}
.hero h1 {
    font-size: 2.5rem;
    font-family: 'Noto serif';
    font-weight: 600;
    margin-top: 400px;
    text-align: left;
    position:absolute;
    bottom:40px;
    right:32px;
    color:white;
}
.hero p {
    font-size: 1.1rem;
    font-weight: 100;
    color:white;
    text-align: left;
    position:absolute;
    bottom:106px;
    right:32px;
    /* left:100px; */
}

/* サービスセクション */
.services {
    background-color: var(--bg-color);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-text {
    text-align: center;
    margin-bottom: 20px;
}
.service-item {
    background-color: var(--white-color);
    padding: 30px;
    /* text-align: center; */
    text-align:left;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}
.service-img {
    max-width: 100%;
    height:auto;
    display: block;
    margin: 0 auto;
}

.service-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ポートフォリオセクション */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border:solid 2px #ccc;
    background:var(--primary-color);
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 87, 146, 0.8);
    color: var(--white-color);
    padding: 15px;
    text-align: center;
    font-weight: 700;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
}


/* Aboutセクション */
.about {
    background-color: var(--bg-color);
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
    /* text-align: center; */
    text-align: left;
    font-size: 1.1rem;
}

/* Contactセクション */
.contact-message {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}
/* contact.html */
.form-container {
  max-width: 800px;
  margin: 100px auto 50px;
  background: white;
  padding: 1em;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


/* フッター */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav.active {
        display: block;
    }
    .nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 0;
    }
    .nav ul li {
        width: 100%;
        text-align: center;
    }
    .nav a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    .nav a::after {
        display: none;
    }
    .nav a:hover {
        background-color: var(--bg-color);
    }

    .hamburger {
        display: block;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .hero h1 {
        font-size: 2.2rem;
        /* color: white; */
    }
    .hero p {
        font-size: 0.9rem;
        /* display: none; */
    }
    .section-title {
        font-size: 2rem;
    }
}