@charset "UTF-8";
/*
Theme Name: Kame Web Studio Theme
Theme URI: https://kame-web.com
Description: 福岡県直方市のホームページ制作事務所「Kame Web Studio」のオリジナルテーマです。
Version: 1.0.0
Author: 十亀 寛徳
Author URI: https://kame-web.com
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   リセット・基本設定
   ========================================================================== */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body{
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333333;
    background-color: #faf9f6;
    line-height: 1.6;
    /* スクロール演出(translateX)で横スクロールバーが出ないように、PCでも指定 */
    overflow-x: hidden;
}
a{
    color: inherit;
    text-decoration: none;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
/* ログイン中、WordPressの管理バーに固定ヘッダーが隠れないようにする(訪問者には影響なし) */
.admin-bar header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}
@media (max-width: 600px) {
    .admin-bar header {
        top: 0;
    }
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-logo {
    height: 50px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #2c5e3b;
    letter-spacing: 0.5px;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}
.nav-list a {
    font-weight: bold;
    color: #444444;
    font-size: 15px;
    transition: color 0.3s;
}
.nav-list a:hover {
    color: #2c5e3b;
}

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.hero {
    background-image: url('images/nogata_symbol.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    text-align: center;
}
.hero-content {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 50px 30px;
    border-radius: 12px;
    display: inline-block;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a3a24;
    line-height: 1.4;
}
.hero-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: #444444;
}
/* ボタン(白文字が読みやすいよう、オレンジを少し濃くしています) */
.btn {
    display: inline-block;
    background-color: #b85a14;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s;
}
.btn:hover {
    background-color: #9c4a0f;
}

/* ==========================================================================
   共通セクション
   ========================================================================== */
section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}
.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 50px;
    color: #2c5e3b;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #e67e22;
    margin: 10px auto 0;
}

/* ==========================================================================
   特徴
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 8px;
    border-top: 4px solid #e67e22;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.feature-card h3 {
    font-size: 18px;
    color: #1a3a24;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 15px;
    color: #444444;
    line-height: 1.8;
}

/* ==========================================================================
   制作実績
   ========================================================================== */
.works-grid {
    display: grid;
    /* 幅の狭いスマホでもはみ出さないよう min() を使用 */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
}
.works-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* リンク付きのカードだけ、ホバーで浮かせる */
a.works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.works-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.works-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.works-meta {
    padding: 20px 20px 0;
}
.works-category {
    display: inline-block;
    background-color: #f0f4f0;
    color: #2c5e3b;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}
.works-item-title {
    font-size: 18px;
    color: #1a3a24;
    padding: 10px 20px 5px;
}
.works-desc {
    font-size: 14px;
    color: #666666;
    padding: 0 20px 25px;
    line-height: 1.6;
}

/* ==========================================================================
   料金プラン
   ========================================================================== */
.price {
    background-image: linear-gradient(rgba(240, 244, 240, 0.85), rgba(240, 244, 240, 0.85)), url('images/nogata_tulip.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.price-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-bottom: 4px solid #e67e22;
}
.price-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a3a24;
}
.amount {
    font-size: 32px;
    font-weight: bold;
    color: #b85a14;
    margin-bottom: 20px;
}
.price-card ul {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin-bottom: 20px;
}
.price-card li {
    margin-bottom: 10px;
    color: #444444;
}
.price-note {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    padding: 0 10px;
}

/* ==========================================================================
   代表プロフィール
   ========================================================================== */
.profile-section {
    background-color: #ffffff;
}
.profile-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}
.profile-image {
    flex: 0 0 250px;
    text-align: center;
}
.profile-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}
.profile-text {
    flex: 1;
}
.profile-name {
    font-size: 24px;
    color: #1a3a24;
    margin-bottom: 5px;
}
.profile-kana {
    font-size: 15px;
    color: #666666;
    font-weight: normal;
}
.profile-title {
    font-size: 14px;
    color: #b85a14;
    font-weight: bold;
    margin-bottom: 20px;
}
.profile-body {
    font-size: 16px;
    color: #444444;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ==========================================================================
   お問い合わせ
   ========================================================================== */
.contact-section {
    text-align: center;
}
.contact-text {
    margin-bottom: 30px;
}

/* ----- Contact Form 7 用(ここから) -----
   フォームがすでに意図した見た目になっている場合は、
   この「Contact Form 7 用」のブロックだけ削除してください。 */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}
.wpcf7-form p {
    margin-bottom: 20px;
}
.wpcf7-form label {
    display: block;
    font-weight: bold;
    color: #1a3a24;
    font-size: 15px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #2c5e3b;
}
.wpcf7-form .wpcf7-submit {
    display: block;
    margin: 30px auto 0;
    background-color: #b85a14;
    color: #ffffff;
    border: none;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}
.wpcf7-form .wpcf7-submit:hover {
    background-color: #9c4a0f;
}
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
}
.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}
/* ----- Contact Form 7 用(ここまで) ----- */

/* ----- 手作りフォーム用(以前のクラス名。CF7のテンプレートで使っている場合のため残しています) ----- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a3a24;
    font-size: 15px;
}
.required {
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5e3b;
}
.form-submit {
    text-align: center;
    margin-top: 30px;
}
.submit-btn {
    background-color: #b85a14;
    color: #ffffff;
    border: none;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #9c4a0f;
}

/* ==========================================================================
   フッター
   ========================================================================== */
footer {
    background-color: #2c5e3b;
    color: #ffffff;
    padding: 40px 0 20px;
    text-align: center;
}
.footer-info {
    margin-bottom: 20px;
}
.footer-sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}
.sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}
.sns-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: fill 0.3s;
}
.x-link:hover {
    background-color: #ffffff;
}
.x-link:hover .sns-icon {
    fill: #000000;
}
.insta-link:hover {
    background-color: #ffffff;
}
.insta-link:hover .sns-icon {
    fill: #cf2872;
}
.copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* ==========================================================================
   スクロール演出(footer.php のJavaScriptが .active を付けます)
   ========================================================================== */
/* 上から順に 左 → 右 → 左 → 右 → 左 と交互に表示(特徴・実績・料金・自己紹介・お問い合わせ) */
#features, #price, #contact {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.0s ease, transform 1.0s ease;
}
#works, #profile {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.0s ease, transform 1.0s ease;
}
#features.active,
#works.active,
#price.active,
#profile.active,
#contact.active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   スマホ(768px以下)
   ========================================================================== */
@media (max-width: 768px) {
    #features, #profile, #works, #price, #contact {
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    #features.active,
    #works.active,
    #price.active,
    #profile.active,
    #contact.active {
        transform: translateY(0);
    }
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .nav-list a {
        font-size: 14px;
        padding: 5px 8px;
    }
    .hero {
        padding: 80px 0;
    }
    .hero-content {
        padding: 35px 20px;
    }
    .hero-title {
        font-size: 22px;
        line-height: 1.5;
    }
    .hero-text {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    section {
        padding: 50px 0;
        scroll-margin-top: 110px;
    }
    .works-image {
        height: 180px;
    }
    /* iPhoneのSafariは背景の固定(fixed)に対応していないため、スマホでは通常スクロールにする */
    .price {
        background-attachment: scroll;
    }
    .profile-wrapper {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    .profile-image {
        flex: 0 0 160px;
        width: 160px;
        margin: 0 auto;
    }
    .profile-body {
        text-align: left;
        font-size: 15px;
    }
    .wpcf7-form,
    .contact-form {
        padding: 25px 20px;
    }
}

/* ==========================================================================
   「動きを減らす」設定の人向け(必ずファイルの最後に置く)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    #features, #works, #price, #profile, #contact {
        opacity: 1;
        transform: none;
        transition: none;
    }
}