/* Google Fontsのインポート */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* フォントファミリー変数 */
    --jp-font: 'Zen Maru Gothic', sans-serif;
    --en-font: 'Montserrat', sans-serif;
    --main-text-color: #2c2c2c;
    --accent-color: #857f7f;
    --background-color: #ffffff;
    --link-color: #2c2c2c;
    --section-spacing: 160px;
    --soft-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition-base: all 0.3s ease;
    --accent-cyan: #65f7fd;
    --accent-lime: #c1ff72;
}

body {
    font-family: var(--jp-font);
    color: var(--main-text-color);
    background-color: var(--background-color);
    line-height: 2;
    letter-spacing: 0.05em;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--jp-font);
  font-weight: 700;
}

.nav-link, .footer-link {
  font-family: var(--en-font);
  font-weight: 500;
}

/* 英数字に対してMontserratを適用 */
.number, .en-text {
  font-family: var(--en-font);
}

/* Base styles */
:root {
    --main-text-color: #2c2c2c;
    --accent-color: #857f7f;
    --background-color: #ffffff;
    --link-color: #2c2c2c;
    --section-spacing: 160px;
    --soft-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition-base: all 0.3s ease;
    --accent-cyan: #65f7fd;
    --accent-lime: #c1ff72;
    --font-rounded: 'M PLUS Rounded 1c', sans-serif;
    --font-quicksand: 'Quicksand', sans-serif;
}

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

body {
    font-family: var(--font-rounded);
    color: var(--main-text-color);
    background-color: var(--background-color);
    line-height: 2;
    letter-spacing: 0.05em;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-container:first-child {
    margin-top: 0;
}

/* Main Content Spacing */
main {
    min-height: 100vh;
    width: 100%;
}

/* Navigation Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.98);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.main-nav .site-title {
    font-family: var(--en-font);
    font-size: 2.0rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.main-nav .site-title:hover {
    color: #666;
}

.main-nav .nav-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.main-nav ul.main-menu,
.main-nav ul.social-menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul.main-menu {
    gap: 2.5rem;
}

.main-nav ul.social-menu {
    gap: 1.5rem;
}

.main-nav ul.main-menu li a {
    font-family: var(--en-font);
    position: relative;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-nav ul.social-menu li a {
    color: #333;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.main-nav ul li a.active {
    color: #000;
}

.main-nav ul.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #333;
    transition: width 0.3s ease;
}

.main-nav ul.main-menu li a:hover::after,
.main-nav ul.main-menu li a.active::after {
    width: 100%;
}

.main-nav ul.social-menu li a:hover {
    color: #666;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    color: #333;
    transition: color 0.3s ease;
}

.menu-toggle i {
    font-size: 1.5rem;
}

.menu-toggle:hover {
    color: #666;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    margin-top: 128px; /* 実測値に合わせる */
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        margin-top: 80px; /* モバイル用の実測値に合わせる */
    }

    .main-nav {
        padding: 1rem 1.5rem;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-container.active {
        right: 0;
    }

    .main-nav ul.main-menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .main-nav ul.main-menu li a {
        font-size: 1.1rem;
    }

    .main-nav ul.social-menu {
        margin-top: 2rem;
    }

    .menu-toggle {
        display: block;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.80;
    transform: scale(1.05);
    transition: transform 6s ease-out;
    filter: brightness(0.8) contrast(0.9);
}

.hero-section:hover .hero-image {
    transform: scale(1.1);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 800px;
    z-index: 2;
    color: #fff;
}

.hero-text-container {
    padding: 3rem;
    text-align: left;
    position: relative;
    width: 85%;
    max-width: 550px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    backdrop-filter: none;
}

@media (max-width: 768px) {
    .hero-text-container {
        padding: 2rem;
        width: 100%;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        backdrop-filter: none;
    }
}

@media (max-width: 480px) {
    .hero-text-container {
        width: 90%;
        max-width: 85%;
        margin: 0;
        background: rgba(0, 0, 0, 0.4);
        padding: 1.5rem;
        border-radius: 8px;
        backdrop-filter: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 0;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-container::before {
    content: none;
}

.main-title {
    font-family: var(--en-font);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: left;
    line-height: 1.2; /* タイトルの行間を詰める */
}

.hero-message {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.8; /* メッセージの行間も少し詰める */
    margin-bottom: 3rem;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.hero-cta {
    margin-top: 2.5rem;
    text-align: center; /* 中央揃えに変更 */
}

.cta-button {
    display: inline-block;
    padding: 1.4rem 3.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.4s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.cta-button:hover::before {
    transform: translateX(100%) rotate(45deg);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フェードインアップアニメーション用クラス */
.fadein-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 各要素の遅延時間を設定 */
.main-title.fadein-up {
    animation-delay: 0.2s;
}

.hero-message.fadein-up {
    animation-delay: 0.4s;
}

.cta-button.fadein-up {
    animation-delay: 0.6s;
}

/* スクロールインジケーターは一時的に非表示 */
.scroll-indicator {
    display: none;
}

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

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    60% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowEffect {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-content {
        left: 5%; /* モバイルでは左余白を少し減らす */
        width: 90%;
    }

    .main-title {
        font-size: 4.2rem;
    }

    .main-title.fadein-up {
        animation-delay: 0.2s;
    }

    .hero-message {
        font-size: 1.4rem;
        line-height: 1.8;
        letter-spacing: 0.06em;
    }

    .hero-message.fadein-up {
        animation-delay: 0.4s;
    }

    .cta-button {
        padding: 1.2rem 2.8rem;
        font-size: 1.1rem;
    }

    .cta-button.fadein-up {
        animation-delay: 0.6s;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 3.5rem;
    }

    .main-title.fadein-up {
        animation-delay: 0.2s;
    }

    .hero-message {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    .hero-message.fadein-up {
        animation-delay: 0.4s;
    }

    .cta-button.fadein-up {
        animation-delay: 0.6s;
    }
}

/* Footer Styles */
.site-footer {
    background: #fff;
    padding: 3rem 0;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-nav {
    width: 100%;
    text-align: center;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    font-family: var(--en-font);
    font-weight: 500;
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #000;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #333;
    transition: width 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    color: #333;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.social-link:hover {
    color: #000;
}

.footer-info {
    text-align: center;
}

.copyright {
    font-family: var(--en-font);
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 1rem;
        display: flex !important;
        justify-content: center;
        margin: 1rem 0;
    }

    .social-link {
        font-size: 1.1rem;
        display: inline-block;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; } 

/* Introduction Section */
.intro-section {
    text-align: center;
    padding: var(--section-spacing) 0;
    position: relative;
    background-color: rgba(133, 127, 127, 0.02);
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background-color: var(--accent-color);
    opacity: 0.3;
}

.intro-image {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.profile-image.animate {
    animation: profileFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes profileFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-section h2,
.home-header h1 {
    font-size: 2.2em;
    font-weight: normal;
    margin-bottom: 60px;
    line-height: 1.6;
    letter-spacing: 0.1em;
}

.intro-text,
.home-header p {
    font-size: 1.1em;
    line-height: 2.2;
    margin-bottom: 60px;
    color: var(--accent-color);
}

.home-header {
    text-align: center;
    padding: var(--section-spacing) 0;
    margin-bottom: 40px;
    margin-top: calc(30vh - 60px);
    opacity: 0;
    transform: translateY(30px);
}

.home-header.animate, .fadein-target.animate {
    animation: headerFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* index.phpのServiceセクション内のヘッダーのみマージン調整 */
.service-section .home-header {
    margin-top: 0;
    padding-top: 80px;
}

.home-header h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: headerElementFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.home-header p {
    opacity: 0;
    transform: translateY(20px);
    animation: headerElementFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes headerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headerElementFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Section */
.service-section {
    padding: var(--section-spacing) 0;
    text-align: center;
}

.service-section h2 {
    font-weight: normal;
    font-size: 2em;
    margin-bottom: 80px;
    letter-spacing: 0.1em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 40px 20px;
    transition: var(--transition-base);
}

.service-image-container {
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 16/9;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-item:hover .service-image {
    transform: scale(1.05);
}

.service-item h3 {
    font-family: var(--en-font);
    font-weight: 600;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--main-text-color);
    letter-spacing: 0.1em;
}

.service-item h4 {
    font-weight: normal;
    font-size: 1em;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    color: var(--accent-color);
}

.service-item p {
    color: var(--accent-color);
    line-height: 2;
    font-size: 0.95em;
    text-align: left;
    padding: 12px;
}

/* Contact Section */
.contact-section {
    padding: var(--section-spacing) 0;
    text-align: center;
    position: relative;
    background-color: rgba(133, 127, 127, 0.02);
}

.contact-section h2 {
    font-weight: normal;
    font-size: 2em;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
}

.contact-section .section-header h2 {
  font-weight: 400;
}

.section-header h2 {
  position: relative;
  overflow: hidden;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-lime));
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
  z-index: 1;
}

.section-header h2.animate-underline::after {
  width: 100%;
}

/* Links */
.profile-link a,
.blog-link a,
.contact-link a {
    display: inline-block;
    padding: 15px 60px;
    border: 1px solid var(--main-text-color);
    color: var(--main-text-color);
    text-decoration: none;
    transition: var(--transition-base);
    letter-spacing: 0.1em;
    font-size: 0.95em;
}

.profile-link a:hover,
.blog-link a:hover,
.contact-link a:hover {
    background-color: var(--main-text-color);
    color: var(--background-color);
}

/* Modern Service Section Styling */
.service-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

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

.service-item {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image {
    transform: scale(1.05);
}

.service-item h3 {
    position: absolute;
    top: 45px;
    left: 45px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-item h4 {
    font-size: 1.5em;
    margin: 20px 0;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.service-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 2px;
}

.service-item p {
    color: #666;
    line-height: 1.8;
    margin-top: 15px;
    font-size: 0.95em;
}

/* Add decorative shapes */
.intro-section {
    position: relative;
    overflow: hidden;
}

.intro-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0.1;
    top: -150px;
    right: -150px;
    z-index: 0;
}

.intro-section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(225deg, var(--accent-lime) 0%, transparent 70%);
    opacity: 0.1;
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

.intro-image {
    position: relative;
    z-index: 1;
}

/* Add accent colors to links hover effects */
.main-nav ul li a::after {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-lime));
}

.footer-links a::after,
.social-links a::after {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-lime));
}

/* Add subtle gradient to service items */
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 0%, var(--accent-cyan) 30%, var(--accent-lime) 70%, transparent 100%);
    opacity: 0.05;
    transform: translateY(100%);
    transition: transform 0.6s ease;
    z-index: 0;
}

.service-item:hover::before {
    transform: translateY(0);
}

.service-item > * {
    position: relative;
    z-index: 1;
}

/* Add subtle animation to profile image */
.profile-image {
    position: relative;
    transition: transform 0.3s ease;
}

.profile-image::after {
    content: none;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image:hover::after {
    transform: scale(1.1);
    opacity: 0.15;
}

/* Decorative square shapes */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background-color: var(--accent-lime);
    opacity: 0.05;
    right: -200px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border: 2px solid var(--accent-lime);
    opacity: 0.1;
    left: -100px;
    top: 30%;
    transform: rotate(30deg);
    z-index: 0;
}

.hero-background {
    z-index: 1;
}

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

/* Additional decorative square for intro section */
.intro-section {
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent-lime) 0%, transparent 70%);
    opacity: 0.08;
    right: -250px;
    bottom: -250px;
    transform: rotate(-15deg);
    z-index: 0;
}

.intro-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 3px solid var(--accent-lime);
    opacity: 0.1;
    left: -150px;
    top: 20%;
    transform: rotate(15deg);
    z-index: 0;
    animation: floatShape 20s infinite linear;
}

@keyframes floatShape {
    0% {
        transform: rotate(15deg) translateY(0);
    }
    50% {
        transform: rotate(30deg) translateY(-20px);
    }
    100% {
        transform: rotate(15deg) translateY(0);
    }
}

.intro-image {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 120px;
    }

    .service-grid {
        gap: 40px;
        padding: 0 20px;
    }

    .hero-text {
        font-size: 1.2em;
    }

    .service-image-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-container.active {
        right: 0;
    }

    .main-nav ul.main-menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .main-nav ul.main-menu li a {
        font-size: 1.1rem;
    }

    .main-nav ul.social-menu {
        margin-top: 2rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .hero-section {
        height: 100vh;
        margin-top: -60px;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-content::before {
        top: -2rem;
        left: -2rem;
        right: -2rem;
        bottom: -2rem;
    }

    .main-title {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .hero-text {
        font-size: 1.4rem;
        line-height: 2.2;
    }

    .intro-section h2 {
        font-size: 1.8em;
    }

    .intro-image {
        margin-bottom: 60px;
    }

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

    .service-item {
        padding: 0;
    }

    .service-image-container {
        margin-bottom: 30px;
    }

    .service-item h3 {
        font-size: 1.6em;
    }

    .service-item h4 {
        font-size: 1.4em;
    }

    .profile-link a,
    .blog-link a,
    .contact-link a {
        padding: 12px 40px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .footer-container {
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .hero-content {
        left: 10%;
        width: 80%;
        padding: 50px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 1.5rem;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 10vh;
    }

    .hero-text-container {
        padding: 2rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .social-links {
        display: flex !important;
        justify-content: center;
        gap: 1.5rem;
        margin: 1rem 0;
    }

    .social-link {
        font-size: 1.2rem;
        display: inline-block;
        padding: 0.5rem;
    }

    .hero-section {
        height: 50vh;
        padding-top: 0;
        margin-top: 80px;
        position: relative;
        display: block;
        align-items: unset;
        justify-content: unset;
    }

    .hero-background {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .hero-content {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        z-index: 2;
    }

    .hero-text-container {
        width: 90%;
        max-width: 85%;
        margin: 0;
        background: rgba(0, 0, 0, 0.4);
        padding: 1.5rem;
        border-radius: 8px;
        backdrop-filter: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 0;
        transform: translateY(0);
    }

    .main-title {
        font-size: 3.0rem !important;
        margin-bottom: 1rem;
        padding: 0;
    }

    .hero-message {
        font-size: 1.2rem !important;
        line-height: 1.2;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.9);
        padding: 0;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 1.0rem;
        margin: 0;
    }
}

/* ナビゲーションのモバイル調整 */
@media (max-width: 768px) {
    .main-nav {
        height: 80px;
        padding: 0 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
}

/* Highlight text animation */
.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 30%;
    background-color: rgba(255, 178, 102, 0.4);
    transition: width 1s ease;
    z-index: -1;
}

.highlight-text.animate::before {
    width: 100%;
} 

.profile-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 80px; /* ヘッダーとの間隔 */
}

.profile-text-section {
    text-align: center;
    margin: 0 auto;
}

.profile-name {
    text-align: center;
    margin: 30px 0 60px;
}

.profile-name h2 {
    font-size: 1.8em;
    font-weight: normal;
    line-height: 1.6;
    letter-spacing: 0.1em;
}

.profile-name span {
    font-size: 0.8em;
    color: var(--accent-color);
    display: block;
    margin-top: 5px;
}

.profile-introduction {
    text-align: left;
    margin-bottom: 60px;
    margin-top: 60px;

}

.profile-introduction.animate {

}



.profile-introduction p {
    margin-bottom: 30px;
    color: var(--accent-color);
}

.skills-section {
    margin: 60px 0;
}

.skills-section h3 {
    font-size: 1.5em;
    font-weight: normal;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.1em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0 auto;
}

.skill-item {
    text-align: center;
    padding: 30px;
    background-color: #fafafa;
    border-radius: 8px;
    transition: var(--transition-base);
}

.skill-item h4 {
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.skill-item p {
    color: var(--accent-color);
    line-height: 2;
    font-size: 0.95em;
} 

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
    align-items: start;
}

.portfolio-item:last-child {
    margin-bottom: 60px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background-color: #f5f5f5;
}

/* Portfolio Content */
.portfolio-content {
    padding: 0;
}

.portfolio-content h2 {
    font-size: 1.8em;
    font-weight: normal;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    margin-top: 0;
}

.portfolio-content time {
    display: block;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

.portfolio-description {
    line-height: 2;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.portfolio-meta {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-meta p {
    margin-bottom: 10px;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

.portfolio-meta strong {
    font-weight: normal;
    color: var(--main-text-color);
}

/* Responsive Design for Portfolio */
@media (max-width: 968px) {
    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .portfolio-content {
        padding: 0;
    }
} 

.profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-image {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
} 

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .skill-item {
    padding: 20px;
    font-size: 1em;
  }
} 

.contact-inner-box {
  background: transparent;
  color: inherit;
  border-radius: 16px;
  padding: 48px 24px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner-box input,
.contact-inner-box textarea {
  background: #222;
  color: #fff;
  border: 1px solid #444;
}

.contact-inner-box input::placeholder,
.contact-inner-box textarea::placeholder {
  color: #aaa;
}

.contact-inner-box.fadein-target {
  opacity: 0;
  transform: translateY(30px);
}

.contact-inner-box.fadein-target.animate {
  animation: headerFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
} 

@media (max-width: 768px) {
  .service-item h3 {
    top: 10px;
    left: 10px;
  }
} 