/* css/style.css */

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

:root {
    --primary-color: #A1006C;
    --primary-dark: #7A004F;
    --light-pink: #F5D5E3;
    --light-gray: #F9F9F9;
    --text-dark: #333333;
    --text-light: #666666;
    --accent-green: #9ABA3E;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    background-image: url('../images/background 000.png');
    background-position: left top;
    background-repeat: repeat-y;
    background-attachment: fixed;
    background-size: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 280px;  /* PC用の幅 */
}

.logo img {
    max-height: 50px;  /* PC用の高さ */
    width: auto;
    object-fit: contain;
}

.company-name {
    font-size: 15px;  /* PC用のフォントサイズ */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    white-space: nowrap;
}


/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.2rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        left: 0;
    }

    .nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }

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

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

    /* 画像のレスポンシブ対応 */
    .rounded-image {
        width: 100%;
        max-width: 750px;
        height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .about-image img {
        clip-path: none;
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 240px;
    }
    
    .logo img {
        max-height: 45px;
    }
    
    .company-name {
        font-size: 14px;
    }
    
    /* 既存のコード */
    .nav {
        gap: 15px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* スマホ用 */
    .logo {
        max-width: 200px;
    }

    .logo img {
        max-height: 40px;
    }

    .company-name {
        font-size: 13px;
    }

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

    .section {
        padding: 50px 15px;
    }

    .contact-form {
        padding: 20px;
    }

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

    .rounded-image {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-content {
        padding: 30px 20px;
    }
}
    /* スマホでの画像サイズ調整 */
    .rounded-image {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-content {
        padding: 30px 20px;
    }

/* ==================== Hero Section ==================== */
.hero {
    margin-top: 75px;
    background-image: url('../images/background.png');
    background-repeat: repeat;
    background-position: top left;
    background-size: auto;
    padding: 80px 20px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 50px 40px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 750px;
    display: flex;
    justify-content: center;
}

.rounded-image {
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    object-fit: cover;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero {
        padding: 60px 15px;
        gap: 30px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .rounded-image {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
        gap: 20px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 24px;
    }

    .rounded-image {
        width: 100%;
    }
}

/* ==================== Modal (Popup) ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    border: none;
    background: none;
    padding: 0;
}

.close:hover {
    color: #000;
}

/* ==================== Section Styling ==================== */
.section {
    padding: 80px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

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

/* ==================== Services Section ==================== */
.services {
    background-color: rgba(249, 249, 249, 0.５);
    background-repeat: repeat;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.service-card:hover {
    box-shadow: 0 6px 16px rgba(161, 0, 108, 0.15);
    transform: translateY(-4px);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}


.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== About Section ==================== */
.about {
    background-color: rgba(255, 255, 255, 0.５);
    background-repeat: repeat;
}

.about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}

.about-image {
  order: 2;
  flex-shrink: 0;
  width: 90%;
  margin-left: auto;
}

.about-image img {
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  width: 100%;
  display: block;
}

.about-content {
  order: 1;
  flex: 1;
}

.image-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-section {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: url('../images/background.png');
    background-repeat: repeat;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.about-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ==================== Company Section ==================== */
.company {
    background-color: rgba(255, 255, 255, 0.５);
    background-repeat: repeat;
}

.company-table {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.company-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    width: 120px;
}

.company-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-light);
}

.company-table tr:last-child td {
    border-bottom: none;
}

/* ==================== Contact Section ==================== */
.contact {
    background-color: rgba(255, 255, 255, 0.５);
    background-repeat: repeat;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-form {
    background-color: rgba(249, 249, 249, 0.95);
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
}
.form-row {
    display: block;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(161, 0, 108, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(161, 0, 108, 0.25);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .nav {
        gap: 15px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 14px;
    }

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

    .section {
        padding: 50px 15px;
    }

    .contact-form {
        padding: 20px;
    }

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