@charset "UTF-8";

/* =========================================
   ベース設定（リセット）
   ========================================= */
#tomaru-home-wrapper {
    font-family: "Inter", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #F8FAFC;
    width: 100%;
    overflow-x: hidden;
}

#tomaru-home-wrapper * {
    box-sizing: border-box;
}

.tm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.tm-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #0F172A;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.tm-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #3B82F6;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================
   1. ヒーローセクション（ファーストビュー）
   ========================================= */
.tm-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* 背景グラデーションアニメ */
.tm-hero-bg {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 40%, #000000 100%);
    animation: pulseBg 10s infinite alternate;
    z-index: 1;
}

@keyframes pulseBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.tm-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.tm-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tm-hero-lead {
    font-size: 1.5rem;
    font-weight: bold;
    color: #60A5FA; /* 明るい青 */
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.tm-hero-desc {
    font-size: 1.1rem;
    color: #CBD5E1;
    margin-bottom: 3rem;
}

/* ボタン群 */
.tm-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.tm-btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border: 1px solid transparent;
}

.tm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.6);
}

.tm-btn-white {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid #fff;
    backdrop-filter: blur(5px);
}

.tm-btn-white:hover {
    background: #fff;
    color: #000;
}

/* =========================================
   2. 理念 & 3. サービス（3カラム修正）
   ========================================= */
.tm-philosophy {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}
.tm-philosophy-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #475569;
}

.tm-services {
    padding: 100px 0;
    background: #fff;
}

/* ★ここが3カラムの要★ */
.tm-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 強制的に3分割 */
    gap: 40px;
}

/* カードデザイン */
.tm-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* ふんわりした影 */
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #F1F5F9;
}

.tm-card:hover {
    transform: translateY(-10px); /* 浮き上がる */
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.tm-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: #EFF6FF;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.tm-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1E293B;
}

.tm-card p {
    font-size: 0.95rem;
    color: #64748b;
}

/* =========================================
   4. ニュース（カード型）
   ========================================= */
.tm-news {
    padding: 100px 0;
    background: #F8FAFC;
}

.tm-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tm-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.tm-news-thumb {
    height: 200px;
    overflow: hidden;
    background: #ddd;
}

.tm-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tm-news-card:hover img {
    transform: scale(1.1); /* 画像ズーム */
}

.tm-no-image {
    width: 100%; height: 100%;
    background: #CBD5E1;
    position: relative;
}
.tm-no-image::after {
    content: "No Image";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
}

.tm-news-body {
    padding: 20px;
}

.tm-news-body time {
    font-size: 0.85rem;
    color: #94A3B8;
    display: block;
    margin-bottom: 8px;
}

.tm-news-body h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

.tm-news-more {
    text-align: center;
    margin-top: 40px;
}

.tm-link-arrow {
    color: #3B82F6;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
}

/* =========================================
   5. CTA（お問い合わせ）
   ========================================= */
.tm-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
}

.tm-cta-inner h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.tm-cta-inner p {
    color: #CBD5E1;
    margin-bottom: 40px;
}

/* =========================================
   レスポンシブ設定（スマホ対応）
   ========================================= */
@media (max-width: 768px) {
    .tm-hero h1 { font-size: 2.5rem; }
    .tm-btn-group { flex-direction: column; }
    .tm-service-grid, .tm-news-grid { grid-template-columns: 1fr; } /* スマホは1列 */
    .sp-only { display: block; }
}