/* 全体設定 */
:root {
    --primary-color: #4CAF50; /* 親しみやすいライトグリーン */
    --secondary-color: #2196F3; /* 明るい水色 */
    --accent-color: #FFC107; /* 活力あるイエロー */
    --text-dark: #212121;
    --text-light: #424242;
    --bg-light: #f8fcfd; /* やや淡い水色 */
    --bg-gradient-start: #e0f7fa;
    --bg-gradient-end: #bbdefb;
    --footer-bg: #37474F; /* 落ち着いたダークグレー */
    --border-light: #e0e0e0;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    color: var(--text-light);
    line-height: 1.7;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'UD デジタル教科書体', 'Rounded M+', 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

p {
    margin-bottom: 1em;
}

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

a:hover {
    color: var(--secondary-color);
}

/* コンテナとセクション */
.content-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
    color: #ffffff;
    margin-top: 4rem;
}

.cta-section h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* ボタン */
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.button:hover {
    background-color: #FFD54F; /* 少し明るいイエロー */
    transform: translateY(-2px);
}

.button-small {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: normal;
    transition: background-color 0.3s ease;
}

.button-small:hover {
    background-color: #66BB6A;
}

/* ヘッダーとナビゲーション */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between; /* ロゴとナビゲーションを両端に */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; /* ロゴの高さ調整 */
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ヒーローセクション */
#hero,
#about-hero,
#services-hero,
#portfolio-hero,
#contact-hero {
    text-align: center;
    padding: 8rem 2rem;
    background-image: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-dark);
    position: relative;
    overflow: hidden; /* 背景イラスト用 */
}

#hero h1,
#about-hero h1,
#services-hero h1,
#portfolio-hero h1,
#contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

#hero p,
#about-hero p,
#services-hero p,
#portfolio-hero p,
#contact-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 代表プロフィール */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-card p {
    font-size: 1.1rem;
}

/* サービスカード */
.service-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-card ul li {
    background-color: #e8f5e9;
    border-left: 5px solid var(--primary-color);
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 5px;
    font-size: 1rem;
}

.service-card ul li strong {
    color: var(--text-dark);
}

/* ポートフォリオグリッド */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-item {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 1.5rem 1.5rem 0.5rem;
}

.portfolio-item p {
    padding: 0 1.5rem 1.5rem;
    font-size: 1rem;
}

.portfolio-item .button-small {
    margin: 0 1.5rem 1.5rem;
}

.placeholder-3d {
    background-color: #e0f2f7; /* 淡い青色 */
    color: #424242;
    padding: 3rem 1.5rem;
    margin: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    border: 2px dashed var(--secondary-color);
    font-size: 1.1rem;
}

/* お問い合わせフォーム */
.contact-form-section {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    padding: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .required {
    color: #f44336; /* 赤色で必須マーク */
    font-size: 0.9em;
    margin-left: 0.3em;
}

.contact-form button[type="submit"] {
    width: auto;
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
}

/* フッター */
footer {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--footer-bg);
    color: #ffffff;
    margin-top: 5rem;
    font-size: 0.9rem;
}

/* 詳細ページ用スタイル */
#detail-hero {
    padding: 6rem 2rem 4rem;
    background-image: linear-gradient(135deg, #f0f4c3 0%, #d4e157 100%); /* 片田様邸のイメージに合わせたグラデーション */
    color: var(--text-dark);
}

#detail-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.detail-content {
    text-align: left;
    max-width: 900px;
}

.detail-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.detail-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.detail-3d-placeholder {
    background-color: #e3f2fd; /* 淡い青色 */
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    border: 2px dashed var(--secondary-color);
    font-size: 1.2rem;
}

.detail-3d-placeholder h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.back-to-portfolio {
    text-align: center;
    margin-top: 4rem;
}

.back-to-portfolio .button-small {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

