/* ==========================================================================
   1. 全体設定 & 共通スタイル
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.65;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

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

/* ==========================================================================
   セクションタイトル（見出しの幾何学赤三角）
   ========================================================================== */
.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 50px;
    position: relative;
    color: #111;
    cursor: default;
    
    display: block;      
    width: fit-content;  
    margin-left: auto;   
    margin-right: auto;  
    text-align: center;
    padding: 0 10px; 
    z-index: 1;
}

/* 文字の下に敷くブランドレッドの幾何学三角 */
.section-title::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 0;
    width: 100%; 
    height: 45%; 
    background-color: #ff0033;
    clip-path: polygon(0 0, 100% 70%, 100% 100%, 0 100%);
    z-index: -1; 
    transform: scaleX(1); /* ベース状態は100%表示 */
    transform-origin: left center;
}

/* スクロール到達・遷移・ホバー時に、このクラスがついている間だけ波打たせる */
.section-title.is-animating::after {
    animation: wave-red-anim 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 📊 統一された美しい波打ちキーフレーム */
@keyframes wave-red-anim {
    0% {
        transform: scaleX(1);
        transform-origin: right center;
    }
    40% {
        transform: scaleX(0);
        transform-origin: right center;
        background-color: #ff3366; 
    }
    41% {
        transform: scaleX(0);
        transform-origin: left center;
    }
    100% {
        transform: scaleX(1);
        transform-origin: left center;
        background-color: #ff0033;
    }
}


/* ==========================================================================
   共通ボタン & 下位コンポーネント
   ========================================================================== */
.btn-outline {
    display: inline-block;
    padding: 14px 38px;
    border: 2px solid #ff0033;
    color: #ff0033;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #ff0033;
    color: #fff;
}


/* ==========================================================================
   2. ヘッダー（Header）
   ========================================================================== */
header {
    width: 100%;
    height: 60px;
    background-color: #1a1a1a;
    z-index: 100;
    position: relative;
}

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

header nav ul {
    display: flex;
    list-style: none;
    gap: 50px; 
    justify-content: center;
}

header nav ul li a {
    font-size: 1.0rem; 
    font-weight: 700;
    letter-spacing: 0.1em; 
    color: #eeeeee;
    position: relative;
    padding-bottom: 4px;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ff0033;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

header nav ul li a:hover {
    color: #ffffff;
}

header nav ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}


/* ==========================================================================
   3. メインビジュアル（Hero Section）
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 620px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 245, 246, 0.2); 
    z-index: 2;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 95px 20px 0 20px;
    z-index: 3;
    display: flex;
    justify-content: flex-start;
}

.hero-story-box {
    width: 100%;
    max-width: 760px;
    background-color: transparent !important;
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* ==========================================================================
   4. 事業内容（BUSINESS）
   ========================================================================== */
.business-section {
    padding: 100px 0;
    background-color: #fff5f6;
    text-align: center;
}

.business-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    text-align: left;
}

.business-card {
    flex: 1;
    background-color: #fff;
    padding: 0; 
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(255, 0, 50, 0.03);
    border: 1px solid #fbe5e7;
    overflow: hidden; 
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, box-shadow;
}

.business-card:hover {
    transform: translateY(-7px); 
    box-shadow: 0 12px 35px rgba(26, 26, 26, 0.12), 0 8px 20px rgba(255, 0, 50, 0.05);
}

.business-card:hover .card-img-box img {
    transform: scale(1.06);
}

.card-img-box {
    position: relative; 
    width: 100%;
    height: 220px; 
    overflow: hidden;
    background-color: #1a1a1a; 
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.img-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.75) 100%);
    display: flex;
    align-items: flex-end; 
    padding: 25px 30px; 
    box-sizing: border-box;
}

.img-title-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
    letter-spacing: 0.05em;
    margin-bottom: 0;
    position: relative;
}

.card-body-content {
    padding: 30px 40px 40px 40px;
}

.card-body-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.85;
}


/* ==========================================================================
   5. 会社概要（COMPANY）
   ========================================================================== */
.company-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.table-container {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #fbe5e7;
    text-align: left;
}

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

th, td {
    padding: 24px 20px;
    border-bottom: 1px solid #fbe5e7;
    font-size: 0.95rem;
    text-align: left;
}

th {
    width: 25%;
    font-weight: 700;
    color: #1a1a1a;
    vertical-align: top;
    letter-spacing: 0.03em;
}

td {
    width: 75%;
    color: #444;
    line-height: 1.65;
}


/* ==========================================================================
   6. お問い合わせ（CONTACT）
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: #fff5f6;
    text-align: center;
}

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

.contact-box p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 40px;
    line-height: 1.85;
}


/* ==========================================================================
   7. フッター（Footer）
   ========================================================================== */
footer {
    background-color: #111111;
    color: #fff;
    padding: 15px 0; 
}

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

.footer-links a {
    font-size: 0.85rem;
    color: #ccc;
    letter-spacing: 0.02em;
}

.footer-links a:hover {
    color: #ff0033;
}

.copyright {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.03em;
}


/* ==========================================================================
   8. スマホ・タブレット最適化（Responsive）
   ========================================================================== */
@media (max-width: 960px) {
    .business-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-container {
        padding-top: 60px;
    }
}

/* スマホ表示（幅640px以下）の完全レスポンシブ制御 */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    /* 1. メインビジュアル（Hero）のスマホ調整 */
    .hero {
        height: auto;
        min-height: 560px;
        padding-bottom: 40px;
    }

    .hero-container {
        padding: 35px 16px 0 16px;
    }

    /* 1行目のロゴ・キャッチフレーズ部分をスマホで美しく収める */
    .slice-top-item {
        align-items: flex-end !important;
        line-height: 1.2 !important;
        padding-bottom: 8px !important;
    }

    /* スマホ画面での画像ロゴサイズ微調整 */
    .slice-top-item img {
        height: 2.4rem !important;
    }

    /* スマホ画面でのSolMickテキストサイズ微調整 */
    .animated-underline-final {
        font-size: 2.1rem !important;
    }

    /* Solの背面にある赤三角のサイズもスマホに合わせて自動最適化 */
    .svg-sol-final {
        width: 3.7rem !important;
    }

    /* 「ソルミックという名には、」のフォントサイズ・改行制御 */
    .slice-top-item span {
        font-size: 14px !important;
        margin-left: 4px !important;
        margin-top: 4px;
    }

    /* メインビジュアル本文のスマホ読みやすさ向上 */
    .hero-story-box div {
        font-size: 14px !important;
        line-height: 2.0 !important;
    }

    .slice-right-item {
        font-size: 13.5px !important;
        margin-bottom: 10px !important;
    }

    /* 2. ヘッダーメニューのスマホ最適化 */
    .header-container {
        padding: 0 10px;
    }

    header nav ul {
        gap: 20px; 
    }

    header nav ul li a {
        font-size: 0.88rem;
        letter-spacing: 0.05em;
    }

    /* 3. セクションタイトルのスマホ表示 */
    .section-title {
        font-size: 2.1rem;
        margin-bottom: 35px;
    }

    .business-section,
    .company-section,
    .contact-section {
        padding: 60px 0;
    }

    /* 4. 事業内容カードのスマホ表示 */
    .card-img-box {
        height: 180px;
    }
    
    .img-title-overlay {
        padding: 18px 20px;
    }
    
    .img-title-overlay h3 {
        font-size: 1.2rem;
    }
    
    .card-body-content {
        padding: 20px;
    }

    /* 5. 会社概要テーブルのスマホ縦並び化 */
    th, td {
        display: block;
        width: 100%;
        padding: 12px 10px;
    }

    th {
        border-bottom: none;
        padding-bottom: 2px;
        background-color: rgba(255, 0, 50, 0.03);
    }

    /* 6. 下層ページ（PRIVACY / CONTACT）のスマホ最適化 */
    header.privacy-header .header-container,
    header.contact-header .header-container {
        padding: 0 15px !important;
    }

    .privacy-logo img {
        height: 1.6rem !important;
    }

    .privacy-logo div strong,
    .privacy-logo div {
        font-size: 1.3rem !important;
    }

    header.privacy-header nav ul,
    header.contact-header nav ul {
        gap: 15px !important;
    }

    header.privacy-header nav ul li a,
    header.contact-header nav ul li a {
        font-size: 0.82rem !important;
    }

    .main-content,
    .form-main-content {
        margin: 40px 15px 40px !important;
        padding: 30px 20px !important;
    }

    .main-content h1,
    .form-main-content h1 {
        font-size: 1.5rem !important;
    }

    /* 7. フッターのスマホ配置 */
    .footer-container {
        flex-direction: column;
        gap: 8px; 
        text-align: center;
    }
}


/* ==========================================================================
   9. メインビジュアル用の方向別フェードイン・タイムライン設計（純粋CSS制御）
   ========================================================================== */
@keyframes slideFromTop {
    0% {
        opacity: 0;
        transform: translateY(-65px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.slice-top-item {
    opacity: 0;
    animation: slideFromTop 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.0s;
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
.slice-right-item {
    opacity: 0;
    animation: slideFromRight 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes slideFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.slice-bottom-item {
    opacity: 0;
    animation: slideFromBottom 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    animation-delay: 2.4s;
}

@keyframes drawUnderline {
    0% {
        background-size: 0% 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}
.animated-underline-final {
    display: inline-block;
    position: relative;
    background-image: linear-gradient(transparent 50%, #111111 50%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left bottom;
    animation: drawUnderline 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 3.0s;
}

@keyframes expandRedTriangle {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}
.svg-sol-final {
    position: absolute;
    top: 0;
    left: 0;
    width: 4.55rem; 
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    transform-origin: left center;
    transform: scaleX(0);
    animation: expandRedTriangle 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 3.8s;
}


/* ==========================================================================
   10. 各種下層専用スタイル（PRIVACY, CONTACT用）
   ========================================================================== */
header.privacy-header .header-container {
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.privacy-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    cursor: pointer;
    line-height: 1.0;
}

.privacy-logo span {
    color: #ff0033; 
}

header.privacy-header .header-container nav {
    width: auto !important; 
}

header.privacy-header .header-container nav ul {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.0 !important;
    gap: 50px; 
}

header.privacy-header .header-container nav ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: inline-block !important;
}

.main-content {
    max-width: 800px;
    margin: 100px auto 70px;
    padding: 50px 50px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(26, 26, 26, 0.05);
    box-sizing: border-box;
    border: 1px solid #fbe5e7;
}

.main-content h1 {
    font-size: 2rem;
    color: #111111;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    border-bottom: 3px solid #ff0033;
    padding-bottom: 15px;
    letter-spacing: 0.03em;
    display: block;
    width: 100%;
    text-align: left;
}

.date {
    text-align: right;
    color: #777777;
    font-size: 14px;
    margin-bottom: 30px;
}

.privacy-section-block p {
    font-size: 15px;
    color: #444444;
    margin-bottom: 25px;
    line-height: 1.85;
    text-align: left;
}

.main-content h2 {
    font-size: 1.35rem;
    color: #111111;
    margin-top: 45px;
    margin-bottom: 15px;
    border-left: 5px solid #ff0033;
    padding-left: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: block;
    width: 100%;
    text-align: left;
}

.main-content ol, 
.main-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.main-content li {
    font-size: 15px;
    color: #444444;
    margin-bottom: 10px;
    line-height: 1.75;
    text-align: left;
}

.btn-wrap {
    text-align: center;
    margin-top: 50px;
}

.btn-back {
    display: inline-block;
    padding: 13px 45px;
    border: 2px solid #ff0033;
    color: #ff0033;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-back:hover {
    background-color: #ff0033;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 50, 0.155);
}

header.contact-header .header-container {
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

header.contact-header .header-container nav {
    width: auto !important; 
}

header.contact-header .header-container nav ul {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.0 !important;
    gap: 50px; 
}

header.contact-header .header-container nav ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: inline-block !important;
}

.form-main-content {
    max-width: 800px;
    margin: 100px auto 70px;
    padding: 50px 50px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(26, 26, 26, 0.05);
    box-sizing: border-box;
    border: 1px solid #fbe5e7;
}

.form-main-content h1 {
    font-size: 2rem;
    color: #111111;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 3px solid #ff0033;
    padding-bottom: 15px;
    letter-spacing: 0.05em;
    display: block;
    width: 100%;
    text-align: center;
}

.form-embed-wrapper {
    width: 100%;
    min-height: 600px; 
    background-color: #fff5f6;
    border: 1px dashed #ff0033;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff0033;
    font-weight: 700;
    padding: 40px 20px;
    box-sizing: border-box;
    margin-bottom: 20px;
}