/* カラー変数 */
:root {
    --primary: #1e3a8a;
    --primary-light: #27428f;
    --primary-lighter: #f5f7fb;
    --bg-light: #f5f7fb;
    --bg-lighter: #f5f7fb;
    --text-dark: #222b3a;
    --text-light: #5a6780;
    --white: #fff;
    --shadow: rgba(30, 58, 138, 0.10);
    --footer-bg: #1c2b55;
    --font-jp: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
    --font-en: 'Space Grotesk', sans-serif;
}

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-jp);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* 共通スタイル */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--bg-light);
}

section:nth-child(even) {
    background-color: var(--bg-lighter);
}

h2 {
    font-family: var(--font-en);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 20px auto 0;
    opacity: 0.8;
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ヘッダー */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav li {
    margin: 0;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

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

.nav a:hover {
    color: var(--primary-light);
}

.nav a:hover::after {
    width: 100%;
    background: var(--primary-light);
}

/* ヒーローセクション */
.hero {
    background: url('images/sunrise.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo-img {
    width: 600px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero h2 {
    font-family: var(--font-en);
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-family: var(--font-jp);
    font-size: 1.5rem;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* できることセクション */
.services {
    background-color: var(--bg-light);
    padding: 120px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e3e8f5;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-en);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.01em;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.service-catch {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: center;
    margin: 0;
}

.service-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-lighter);
    color: var(--primary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .service-icon i {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .service-catch {
        font-size: 1.1rem;
    }

    .service-content {
        gap: 10px;
        margin-bottom: 20px;
    }

    .service-link {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .nav a::after {
        display: none;
    }

    .hero-logo-img {
        width: 85%;
        max-width: 500px;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

/* 私たちについてセクション */
.about {
    background-color: #f8f9fc;
    padding: 100px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 40px;
}

.about-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0;
}

.about-image {
    flex: 1 1 50%;
    max-width: 50%;
    display: flex;
    justify-content: flex-start;
}

.about-row:last-child {
    margin-bottom: 0;
}

.about-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.about-text {
    flex: 1 1 50%;
    max-width: 50%;
    text-align: left;
}

.about-text h3 {
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.about-divider {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin-bottom: 25px;
    opacity: 0.6;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
}

.about-illustration {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .about-item {
        gap: 40px;
    }

    .about-illustration {
        max-height: 350px;
    }
}

@media (max-width: 900px) {
    .about-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .about-image, .about-text {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .about-img {
        margin: 1.2rem auto;
        width: 80%;
        max-width: 280px;
    }
    .about-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }

    .about-item {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .about-item.reverse {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }

    .about-illustration {
        max-height: 300px;
    }

    .about-text {
        text-align: center;
    }

    .about-text h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .about-divider {
        margin: 0 auto 20px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .nav a::after {
        display: none;
    }

    .about-img,
    .about-img-left,
    .about-img-right {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
        width: 80%;
        max-width: 280px;
    }
}

/* こんな方におすすめセクション */
.recommend {
    background-color: #f2f7fb;
    padding: 100px 0;
}

.recommend-content {
    max-width: 800px;
    margin: 0 auto;
}

.recommend-lead {
    text-align: center;
    margin-bottom: 60px;
}

.recommend-lead p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-dark);
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.recommend-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e3e8f5;
}

.recommend-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--shadow);
}

.recommend-item i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 3px;
}

.recommend-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recommend {
        padding: 80px 0;
    }

    .recommend-lead {
        margin-bottom: 40px;
    }

    .recommend-lead p {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .recommend-list {
        gap: 20px;
    }

    .recommend-item {
        padding: 25px 30px;
    }

    .recommend-item i {
        font-size: 1.2rem;
    }

    .recommend-item p {
        font-size: 1rem;
    }
}

/* こんな方におすすめセクション */
.clients {
    background-color: #f8f9fa;
}

.client-checklist {
    max-width: 800px;
    margin: 0 auto;
}

.check-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e3e8f5;
}

.check-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--shadow);
}

.check-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 20px;
}

.check-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* お問い合わせセクション */
.contact {
    background-color: #fff;
}

.contact-lead {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    margin: 2rem auto 0 auto;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
}

.contact-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px) scale(1.04);
}

/* フッター */
.footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-email {
    margin-top: 10px;
}

.footer-email a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-email a:hover {
    opacity: 0.8;
}

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

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
    }

    .nav li {
        margin: 10px 0;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        margin-bottom: 30px;
    }

    .contact-form {
        padding: 20px;
    }

    .check-item {
        flex-direction: column;
        text-align: center;
    }

    .check-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.service-icon i,
.works-category h2 i,
.recommend-item i,
.check-item i {
    color: var(--primary);
}

.service-card,
.recommend-item,
.check-item,
.works-category {
    border: 1px solid #e3e8f5;
    box-shadow: 0 5px 15px var(--shadow);
}

/* ハンバーガーメニュー用スタイル */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3000;
    margin-left: 10px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }
    .nav-toggle {
        display: none !important;
    }
}

/* メニューオープン時の背景ぼかし */
@media (max-width: 900px) {
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(34,43,58,0.15);
        z-index: 1000;
        pointer-events: auto;
    }
}

@media screen and (max-width: 768px) {
  html, body {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .container {
    max-width: 100vw !important;
    width: 100vw !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .header .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 60px !important;
    padding: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    box-sizing: border-box !important;
  }

  .logo {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1 1 auto !important;
  }

  .logo-img {
    height: 32px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .hamburger {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-end !important;
  }

  .hero .container,
  .about-section,
  .about .container,
  .recommend .container,
  .contact .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
  }

  .hero p,
  .about-section p,
  .about-section h2,
  .about-section h3 {
    padding-left: 4px !important;
    padding-right: 4px !important;
    box-sizing: border-box !important;
    margin: 0 auto 1.5rem auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body {
    position: relative;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .container,
  .hero,
  .hero .container,
  .hero img,
  .hero::before {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .hero {
    background-size: cover !important;
    background-position: center !important;
  }
  .hero img {
    width: 100vw !important;
    height: auto !important;
    display: block !important;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
    word-break: keep-all;
  }

  h2 {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  p, li {
    font-size: 1rem;
    line-height: 1.7;
    word-break: break-word;
    hyphens: auto;
    margin-bottom: 1rem;
  }

  .sp-br {
    display: none;
  }

  img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .subcatch {
    font-size: 1rem;
    line-height: 1.5;
  }

  .about-section img {
    display: block;
    margin: 1.5rem auto;
  }

  .about-section h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: center;
    word-break: keep-all;
  }

  .about-section p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
    max-width: 90vw;
    margin: 0 auto 1.5rem;
  }

  .about-section {
    padding: 2rem 1.5rem;
  }

  /* 背景エリアの余白をなくす */
  .hero,
  .hero img,
  .hero::before {
    padding: 0;
    margin: 0;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* テキストコンテナは最大幅90%程度で中央揃え */
  .hero .container {
    max-width: 90vw;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
    padding: 0;
  }

  /* キャッチコピーのフォントサイズもスマホに合わせて調整 */
  .hero p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 90vw;
    text-align: center;
  }

  .about-section .about-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .about-section .about-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .about-section .about-image,
  .about-section .about-text {
    display: block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }
  .about-section img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .about-section h2,
  .about-section h3,
  .about-section p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100vw;
        background: var(--white);
        box-shadow: 0 4px 24px var(--shadow);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 0 20px 0;
        gap: 0;
        display: none;
        z-index: 2000;
        transition: all 0.3s;
    }
    .nav.open {
        display: flex !important;
    }
    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .nav li {
        width: 100%;
        margin: 0;
    }
    .nav a {
        display: block;
        width: 100vw;
        padding: 18px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #e3e8f5;
        color: var(--primary);
        background: none;
        text-align: center;
    }
    .nav a:last-child {
        border-bottom: none;
    }
} 