/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}
:root {
  --main-color: #3e8ede;
  --accent-color: #ff8a3d;
  --accent-hover-color: #f26a2a;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 50px;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    height: 24px;
}

.logo {
    height: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
    font-size: 14px;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: #f8f9fa;
    min-height: 380px;
    overflow: hidden;

    h1 {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.2;
        color: var(--main-color);
    }

    p {
        font-size: 18px;
        font-weight: bolder;
        margin-bottom: 30px;
        color: #555;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url("images/hero-background.png") center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 60px 150px 0;
}

.hero-content-text {
    text-shadow:
        0 0 6px rgba(255,255,255,0.6),
        0 0 12px rgba(255,255,255,0.3);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--accent-hover-color);
}

/* Services Section */
.services {
    padding: 80px 5%;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;

    img {
        display: block;
        width: 100%;
        height: 200px;              /* カード上部の固定高さ */
        object-fit: cover;          /* きっちりはめる */
    }
}

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

.service-image {
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--main-color);
}

.service-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.learn-more {
    display: inline-block;
    color: var(--main-color);
    font-weight: 500;
    position: relative;
}

.learn-more::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.learn-more:hover::after {
    margin-left: 10px;
}

/* Company Section */
.company {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px;
}

.company-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.company-list {
  margin: 0;
  padding: 0;
}

.company-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}

.company-item:last-child {
  border-bottom: none;
}

.company-item dt {
  width: 140px;
  font-weight: 600;
  color: #555;
}

.company-item dd {
  margin: 0;
  color: #333;
}

/* Contact Section */
.contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 16px;
}

.contact-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  color: #555;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
}

.submit-button {
  margin-top: 12px;
  padding: 14px;
  font-size: 16px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.submit-button:hover {
  background-color: var(--accent-hover-color);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 5% 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: bold;
    font-size: 20px;
}

.copyright {
    color: #adb5bd;
    font-size: 14px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-bg {
        background-position: center 30%;
    }
    
    .hero-content {
        padding: 100px 64px 0;
    }
    
    .nav-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 32px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        z-index: 1000;
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);

        /* 非表示 */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: 0.3s;
    }

    .nav-menu li {
        margin: 15px 0;
        font-size: 16px;
    }

    /* 開いた状態 */
    .nav-menu.is-open {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    .hero p {
        font-size: 15px;
        line-height: 1.7;
    }
    .hero br {
        display: none;
    }

    .hero-content {
        padding: 80px 24px 40px;
    }

    .cta-button {
        display: inline-block;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .section-header h2, .about h2, .contact h2 {
        font-size: 28px;
    }
}
