/* 全体のリセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3d5a80;
    --primary-dark: #2c3e50;
    --secondary-color: #ee6c4d;
    --accent-color: #e76f51;
    --text-color: #293241;
    --text-light: #4a5568;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #e0fbfc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ヘッダースタイル */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo h1:hover {
    color: var(--primary-dark);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.25rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    z-index: 1100;
    width: 30px;
    height: 30px;
    padding: 0;
}

.hamburger-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.menu-toggle.active .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--secondary-color);
}

.menu-toggle.active .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--secondary-color);
}

.menu-toggle.active {
    color: var(--secondary-color);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

/* ヒーローセクションスタイル */
.hero {
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.05" d="M0,224L48,213.3C96,203,192,181,288,154.7C384,128,480,96,576,117.3C672,139,768,213,864,218.7C960,224,1056,160,1152,138.7C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.6;
}

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

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero .btn {
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.hero .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* サービスセクションスタイル */
.service {
    padding: 8rem 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 90, 128, 0.05), rgba(238, 108, 77, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.5;
}

.service-card p {
    color: var(--text-light);
    margin-top: auto;
    font-size: 1rem;
}

/* 会社情報セクションスタイル */
.about {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.mission {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.mission h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.business-domain {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.business-domain h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.business-domain ul {
    padding-left: 1rem;
}

.business-domain ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    color: var(--text-color);
}

.business-domain ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
}

/* お問い合わせセクションスタイル */
.contact {
    padding: 8rem 0;
    background-color: var(--bg-light);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.3" d="M0,192L48,181.3C96,171,192,149,288,149.3C384,149,480,171,576,165.3C672,160,768,128,864,128C960,128,1056,160,1152,176C1248,192,1344,192,1392,192L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
    opacity: 0.8;
}

#contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.form-control {
    margin-bottom: 1.5rem;
}

.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: #f8fafc;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

/* セレクトボックスの矢印をカスタマイズ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

input.error, select.error, textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

input.error:focus, select.error:focus, textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* エラーメッセージ */
.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.active {
    display: block;
}

button[type="submit"] {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}

#form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: #10b981;
    color: white;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.hidden {
    display: none;
}

/* フッタースタイル */
footer {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer-logo {
    flex: 0 0 auto;
    margin-right: 2rem;
}

.footer-logo p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.footer-links {
    flex: 1 1 auto;
    max-width: 700px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: flex-end;
}

.footer-links ul li {
    font-size: 0.85rem;
    white-space: nowrap;
}

.footer-links ul li a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Privacy Policyページ */
.privacy-policy {
    padding: 10rem 0 5rem;
}

.privacy-policy h1 {
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.privacy-policy h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.privacy-policy p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.7;
}

.privacy-policy ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-policy ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.privacy-policy ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* レスポンシブデザイン */
/* タブレット対応 */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
    
    .hero {
        min-height: 70vh;
        padding: 8rem 0 6rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .hero .tagline {
        font-size: 1.3rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    #contact-form {
        max-width: 90%;
    }
}

/* スマホ対応 - 基本レイアウト */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
        padding: 0.5rem;
    }
    
    .menu-toggle i {
        transition: transform 0.3s ease;
    }
    
    .menu-toggle.active i {
        transform: rotate(90deg);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
    }
    
    .hero {
        padding: 7rem 0 5rem;
        min-height: 60vh;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .name-fields {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card, .mission, .business-domain {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .mission h3 {
        font-size: 1.5rem;
    }
    
    .about, .service, .contact {
        padding: 5rem 0;
    }
    
    #contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    label {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    input, select, textarea {
        padding: 0.9rem 0.7rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    select {
        background-position: right 0.7rem center;
    }
    
    button[type="submit"] {
        padding: 1rem 0.75rem;
        margin-top: 1rem;
    }
    
    #form-message {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1rem;
        align-items: center;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }
    
    .footer-logo p {
        margin-top: 0.25rem;
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .footer-links {
        width: 100%;
        max-width: none;
    }
    
    .footer-links ul {
        justify-content: center;
        gap: 0.5rem 1rem;
        padding: 0;
    }
    
    .footer-links ul li {
        margin: 0.25rem;
    }
    
    .footer-links ul li a {
        padding: 0.3rem;
        display: block;
        font-size: 0.8rem;
    }
    
    .copyright {
        padding-top: 0.75rem;
    }
    
    .service::before {
        height: 15%;
    }
}

/* 小型スマホ対応 */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    header {
        padding: 0.75rem 0;
    }
    
    .logo img {
        width: 120px;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        min-height: 50vh;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    #contact-form {
        padding: 1.25rem;
    }
    
    footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-links ul li {
        margin: 0.1rem 0;
    }
}

/* タッチデバイス対応 */
@media (hover: none) {
    /* タッチデバイス向けのスタイル */
    
    /* タップ領域を広く */
    nav ul li a,
    .footer-links ul li a,
    .btn,
    button[type="submit"] {
        padding: 0.8rem 1rem;
    }
    
    /* タップ時のフィードバック */
    .btn:active,
    button[type="submit"]:active,
    nav ul li a:active,
    .footer-links ul li a:active {
        opacity: 0.7;
        transition: opacity 0.1s ease;
    }
    
    /* カードのホバー効果をタップ効果に変更 */
    .service-card {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.8s ease forwards;
} 